public String connectionsStatus ( ) { StringBuilder connStatus = new StringBuilder ( ) ; connStatus . append ( "Connection Status {" ) ; for ( MemcachedNode node : locator . getAll ( ) ) { connStatus . append ( " " ) . append ( node . getSocketAddress ( ) ) . append ( " active: " ) . append ( node . isActive ( ) ) . append ( ", authed: " ) . append ( node . isAuthenticated ( ) ) . append ( MessageFormat . format ( ", last read: {0} ms ago" , node . lastReadDelta ( ) ) ) ; } connStatus . append ( " }" ) ; return connStatus . toString ( ) ; }
Construct a String containing information about all nodes and their state .