@ Override public void markAsAlive ( Node node , boolean isMaster , String restTransportAddress ) { node . getFields ( ) . put ( "last_seen" , Tools . getUTCTimestamp ( ) ) ; node . getFields ( ) . put ( "is_master" , isMaster ) ; node . getFields ( ) . put ( "transport_address" , restTransportAddress ) ; try { save ( node ) ; } catch ( ValidationException e ) { throw new RuntimeException ( "Validation failed." , e ) ; } }
Mark this node as alive and probably update some settings that may have changed since last server boot .