Package org.opennms.netmgt.dao.api
Interface ApplicationDao
-
- All Superinterfaces:
OnmsDao<OnmsApplication,Integer>
- All Known Implementing Classes:
ApplicationDaoHibernate
,MockApplicationDao
public interface ApplicationDao extends OnmsDao<OnmsApplication,Integer>
ApplicationDao interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OnmsApplication
findByName(String label)
findByNameList<MonitoredServiceStatusEntity>
getAlarmStatus()
Load all alarms from the alarm table which have a node id, ip address and service type set.List<MonitoredServiceStatusEntity>
getAlarmStatus(List<OnmsApplication> applications)
List<ApplicationStatus>
getApplicationStatus()
Determine the application's status.List<ApplicationStatus>
getApplicationStatus(List<OnmsApplication> applications)
same asgetApplicationStatus()
but only calculates the status for the given applications.List<OnmsMonitoringLocation>
getPerspectiveLocationsForService(int nodeId, InetAddress ipAddress, String serviceName)
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(String label)
findByName
- Parameters:
label
- aString
object.- Returns:
- a
OnmsApplication
object.
-
getApplicationStatus
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
List<ApplicationStatus> getApplicationStatus(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
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
List<MonitoredServiceStatusEntity> getAlarmStatus(List<OnmsApplication> applications)
-
getPerspectiveLocationsForService
List<OnmsMonitoringLocation> getPerspectiveLocationsForService(int nodeId, InetAddress ipAddress, String serviceName)
-
getServicePerspectives
List<ServicePerspective> getServicePerspectives()
-
-