Module org.snmp4j.agent
Package org.snmp4j.agent
Interface UpdatableManagedObject<SR extends SubRequest<?>>
-
- All Superinterfaces:
ManagedObject<SR>
public interface UpdatableManagedObject<SR extends SubRequest<?>> extends ManagedObject<SR>
TheUpdatableManagedObject
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Date
getLastUpdate()
Gets the date and time of the last update.java.lang.Object
getLastUpdateSource()
Gets the object that triggered the last update of this managed object.void
update(MOQuery updateScope)
Update the content of the managed object that is covered by the supplied scope.
-
-
-
Method Detail
-
getLastUpdate
java.util.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
java.lang.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
void update(MOQuery updateScope)
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.
-
-