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, waitgetInstance, getLabel, getParent, getPath, getTypeName, getUnmodifiedInstancepublic void setTimestamp(Date timestamp)
public Date getTimestamp()
ResourceDate to use for attributes associated with this resource.getTimestamp in interface ResourceDate or null if the current time should be used.public Resource resolve()
ResourceUsed 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 © 2022. All rights reserved.