private boolean pingSecondaryProtocol ( Protocol protocol ) { try { if ( protocol != null && protocol . isConnected ( ) && protocol . ping ( ) ) { return true ; } } catch ( Exception e ) { protocol . close ( ) ; if ( setSecondaryHostFail ( ) ) { addToBlacklist ( protocol . getHostAddress ( ) ) ; } } return false ; }
Ping secondary protocol . ! lock must be set !