Module org.snmp4j.agent
Package org.snmp4j.agent
Interface UpdatableManagedObject<SR extends SubRequest<?>>
- All Superinterfaces:
ManagedObject<SR>
The
UpdatableManagedObject
interface defines the basic
operations for all SNMP(4J) manageable objects that need to be updated
to reflect the up-to-date state of the managed object.- Since:
- 1.2
- Version:
- 3.1.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionGets the date and time of the last update.Gets the object that triggered the last update of this managed object.void
Update the content of the managed object that is covered by the supplied scope.
-
Method Details
-
getLastUpdate
Date getLastUpdate()Gets the date and time of the last update. If that time cannot be determinednull
is returned.- Returns:
- the Date when the last
update(MOQuery updateScope)
has been called.
-
getLastUpdateSource
Object getLastUpdateSource()Gets the object that triggered the last update of this managed object. The returned object reference may be used to check if an update has already been performed for the specified source, which is typically a SNMP request.- Returns:
- an object or
null
if the source of the last update is unknown/undefined.
-
update
Update the content of the managed object that is covered by the supplied scope.- Parameters:
updateScope
- the query that triggered the update and thus defining the update scope. Ifnull
the whole managed object has to be updated.
-