org.opennms.netmgt.poller
Interface QueryManager

All Known Implementing Classes:
DefaultQueryManager

public interface QueryManager

QueryManager interface.

Version:
$Id: $
Author:
brozow TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Method Summary
 boolean activeServiceExists(String whichEvent, int nodeId, String ipAddr, String serviceName)
          activeServiceExists
 List<Integer> getActiveServiceIdsForInterface(String ipaddr)
          getActiveServiceIdsForInterface
 String[] getCriticalPath(int nodeId)
          getCriticalPath
 DataSource getDataSource()
          Deprecated. 
 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
 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
 

Method Detail

activeServiceExists

boolean activeServiceExists(String whichEvent,
                            int nodeId,
                            String ipAddr,
                            String serviceName)

activeServiceExists

Parameters:
whichEvent - a String object.
nodeId - a int.
ipAddr - a String object.
serviceName - a String object.
Returns:
a boolean.

getActiveServiceIdsForInterface

List<Integer> getActiveServiceIdsForInterface(String ipaddr)
                                              throws SQLException

getActiveServiceIdsForInterface

Parameters:
ipaddr - a String object.
Returns:
a List object.
Throws:
SQLException - if any.

getNodeIDForInterface

int getNodeIDForInterface(String ipaddr)
                          throws SQLException

getNodeIDForInterface

Parameters:
ipaddr - a String object.
Returns:
a int.
Throws:
SQLException - if any.

getNodeLabel

String getNodeLabel(int nodeId)
                    throws SQLException

getNodeLabel

Parameters:
nodeId - a int.
Returns:
a String object.
Throws:
SQLException - if any.

getServiceCountForInterface

int getServiceCountForInterface(String ipaddr)
                                throws SQLException

getServiceCountForInterface

Parameters:
ipaddr - a String object.
Returns:
a int.
Throws:
SQLException - if any.

getInterfacesWithService

List<IfKey> getInterfacesWithService(String svcName)
                                     throws SQLException

getInterfacesWithService

Parameters:
svcName - a String object.
Returns:
a List object.
Throws:
SQLException - if any.

getServiceLostDate

Date getServiceLostDate(int nodeId,
                        String ipAddr,
                        String svcName,
                        int serviceId)

getServiceLostDate

Parameters:
nodeId - a int.
ipAddr - a String object.
svcName - a String object.
serviceId - a int.
Returns:
a Date object.

setDataSource

void setDataSource(DataSource dataSource)

setDataSource

Parameters:
dataSource - a DataSource object.

getDataSource

@Deprecated
DataSource getDataSource()
Deprecated. 

getDataSource

Returns:
a DataSource object.

openOutage

void openOutage(String outageIdSQL,
                int nodeId,
                String ipAddr,
                String svcName,
                int dbid,
                String time)

openOutage

Parameters:
nodeId - a int.
ipAddr - a String object.
svcName - TODO
dbid - a int.
time - a String object.
outageIdSQL - a String object.

resolveOutage

void resolveOutage(int nodeId,
                   String ipAddr,
                   String svcName,
                   int dbid,
                   String time)

resolveOutage

Parameters:
nodeId - a int.
ipAddr - a String object.
svcName - TODO
dbid - a int.
time - a String object.

reparentOutages

void reparentOutages(String ipAddr,
                     int oldNodeId,
                     int newNodeId)

reparentOutages

Parameters:
ipAddr - a String object.
oldNodeId - a int.
newNodeId - a int.

getCriticalPath

String[] getCriticalPath(int nodeId)

getCriticalPath

Parameters:
nodeId - a int.
Returns:
an array of String objects.

getNodeServices

List<String[]> getNodeServices(int nodeId)


Copyright © 2011. All Rights Reserved.