public boolean checkConnectionliveness(CimConnection connection){
  boolean isLive=false;
  if (null == connection) {
    return isLive;
  }
  WBEMClient wbemClient=connection.getCimClient();
  _log.debug("copPath:{}",_cop);
  try {
    wbemClient.enumerateInstanceNames(_cop);
    isLive=true;
  }
 catch (  WBEMException wbemEx) {
    _log.error("Invalid connection found for ipAddress: {}",connection.getHost());
  }
  return isLive;
}

public boolean checkConnectionliveness ( CimConnection connection ) { boolean isLive = false ; if ( null == connection ) { return isLive ; } WBEMClient wbemClient = connection . getCimClient ( ) ; _log . debug ( "copPath:{}" , _cop ) ; try { wbemClient . enumerateInstanceNames ( _cop ) ; isLive = true ; } catch ( WBEMException wbemEx ) { _log . error ( "Invalid connection found for ipAddress: {}" , connection . getHost ( ) ) ; } return isLive ; }
to - do : check for connection liveness 1 . if null , add a new connection . 2 . if connection present , then check for liveness .
