Retrieves the replication statistics for a cluster, a domain, a package, or a specific mobile business object.
ReplicationStatisticsVO getReplicationStatistics(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(); //Retrieve cluster-level replication statistics (for all domains). supMonitor.getReplicationStatistics(mc, null, null);
MonitoredCluster mc = new MonitoredCluster();
MonitoredDomain md = new MonitoredDomain("default");
//Retrieve domain-level replication statistics (for all packages).
mc.addMonitoredDomain(md);
supMonitor.getReplicationStatistics(mc, null, null);
MonitoredCluster mc = new MonitoredCluster();
MonitoredDomain md = new MonitoredDomain("default");
MonitoredPackage mp = new MonitoredPackage("test_mbs:1.0");
//Retrieve package-level replication statistics (for all MBOs) .
md.addMonitoredPackage(mp);
supMonitor.getReplicationStatistics(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 replication statistics, however
// 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 replication statistics for a specific MBO.
mcg.addMonitoredMBO(mmbo);
supMonitor.getReplicationStatistics(mc, null, null);