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.
Modifier and Type | Field and Description |
---|---|
static NamedSnmpVar[] |
ms_elemList
The keys that will be supported by default from the TreeMap base class.
|
static String |
SYS_CONTACT_ALIAS
Constant
SYS_CONTACT_ALIAS="sysContact" |
static String |
SYS_DESCR_ALIAS
Constant
SYS_DESCR_ALIAS="sysDescr" |
static String |
SYS_LOCATION_ALIAS
Constant
SYS_LOCATION_ALIAS="sysLocation" |
static String |
SYS_NAME_ALIAS
Constant
SYS_NAME_ALIAS="sysName" |
static String |
SYS_OBJECTID_ALIAS
Constant
SYS_OBJECTID_ALIAS="sysObjectID" |
static String |
SYS_UPTIME_ALIAS
Constant
SYS_UPTIME_ALIAS="sysUptime" |
static String |
SYSTEM_OID
The SYSTEM_OID is the object identifier that represents the root of the
system information in the MIB forest.
|
Constructor and Description |
---|
SystemGroup(InetAddress address)
The class constructor is used to initialize the collector and send out
the initial SNMP packet requesting data.
|
Modifier and Type | Method and Description |
---|---|
String |
getSysContact()
getSysContact
|
String |
getSysDescr()
getSysDescr
|
String |
getSysLocation()
getSysLocation
|
String |
getSysName()
getSysName
|
String |
getSysObjectID()
getSysObjectID
|
protected void |
reportFatalErr(ErrorStatusException ex) |
protected void |
reportGenErr(String msg) |
protected void |
reportNonFatalErr(ErrorStatus status) |
protected void |
reportNoSuchNameErr(String msg) |
protected void |
storeResult(SnmpResult res) |
void |
updateSnmpDataForNode(OnmsNode node)
updateSnmpDataForNode
|
void |
updateSnmpDataForResource(ScanResource sr)
updateSnmpDataForResource
|
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
public static final String SYS_OBJECTID_ALIAS
SYS_OBJECTID_ALIAS="sysObjectID"
public static final String SYS_UPTIME_ALIAS
SYS_UPTIME_ALIAS="sysUptime"
public static final String SYS_NAME_ALIAS
SYS_NAME_ALIAS="sysName"
public static final String SYS_DESCR_ALIAS
SYS_DESCR_ALIAS="sysDescr"
public static final String SYS_LOCATION_ALIAS
SYS_LOCATION_ALIAS="sysLocation"
public static final String SYS_CONTACT_ALIAS
SYS_CONTACT_ALIAS="sysContact"
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.
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.
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.
address
- TODOprotected void storeResult(SnmpResult res)
storeResult
in class CollectionTracker
protected void reportGenErr(String msg)
reportGenErr
in class CollectionTracker
protected void reportNoSuchNameErr(String msg)
reportNoSuchNameErr
in class CollectionTracker
protected void reportFatalErr(ErrorStatusException ex)
reportFatalErr
in class CollectionTracker
protected void reportNonFatalErr(ErrorStatus status)
reportNonFatalErr
in class CollectionTracker
public void updateSnmpDataForResource(ScanResource sr)
updateSnmpDataForResource
sr
- a ScanResource
object.Copyright © 2021. All rights reserved.