Package org.opennms.netmgt.poller
Interface QueryManager
-
- All Known Implementing Classes:
QueryManagerDaoImpl
public interface QueryManager
QueryManager interface.
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
closeOutagesForInterface(java.util.Date closeDate, int eventId, int nodeId, java.lang.String ipAddr)
void
closeOutagesForNode(java.util.Date closeDate, int eventId, int nodeId)
void
closeOutagesForService(java.util.Date closeDate, int eventId, int nodeId, java.lang.String ipAddr, java.lang.String serviceName)
void
closeOutagesForUnmanagedServices()
java.lang.String
getNodeLabel(int nodeId)
getNodeLabeljava.lang.String
getNodeLocation(int nodeId)
java.util.List<java.lang.String[]>
getNodeServices(int nodeId)
java.lang.Integer
openOutagePendingLostEventId(int nodeId, java.lang.String ipAddr, java.lang.String svcName, java.util.Date lostTime)
Creates a new outage for the given service without setting the lost event id.java.lang.Integer
resolveOutagePendingRegainEventId(int nodeId, java.lang.String ipAddr, java.lang.String svcName, java.util.Date regainedTime)
Marks the outage for the given service as resolved with the given time and returns the id of this outage.void
updateLastGoodOrFail(int nodeId, java.net.InetAddress ipAddr, java.lang.String serviceName, PollStatus status)
void
updateOpenOutageWithEventId(int outageId, int lostEventId)
Set or updates the lost event id on the specified outage.void
updateResolvedOutageWithEventId(int outageId, int regainedEventId)
Set or updates the regained event id on the specified outage.void
updateServiceStatus(int nodeId, java.lang.String ipAddr, java.lang.String serviceName, java.lang.String status)
-
-
-
Method Detail
-
getNodeLabel
java.lang.String getNodeLabel(int nodeId) throws java.sql.SQLException
getNodeLabel
- Parameters:
nodeId
- a int.- Returns:
- a
String
object. - Throws:
java.sql.SQLException
- if any.
-
getNodeLocation
java.lang.String getNodeLocation(int nodeId)
-
openOutagePendingLostEventId
java.lang.Integer openOutagePendingLostEventId(int nodeId, java.lang.String ipAddr, java.lang.String svcName, java.util.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
java.lang.Integer resolveOutagePendingRegainEventId(int nodeId, java.lang.String ipAddr, java.lang.String svcName, java.util.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.
-
getNodeServices
java.util.List<java.lang.String[]> getNodeServices(int nodeId)
- Parameters:
nodeId
-- Returns:
-
closeOutagesForUnmanagedServices
void closeOutagesForUnmanagedServices()
-
closeOutagesForNode
void closeOutagesForNode(java.util.Date closeDate, int eventId, int nodeId)
-
closeOutagesForInterface
void closeOutagesForInterface(java.util.Date closeDate, int eventId, int nodeId, java.lang.String ipAddr)
-
closeOutagesForService
void closeOutagesForService(java.util.Date closeDate, int eventId, int nodeId, java.lang.String ipAddr, java.lang.String serviceName)
-
updateServiceStatus
void updateServiceStatus(int nodeId, java.lang.String ipAddr, java.lang.String serviceName, java.lang.String status)
-
updateLastGoodOrFail
void updateLastGoodOrFail(int nodeId, java.net.InetAddress ipAddr, java.lang.String serviceName, PollStatus status)
-
-