public abstract class AbstractResource extends Object implements Resource
Constructor and Description |
---|
AbstractResource() |
Modifier and Type | Method and Description |
---|---|
Date |
getTimestamp()
Returns the
Date to use for attributes associated with this resource. |
Resource |
resolve()
Used to lookup additional resource related information that may not
have been available when the resource was created, and optionally return a
new resource.
|
void |
setTimestamp(Date timestamp) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance, getLabel, getParent, getPath, getTypeName, getUnmodifiedInstance
public void setTimestamp(Date timestamp)
public Date getTimestamp()
Resource
Date
to use for attributes associated with this resource.getTimestamp
in interface Resource
Date
or null if the current time should be used.public Resource resolve()
Resource
Used to lookup additional resource related information that may not have been available when the resource was created, and optionally return a new resource.
See DeferredGenericTypeResource.resolve()
.
This method should only be called when running in the context of the OpenNMS JVM (and not the Minion).
Copyright © 2021. All rights reserved.