Package org.opennms.netmgt.dao.api
Interface ApplicationDao
-
- All Superinterfaces:
OnmsDao<OnmsApplication,java.lang.Integer>
- All Known Implementing Classes:
ApplicationDaoHibernate,MockApplicationDao
public interface ApplicationDao extends OnmsDao<OnmsApplication,java.lang.Integer>
ApplicationDao interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OnmsApplicationfindByName(java.lang.String label)findByNamejava.util.List<MonitoredServiceStatusEntity>getAlarmStatus()Load all alarms from the alarm table which have a node id, ip address and service type set.java.util.List<MonitoredServiceStatusEntity>getAlarmStatus(java.util.List<OnmsApplication> applications)java.util.List<ApplicationStatus>getApplicationStatus()Determine the application's status.java.util.List<ApplicationStatus>getApplicationStatus(java.util.List<OnmsApplication> applications)same asgetApplicationStatus()but only calculates the status for the given applications.java.util.List<OnmsMonitoringLocation>getPerspectiveLocationsForService(int nodeId, java.net.InetAddress ipAddress, java.lang.String serviceName)java.util.List<ServicePerspective>getServicePerspectives()-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
findByName
OnmsApplication findByName(java.lang.String label)
findByName
- Parameters:
label- aStringobject.- Returns:
- a
OnmsApplicationobject.
-
getApplicationStatus
java.util.List<ApplicationStatus> getApplicationStatus()
Determine the application's status. As applications do not have a direct status attached, the status is calculated based on the nodeDown, interfaceDown or serviceLost events/alarms from the application's monitored services.- Returns:
- the application's status.
-
getApplicationStatus
java.util.List<ApplicationStatus> getApplicationStatus(java.util.List<OnmsApplication> applications)
same asgetApplicationStatus()but only calculates the status for the given applications.- Parameters:
applications- The applications to calculate the status for.- Returns:
- The application's status.
-
getAlarmStatus
java.util.List<MonitoredServiceStatusEntity> getAlarmStatus()
Load all alarms from the alarm table which have a node id, ip address and service type set.- Returns:
- all alarms from the alarm table which have a node id, ip address and service type set.
-
getAlarmStatus
java.util.List<MonitoredServiceStatusEntity> getAlarmStatus(java.util.List<OnmsApplication> applications)
-
getPerspectiveLocationsForService
java.util.List<OnmsMonitoringLocation> getPerspectiveLocationsForService(int nodeId, java.net.InetAddress ipAddress, java.lang.String serviceName)
-
getServicePerspectives
java.util.List<ServicePerspective> getServicePerspectives()
-
-