Class Dot1dBaseTracker
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- org.opennms.netmgt.snmp.AggregateTracker
-
- org.opennms.netmgt.enlinkd.snmp.Dot1dBaseTracker
-
- All Implemented Interfaces:
Collectable
,ProxiableTracker
public final class Dot1dBaseTracker extends AggregateTracker
Dot1dBase 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/receive replies.
- Version:
- $Id: $
- Author:
- Antonio Russo
- See Also:
- RFC1213
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BASE_BRIDGE_ADDRESS
ConstantBASE_BRIDGE_ADDRESS="dot1dBaseBridgeAddress"
static java.lang.String
BASE_NUM_PORTS
ConstantBASE_NUM_PORTS="dot1dBaseNumPorts"
static java.lang.String
BASE_NUM_TYPE
ConstantBASE_NUM_TYPE="dot1dBaseType"
static NamedSnmpVar[]
ms_elemList
The keys that will be supported by default from the TreeMap base class.static java.lang.String
STP_DESIGNATED_ROOT
ConstantSTP_DESIGNATED_ROOT="dot1dStpDesignatedRoot"
static java.lang.String
STP_PRIORITY
ConstantSTP_PRIORITY="dot1dStpPriority"
static java.lang.String
STP_PROTOCOL_SPEC
ConstantSTP_PROTOCOL_SPEC="dot1dStpProtocolSpecification"
static java.lang.String
STP_ROOT_COST
ConstantSTP_ROOT_COST="dot1dStpRootCost"
static java.lang.String
STP_ROOT_PORT
ConstantSTP_ROOT_PORT="dot1dStpRootPort"
-
Constructor Summary
Constructors Constructor Description Dot1dBaseTracker()
The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBridgeAddress()
getBridgeAddressBridgeElement
getBridgeElement()
java.lang.Integer
getBridgeType()
getBridgeTypejava.lang.Integer
getNumberOfPorts()
getNumberOfPortsjava.lang.String
getStpDesignatedRoot()
getStpDesignatedRootjava.lang.Integer
getStpPriority()
java.lang.Integer
getStpProtocolSpecification()
java.lang.Integer
getStpRootCost()
getStpRootCostjava.lang.Integer
getStpRootPort()
getStpRootPortprotected void
reportFatalErr(ErrorStatusException ex)
protected void
reportGenErr(java.lang.String msg)
protected void
reportNonFatalErr(ErrorStatus status)
protected void
reportNoSuchNameErr(java.lang.String msg)
protected void
storeResult(SnmpResult res)
-
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
-
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
-
-
-
-
Field Detail
-
BASE_BRIDGE_ADDRESS
public static final java.lang.String BASE_BRIDGE_ADDRESS
ConstantBASE_BRIDGE_ADDRESS="dot1dBaseBridgeAddress"
- See Also:
- Constant Field Values
-
BASE_NUM_PORTS
public static final java.lang.String BASE_NUM_PORTS
ConstantBASE_NUM_PORTS="dot1dBaseNumPorts"
- See Also:
- Constant Field Values
-
BASE_NUM_TYPE
public static final java.lang.String BASE_NUM_TYPE
ConstantBASE_NUM_TYPE="dot1dBaseType"
- See Also:
- Constant Field Values
-
STP_PROTOCOL_SPEC
public static final java.lang.String STP_PROTOCOL_SPEC
ConstantSTP_PROTOCOL_SPEC="dot1dStpProtocolSpecification"
- See Also:
- Constant Field Values
-
STP_PRIORITY
public static final java.lang.String STP_PRIORITY
ConstantSTP_PRIORITY="dot1dStpPriority"
- See Also:
- Constant Field Values
-
STP_DESIGNATED_ROOT
public static final java.lang.String STP_DESIGNATED_ROOT
ConstantSTP_DESIGNATED_ROOT="dot1dStpDesignatedRoot"
- See Also:
- Constant Field Values
-
STP_ROOT_COST
public static final java.lang.String STP_ROOT_COST
ConstantSTP_ROOT_COST="dot1dStpRootCost"
- See Also:
- Constant Field Values
-
STP_ROOT_PORT
public static final java.lang.String STP_ROOT_PORT
ConstantSTP_ROOT_PORT="dot1dStpRootPort"
- 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.
-
-
Constructor Detail
-
Dot1dBaseTracker
public Dot1dBaseTracker()
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:
address
- aInetAddress
object.
-
-
Method Detail
-
storeResult
protected void storeResult(SnmpResult res)
- Overrides:
storeResult
in classCollectionTracker
-
reportGenErr
protected void reportGenErr(java.lang.String msg)
- Overrides:
reportGenErr
in classCollectionTracker
-
reportNoSuchNameErr
protected void reportNoSuchNameErr(java.lang.String msg)
- Overrides:
reportNoSuchNameErr
in classCollectionTracker
-
reportFatalErr
protected void reportFatalErr(ErrorStatusException ex)
- Overrides:
reportFatalErr
in classCollectionTracker
-
reportNonFatalErr
protected void reportNonFatalErr(ErrorStatus status)
- Overrides:
reportNonFatalErr
in classCollectionTracker
-
getBridgeAddress
public java.lang.String getBridgeAddress()
getBridgeAddress
- Returns:
- a
String
object.
-
getNumberOfPorts
public java.lang.Integer getNumberOfPorts()
getNumberOfPorts
- Returns:
- a int.
-
getBridgeType
public java.lang.Integer getBridgeType()
getBridgeType
- Returns:
- a int.
-
getStpProtocolSpecification
public java.lang.Integer getStpProtocolSpecification()
-
getStpPriority
public java.lang.Integer getStpPriority()
-
getStpDesignatedRoot
public java.lang.String getStpDesignatedRoot()
getStpDesignatedRoot
- Returns:
- a
String
object.
-
getStpRootCost
public java.lang.Integer getStpRootCost()
getStpRootCost
- Returns:
- a int.
-
getStpRootPort
public java.lang.Integer getStpRootPort()
getStpRootPort
- Returns:
- a int.
-
getBridgeElement
public BridgeElement getBridgeElement()
-
-