public String setNodeAvailableForSessionId ( final String sessionId , final boolean available ) { if ( _nodeIdService != null && isEncodeNodeIdInSessionId ( ) ) { final String nodeId = _sessionIdFormat . extractMemcachedId ( sessionId ) ; if ( nodeId != null ) { _nodeIdService . setNodeAvailable ( nodeId , available ) ; return nodeId ; } else { LOG . warn ( "Got sessionId without nodeId: " + sessionId ) ; } } return null ; }
Mark the memcached node encoded in the given sessionId as available or not . If nodeIds shall not be encoded in the sessionId or if the given sessionId does not contain a nodeId no action will be taken .