private void startSubscriptionForMonitoring(Set<String> activeProvidersChangeSet){
  for (  String smisProviderUri : activeProvidersChangeSet) {
    boolean isSuccess=_connectionFactory.subscribeSMIProviderConnection(smisProviderUri);
    if (isSuccess) {
      ACTIVE_SMIS_PROVIDERS_CACHE.add(smisProviderUri);
      _logger.info("Created new subscription for the active SMI-S Provider :{}",smisProviderUri);
    }
 else {
      _logger.error("Subscription to the active SMIS provider {} is failed. " + "Controller will try to make new subscription in the next scheduled cycle",smisProviderUri);
    }
  }
}

private void startSubscriptionForMonitoring ( Set < String > activeProvidersChangeSet ) { for ( String smisProviderUri : activeProvidersChangeSet ) { boolean isSuccess = _connectionFactory . subscribeSMIProviderConnection ( smisProviderUri ) ; if ( isSuccess ) { ACTIVE_SMIS_PROVIDERS_CACHE . add ( smisProviderUri ) ; _logger . info ( "Created new subscription for the active SMI-S Provider :{}" , smisProviderUri ) ; } else { _logger . error ( "Subscription to the active SMIS provider {} is failed. " + "Controller will try to make new subscription in the next scheduled cycle" , smisProviderUri ) ; } } }
makes new subscription for the give list of unique active smis providers for monitoring .
