org.opennms.netmgt.poller
Interface QueryManager

All Known Implementing Classes:
DefaultQueryManager

public interface QueryManager

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)
           
 List<Integer> getActiveServiceIdsForInterface(String ipaddr)
           
 String[] getCriticalPath(int nodeId)
           
 DataSource getDataSource()
          Deprecated. 
 List<IfKey> getInterfacesWithService(String svcName)
           
 int getNodeIDForInterface(String ipaddr)
           
 String getNodeLabel(int nodeId)
           
 int getServiceCountForInterface(String ipaddr)
           
 Date getServiceLostDate(int nodeId, String ipAddr, String svcName, int serviceId)
           
 void openOutage(String outageIdSQL, int nodeId, String ipAddr, String svcName, int dbid, String time)
           
 void reparentOutages(String ipAddr, int oldNodeId, int newNodeId)
           
 void resolveOutage(int nodeId, String ipAddr, String svcName, int dbid, String time)
           
 void setDataSource(DataSource dataSource)
           
 

Method Detail

activeServiceExists

boolean activeServiceExists(String whichEvent,
                            int nodeId,
                            String ipAddr,
                            String serviceName)
Parameters:
whichEvent -
nodeId -
ipAddr -
serviceName -
Returns:

getActiveServiceIdsForInterface

List<Integer> getActiveServiceIdsForInterface(String ipaddr)
                                              throws SQLException
Parameters:
ipaddr -
Returns:
Throws:
SQLException

getNodeIDForInterface

int getNodeIDForInterface(String ipaddr)
                          throws SQLException
Parameters:
ipaddr -
Returns:
Throws:
SQLException

getNodeLabel

String getNodeLabel(int nodeId)
                    throws SQLException
Parameters:
nodeId -
Returns:
Throws:
SQLException

getServiceCountForInterface

int getServiceCountForInterface(String ipaddr)
                                throws SQLException
Parameters:
ipaddr -
Returns:
Throws:
SQLException

getInterfacesWithService

List<IfKey> getInterfacesWithService(String svcName)
                                     throws SQLException
Parameters:
svcName -
Returns:
Throws:
SQLException

getServiceLostDate

Date getServiceLostDate(int nodeId,
                        String ipAddr,
                        String svcName,
                        int serviceId)
Parameters:
poller -
nodeId -
ipAddr -
svcName -
Returns:

setDataSource

void setDataSource(DataSource dataSource)
Parameters:
connectionFactory -

getDataSource

@Deprecated
DataSource getDataSource()
Deprecated. 


openOutage

void openOutage(String outageIdSQL,
                int nodeId,
                String ipAddr,
                String svcName,
                int dbid,
                String time)
Parameters:
nodeId -
ipAddr -
svcName - TODO
dbid -
time -

resolveOutage

void resolveOutage(int nodeId,
                   String ipAddr,
                   String svcName,
                   int dbid,
                   String time)
Parameters:
nodeId -
ipAddr -
svcName - TODO
dbid -
time -

reparentOutages

void reparentOutages(String ipAddr,
                     int oldNodeId,
                     int newNodeId)
Parameters:
ipAddr -
oldNodeId -
newNodeId -

getCriticalPath

String[] getCriticalPath(int nodeId)


Copyright © 2009. All Rights Reserved.