/** * <p>getLastPollTime</p> * * @return a {@link java.util.Date} object. */ public Date getLastPollTime() { return (m_lastPoll == null ? null : m_lastPoll.getTimestamp()); }
/** * <p>getLastPollTime</p> * * @return a {@link java.util.Date} object. */ public Date getLastPollTime() { return (m_lastPoll == null ? null : m_lastPoll.getTimestamp()); }
@Override public int compare(OnmsLocationSpecificStatus o1, OnmsLocationSpecificStatus o2) { return o1.getPollResult().getTimestamp().compareTo(o2.getPollResult().getTimestamp()); } });
@Override public Collection<OnmsLocationSpecificStatus> getStatusChangesBetween(final Date startDate, final Date endDate) { final List<OnmsLocationSpecificStatus> statuses = new ArrayList<>(); for (final OnmsLocationSpecificStatus status : m_statuses) { final Date timestamp = status.getPollResult().getTimestamp(); if (timestamp.getTime() == startDate.getTime() || timestamp.after(startDate)) { if (timestamp.before(endDate)) statuses.add(status); } } return statuses; }
@Override public Collection<OnmsLocationSpecificStatus> getStatusChangesBetween(final Date startDate, final Date endDate) { final List<OnmsLocationSpecificStatus> statuses = new ArrayList<>(); for (final OnmsLocationSpecificStatus status : m_statuses) { final Date timestamp = status.getPollResult().getTimestamp(); if (timestamp.getTime() == startDate.getTime() || timestamp.after(startDate)) { if (timestamp.before(endDate)) statuses.add(status); } } return statuses; }
@Override public int compare(OnmsLocationSpecificStatus o1, OnmsLocationSpecificStatus o2) { return o1.getPollResult().getTimestamp().compareTo(o2.getPollResult().getTimestamp()); } });
Date currentDate = status.getPollResult().getTimestamp();
Date currentDate = status.getPollResult().getTimestamp();
/** {@inheritDoc} */ @Override public PollStatus poll(PolledService polledService) { ServiceMonitor monitor = getServiceMonitor(polledService); if (monitor == null) { return PollStatus.unknown("No service monitor for service " + polledService.getSvcName()); } else { PollStatus result = monitor.poll(polledService, polledService.getMonitorConfiguration()); result.setTimestamp(m_timeAdjustment.adjustDateToMasterDate(result.getTimestamp())); return result; } }
/** {@inheritDoc} */ @Override public PollStatus poll(PolledService polledService) { ServiceMonitor monitor = getServiceMonitor(polledService); if (monitor == null) { return PollStatus.unknown("No service monitor for service " + polledService.getSvcName()); } else { PollStatus result = monitor.poll(polledService, polledService.getMonitorConfiguration()); result.setTimestamp(m_timeAdjustment.adjustDateToMasterDate(result.getTimestamp())); return result; } }
"bright"); table.addCell(getResponseText(s.getPollResult()), ""); table.addCell(reDateify(s.getPollResult().getTimestamp()), ""); table.addCell(reDateify(s.getLocationMonitor().getLastUpdated()), "");
"bright"); table.addCell(getResponseText(s.getPollResult()), ""); table.addCell(reDateify(s.getPollResult().getTimestamp()), ""); table.addCell(reDateify(s.getLocationMonitor().getLastUpdated()), "");