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/receive replies.
Modifier and Type | Field and Description |
---|---|
static String |
BASE_BRIDGE_ADDRESS
Constant
BASE_BRIDGE_ADDRESS="dot1dBaseBridgeAddress" |
static String |
BASE_NUM_PORTS
Constant
BASE_NUM_PORTS="dot1dBaseNumPorts" |
static String |
BASE_NUM_TYPE
Constant
BASE_NUM_TYPE="dot1dBaseType" |
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.
|
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
Constructor and Description |
---|
Dot1dBaseGroup(InetAddress address)
The class constructor is used to initialize the collector
and send out the initial SNMP packet requesting data.
|
Modifier and Type | Method and Description |
---|---|
String |
getBridgeAddress()
getBridgeAddress
|
Integer |
getBridgeType()
getBridgeType
|
Integer |
getNumberOfPorts()
getNumberOfPorts
|
OnmsStpNode |
getOnmsStpNode(OnmsStpNode node) |
protected void |
reportGenErr(String msg) |
protected void |
reportNoSuchNameErr(String msg) |
protected void |
storeResult(SnmpResult res) |
buildNextPdu, isFinished, setFailed, setMaxRepetitions, setTimedOut
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
public static final String BASE_BRIDGE_ADDRESS
BASE_BRIDGE_ADDRESS="dot1dBaseBridgeAddress"
public static final String BASE_NUM_PORTS
BASE_NUM_PORTS="dot1dBaseNumPorts"
public static final String BASE_NUM_TYPE
BASE_NUM_TYPE="dot1dBaseType"
public static final 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.
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 retrieved by adding their specific index to the string, and an additional Zero(0) to signify the single instance item.
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.
address
- a InetAddress
object.protected void storeResult(SnmpResult res)
storeResult
in class CollectionTracker
protected void reportGenErr(String msg)
reportGenErr
in class CollectionTracker
protected void reportNoSuchNameErr(String msg)
reportNoSuchNameErr
in class CollectionTracker
public Integer getNumberOfPorts()
getNumberOfPorts
public Integer getBridgeType()
getBridgeType
public OnmsStpNode getOnmsStpNode(OnmsStpNode node)
Copyright © 2015. All rights reserved.