org.opennms.netmgt.linkd.snmp
Class Dot1dStpGroup

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

public final class Dot1dStpGroup
extends AggregateTracker

SystemGroup holds the system 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 STP_BRDG_FORW_DELAY
           
static String STP_BRDG_HELLO_TIME
           
static String STP_BRDG_MAX_AGE
           
static String STP_DESIGNATED_ROOT
           
static String STP_FORW_DELAY
           
static String STP_HELLO_TIME
           
static String STP_HOLD_TIME
           
static String STP_MAX_AGE
           
static String STP_PRIORITY
           
static String STP_PROTOCOL_SPEC
           
static String STP_ROOT_COST
           
static String STP_ROOT_PORT
           
static String STP_TIME_LASTTOPCH
           
static String STP_TOP_CHANGES
           
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
Dot1dStpGroup(InetAddress address)
          The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data.
 
Method Summary
 int getStpBridgeForwardDelay()
           
 int getStpBridgeHelloTime()
           
 int getStpBridgeMaxAge()
           
 String getStpDesignatedRoot()
           
 int getStpForwardDelay()
           
 int getStpHelloTime()
           
 int getStpHoldTime()
           
 int getStpMaxAge()
           
 int getStpPriority()
           
 int getStpProtocolSpecification()
           
 int getStpRootCost()
           
 int getStpRootPort()
           
 SnmpValue getStpTimeSinceLastTopologyChange()
           
 int getStpTopologyChanges()
           
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

STP_PROTOCOL_SPEC

public static final String STP_PROTOCOL_SPEC
See Also:
Constant Field Values

STP_PRIORITY

public static final String STP_PRIORITY
See Also:
Constant Field Values

STP_TIME_LASTTOPCH

public static final String STP_TIME_LASTTOPCH
See Also:
Constant Field Values

STP_TOP_CHANGES

public static final String STP_TOP_CHANGES
See Also:
Constant Field Values

STP_DESIGNATED_ROOT

public static final String STP_DESIGNATED_ROOT
See Also:
Constant Field Values

STP_ROOT_COST

public static final String STP_ROOT_COST
See Also:
Constant Field Values

STP_ROOT_PORT

public static final String STP_ROOT_PORT
See Also:
Constant Field Values

STP_MAX_AGE

public static final String STP_MAX_AGE
See Also:
Constant Field Values

STP_HELLO_TIME

public static final String STP_HELLO_TIME
See Also:
Constant Field Values

STP_HOLD_TIME

public static final String STP_HOLD_TIME
See Also:
Constant Field Values

STP_FORW_DELAY

public static final String STP_FORW_DELAY
See Also:
Constant Field Values

STP_BRDG_MAX_AGE

public static final String STP_BRDG_MAX_AGE
See Also:
Constant Field Values

STP_BRDG_HELLO_TIME

public static final String STP_BRDG_HELLO_TIME
See Also:
Constant Field Values

STP_BRDG_FORW_DELAY

public static final String STP_BRDG_FORW_DELAY
See Also:
Constant Field Values

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

Dot1dStpGroup

public Dot1dStpGroup(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

getStpProtocolSpecification

public int getStpProtocolSpecification()

getStpPriority

public int getStpPriority()

getStpTimeSinceLastTopologyChange

public SnmpValue getStpTimeSinceLastTopologyChange()

getStpTopologyChanges

public int getStpTopologyChanges()

getStpDesignatedRoot

public String getStpDesignatedRoot()

getStpRootCost

public int getStpRootCost()

getStpRootPort

public int getStpRootPort()

getStpMaxAge

public int getStpMaxAge()

getStpHelloTime

public int getStpHelloTime()

getStpHoldTime

public int getStpHoldTime()

getStpForwardDelay

public int getStpForwardDelay()

getStpBridgeMaxAge

public int getStpBridgeMaxAge()

getStpBridgeHelloTime

public int getStpBridgeHelloTime()

getStpBridgeForwardDelay

public int getStpBridgeForwardDelay()


Copyright © 2009. All Rights Reserved.