public boolean isConnected(String hostAndPort) throws ConnectionManagerException {
  connectionLock.lock();
  boolean isConnected=false;
  try {
    if ((hostAndPort == null) || (hostAndPort.length() == 0)) {
      throw new ConnectionManagerException("Passed host/port is null or blank.");
    }
    CimConnection connection=_connections.get(hostAndPort);
    if (connection != null) {
      isConnected=true;
    }
  }
  finally {
    connectionLock.unlock();
  }
  return isConnected;
}

public boolean isConnected ( String hostAndPort ) throws ConnectionManagerException { connectionLock . lock ( ) ; boolean isConnected = false ; try { if ( ( hostAndPort == null ) || ( hostAndPort . length ( ) == 0 ) ) { throw new ConnectionManagerException ( "Passed host/port is null or blank." ) ; } CimConnection connection = _connections . get ( hostAndPort ) ; if ( connection != null ) { isConnected = true ; } } finally { connectionLock . unlock ( ) ; } return isConnected ; }
determines whether or not a connection has already been established for the passed host .
