public interface LocationMonitorDao extends OnmsDao<OnmsLocationMonitor,String>
LocationMonitorDao interface.
| Modifier and Type | Method and Description |
|---|---|
Collection<OnmsLocationMonitor> |
findByApplication(OnmsApplication application)
findByApplication
|
Collection<OnmsLocationMonitor> |
findByLocationDefinition(OnmsMonitoringLocation locationDefinition)
findByLocationDefinition
|
Collection<LocationMonitorIpInterface> |
findStatusChangesForNodeForUniqueMonitorAndInterface(int nodeId)
findStatusChangesForNodeForUniqueMonitorAndInterface
|
Collection<OnmsLocationSpecificStatus> |
getAllMostRecentStatusChanges()
getAllMostRecentStatusChanges
|
Collection<OnmsLocationSpecificStatus> |
getAllStatusChangesAt(Date timestamp)
getAllStatusChangesAt
|
OnmsLocationSpecificStatus |
getMostRecentStatusChange(OnmsLocationMonitor locationMonitor,
OnmsMonitoredService monSvc)
getMostRecentStatusChange
|
Collection<OnmsLocationSpecificStatus> |
getMostRecentStatusChangesForLocation(String locationName)
getMostRecentStatusChangesForLocation
|
Collection<OnmsLocationSpecificStatus> |
getStatusChangesBetween(Date startDate,
Date endDate)
Returns all status changes since the date, and one previous
status change (so that status at the beginning of the period can be
determined).
|
Collection<OnmsLocationSpecificStatus> |
getStatusChangesBetweenForApplications(Date startDate,
Date endDate,
Collection<String> applicationNames)
getStatusChangesBetweenForApplications
|
Collection<OnmsLocationSpecificStatus> |
getStatusChangesForApplicationBetween(Date startDate,
Date endDate,
String applicationName)
getStatusChangesForApplicationBetween
|
Collection<OnmsLocationSpecificStatus> |
getStatusChangesForLocationBetween(Date startDate,
Date endDate,
String locationDefinitionName)
getStatusChangesForLocationBetween
|
void |
pauseAll()
Mark all location monitors as paused except those that are already stopped
|
void |
resumeAll()
Mark all paused location monitors as started
|
void |
saveStatusChange(OnmsLocationSpecificStatus status)
saveStatusChange
|
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, updateCollection<OnmsLocationMonitor> findByLocationDefinition(OnmsMonitoringLocation locationDefinition)
findByLocationDefinition
locationDefinition - a OnmsMonitoringLocation object.Collection object.Collection<OnmsLocationMonitor> findByApplication(OnmsApplication application)
findByApplication
application - a OnmsApplication object.Collection object.void saveStatusChange(OnmsLocationSpecificStatus status)
saveStatusChange
status - a OnmsLocationSpecificStatus object.OnmsLocationSpecificStatus getMostRecentStatusChange(OnmsLocationMonitor locationMonitor, OnmsMonitoredService monSvc)
getMostRecentStatusChange
locationMonitor - a OnmsLocationMonitor object.monSvc - a OnmsMonitoredService object.OnmsLocationSpecificStatus object.Collection<OnmsLocationSpecificStatus> getAllMostRecentStatusChanges()
getAllMostRecentStatusChanges
Collection object.Collection<OnmsLocationSpecificStatus> getAllStatusChangesAt(Date timestamp)
getAllStatusChangesAt
timestamp - a Date object.Collection object.Collection<OnmsLocationSpecificStatus> getStatusChangesBetween(Date startDate, Date endDate)
startDate - a Date object.endDate - a Date object.Collection object.Collection<OnmsLocationSpecificStatus> getStatusChangesForLocationBetween(Date startDate, Date endDate, String locationDefinitionName)
getStatusChangesForLocationBetween
startDate - a Date object.endDate - a Date object.locationDefinitionName - a String object.Collection object.Collection<OnmsLocationSpecificStatus> getStatusChangesForApplicationBetween(Date startDate, Date endDate, String applicationName)
getStatusChangesForApplicationBetween
startDate - a Date object.endDate - a Date object.applicationName - a String object.Collection object.Collection<OnmsLocationSpecificStatus> getStatusChangesBetweenForApplications(Date startDate, Date endDate, Collection<String> applicationNames)
getStatusChangesBetweenForApplications
startDate - a Date object.endDate - a Date object.application - a Collection object.Collection object.Collection<OnmsLocationSpecificStatus> getMostRecentStatusChangesForLocation(String locationName)
getMostRecentStatusChangesForLocation
locationName - a String object.Collection object.Collection<LocationMonitorIpInterface> findStatusChangesForNodeForUniqueMonitorAndInterface(int nodeId)
findStatusChangesForNodeForUniqueMonitorAndInterface
nodeId - a int.Collection object.void pauseAll()
void resumeAll()
Copyright © 2020. All rights reserved.