Retrieves a specified portion of a large volume of monitoring data (for example, user access histories).
Long getSecurityLogHistoryCount(Collection<MonitoredObject> monitoredObjects, Boolean accessResult, Date startTime, Date endTime) throws SUPAdminException; Collection<SecurityLogHistoryVO> getSecurityLogHistory(Collection<MonitoredObject> monitoredObjects, Boolean accessResult, Date startTime, Date endTime, Long offset, Integer length, SortedField<? extends Enum> sortedField) throws SUPAdminException;
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.getSecurityLogHistory(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.getSecurityLogHistory(mos, null, null, null, offset, null, null); for (SecurityLogHistoryVO slhvo : slhvos) { System.out.println(slhvo.getUserName()); } offset += slhvos.size();