Package org.opennms.netmgt.poller
Interface QueryManager
-
- All Known Implementing Classes:
QueryManagerDaoImpl
public interface QueryManagerQueryManager interface.
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloseOutagesForInterface(Date closeDate, int eventId, int nodeId, String ipAddr)voidcloseOutagesForNode(Date closeDate, int eventId, int nodeId)voidcloseOutagesForService(Date closeDate, int eventId, int nodeId, String ipAddr, String serviceName)voidcloseOutagesForUnmanagedServices()StringgetNodeLabel(int nodeId)getNodeLabelStringgetNodeLocation(int nodeId)List<String[]>getNodeServices(int nodeId)IntegeropenOutagePendingLostEventId(int nodeId, String ipAddr, String svcName, Date lostTime)Creates a new outage for the given service without setting the lost event id.IntegerresolveOutagePendingRegainEventId(int nodeId, String ipAddr, String svcName, Date regainedTime)Marks the outage for the given service as resolved with the given time and returns the id of this outage.voidupdateLastGoodOrFail(int nodeId, InetAddress ipAddr, String serviceName, PollStatus status)voidupdateOpenOutageWithEventId(int outageId, int lostEventId)Set or updates the lost event id on the specified outage.voidupdateResolvedOutageWithEventId(int outageId, int regainedEventId)Set or updates the regained event id on the specified outage.voidupdateServiceStatus(int nodeId, String ipAddr, String serviceName, String status)
-
-
-
Method Detail
-
getNodeLabel
String getNodeLabel(int nodeId) throws SQLException
getNodeLabel
- Parameters:
nodeId- a int.- Returns:
- a
Stringobject. - Throws:
SQLException- if any.
-
getNodeLocation
String getNodeLocation(int nodeId)
-
openOutagePendingLostEventId
Integer openOutagePendingLostEventId(int nodeId, String ipAddr, String svcName, Date lostTime)
Creates a new outage for the given service without setting the lost event id.
-
updateOpenOutageWithEventId
void updateOpenOutageWithEventId(int outageId, int lostEventId)Set or updates the lost event id on the specified outage.
-
resolveOutagePendingRegainEventId
Integer resolveOutagePendingRegainEventId(int nodeId, String ipAddr, String svcName, Date regainedTime)
Marks the outage for the given service as resolved with the given time and returns the id of this outage. If no outages are currently open, then no action is take and the function returns null.
-
updateResolvedOutageWithEventId
void updateResolvedOutageWithEventId(int outageId, int regainedEventId)Set or updates the regained event id on the specified outage.
-
closeOutagesForUnmanagedServices
void closeOutagesForUnmanagedServices()
-
closeOutagesForNode
void closeOutagesForNode(Date closeDate, int eventId, int nodeId)
-
closeOutagesForInterface
void closeOutagesForInterface(Date closeDate, int eventId, int nodeId, String ipAddr)
-
closeOutagesForService
void closeOutagesForService(Date closeDate, int eventId, int nodeId, String ipAddr, String serviceName)
-
updateServiceStatus
void updateServiceStatus(int nodeId, String ipAddr, String serviceName, String status)
-
updateLastGoodOrFail
void updateLastGoodOrFail(int nodeId, InetAddress ipAddr, String serviceName, PollStatus status)
-
-