Package org.jgroups.protocols
Class FD_SOCK.BroadcastTask
java.lang.Object
org.jgroups.protocols.FD_SOCK.BroadcastTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
FD_SOCK
Task that periodically broadcasts a list of suspected members to the group. Goal is not to lose
a SUSPECT message: since these are bcast unreliably, they might get dropped. The BroadcastTask makes
sure they are retransmitted until a view has been received which doesn't contain the suspected members
any longer. Then the task terminates.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds a suspected member.protected voidadjustSuspectedMembers(List<Address> new_mbrship) Removes all elements from suspected_mbrs that are not in the new membershipprotected voidprotected voidremoveSuspectedMember(Address suspected_mbr) voidrun()protected voidprotected voidstopTask()toString()
-
Field Details
-
suspects
-
future
-
-
Constructor Details
-
BroadcastTask
protected BroadcastTask()
-
-
Method Details
-
addSuspectedMember
Adds a suspected member. Starts the task if not yet running -
removeSuspectedMember
-
removeAll
protected void removeAll() -
startTask
protected void startTask() -
stopTask
protected void stopTask() -
adjustSuspectedMembers
Removes all elements from suspected_mbrs that are not in the new membership -
run
public void run() -
toString
-