1 24 25 package org.objectweb.tribe.gms.protocol; 26 27 import java.util.ArrayList ; 28 29 import org.objectweb.tribe.common.Address; 30 import org.objectweb.tribe.common.Group; 31 import org.objectweb.tribe.common.IpAddress; 32 import org.objectweb.tribe.gms.GroupMembershipListener; 33 34 40 public class GroupCompositionMessage extends GroupMembershipMessage 41 { 42 43 50 public GroupCompositionMessage(Group g, IpAddress replyAddress) 51 { 52 super(); 53 this.addChunk(g); 54 this.addChunk(replyAddress); 55 } 56 57 60 public void deliver(GroupMembershipListener listener) 61 { 62 ArrayList chunks = this.getChunks(); 63 listener.groupComposition((Group) chunks.get(0), (Address) chunks.get(1)); 64 } 65 66 } | Popular Tags |