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 String
BASE_BRIDGE_ADDRESS
ConstantBASE_BRIDGE_ADDRESS="dot1dBaseBridgeAddress"
static String
BASE_NUM_PORTS
ConstantBASE_NUM_PORTS="dot1dBaseNumPorts"
static 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 String
STP_DESIGNATED_ROOT
ConstantSTP_DESIGNATED_ROOT="dot1dStpDesignatedRoot"
static String
STP_PRIORITY
ConstantSTP_PRIORITY="dot1dStpPriority"
static String
STP_PROTOCOL_SPEC
ConstantSTP_PROTOCOL_SPEC="dot1dStpProtocolSpecification"
static String
STP_ROOT_COST
ConstantSTP_ROOT_COST="dot1dStpRootCost"
static 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 String
getBridgeAddress()
getBridgeAddressBridgeElement
getBridgeElement()
Integer
getBridgeType()
getBridgeTypeInteger
getNumberOfPorts()
getNumberOfPortsString
getStpDesignatedRoot()
getStpDesignatedRootInteger
getStpPriority()
Integer
getStpProtocolSpecification()
Integer
getStpRootCost()
getStpRootCostInteger
getStpRootPort()
getStpRootPortprotected void
reportFatalErr(ErrorStatusException ex)
protected void
reportGenErr(String msg)
protected void
reportNonFatalErr(ErrorStatus status)
protected void
reportNoSuchNameErr(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 String BASE_BRIDGE_ADDRESS
ConstantBASE_BRIDGE_ADDRESS="dot1dBaseBridgeAddress"
- See Also:
- Constant Field Values
-
BASE_NUM_PORTS
public static final String BASE_NUM_PORTS
ConstantBASE_NUM_PORTS="dot1dBaseNumPorts"
- See Also:
- Constant Field Values
-
BASE_NUM_TYPE
public static final String BASE_NUM_TYPE
ConstantBASE_NUM_TYPE="dot1dBaseType"
- See Also:
- Constant Field Values
-
STP_PROTOCOL_SPEC
public static final String STP_PROTOCOL_SPEC
ConstantSTP_PROTOCOL_SPEC="dot1dStpProtocolSpecification"
- See Also:
- Constant Field Values
-
STP_PRIORITY
public static final String STP_PRIORITY
ConstantSTP_PRIORITY="dot1dStpPriority"
- See Also:
- Constant Field Values
-
STP_DESIGNATED_ROOT
public static final String STP_DESIGNATED_ROOT
ConstantSTP_DESIGNATED_ROOT="dot1dStpDesignatedRoot"
- See Also:
- Constant Field Values
-
STP_ROOT_COST
public static final String STP_ROOT_COST
ConstantSTP_ROOT_COST="dot1dStpRootCost"
- See Also:
- Constant Field Values
-
STP_ROOT_PORT
public static final 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(String msg)
- Overrides:
reportGenErr
in classCollectionTracker
-
reportNoSuchNameErr
protected void reportNoSuchNameErr(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
-
getNumberOfPorts
public Integer getNumberOfPorts()
getNumberOfPorts
- Returns:
- a int.
-
getBridgeType
public Integer getBridgeType()
getBridgeType
- Returns:
- a int.
-
getStpProtocolSpecification
public Integer getStpProtocolSpecification()
-
getStpPriority
public Integer getStpPriority()
-
getStpDesignatedRoot
public String getStpDesignatedRoot()
getStpDesignatedRoot
- Returns:
- a
String
object.
-
getStpRootCost
public Integer getStpRootCost()
getStpRootCost
- Returns:
- a int.
-
getStpRootPort
public Integer getStpRootPort()
getStpRootPort
- Returns:
- a int.
-
getBridgeElement
public BridgeElement getBridgeElement()
-
-