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:
org.opennms.netmgt.snmp.Collectable

public final class SystemGroup
extends org.opennms.netmgt.snmp.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 java.lang.String SYS_CONTACT_ALIAS
           
static java.lang.String SYS_DESCR_ALIAS
           
static java.lang.String SYS_LOCATION_ALIAS
           
static java.lang.String SYS_NAME_ALIAS
           
static java.lang.String SYS_OBJECTID_ALIAS
           
static java.lang.String SYS_UPTIME_ALIAS
           
static java.lang.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(java.net.InetAddress address)
           The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data.
 
Method Summary
 java.lang.String getSysContact()
           
 java.lang.String getSysDescr()
           
 java.lang.String getSysLocation()
           
 java.lang.String getSysName()
           
 java.lang.String getSysObjectID()
           
protected  void reportGenErr(java.lang.String msg)
           
protected  void reportNoSuchNameErr(java.lang.String msg)
           
protected  void storeResult(org.opennms.netmgt.snmp.SnmpObjId base, org.opennms.netmgt.snmp.SnmpInstId inst, org.opennms.netmgt.snmp.SnmpValue val)
           
 
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, isFinished, setFailed, 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 java.lang.String SYS_OBJECTID_ALIAS
See Also:
Constant Field Values

SYS_UPTIME_ALIAS

public static final java.lang.String SYS_UPTIME_ALIAS
See Also:
Constant Field Values

SYS_NAME_ALIAS

public static final java.lang.String SYS_NAME_ALIAS
See Also:
Constant Field Values

SYS_DESCR_ALIAS

public static final java.lang.String SYS_DESCR_ALIAS
See Also:
Constant Field Values

SYS_LOCATION_ALIAS

public static final java.lang.String SYS_LOCATION_ALIAS
See Also:
Constant Field Values

SYS_CONTACT_ALIAS

public static final java.lang.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 java.lang.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(java.net.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 java.lang.String getSysName()

getSysObjectID

public java.lang.String getSysObjectID()

getSysDescr

public java.lang.String getSysDescr()

getSysLocation

public java.lang.String getSysLocation()

getSysContact

public java.lang.String getSysContact()

storeResult

protected void storeResult(org.opennms.netmgt.snmp.SnmpObjId base,
                           org.opennms.netmgt.snmp.SnmpInstId inst,
                           org.opennms.netmgt.snmp.SnmpValue val)
Overrides:
storeResult in class org.opennms.netmgt.snmp.CollectionTracker

reportGenErr

protected void reportGenErr(java.lang.String msg)
Overrides:
reportGenErr in class org.opennms.netmgt.snmp.CollectionTracker

reportNoSuchNameErr

protected void reportNoSuchNameErr(java.lang.String msg)
Overrides:
reportNoSuchNameErr in class org.opennms.netmgt.snmp.CollectionTracker


Copyright © 2007. All Rights Reserved.