|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.UpdatableMOSupport
public class UpdatableMOSupport
The UpdatableMOSupport class provides support for update
UpdatableManagedObjects.
| Constructor Summary | |
|---|---|
UpdatableMOSupport()
Creates a UpdatableMOSupport with undefined
(null) last update time and source. |
|
| Method Summary | |
|---|---|
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 |
setLastUpdate(java.util.Date lastUpdate)
Sets the last update date and time. |
void |
setLastUpdateNow()
Set the last update to the current time. |
void |
setLastUpdateSource(java.lang.Object source)
Sets the source object of the last update. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdatableMOSupport()
UpdatableMOSupport with undefined
(null) last update time and source.
| Method Detail |
|---|
public java.util.Date getLastUpdate()
UpdatableManagedObject.update(MOQuery updateScope) has been called.public void setLastUpdate(java.util.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 java.lang.Object getLastUpdateSource()
null if the source of the last update
is unknown/undefined.public void setLastUpdateSource(java.lang.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 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||