public class QueryManagerDaoImpl extends Object implements QueryManager
QueryManagerDaoImpl class.
| Constructor and Description |
|---|
QueryManagerDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeOutagesForInterface(Date closeDate,
int eventId,
int nodeId,
String ipAddr)
closeOutagesForInterface
|
void |
closeOutagesForNode(Date closeDate,
int eventId,
int nodeId)
closeOutagesForNode
|
void |
closeOutagesForService(Date closeDate,
int eventId,
int nodeId,
String ipAddr,
String serviceName)
closeOutagesForService
|
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 |
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) |
public String getNodeLabel(int nodeId)
getNodeLabel
getNodeLabel in interface QueryManagernodeId - a int.String object.public String getNodeLocation(int nodeId)
getNodeLocation in interface QueryManagerpublic Integer openOutagePendingLostEventId(int nodeId, String ipAddr, String svcName, Date lostTime)
openOutagePendingLostEventId in interface QueryManagerpublic void updateOpenOutageWithEventId(int outageId,
int lostEventId)
updateOpenOutageWithEventId in interface QueryManagerpublic Integer resolveOutagePendingRegainEventId(int nodeId, String ipAddr, String svcName, Date regainedTime)
resolveOutagePendingRegainEventId in interface QueryManagerpublic void updateResolvedOutageWithEventId(int outageId,
int regainedEventId)
updateResolvedOutageWithEventId in interface QueryManagerpublic List<String[]> getNodeServices(int nodeId)
getNodeServices in interface QueryManagerpublic void closeOutagesForUnmanagedServices()
closeOutagesForUnmanagedServices in interface QueryManagerpublic void closeOutagesForNode(Date closeDate, int eventId, int nodeId)
closeOutagesForNode
closeOutagesForNode in interface QueryManagercloseDate - a Date object.eventId - a int.nodeId - a int.public void closeOutagesForInterface(Date closeDate, int eventId, int nodeId, String ipAddr)
closeOutagesForInterface
closeOutagesForInterface in interface QueryManagercloseDate - a Date object.eventId - a int.nodeId - a int.ipAddr - a String object.public void closeOutagesForService(Date closeDate, int eventId, int nodeId, String ipAddr, String serviceName)
closeOutagesForService
closeOutagesForService in interface QueryManagercloseDate - a Date object.eventId - a int.nodeId - a int.ipAddr - a String object.serviceName - a String object.public void updateServiceStatus(int nodeId,
String ipAddr,
String serviceName,
String status)
updateServiceStatus in interface QueryManagerCopyright © 2020. All rights reserved.