/** * This method is called whenever there is a "big" change in ep state (either a previously unknown * node or a generation change for a known node). If the node is new, it will be initially marked * as dead. It will be marked alive as soon as another piece of gossip arrives. On the other hand * if the node is already known (generation change), we will immediately mark it alive. * * @param ep endpoint * @param epState EndpointState for the endpoint * @param isKnownNode is this node familiar to us already (present in endpointStateMap) */ private void handleMajorStateChange(InetAddress ep, EndpointState epState, boolean isKnownNode) { endpointStateMap_.put(ep, epState); isAlive(ep, epState, isKnownNode); for (IEndpointStateChangeSubscriber subscriber : subscribers_) subscriber.onJoin(ep, epState); }