src/java/org/apache/cassandra/gms/Gossiper.java
/**
     * This should *only* be used for testing purposes.
     */
This should *only* be used for testing purposes.
This should * only * be used for testing purposes .
public void initializeNodeUnsafe(InetAddress addr, int generationNbr) {
        /* initialize the heartbeat state for this localEndpoint */
        EndpointState localState = endpointStateMap.get(addr);
        if ( localState == null )
        {
            HeartBeatState hbState = new HeartBeatState(generationNbr);
            localState = new EndpointState(hbState);
            localState.markAlive();
            endpointStateMap.put(addr, localState);
        }
    }
public void initializeNodeUnsafe ( InetAddress addr , int generationNbr ) { /* initialize the heartbeat state for this localEndpoint */ EndpointState localState = endpointStateMap . get ( addr ) ; if ( localState == null ) { HeartBeatState hbState = new HeartBeatState ( generationNbr ) ; localState = new EndpointState ( hbState ) ; localState . markAlive ( ) ; endpointStateMap . put ( addr , localState ) ; } }
This should *only* be used for testing purposes.
This should * only * be used for testing purposes .