public interface QueryManager
QueryManager interface.
Modifier and Type | Method and Description |
---|---|
void |
closeOutagesForInterface(Date closeDate,
int eventId,
int nodeId,
String ipAddr) |
void |
closeOutagesForNode(Date closeDate,
int eventId,
int nodeId) |
void |
closeOutagesForService(Date closeDate,
int eventId,
int nodeId,
String ipAddr,
String serviceName) |
void |
closeOutagesForUnmanagedServices() |
String |
getNodeLabel(int nodeId)
getNodeLabel
|
String |
getNodeLocation(int nodeId) |
List<String[]> |
getNodeServices(int nodeId) |
Integer |
openOutagePendingLostEventId(int nodeId,
String ipAddr,
String svcName,
Date lostTime)
Creates a new outage for the given service without setting
the lost event id.
|
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.
|
void |
updateLastGoodOrFail(int nodeId,
InetAddress ipAddr,
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,
String ipAddr,
String serviceName,
String status) |
String getNodeLabel(int nodeId) throws SQLException
getNodeLabel
nodeId
- a int.String
object.SQLException
- if any.String getNodeLocation(int nodeId)
Integer openOutagePendingLostEventId(int nodeId, String ipAddr, String svcName, Date lostTime)
void updateOpenOutageWithEventId(int outageId, int lostEventId)
Integer resolveOutagePendingRegainEventId(int nodeId, String ipAddr, String svcName, Date regainedTime)
void updateResolvedOutageWithEventId(int outageId, int regainedEventId)
void closeOutagesForUnmanagedServices()
void closeOutagesForNode(Date closeDate, int eventId, int nodeId)
void closeOutagesForInterface(Date closeDate, int eventId, int nodeId, String ipAddr)
void closeOutagesForService(Date closeDate, int eventId, int nodeId, String ipAddr, String serviceName)
void updateServiceStatus(int nodeId, String ipAddr, String serviceName, String status)
void updateLastGoodOrFail(int nodeId, InetAddress ipAddr, String serviceName, PollStatus status)
Copyright © 2021. All rights reserved.