public class UpdatableMOSupport extends Object
UpdatableMOSupport
class provides support for update
UpdatableManagedObject
s.Constructor and Description |
---|
UpdatableMOSupport()
Creates a
UpdatableMOSupport with undefined
(null ) last update time and source. |
Modifier and Type | Method and Description |
---|---|
Date |
getLastUpdate()
Gets the date and time of the last update.
|
Object |
getLastUpdateSource()
Gets the object that triggered the last update of this managed object.
|
void |
setLastUpdate(Date lastUpdate)
Sets the last update date and time.
|
void |
setLastUpdateNow()
Set the last update to the current time.
|
void |
setLastUpdateSource(Object source)
Sets the source object of the last update.
|
public UpdatableMOSupport()
UpdatableMOSupport
with undefined
(null
) last update time and source.public Date getLastUpdate()
UpdatableManagedObject.update(MOQuery updateScope)
has been called.public void setLastUpdate(Date lastUpdate)
lastUpdate
- the date and time of the last successful update or null
the reset/update a managed object on the next access.public void setLastUpdateNow()
public Object getLastUpdateSource()
null
if the source of the last update
is unknown/undefined.public void setLastUpdateSource(Object source)
UpdatableMOSupport
. Instead, a
WeakReference
is used, so that the object source can be garbage
collected if it is not referenced elsewhere.source
- an Object that identifies an update source.Copyright © 2018 SNMP4J.org. All rights reserved.