org.opennms.netmgt.linkd.snmp
Class Dot1dBaseGroup

java.lang.Object
  extended by org.opennms.netmgt.snmp.CollectionTracker
      extended by org.opennms.netmgt.snmp.AggregateTracker
          extended by org.opennms.netmgt.linkd.snmp.Dot1dBaseGroup
All Implemented Interfaces:
Collectable

public final class Dot1dBaseGroup
extends AggregateTracker

Dot1dBaseGroup holds the dot1dBridge.dot1dBase group properties It implements the SnmpHandler to receive notifications when a reply is received/error occurs in the SnmpSession used to send requests /recieve replies.

Author:
Antonio Russo, Sowmya, Weave, OpenNMS
See Also:
RFC1213

Field Summary
static String BASE_BRIDGE_ADDRESS
           
static String BASE_NUM_PORTS
           
static String BASE_NUM_TYPE
           
static NamedSnmpVar[] ms_elemList
          The keys that will be supported by default from the TreeMap base class.
static String SYSTEM_OID
          The SYSTEM_OID is the object identifier that represents the root of the system information in the MIB forest.
 
Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
 
Constructor Summary
Dot1dBaseGroup(InetAddress address)
          The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data.
 
Method Summary
 String getBridgeAddress()
           
 int getBridgeType()
           
 int getNumberOfPorts()
           
protected  void reportGenErr(String msg)
           
protected  void reportNoSuchNameErr(String msg)
           
protected  void storeResult(SnmpObjId base, SnmpInstId inst, SnmpValue val)
           
 
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, isFinished, setFailed, setMaxRepititions, setTimedOut
 
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setParent, timedOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_BRIDGE_ADDRESS

public static final String BASE_BRIDGE_ADDRESS
See Also:
Constant Field Values

BASE_NUM_PORTS

public static final String BASE_NUM_PORTS
See Also:
Constant Field Values

BASE_NUM_TYPE

public static final String BASE_NUM_TYPE
See Also:
Constant Field Values

ms_elemList

public static NamedSnmpVar[] ms_elemList

The keys that will be supported by default from the TreeMap base class. Each of the elements in the list are an instance of the STP Node table. Objects in this list should be used by multiple instances of this class.


SYSTEM_OID

public static final String SYSTEM_OID

The SYSTEM_OID is the object identifier that represents the root of the system information in the MIB forest. Each of the system elements can be retreived by adding their specific index to the string, and an additional Zero(0) to signify the single instance item.

See Also:
Constant Field Values
Constructor Detail

Dot1dBaseGroup

public Dot1dBaseGroup(InetAddress address)

The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data. The data is then received and store by the object. When all the data has been collected the passed signaler object is notified using the notifyAll() method.

Parameters:
session - The SNMP session with the remote agent.
signaler - The object signaled when data collection is done.
Method Detail

storeResult

protected void storeResult(SnmpObjId base,
                           SnmpInstId inst,
                           SnmpValue val)
Overrides:
storeResult in class CollectionTracker

reportGenErr

protected void reportGenErr(String msg)
Overrides:
reportGenErr in class CollectionTracker

reportNoSuchNameErr

protected void reportNoSuchNameErr(String msg)
Overrides:
reportNoSuchNameErr in class CollectionTracker

getBridgeAddress

public String getBridgeAddress()

getNumberOfPorts

public int getNumberOfPorts()

getBridgeType

public int getBridgeType()


Copyright © 2009. All Rights Reserved.