|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.poller.DefaultQueryManager
public class DefaultQueryManager
DefaultQueryManager class.
| Constructor Summary | |
|---|---|
DefaultQueryManager()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultQueryManager()
| Method Detail |
|---|
public void setDataSource(DataSource dataSource)
setDataSource
setDataSource in interface QueryManagerdataSource - a DataSource object.public DataSource getDataSource()
getDataSource
getDataSource in interface QueryManagerDataSource object.
public boolean activeServiceExists(String whichEvent,
int nodeId,
String ipAddr,
String serviceName)
activeServiceExists
activeServiceExists in interface QueryManagerwhichEvent - 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 QueryManageripaddr - a String object.
List object.
SQLException - if any.
public int getNodeIDForInterface(String ipaddr)
throws SQLException
getNodeIDForInterface
getNodeIDForInterface in interface QueryManageripaddr - a String object.
SQLException - if any.
public String getNodeLabel(int nodeId)
throws SQLException
getNodeLabel
getNodeLabel in interface QueryManagernodeId - a int.
String object.
SQLException - if any.
public int getServiceCountForInterface(String ipaddr)
throws SQLException
getServiceCountForInterface
getServiceCountForInterface in interface QueryManageripaddr - a String object.
SQLException - if any.
public List<IfKey> getInterfacesWithService(String svcName)
throws SQLException
getInterfacesWithService
getInterfacesWithService in interface QueryManagersvcName - a String object.
List object.
SQLException - if any.
public Date getServiceLostDate(int nodeId,
String ipAddr,
String svcName,
int serviceId)
getServiceLostDate
getServiceLostDate in interface QueryManagernodeId - a int.ipAddr - a String object.svcName - a String object.serviceId - a int.
Date object.public Timestamp convertEventTimeToTimeStamp(String time)
convertEventTimeToTimeStamp
time - a String object.
Timestamp object.
public void openOutage(String outageIdSQL,
int nodeId,
String ipAddr,
String svcName,
int dbId,
String time)
openOutage
openOutage in interface QueryManageroutageIdSQL - 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 QueryManagernodeId - 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 QueryManageripAddr - 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 QueryManagernodeId - a int.
String objects.public List<String[]> getNodeServices(int nodeId)
getNodeServices in interface QueryManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||