/** * Retrieves the performance manager for this instance. * * @return the performance manager */ private PerformanceManager getPerformanceManager() { if (m_performanceManager == null) { m_performanceManager = m_serviceInstance.getPerformanceManager(); } return m_performanceManager; }
/** * Retrieves the performance manager for this instance. * * @return the performance manager */ private PerformanceManager getPerformanceManager() { if (m_performanceManager == null) { m_performanceManager = m_serviceInstance.getPerformanceManager(); } return m_performanceManager; }
public static synchronized Boolean updateConnection() throws IOException { try { serviceInstance = new ServiceInstance(new URL(sdkUrl), uname, passwd, true, connectTimeout, readTimeout); if (serviceInstance == null) { LOG.error("serviceInstance in null! Connection failed."); return false; } Folder rootFolder = serviceInstance.getRootFolder(); inventoryNavigator = new InventoryNavigator(serviceInstance.getRootFolder()); performanceManager = serviceInstance.getPerformanceManager(); // retrieve all the available performance counters PerfCounterInfo[] pcis = performanceManager.getPerfCounter(); return true; } catch (Exception ex) { ex.printStackTrace(); } return false; }
public static void main(String[] args) throws Exception { if(args.length != 3) { System.out.println("Usage: java PrintPerfMgr " + "<url> <username> <password>"); return; } ServiceInstance si = new ServiceInstance( new URL(args[0]), args[1], args[2], true); PerformanceManager perfMgr = si.getPerformanceManager(); System.out.println("***Print All Descriptions:"); PerformanceDescription pd = perfMgr.getDescription(); printPerfDescription(pd); System.out.println("\n***Print All Historical Intervals:"); PerfInterval[] pis = perfMgr.getHistoricalInterval(); printPerfIntervals(pis); System.out.println("\n***Print All Perf Counters:"); PerfCounterInfo[] pcis = perfMgr.getPerfCounter(); printPerfCounters(pcis); si.getServerConnection().logout(); }
public static void main(String[] args) throws Exception { ServiceInstance si = SampleUtil.createServiceInstance(); PerformanceManager perfMgr = si.getPerformanceManager(); System.out.println("***Print All Descriptions:"); PerformanceDescription pd = perfMgr.getDescription(); printPerfDescription(pd); System.out.println("\n***Print All Historical Intervals:"); PerfInterval[] pis = perfMgr.getHistoricalInterval(); printPerfIntervals(pis); System.out.println("\n***Print All Perf Counters:"); PerfCounterInfo[] pcis = perfMgr.getPerfCounter(); printPerfCounters(pcis); si.getServerConnection().logout(); }
PerformanceManager perfMgr = si.getPerformanceManager();
PerformanceManager perfMgr = si.getPerformanceManager();
private void generateData(String rrdRepository) throws Exception { serviceInstance = new ServiceInstance(new URL("https://" + hostname + "/sdk"), username, password); performanceManager = serviceInstance.getPerformanceManager();
private void generateData(String rrdRepository) throws Exception { serviceInstance = new ServiceInstance(new URL("https://" + hostname + "/sdk"), username, password); performanceManager = serviceInstance.getPerformanceManager();
PerformanceManager perfMgr = si.getPerformanceManager();
PerformanceManager perfMgr = si.getPerformanceManager();