private void computeStaticLoadMetrics(AccessProfile accessProfile) throws BaseCollectionException {
  URI storageSystemId=accessProfile.getSystemId();
  StorageSystem storageSystem=null;
  try {
    storageSystem=_dbClient.queryObject(StorageSystem.class,storageSystemId);
    _logger.info("started computeStaticLoadMetrics for storagesystem: {}",storageSystem.getLabel());
    VNXeApiClient client=getVnxUnityClient(accessProfile);
    List<VNXeNasServer> nasServers=client.getNasServers();
    for (    VNXeNasServer nasServer : nasServers) {
      if ((nasServer.getMode() == VNXeNasServer.NasServerModeEnum.DESTINATION) || nasServer.getIsReplicationDestination()) {
        _logger.debug("Found a replication destination NasServer");
        continue;
      }
      if (nasServer.getIsSystem()) {
        continue;
      }
      VirtualNAS virtualNAS=findvNasByNativeId(storageSystem,nasServer.getId());
      if (virtualNAS != null) {
        _logger.info("Process db metrics for nas server : {}",nasServer.getName());
        StringMap dbMetrics=virtualNAS.getMetrics();
        if (dbMetrics == null) {
          dbMetrics=new StringMap();
        }
        StringMap tmpDbMetrics=populateDbMetrics(nasServer,client);
        dbMetrics.putAll(tmpDbMetrics);
        virtualNAS.setMetrics(dbMetrics);
        _dbClient.updateObject(virtualNAS);
      }
    }
  }
 catch (  Exception e) {
    _logger.error("CollectStatisticsInformation failed. Storage system: {}",storageSystemId,e);
  }
}

private void computeStaticLoadMetrics ( AccessProfile accessProfile ) throws BaseCollectionException { URI storageSystemId = accessProfile . getSystemId ( ) ; StorageSystem storageSystem = null ; try { storageSystem = _dbClient . queryObject ( StorageSystem . class , storageSystemId ) ; _logger . info ( "started computeStaticLoadMetrics for storagesystem: {}" , storageSystem . getLabel ( ) ) ; VNXeApiClient client = getVnxUnityClient ( accessProfile ) ; List < VNXeNasServer > nasServers = client . getNasServers ( ) ; for ( VNXeNasServer nasServer : nasServers ) { if ( ( nasServer . getMode ( ) == VNXeNasServer . NasServerModeEnum . DESTINATION ) || nasServer . getIsReplicationDestination ( ) ) { _logger . debug ( "Found a replication destination NasServer" ) ; continue ; } if ( nasServer . getIsSystem ( ) ) { continue ; } VirtualNAS virtualNAS = findvNasByNativeId ( storageSystem , nasServer . getId ( ) ) ; if ( virtualNAS != null ) { _logger . info ( "Process db metrics for nas server : {}" , nasServer . getName ( ) ) ; StringMap dbMetrics = virtualNAS . getMetrics ( ) ; if ( dbMetrics == null ) { dbMetrics = new StringMap ( ) ; } StringMap tmpDbMetrics = populateDbMetrics ( nasServer , client ) ; dbMetrics . putAll ( tmpDbMetrics ) ; virtualNAS . setMetrics ( dbMetrics ) ; _dbClient . updateObject ( virtualNAS ) ; } } } catch ( Exception e ) { _logger . error ( "CollectStatisticsInformation failed. Storage system: {}" , storageSystemId , e ) ; } }
compute static load metrics .
