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/receive replies.

Version:
$Id: $
Author:
Antonio Russo
See Also:
RFC1213

Field Summary
static String STP_BRDG_FORW_DELAY
          Constant STP_BRDG_FORW_DELAY="dot1dStpBridgeForwardDelay"
static String STP_BRDG_HELLO_TIME
          Constant STP_BRDG_HELLO_TIME="dot1dStpBridgeHelloTime"
static String STP_BRDG_MAX_AGE
          Constant STP_BRDG_MAX_AGE="dot1dStpBridgeMaxAge"
static String STP_DESIGNATED_ROOT
          Constant STP_DESIGNATED_ROOT="dot1dStpDesignatedRoot"
static String STP_FORW_DELAY
          Constant STP_FORW_DELAY="dot1dStpForwardDelay"
static String STP_HELLO_TIME
          Constant STP_HELLO_TIME="dot1dStpHelloTime"
static String STP_HOLD_TIME
          Constant STP_HOLD_TIME="dot1dStpHoldTime"
static String STP_MAX_AGE
          Constant STP_MAX_AGE="dot1dStpMaxAge"
static String STP_PRIORITY
          Constant STP_PRIORITY="dot1dStpPriority"
static String STP_PROTOCOL_SPEC
          Constant STP_PROTOCOL_SPEC="dot1dStpProtocolSpecification"
static String STP_ROOT_COST
          Constant STP_ROOT_COST="dot1dStpRootCost"
static String STP_ROOT_PORT
          Constant STP_ROOT_PORT="dot1dStpRootPort"
static String STP_TIME_LASTTOPCH
          Constant STP_TIME_LASTTOPCH="dot1dStpTimeSinceLastTopologyChange"
static String STP_TOP_CHANGES
          Constant STP_TOP_CHANGES="dot1dStpTopChanges"
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()
          getStpBridgeForwardDelay
 int getStpBridgeHelloTime()
          getStpBridgeHelloTime
 int getStpBridgeMaxAge()
          getStpBridgeMaxAge
 String getStpDesignatedRoot()
          getStpDesignatedRoot
 int getStpForwardDelay()
          getStpForwardDelay
 int getStpHelloTime()
          getStpHelloTime
 int getStpHoldTime()
          getStpHoldTime
 int getStpMaxAge()
          getStpMaxAge
 int getStpPriority()
          getStpPriority
 int getStpProtocolSpecification()
          getStpProtocolSpecification
 int getStpRootCost()
          getStpRootCost
 int getStpRootPort()
          getStpRootPort
 SnmpValue getStpTimeSinceLastTopologyChange()
          getStpTimeSinceLastTopologyChange
 int getStpTopologyChanges()
          getStpTopologyChanges
protected  void reportGenErr(String msg)
          
protected  void reportNoSuchNameErr(String msg)
          
protected  void storeResult(SnmpResult res)
          
 
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, isFinished, setFailed, setMaxRepetitions, setTimedOut
 
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, 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
Constant STP_PROTOCOL_SPEC="dot1dStpProtocolSpecification"

See Also:
Constant Field Values

STP_PRIORITY

public static final String STP_PRIORITY
Constant STP_PRIORITY="dot1dStpPriority"

See Also:
Constant Field Values

STP_TIME_LASTTOPCH

public static final String STP_TIME_LASTTOPCH
Constant STP_TIME_LASTTOPCH="dot1dStpTimeSinceLastTopologyChange"

See Also:
Constant Field Values

STP_TOP_CHANGES

public static final String STP_TOP_CHANGES
Constant STP_TOP_CHANGES="dot1dStpTopChanges"

See Also:
Constant Field Values

STP_DESIGNATED_ROOT

public static final String STP_DESIGNATED_ROOT
Constant STP_DESIGNATED_ROOT="dot1dStpDesignatedRoot"

See Also:
Constant Field Values

STP_ROOT_COST

public static final String STP_ROOT_COST
Constant STP_ROOT_COST="dot1dStpRootCost"

See Also:
Constant Field Values

STP_ROOT_PORT

public static final String STP_ROOT_PORT
Constant STP_ROOT_PORT="dot1dStpRootPort"

See Also:
Constant Field Values

STP_MAX_AGE

public static final String STP_MAX_AGE
Constant STP_MAX_AGE="dot1dStpMaxAge"

See Also:
Constant Field Values

STP_HELLO_TIME

public static final String STP_HELLO_TIME
Constant STP_HELLO_TIME="dot1dStpHelloTime"

See Also:
Constant Field Values

STP_HOLD_TIME

public static final String STP_HOLD_TIME
Constant STP_HOLD_TIME="dot1dStpHoldTime"

See Also:
Constant Field Values

STP_FORW_DELAY

public static final String STP_FORW_DELAY
Constant STP_FORW_DELAY="dot1dStpForwardDelay"

See Also:
Constant Field Values

STP_BRDG_MAX_AGE

public static final String STP_BRDG_MAX_AGE
Constant STP_BRDG_MAX_AGE="dot1dStpBridgeMaxAge"

See Also:
Constant Field Values

STP_BRDG_HELLO_TIME

public static final String STP_BRDG_HELLO_TIME
Constant STP_BRDG_HELLO_TIME="dot1dStpBridgeHelloTime"

See Also:
Constant Field Values

STP_BRDG_FORW_DELAY

public static final String STP_BRDG_FORW_DELAY
Constant STP_BRDG_FORW_DELAY="dot1dStpBridgeForwardDelay"

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:
address - a InetAddress object.
Method Detail

storeResult

protected void storeResult(SnmpResult res)

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()

getStpProtocolSpecification

Returns:
a int.

getStpPriority

public int getStpPriority()

getStpPriority

Returns:
a int.

getStpTimeSinceLastTopologyChange

public SnmpValue getStpTimeSinceLastTopologyChange()

getStpTimeSinceLastTopologyChange

Returns:
a SnmpValue object.

getStpTopologyChanges

public int getStpTopologyChanges()

getStpTopologyChanges

Returns:
a int.

getStpDesignatedRoot

public String getStpDesignatedRoot()

getStpDesignatedRoot

Returns:
a String object.

getStpRootCost

public int getStpRootCost()

getStpRootCost

Returns:
a int.

getStpRootPort

public int getStpRootPort()

getStpRootPort

Returns:
a int.

getStpMaxAge

public int getStpMaxAge()

getStpMaxAge

Returns:
a int.

getStpHelloTime

public int getStpHelloTime()

getStpHelloTime

Returns:
a int.

getStpHoldTime

public int getStpHoldTime()

getStpHoldTime

Returns:
a int.

getStpForwardDelay

public int getStpForwardDelay()

getStpForwardDelay

Returns:
a int.

getStpBridgeMaxAge

public int getStpBridgeMaxAge()

getStpBridgeMaxAge

Returns:
a int.

getStpBridgeHelloTime

public int getStpBridgeHelloTime()

getStpBridgeHelloTime

Returns:
a int.

getStpBridgeForwardDelay

public int getStpBridgeForwardDelay()

getStpBridgeForwardDelay

Returns:
a int.


Copyright © 2011. All Rights Reserved.