private void maybeSetApplicationState()
    {
        if (localNodeData.dcLocalAddress == null)
            return;
        final EndpointState es = Gossiper.instance.getEndpointStateForEndpoint(FBUtilities.getBroadcastAddress());
        if (es == null)
            return;
        final VersionedValue vv = es.getApplicationState(ApplicationState.INTERNAL_IP);
        if ((vv != null && !vv.value.equals(localNodeData.dcLocalAddress.getHostAddress()))
            || vv == null)
        {
            Gossiper.instance.addLocalApplicationState(ApplicationState.INTERNAL_IP,
                StorageService.instance.valueFactory.internalIP(localNodeData.dcLocalAddress.getHostAddress()));
        }
    }
private void maybeSetApplicationState ( ) { if ( localNodeData . dcLocalAddress == null ) return ; final EndpointState es = Gossiper . instance . getEndpointStateForEndpoint ( FBUtilities . getBroadcastAddress ( ) ) ; if ( es == null ) return ; final VersionedValue vv = es . getApplicationState ( ApplicationState . INTERNAL_IP ) ; if ( ( vv != null && ! vv . value . equals ( localNodeData . dcLocalAddress . getHostAddress ( ) ) ) || vv == null ) { Gossiper . instance . addLocalApplicationState ( ApplicationState . INTERNAL_IP , StorageService . instance . valueFactory . internalIP ( localNodeData . dcLocalAddress . getHostAddress ( ) ) ) ; } }
be careful about just blindly updating ApplicationState.INTERNAL_IP everytime we read the yaml file,
as that can cause connections to get unnecessarily reset (via IESCS.onChange()).