Package com.vmware.vim.binding.impl.vim.PerformanceManager_Impl

Examples of com.vmware.vim.binding.impl.vim.PerformanceManager_Impl.QuerySpecImpl


            CountersByType counters = getCountersOfType(type, targetIds.get(0));
            MetricId[] metrics = getMatchingMetrics(targetMOB.get(0), counters, sampleInterval);
            // construct query spec
            QuerySpec[] specs = new QuerySpecImpl[targetMOB.size()];
            for (int i = 0; i < targetMOB.size(); i++) {
               specs[i] = new QuerySpecImpl();
               specs[i].setEntity(targetMOB.get(i));
               specs[i].setIntervalId(sampleInterval);
               specs[i].setFormat("normal");
               specs[i].setMetricId(metrics);
               // selection of samples (historical)
View Full Code Here


            int index = 0;
            for (String refId : childrenMap.keySet()) {
               List<String> childrenList = childrenMap.get(refId);
               if (childrenList != null && childrenList.size() > 0) {
                  ManagedObjectReference moRef = MoUtil.stringToMoref(refId);
                  specs[index] = new QuerySpecImpl();
                  specs[index].setEntity(moRef);
                  specs[index].setIntervalId(sampleInterval);
                  specs[index].setFormat("normal");
                  MetricId[] metrics = new MetricIdImpl[childrenList.size()];
                  for (int j = 0; j < childrenList.size(); j++) {
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.impl.vim.PerformanceManager_Impl.QuerySpecImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.