public class DefaultQueryManager extends Object implements QueryManager
DefaultQueryManager class.
Constructor and Description |
---|
DefaultQueryManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
activeServiceExists(String whichEvent,
int nodeId,
String ipAddr,
String serviceName)
activeServiceExists
|
Timestamp |
convertEventTimeToTimeStamp(String time)
convertEventTimeToTimeStamp
|
List<Integer> |
getActiveServiceIdsForInterface(String ipaddr)
getActiveServiceIdsForInterface
|
String[] |
getCriticalPath(int nodeId)
getCriticalPath
|
DataSource |
getDataSource()
getDataSource
|
List<IfKey> |
getInterfacesWithService(String svcName)
getInterfacesWithService
|
int |
getNodeIDForInterface(String ipaddr)
getNodeIDForInterface
|
String |
getNodeLabel(int nodeId)
getNodeLabel
|
List<String[]> |
getNodeServices(int nodeId) |
int |
getServiceCountForInterface(String ipaddr)
getServiceCountForInterface
|
int |
getServiceID(String serviceName)
getServiceID
|
Date |
getServiceLostDate(int nodeId,
String ipAddr,
String svcName,
int serviceId)
getServiceLostDate
|
void |
openOutage(String outageIdSQL,
int nodeId,
String ipAddr,
String svcName,
int dbId,
String time)
openOutage
|
void |
reparentOutages(String ipAddr,
int oldNodeId,
int newNodeId)
reparentOutages
|
void |
resolveOutage(int nodeId,
String ipAddr,
String svcName,
int dbId,
String time)
resolveOutage
|
void |
setDataSource(DataSource dataSource)
setDataSource
|
public void setDataSource(DataSource dataSource)
setDataSource
setDataSource
in interface QueryManager
dataSource
- a DataSource
object.public DataSource getDataSource()
getDataSource
getDataSource
in interface QueryManager
DataSource
object.public boolean activeServiceExists(String whichEvent, int nodeId, String ipAddr, String serviceName)
activeServiceExists
activeServiceExists
in interface QueryManager
whichEvent
- a String
object.nodeId
- a int.ipAddr
- a String
object.serviceName
- a String
object.public List<Integer> getActiveServiceIdsForInterface(String ipaddr) throws SQLException
getActiveServiceIdsForInterface
getActiveServiceIdsForInterface
in interface QueryManager
ipaddr
- a String
object.List
object.SQLException
- if any.public int getNodeIDForInterface(String ipaddr) throws SQLException
getNodeIDForInterface
getNodeIDForInterface
in interface QueryManager
ipaddr
- a String
object.SQLException
- if any.public String getNodeLabel(int nodeId) throws SQLException
getNodeLabel
getNodeLabel
in interface QueryManager
nodeId
- a int.String
object.SQLException
- if any.public int getServiceCountForInterface(String ipaddr) throws SQLException
getServiceCountForInterface
getServiceCountForInterface
in interface QueryManager
ipaddr
- a String
object.SQLException
- if any.public List<IfKey> getInterfacesWithService(String svcName) throws SQLException
getInterfacesWithService
getInterfacesWithService
in interface QueryManager
svcName
- a String
object.List
object.SQLException
- if any.public Date getServiceLostDate(int nodeId, String ipAddr, String svcName, int serviceId)
getServiceLostDate
getServiceLostDate
in interface QueryManager
nodeId
- a int.ipAddr
- a String
object.svcName
- a String
object.serviceId
- a int.Date
object.public Timestamp convertEventTimeToTimeStamp(String time)
convertEventTimeToTimeStamp
public void openOutage(String outageIdSQL, int nodeId, String ipAddr, String svcName, int dbId, String time)
openOutage
openOutage
in interface QueryManager
outageIdSQL
- a String
object.nodeId
- a int.ipAddr
- a String
object.svcName
- TODOdbId
- a int.time
- a String
object.public void resolveOutage(int nodeId, String ipAddr, String svcName, int dbId, String time)
resolveOutage
resolveOutage
in interface QueryManager
nodeId
- a int.ipAddr
- a String
object.svcName
- TODOdbId
- a int.time
- a String
object.public void reparentOutages(String ipAddr, int oldNodeId, int newNodeId)
reparentOutages
reparentOutages
in interface QueryManager
ipAddr
- a String
object.oldNodeId
- a int.newNodeId
- a int.public int getServiceID(String serviceName)
getServiceID
serviceName
- a String
object.public String[] getCriticalPath(int nodeId)
getCriticalPath
getCriticalPath
in interface QueryManager
nodeId
- a int.String
objects.public List<String[]> getNodeServices(int nodeId)
getNodeServices
in interface QueryManager
Copyright © 2015. All Rights Reserved.