Retrieves the messaging statistics for a cluster, a domain, a package, or a specific mobile business object.
MessagingStatisticsVO SUPMonitor.getMessagingStatistics(MonitoredObject monitoredObject, startTime, endTim)
If successful, returns an object of the specified type (can be null). If unsuccessful, returns SUPAdminException.
MonitoredCluster mc = new MonitoredCluster(); // Retrieve cluster-level messaging statistics (statistics for all domains). supMonitor.getMessagingStatistics(mc, null, null);
MonitoredCluster mc = new MonitoredCluster();
MonitoredDomain md = new MonitoredDomain("default");
// Retrieve domain-level messaging statistics (statistics for all packages).
mc.addMonitoredDomain(md);
supMonitor.getMessagingStatistics(mc, null, null);
MonitoredCluster mc = new MonitoredCluster();
MonitoredDomain md = new MonitoredDomain("default");
MonitoredPackage mp = new MonitoredPackage("test_mbs:1.0");
// Retrieve package-level messaging statistics (statistics for all MBOs).
md.addMonitoredPackage(mp);
supMonitor.getMessagingStatistics(mc, null, null);
MonitoredCluster mc = new MonitoredCluster();
MonitoredDomain md = new MonitoredDomain("default");
MonitoredPackage mp = new MonitoredPackage("test_mbs:1.0");
// Monitored cache does not contribute to messaging statistics, but in
// order to retain the validity of the monitored object path, it should be
// part of the path.
MonitoredCacheGroup mcg = new MonitoredCacheGroup("Default");
MonitoredMBO mmbo = new MonitoredMBO("Customer");
// Retrieve messaging statistics for a specific MBO.
mcg.addMonitoredMBO(mmbo);
supMonitor.getMessagingStatistics(mc, null, null);