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_elemList
The keys that will be supported by default from the TreeMap base class.static java.lang.String
SYS_CONTACT_ALIAS
ConstantSYS_CONTACT_ALIAS="sysContact"
static java.lang.String
SYS_DESCR_ALIAS
ConstantSYS_DESCR_ALIAS="sysDescr"
static java.lang.String
SYS_LOCATION_ALIAS
ConstantSYS_LOCATION_ALIAS="sysLocation"
static java.lang.String
SYS_NAME_ALIAS
ConstantSYS_NAME_ALIAS="sysName"
static java.lang.String
SYS_OBJECTID_ALIAS
ConstantSYS_OBJECTID_ALIAS="sysObjectID"
static java.lang.String
SYS_UPTIME_ALIAS
ConstantSYS_UPTIME_ALIAS="sysUptime"
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.
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSysContact()
getSysContactjava.lang.String
getSysDescr()
getSysDescrjava.lang.String
getSysLocation()
getSysLocationjava.lang.String
getSysName()
getSysNamejava.lang.String
getSysObjectID()
getSysObjectIDprotected void
reportFatalErr(ErrorStatusException ex)
protected void
reportGenErr(java.lang.String msg)
protected void
reportNonFatalErr(ErrorStatus status)
protected void
reportNoSuchNameErr(java.lang.String msg)
protected void
storeResult(SnmpResult res)
void
updateSnmpDataForNode(OnmsNode node)
updateSnmpDataForNodevoid
updateSnmpDataForResource(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 java.lang.String SYS_OBJECTID_ALIAS
ConstantSYS_OBJECTID_ALIAS="sysObjectID"
- See Also:
- Constant Field Values
-
SYS_UPTIME_ALIAS
public static final java.lang.String SYS_UPTIME_ALIAS
ConstantSYS_UPTIME_ALIAS="sysUptime"
- See Also:
- Constant Field Values
-
SYS_NAME_ALIAS
public static final java.lang.String SYS_NAME_ALIAS
ConstantSYS_NAME_ALIAS="sysName"
- See Also:
- Constant Field Values
-
SYS_DESCR_ALIAS
public static final java.lang.String SYS_DESCR_ALIAS
ConstantSYS_DESCR_ALIAS="sysDescr"
- See Also:
- Constant Field Values
-
SYS_LOCATION_ALIAS
public static final java.lang.String SYS_LOCATION_ALIAS
ConstantSYS_LOCATION_ALIAS="sysLocation"
- See Also:
- Constant Field Values
-
SYS_CONTACT_ALIAS
public static final java.lang.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 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 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(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()
getSysName
- Returns:
- a
String
object.
-
getSysObjectID
public java.lang.String getSysObjectID()
getSysObjectID
- Returns:
- a
String
object.
-
getSysDescr
public java.lang.String getSysDescr()
getSysDescr
- Returns:
- a
String
object.
-
getSysLocation
public java.lang.String getSysLocation()
getSysLocation
- Returns:
- a
String
object.
-
getSysContact
public java.lang.String getSysContact()
getSysContact
- Returns:
- a
String
object.
-
storeResult
protected void storeResult(SnmpResult res)
- Overrides:
storeResult
in classCollectionTracker
-
reportGenErr
protected void reportGenErr(java.lang.String msg)
- Overrides:
reportGenErr
in classCollectionTracker
-
reportNoSuchNameErr
protected void reportNoSuchNameErr(java.lang.String msg)
- Overrides:
reportNoSuchNameErr
in classCollectionTracker
-
reportFatalErr
protected void reportFatalErr(ErrorStatusException ex)
- Overrides:
reportFatalErr
in classCollectionTracker
-
reportNonFatalErr
protected void reportNonFatalErr(ErrorStatus status)
- Overrides:
reportNonFatalErr
in classCollectionTracker
-
updateSnmpDataForResource
public void updateSnmpDataForResource(ScanResource sr)
updateSnmpDataForResource
- Parameters:
sr
- aScanResource
object.
-
-