org.opennms.netmgt.linkd
Interface QueryManager

All Known Implementing Classes:
DbEventWriter

public interface QueryManager

QueryManager interface.

Version:
$Id: $
Author:
antonio

Field Summary
static char ACTION_DELETE
          Constant ACTION_DELETE='D'
static char ACTION_UPTODATE
          Constant ACTION_UPTODATE='N'
static int CDP_ADDRESS_TYPE_IP_ADDRESS
          the int that indicated cdp address type
static int SNMP_DOT1D_FDB_STATUS_INVALID
          The status of the info in FDB table entry The status of this entry.
static int SNMP_DOT1D_FDB_STATUS_LEARNED
          The status of the info in FDB table entry The status of this entry.
static int SNMP_DOT1D_FDB_STATUS_MGMT
          mgmt(5) : the value of the corresponding instance of dot1dTpFdbAddress is also the value of an existing instance of dot1dStaticAddress.
static int SNMP_DOT1D_FDB_STATUS_OTHER
          The status of the info in FDB table entry The meanings of the value is other(1): none of the following.
static int SNMP_DOT1D_FDB_STATUS_SELF
          The status of the info in FDB table entry The status of this entry.
 
Method Summary
 LinkableNode getSnmpNode(int nodeid)
          getSnmpNode
 List<LinkableNode> getSnmpNodeList()
          getSnmpNodeList
 String getSnmpPrimaryIp(int nodeid)
          getSnmpPrimaryIp
 void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
          setJdbcTemplate
 void storeDiscoveryLink(DiscoveryLink discoveryLink)
          storeDiscoveryLink
 LinkableNode storeSnmpCollection(LinkableNode node, SnmpCollection snmpColl)
          storeSnmpCollection
 void update(int nodeid, char action)
          update
 void updateDeletedNodes()
          updateDeletedNodes
 void updateForInterface(int nodeid, String ipAddr, int ifIndex, char action)
          updateForInterface
 

Field Detail

SNMP_DOT1D_FDB_STATUS_OTHER

static final int SNMP_DOT1D_FDB_STATUS_OTHER
The status of the info in FDB table entry The meanings of the value is other(1): none of the following. This would include the case where some other MIB object (not the corresponding instance of dot1dTpFdbPort, nor an entry in the dot1dStaticTable) is being used to determine if and how frames addressed to the value of the corresponding instance of dot1dTpFdbAddress are being forwarded.

See Also:
Constant Field Values

SNMP_DOT1D_FDB_STATUS_INVALID

static final int SNMP_DOT1D_FDB_STATUS_INVALID
The status of the info in FDB table entry The status of this entry. The meanings of the values are: invalid(2) : this entry is not longer valid (e.g., it was learned but has since aged-out), but has not yet been flushed from the table.

See Also:
Constant Field Values

SNMP_DOT1D_FDB_STATUS_LEARNED

static final int SNMP_DOT1D_FDB_STATUS_LEARNED
The status of the info in FDB table entry The status of this entry. The meanings of the values are: learned(3) : the value of the corresponding instance of dot1dTpFdbPort was learned, and is being used.

See Also:
Constant Field Values

SNMP_DOT1D_FDB_STATUS_SELF

static final int SNMP_DOT1D_FDB_STATUS_SELF
The status of the info in FDB table entry The status of this entry. The meanings of the values are: self(4) : the value of the corresponding instance of dot1dTpFdbAddress represents one of the bridge's addresses. The corresponding instance of dot1dTpFdbPort indicates which of the bridge's ports has this address.

See Also:
Constant Field Values

SNMP_DOT1D_FDB_STATUS_MGMT

static final int SNMP_DOT1D_FDB_STATUS_MGMT
mgmt(5) : the value of the corresponding instance of dot1dTpFdbAddress is also the value of an existing instance of dot1dStaticAddress.

See Also:
Constant Field Values

CDP_ADDRESS_TYPE_IP_ADDRESS

static final int CDP_ADDRESS_TYPE_IP_ADDRESS
the int that indicated cdp address type

See Also:
Constant Field Values

ACTION_UPTODATE

static final char ACTION_UPTODATE
Constant ACTION_UPTODATE='N'

See Also:
Constant Field Values

ACTION_DELETE

static final char ACTION_DELETE
Constant ACTION_DELETE='D'

See Also:
Constant Field Values
Method Detail

getSnmpNodeList

List<LinkableNode> getSnmpNodeList()
                                   throws SQLException

getSnmpNodeList

Returns:
a List object.
Throws:
SQLException - if any.

getSnmpNode

LinkableNode getSnmpNode(int nodeid)
                         throws SQLException

getSnmpNode

Parameters:
nodeid - a int.
Returns:
a LinkableNode object.
Throws:
SQLException - if any.

updateDeletedNodes

void updateDeletedNodes()
                        throws SQLException

updateDeletedNodes

Throws:
SQLException - if any.

getSnmpPrimaryIp

String getSnmpPrimaryIp(int nodeid)
                        throws SQLException

getSnmpPrimaryIp

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

storeSnmpCollection

LinkableNode storeSnmpCollection(LinkableNode node,
                                 SnmpCollection snmpColl)
                                 throws SQLException

storeSnmpCollection

Parameters:
node - a LinkableNode object.
snmpColl - a SnmpCollection object.
Returns:
a LinkableNode object.
Throws:
SQLException - if any.

storeDiscoveryLink

void storeDiscoveryLink(DiscoveryLink discoveryLink)
                        throws SQLException

storeDiscoveryLink

Parameters:
discoveryLink - a DiscoveryLink object.
Throws:
SQLException - if any.

update

void update(int nodeid,
            char action)
            throws SQLException

update

Parameters:
nodeid - a int.
action - a char.
Throws:
SQLException - if any.

updateForInterface

void updateForInterface(int nodeid,
                        String ipAddr,
                        int ifIndex,
                        char action)
                        throws SQLException

updateForInterface

Parameters:
nodeid - a int.
ipAddr - a String object.
ifIndex - a int.
action - a char.
Throws:
SQLException - if any.

setJdbcTemplate

void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)

setJdbcTemplate

Parameters:
jdbcTemplate - a JdbcTemplate object.


Copyright © 2011. All Rights Reserved.