org.opennms.netmgt.capsd.snmp
Class SystemGroup

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

public final class SystemGroup
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:
Sowmya , Weave , OpenNMS
See Also:
RFC1213

Field Summary
static NamedSnmpVar[] ms_elemList
           The keys that will be supported by default from the TreeMap base class.
static String SYS_CONTACT_ALIAS
           
static String SYS_DESCR_ALIAS
           
static String SYS_LOCATION_ALIAS
           
static String SYS_NAME_ALIAS
           
static String SYS_OBJECTID_ALIAS
           
static String SYS_UPTIME_ALIAS
           
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
SystemGroup(InetAddress address)
           The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data.
 
Method Summary
 String getSysContact()
           
 String getSysDescr()
           
 String getSysLocation()
           
 String getSysName()
           
 String getSysObjectID()
           
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

SYS_OBJECTID_ALIAS

public static final String SYS_OBJECTID_ALIAS
See Also:
Constant Field Values

SYS_UPTIME_ALIAS

public static final String SYS_UPTIME_ALIAS
See Also:
Constant Field Values

SYS_NAME_ALIAS

public static final String SYS_NAME_ALIAS
See Also:
Constant Field Values

SYS_DESCR_ALIAS

public static final String SYS_DESCR_ALIAS
See Also:
Constant Field Values

SYS_LOCATION_ALIAS

public static final String SYS_LOCATION_ALIAS
See Also:
Constant Field Values

SYS_CONTACT_ALIAS

public static final String SYS_CONTACT_ALIAS
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 SNMP Interface table. Objects in this list should be used by multiple instances of this class.


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

SystemGroup

public SystemGroup(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 - TODO
Method Detail

getSysName

public String getSysName()

getSysObjectID

public String getSysObjectID()

getSysDescr

public String getSysDescr()

getSysLocation

public String getSysLocation()

getSysContact

public String getSysContact()

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


Copyright © 2009. All Rights Reserved.