1 24 25 package org.objectweb.tribe.gms.protocol; 26 27 import java.util.ArrayList ; 28 29 import org.objectweb.tribe.common.GroupIdentifier; 30 import org.objectweb.tribe.common.Member; 31 import org.objectweb.tribe.gms.GroupMembershipListener; 32 33 39 public class JoinMessage extends GroupMembershipMessage 40 { 41 48 public JoinMessage(GroupIdentifier gid, Member sender) 49 { 50 super(); 51 this.addChunk(gid); 52 this.addChunk(sender); 53 } 54 55 58 public void deliver(GroupMembershipListener listener) 59 { 60 ArrayList chunks = this.getChunks(); 61 listener 62 .joinMember((Member) chunks.get(0), (GroupIdentifier) chunks.get(1)); 63 } 64 65 } | Popular Tags |