GOSSIP-30 Use getDeadMembers instead of getDeadList

This commit is contained in:
Rishabh Patel
2016-10-17 13:04:43 -07:00
parent 02ac78251e
commit 3d0ccf52e5
4 changed files with 9 additions and 19 deletions

View File

@ -176,16 +176,6 @@ public abstract class GossipManager implements NotificationListener {
return me;
}
public List<LocalGossipMember> getDeadList() {
List<LocalGossipMember> up = new ArrayList<>();
for (Entry<LocalGossipMember, GossipState> entry : members.entrySet()) {
if (GossipState.DOWN.equals(entry.getValue())) {
up.add(entry.getKey());
}
}
return Collections.unmodifiableList(up);
}
/**
* Starts the client. Specifically, start the various cycles for this protocol. Start the gossip
* thread and start the receiver thread.