use of com.emc.storageos.plugins.common.domainmodel.Namespace in project coprhd-controller by CoprHD.
the class HDSCommunicationInterface method collectStatisticsInformation.
@Override
public void collectStatisticsInformation(AccessProfile accessProfile) throws BaseCollectionException {
try {
_logger.info("Access Profile Details :" + accessProfile.toString());
wbemClient = getCIMClient(accessProfile);
initMap(accessProfile);
Namespace namespace = (Namespace) namespaces.getNsList().get(METERING);
_logger.info("HDS CIMClient initialized successfully");
executor.setKeyMap(_keyMap);
executor.execute(namespace);
dumpStatRecords();
injectStats();
// if portMetricsProcesor was injected with metering, trigger pool matcher
if (portMetricsProcessor != null) {
//
// compute port metric to trigger if any port allocation qualification changed. If there is
// changes, run vpool matcher
//
_logger.info("checking to see if Vpool Matcher needs to be run");
List<StoragePort> systemPorts = ControllerUtils.getSystemPortsOfSystem(_dbClient, accessProfile.getSystemId());
portMetricsProcessor.triggerVpoolMatcherIfPortAllocationQualificationChanged(accessProfile.getSystemId(), systemPorts);
//
// compute storage system's average of port metrics. Then, persist it into storage system object.
//
portMetricsProcessor.computeStorageSystemAvgPortMetrics(accessProfile.getSystemId());
}
} catch (Exception e) {
throw new HDSCollectionException(e.getMessage());
} finally {
releaseResources();
}
}
use of com.emc.storageos.plugins.common.domainmodel.Namespace in project coprhd-controller by CoprHD.
the class SMICommunicationInterface method collectStatisticsInformation.
/**
* To-Do : Argument Changes, to accomodate ProSphere usage
*/
@Override
public void collectStatisticsInformation(AccessProfile accessProfile) throws BaseCollectionException {
try {
_logger.info("Access Profile Details :" + accessProfile.toString());
_wbemClient = getCIMClient(accessProfile);
initMap(accessProfile);
StorageSystem storageSystem = queryStorageSystem(accessProfile);
String providerVersion = getProviderVersionString(storageSystem);
if (null != providerVersion) {
_keyMap.put(Constants.VERSION, providerVersion);
_keyMap.put(Constants.IS_NEW_SMIS_PROVIDER, isSMIS8XProvider(providerVersion));
}
Namespace _ns = null;
_ns = (Namespace) namespaces.getNsList().get(METERING);
_logger.info("CIMClient initialized successfully");
executor.setKeyMap(_keyMap);
executor.execute(_ns);
dumpStatRecords();
injectStats();
} catch (Exception e) {
throw new SMIPluginException(e.getMessage());
} finally {
releaseResources();
}
}
Aggregations