Retrieves a specified portion of a large volume of monitoring data (for example, user access histories).
java.lang.Long SUPMonitor.getSecurityLogHistoryCount(MonitoredObject monitoredObjects, accessResult, startTime, endTime) SecurityLogHistoryVO SUPMonitor.getSecurityLogHistories(MonitoredObject monitoredObjects, accessResult, startTime, endTime, offset, length, SortedField sortedField)
If successful, returns an object of the specified type (can be null). If unsuccessful, returns SUPAdminException.
MonitoredCluster mc = new MonitoredCluster(); mc.addMonitoredDomain(new MonitoredDomain("default")); Collection<MonitoredObject> mos = Arrays .asList(new MonitoredObject[] { mc }); long count = supMonitor.getSecurityLogHistoryCount(mos, null, null, null); Collection<SecurityLogHistoryVO> slhvos = supMonitor.getSecurityLogHistories(mos, null, null, null, null, null, null); for (SecurityLogHistoryVO slhvo : slhvos) { System.out.println(slhvo.getUserName()); } long offset = slhvos.size(); while(offset<count){ slhvos = supMonitor.getSecurityLogHistories(mos, null, null, null, offset, null, null); for (SecurityLogHistoryVO slhvo : slhvos) { System.out.println(slhvo.getUserName()); } offset += slhvos.size();