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 String
SYS_CONTACT_ALIAS
ConstantSYS_CONTACT_ALIAS="sysContact"
static String
SYS_DESCR_ALIAS
ConstantSYS_DESCR_ALIAS="sysDescr"
static String
SYS_LOCATION_ALIAS
ConstantSYS_LOCATION_ALIAS="sysLocation"
static String
SYS_NAME_ALIAS
ConstantSYS_NAME_ALIAS="sysName"
static String
SYS_OBJECTID_ALIAS
ConstantSYS_OBJECTID_ALIAS="sysObjectID"
static String
SYS_UPTIME_ALIAS
ConstantSYS_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 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 String
getSysContact()
getSysContactString
getSysDescr()
getSysDescrString
getSysLocation()
getSysLocationString
getSysName()
getSysNameString
getSysObjectID()
getSysObjectIDprotected 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)
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 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:
storeResult
in classCollectionTracker
-
reportGenErr
protected void reportGenErr(String msg)
- Overrides:
reportGenErr
in classCollectionTracker
-
reportNoSuchNameErr
protected void reportNoSuchNameErr(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.
-
-