public class LocationMonitorDaoHibernate extends AbstractDaoHibernate<OnmsLocationMonitor,String> implements LocationMonitorDao
LocationMonitorDaoHibernate class.
m_criteriaConverter| Constructor and Description | 
|---|
LocationMonitorDaoHibernate()
Constructor that also initializes the required XML configurations 
 | 
| 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 locationName)
getStatusChangesForLocationBetween 
 | 
protected void | 
initDao() | 
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 statusChange)
saveStatusChange 
 | 
buildHibernateCallback, bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, find, find, findAll, findMatching, findMatching, findObjects, findUnique, flush, get, initialize, load, lock, merge, queryInt, queryInt, save, saveOrUpdate, updatecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, updatepublic LocationMonitorDaoHibernate()
IOException - if any.protected void initDao()
                throws Exception
initDao in class AbstractDaoHibernate<OnmsLocationMonitor,String>Exceptionpublic OnmsLocationSpecificStatus getMostRecentStatusChange(OnmsLocationMonitor locationMonitor, OnmsMonitoredService monSvc)
getMostRecentStatusChange
getMostRecentStatusChange in interface LocationMonitorDaolocationMonitor - a OnmsLocationMonitor object.monSvc - a OnmsMonitoredService object.OnmsLocationSpecificStatus object.public void saveStatusChange(OnmsLocationSpecificStatus statusChange)
saveStatusChange
saveStatusChange in interface LocationMonitorDaostatusChange - a OnmsLocationSpecificStatus object.public Collection<OnmsLocationMonitor> findByApplication(OnmsApplication application)
findByApplication
Returns the location monitors which have reported on services belonging to the provided applicationfindByApplication in interface LocationMonitorDaoapplication - a OnmsApplication object.Collection object.public Collection<OnmsLocationMonitor> findByLocationDefinition(OnmsMonitoringLocation locationDefinition)
findByLocationDefinition
findByLocationDefinition in interface LocationMonitorDaolocationDefinition - a OnmsMonitoringLocation object.Collection object.public Collection<OnmsLocationSpecificStatus> getAllMostRecentStatusChanges()
getAllMostRecentStatusChanges
getAllMostRecentStatusChanges in interface LocationMonitorDaoCollection object.public Collection<OnmsLocationSpecificStatus> getAllStatusChangesAt(Date timestamp)
getAllStatusChangesAt
getAllStatusChangesAt in interface LocationMonitorDaotimestamp - a Date object.Collection object.public Collection<OnmsLocationSpecificStatus> getStatusChangesBetween(Date startDate, Date endDate)
getStatusChangesBetween in interface LocationMonitorDaostartDate - a Date object.endDate - a Date object.Collection object.public Collection<OnmsLocationSpecificStatus> getStatusChangesForLocationBetween(Date startDate, Date endDate, String locationName)
getStatusChangesForLocationBetween
getStatusChangesForLocationBetween in interface LocationMonitorDaostartDate - a Date object.endDate - a Date object.locationName - a String object.Collection object.public Collection<OnmsLocationSpecificStatus> getStatusChangesForApplicationBetween(Date startDate, Date endDate, String applicationName)
getStatusChangesForApplicationBetween
getStatusChangesForApplicationBetween in interface LocationMonitorDaostartDate - a Date object.endDate - a Date object.applicationName - a String object.Collection object.public Collection<OnmsLocationSpecificStatus> getStatusChangesBetweenForApplications(Date startDate, Date endDate, Collection<String> applicationNames)
LocationMonitorDaogetStatusChangesBetweenForApplications
getStatusChangesBetweenForApplications in interface LocationMonitorDaostartDate - a Date object.endDate - a Date object.Collection object.public Collection<OnmsLocationSpecificStatus> getMostRecentStatusChangesForLocation(String locationName)
getMostRecentStatusChangesForLocation
getMostRecentStatusChangesForLocation in interface LocationMonitorDaolocationName - a String object.Collection object.public Collection<LocationMonitorIpInterface> findStatusChangesForNodeForUniqueMonitorAndInterface(int nodeId)
findStatusChangesForNodeForUniqueMonitorAndInterface
findStatusChangesForNodeForUniqueMonitorAndInterface in interface LocationMonitorDaonodeId - a int.Collection object.public void pauseAll()
pauseAll in interface LocationMonitorDaopublic void resumeAll()
resumeAll in interface LocationMonitorDaoCopyright © 2021. All rights reserved.