org.jgroups.protocols
public class FD extends Protocol
FD starts when it detects (in a view change notification) that there are at least 2 members in the group. It stops running when the membership drops below 2.
When a message is received from the monitored neighbor member, it causes the pinger thread to 'skip' sending the next are-you-alive message. Thus, traffic is reduced.
When we receive a ping from a member that's not in the membership list, we shun it by sending it a
NOT_MEMBER message. That member will then leave the group (and possibly rejoin). This is only done if
shun
is true.
Version: $Revision: 1.31 $
Nested Class Summary | |
---|---|
static class | FD.FdHeader |
Method Summary | |
---|---|
void | down(Event evt) |
int | getCurrentNumTries() |
String | getLocalAddress() |
int | getMaxTries() |
String | getMembers() |
String | getName() |
int | getNumberOfHeartbeatsSent() |
int | getNumSuspectEventsGenerated() |
String | getPingableMembers() |
String | getPingDest() |
long | getTimeout() |
void | init() |
boolean | isShun() |
String | printSuspectHistory() |
void | resetStats() |
void | setMaxTries(int max_tries) |
boolean | setProperties(Properties props) |
void | setShun(boolean flag) |
void | setTimeout(long timeout) |
void | stop() |
void | up(Event evt) |