Class SystemGroup
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- org.opennms.netmgt.snmp.AggregateTracker
-
- org.opennms.netmgt.provision.service.snmp.SystemGroup
-
- All Implemented Interfaces:
Collectable,ProxiableTracker
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/receive replies.
-
-
Field Summary
Fields Modifier and Type Field Description static NamedSnmpVar[]ms_elemListThe keys that will be supported by default from the TreeMap base class.static StringSYS_CONTACT_ALIASConstantSYS_CONTACT_ALIAS="sysContact"static StringSYS_DESCR_ALIASConstantSYS_DESCR_ALIAS="sysDescr"static StringSYS_LOCATION_ALIASConstantSYS_LOCATION_ALIAS="sysLocation"static StringSYS_NAME_ALIASConstantSYS_NAME_ALIAS="sysName"static StringSYS_OBJECTID_ALIASConstantSYS_OBJECTID_ALIAS="sysObjectID"static StringSYS_UPTIME_ALIASConstantSYS_UPTIME_ALIAS="sysUptime"static StringSYSTEM_OIDThe SYSTEM_OID is the object identifier that represents the root of the system information in the MIB forest.
-
Constructor Summary
Constructors Constructor Description SystemGroup(InetAddress address)The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSysContact()getSysContactStringgetSysDescr()getSysDescrStringgetSysLocation()getSysLocationStringgetSysName()getSysNameStringgetSysObjectID()getSysObjectIDprotected voidreportFatalErr(ErrorStatusException ex)protected voidreportGenErr(String msg)protected voidreportNonFatalErr(ErrorStatus status)protected voidreportNoSuchNameErr(String msg)protected voidstoreResult(SnmpResult res)voidupdateSnmpDataForNode(OnmsNode node)updateSnmpDataForNodevoidupdateSnmpDataForResource(ScanResource sr)updateSnmpDataForResource-
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
-
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
-
-
-
-
Field Detail
-
SYS_OBJECTID_ALIAS
public static final String SYS_OBJECTID_ALIAS
ConstantSYS_OBJECTID_ALIAS="sysObjectID"- See Also:
- Constant Field Values
-
SYS_UPTIME_ALIAS
public static final String SYS_UPTIME_ALIAS
ConstantSYS_UPTIME_ALIAS="sysUptime"- See Also:
- Constant Field Values
-
SYS_NAME_ALIAS
public static final String SYS_NAME_ALIAS
ConstantSYS_NAME_ALIAS="sysName"- See Also:
- Constant Field Values
-
SYS_DESCR_ALIAS
public static final String SYS_DESCR_ALIAS
ConstantSYS_DESCR_ALIAS="sysDescr"- See Also:
- Constant Field Values
-
SYS_LOCATION_ALIAS
public static final String SYS_LOCATION_ALIAS
ConstantSYS_LOCATION_ALIAS="sysLocation"- See Also:
- Constant Field Values
-
SYS_CONTACT_ALIAS
public static final String SYS_CONTACT_ALIAS
ConstantSYS_CONTACT_ALIAS="sysContact"- 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 retrieved 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
-
storeResult
protected void storeResult(SnmpResult res)
- Overrides:
storeResultin classCollectionTracker
-
reportGenErr
protected void reportGenErr(String msg)
- Overrides:
reportGenErrin classCollectionTracker
-
reportNoSuchNameErr
protected void reportNoSuchNameErr(String msg)
- Overrides:
reportNoSuchNameErrin classCollectionTracker
-
reportFatalErr
protected void reportFatalErr(ErrorStatusException ex)
- Overrides:
reportFatalErrin classCollectionTracker
-
reportNonFatalErr
protected void reportNonFatalErr(ErrorStatus status)
- Overrides:
reportNonFatalErrin classCollectionTracker
-
updateSnmpDataForResource
public void updateSnmpDataForResource(ScanResource sr)
updateSnmpDataForResource
- Parameters:
sr- aScanResourceobject.
-
-