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 |
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) |
public String getNodeLabel(int nodeId)
getNodeLabel
getNodeLabel
in interface QueryManager
nodeId
- a int.String
object.public String getNodeLocation(int nodeId)
getNodeLocation
in interface QueryManager
public Integer openOutagePendingLostEventId(int nodeId, String ipAddr, String svcName, Date lostTime)
openOutagePendingLostEventId
in interface QueryManager
public void updateOpenOutageWithEventId(int outageId, int lostEventId)
updateOpenOutageWithEventId
in interface QueryManager
public Integer resolveOutagePendingRegainEventId(int nodeId, String ipAddr, String svcName, Date regainedTime)
resolveOutagePendingRegainEventId
in interface QueryManager
public void updateResolvedOutageWithEventId(int outageId, int regainedEventId)
updateResolvedOutageWithEventId
in interface QueryManager
public List<String[]> getNodeServices(int nodeId)
getNodeServices
in interface QueryManager
public void closeOutagesForUnmanagedServices()
closeOutagesForUnmanagedServices
in interface QueryManager
public void closeOutagesForNode(Date closeDate, int eventId, int nodeId)
closeOutagesForNode
closeOutagesForNode
in interface QueryManager
closeDate
- a Date
object.eventId
- a int.nodeId
- a int.public void closeOutagesForInterface(Date closeDate, int eventId, int nodeId, String ipAddr)
closeOutagesForInterface
closeOutagesForInterface
in interface QueryManager
closeDate
- 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 QueryManager
closeDate
- 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 QueryManager
public void updateLastGoodOrFail(int nodeId, InetAddress ipAddr, String serviceName, PollStatus status)
updateLastGoodOrFail
in interface QueryManager
Copyright © 2021. All rights reserved.