Retrieves cache group statistics for a package or for an MBO within the specified time range.
Collection<CacheGroupPackageStatisticsVO> getCacheGroupPackageStatistics(MonitoredObject monitoredObject, Date startTime, Date endTime) throws SUPAdminException; Collection<CacheGroupMBOStatisticsVO> getCacheGroupMBOStatistics(MonitoredObject monitoredObject, Date startTime, Date endTime) throws SUPAdminException;
If successful, returns an object of the specified type (can be null). If unsuccessful, returns SUPAdminException.
MonitoredCluster mc = new MonitoredCluster(); MonitoredDomain md_def = new MonitoredDomain("default"); MonitoredPackage mp = new MonitoredPackage("jdbc:1.0"); md_def.addMonitoredPackage(mp); mc.addMonitoredDomain(md_def); for (CacheGroupPackageStatisticsVO cgpsvo : supMonitor .getCacheGroupPackageStatistics(mc, null, null)) { System.out.println(cgpsvo.getRowCount()); } mp.addMonitoredCacheGroup(new MonitoredCacheGroup("default")); for (CacheGroupPackageStatisticsVO cgpsvo : supMonitor .getCacheGroupPackageStatistics(mc, null, null)) { System.out.println(cgpsvo.getRowCount()); }
MonitoredCluster mc = new MonitoredCluster(); MonitoredDomain md_def = new MonitoredDomain("default"); mc.addMonitoredDomain(md_def); for (CacheGroupMBOStatisticsVO cgmsvo : supMonitor .getCacheGroupMBOStatistics(mc, null, null)) { System.out.println(cgmsvo.getAccessCount()); } MonitoredPackage mp = new MonitoredPackage("jdbc:1.0"); md_def.addMonitoredPackage(mp); for (CacheGroupMBOStatisticsVO cgmsvo : supMonitor .getCacheGroupMBOStatistics(mc, null, null)) { System.out.println(cgmsvo.getAccessCount()); } MonitoredCacheGroup mcg = new MonitoredCacheGroup("default"); mp.addMonitoredCacheGroup(mcg); for (CacheGroupMBOStatisticsVO cgmsvo : supMonitor .getCacheGroupMBOStatistics(mc, null, null)) { System.out.println(cgmsvo.getAccessCount()); } MonitoredMBO mmbo = new MonitoredMBO("Customer"); mcg.addMonitoredMBO(mmbo); for (CacheGroupMBOStatisticsVO cgmsvo : supMonitor .getCacheGroupMBOStatistics(mc, null, null)) { System.out.println(cgmsvo.getAccessCount()); }