1 24 25 package org.objectweb.tribe.faultdetection; 26 27 import java.util.ArrayList ; 28 29 import org.objectweb.tribe.common.Group; 30 import org.objectweb.tribe.common.Member; 31 32 38 public interface FaultDetectionService 39 { 40 43 static final int DEFAULT_REFREST_RATE = 1000; 44 45 48 static final int DEFAULT_LISTENING_PORT = 6456; 49 50 53 static final int DEFAULT_EMITTING_PORT = 6457; 54 55 60 void setRefreshRate(long delay); 61 62 69 long getRefreshRate(); 70 71 77 void addGroup(Group group); 78 79 84 void addMember(Member member); 85 86 91 void removeMember(Member member); 92 93 101 Group removeGroup(Group group); 102 103 110 ArrayList getGroups(); 111 112 117 void addListener(FaultDetectionListener listener); 118 119 124 void removeListener(FaultDetectionListener listener); 125 } | Popular Tags |