src/java/org/apache/cassandra/gms/Gossiper.java
/**
     * Add an endpoint we knew about previously, but whose state is unknown
     */
Add an endpoint we knew about previously, but whose state is unknown
Add an endpoint we knew about previously but whose state is unknown
public void addSavedEndpoint(InetAddress ep)
    {
        if (ep == FBUtilities.getLocalAddress())
        {
            logger.debug("Attempt to add self as saved endpoint");
            return;
        }
        EndpointState epState = new EndpointState(new HeartBeatState(0));
        epState.markDead();
        endpointStateMap.put(ep, epState);
        unreachableEndpoints.put(ep, System.currentTimeMillis());
        if (logger.isTraceEnabled())
            logger.trace("Adding saved endpoint " + ep + " " + epState.getHeartBeatState().getGeneration());
    }
public void addSavedEndpoint ( InetAddress ep ) { if ( ep == FBUtilities . getLocalAddress ( ) ) { logger . debug ( "Attempt to add self as saved endpoint" ) ; return ; } EndpointState epState = new EndpointState ( new HeartBeatState ( 0 ) ) ; epState . markDead ( ) ; endpointStateMap . put ( ep , epState ) ; unreachableEndpoints . put ( ep , System . currentTimeMillis ( ) ) ; if ( logger . isTraceEnabled ( ) ) logger . trace ( "Adding saved endpoint " + ep + " " + epState . getHeartBeatState ( ) . getGeneration ( ) ) ; }
Add an endpoint we knew about previously, but whose state is unknown
Add an endpoint we knew about previously but whose state is unknown