private void signalConnected ( ) { if ( alternate != null ) { LOGGER . info ( "Connected to Node {} ({})" , system ( hostname . nameAndAddress ( ) ) , system ( alternate . nameAndAddress ( ) ) ) ; } else { LOGGER . info ( "Connected to Node {}" , system ( hostname . nameAndAddress ( ) ) ) ; } if ( eventBus != null && eventBus . hasSubscribers ( ) ) { eventBus . publish ( new NodeConnectedEvent ( hostname ) ) ; } }
Log that this node is now connected and also inform all susbcribers on the event bus .