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 FailedMemberMessage extends GroupMembershipMessage 40 { 41 42 50 public FailedMemberMessage(GroupIdentifier gid, Member failed, Member sender) 51 { 52 super(); 53 this.addChunk(failed); 54 this.addChunk(gid); 55 this.addChunk(sender); 56 } 57 58 61 public void deliver(GroupMembershipListener listener) 62 { 63 ArrayList chunks = this.getChunks(); 64 listener.failedMember((Member) chunks.get(0), (GroupIdentifier) chunks 65 .get(1), (Member) chunks.get(2)); 66 } 67 68 } | Popular Tags |