public class MockLocationMonitorDao extends AbstractMockDao<OnmsLocationMonitor,Integer> implements LocationMonitorDao
AbstractMockDao.NullEventForwarder| Constructor and Description |
|---|
MockLocationMonitorDao() |
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, save, saveOrUpdate, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, updateprotected void generateId(OnmsLocationMonitor mon)
generateId in class AbstractMockDao<OnmsLocationMonitor,Integer>protected Integer getId(OnmsLocationMonitor loc)
getId in class AbstractMockDao<OnmsLocationMonitor,Integer>public Collection<OnmsLocationMonitor> findByLocationDefinition(OnmsMonitoringLocationDefinition locationDefinition)
LocationMonitorDaofindByLocationDefinition
findByLocationDefinition in interface LocationMonitorDaolocationDefinition - a OnmsMonitoringLocationDefinition object.Collection object.public Collection<OnmsLocationMonitor> findByApplication(OnmsApplication application)
LocationMonitorDaofindByApplication
findByApplication in interface LocationMonitorDaoapplication - a OnmsApplication object.Collection object.public List<OnmsMonitoringLocationDefinition> findAllMonitoringLocationDefinitions()
LocationMonitorDaofindAllMonitoringLocationDefinitions
findAllMonitoringLocationDefinitions in interface LocationMonitorDaoList object.public OnmsMonitoringLocationDefinition findMonitoringLocationDefinition(String monitoringLocationDefinitionName)
LocationMonitorDaofindMonitoringLocationDefinition
findMonitoringLocationDefinition in interface LocationMonitorDaomonitoringLocationDefinitionName - a String object.OnmsMonitoringLocationDefinition object.public void saveMonitoringLocationDefinition(OnmsMonitoringLocationDefinition def)
LocationMonitorDaosaveMonitoringLocationDefinition
saveMonitoringLocationDefinition in interface LocationMonitorDaodef - a OnmsMonitoringLocationDefinition object.public void saveMonitoringLocationDefinitions(Collection<OnmsMonitoringLocationDefinition> defs)
LocationMonitorDaosaveMonitoringLocationDefinitions
saveMonitoringLocationDefinitions in interface LocationMonitorDaodefs - a Collection object.public void saveStatusChange(OnmsLocationSpecificStatus status)
LocationMonitorDaosaveStatusChange
saveStatusChange in interface LocationMonitorDaostatus - a OnmsLocationSpecificStatus object.public OnmsLocationSpecificStatus getMostRecentStatusChange(OnmsLocationMonitor locationMonitor, OnmsMonitoredService monSvc)
LocationMonitorDaogetMostRecentStatusChange
getMostRecentStatusChange in interface LocationMonitorDaolocationMonitor - a OnmsLocationMonitor object.monSvc - a OnmsMonitoredService object.OnmsLocationSpecificStatus object.public Collection<OnmsLocationSpecificStatus> getAllMostRecentStatusChanges()
LocationMonitorDaogetAllMostRecentStatusChanges
getAllMostRecentStatusChanges in interface LocationMonitorDaoCollection object.public Collection<OnmsLocationSpecificStatus> getAllStatusChangesAt(Date timestamp)
LocationMonitorDaogetAllStatusChangesAt
getAllStatusChangesAt in interface LocationMonitorDaotimestamp - a Date object.Collection object.public Collection<OnmsLocationSpecificStatus> getStatusChangesBetween(Date startDate, Date endDate)
LocationMonitorDaogetStatusChangesBetween in interface LocationMonitorDaostartDate - a Date object.endDate - a Date object.Collection object.public Collection<OnmsLocationSpecificStatus> getStatusChangesForLocationBetween(Date startDate, Date endDate, String locationDefinitionName)
LocationMonitorDaogetStatusChangesForLocationBetween
getStatusChangesForLocationBetween in interface LocationMonitorDaostartDate - a Date object.endDate - a Date object.locationDefinitionName - a String object.Collection object.public Collection<OnmsLocationSpecificStatus> getStatusChangesForApplicationBetween(Date startDate, Date endDate, String applicationName)
LocationMonitorDaogetStatusChangesForApplicationBetween
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)
LocationMonitorDaogetMostRecentStatusChangesForLocation
getMostRecentStatusChangesForLocation in interface LocationMonitorDaolocationName - a String object.Collection object.public Collection<LocationMonitorIpInterface> findStatusChangesForNodeForUniqueMonitorAndInterface(int nodeId)
LocationMonitorDaofindStatusChangesForNodeForUniqueMonitorAndInterface
findStatusChangesForNodeForUniqueMonitorAndInterface in interface LocationMonitorDaonodeId - a int.Collection object.public void pauseAll()
LocationMonitorDaopauseAll in interface LocationMonitorDaopublic void resumeAll()
LocationMonitorDaoresumeAll in interface LocationMonitorDaoCopyright © 2015. All rights reserved.