Class AbstractResource
- java.lang.Object
-
- org.opennms.netmgt.collection.support.builder.AbstractResource
-
- All Implemented Interfaces:
Resource
- Direct Known Subclasses:
DeferredGenericTypeResource,InterfaceLevelResource,LatencyTypeResource,NodeLevelResource,PerspectiveResponseTimeResource
public abstract class AbstractResource extends Object implements Resource
-
-
Constructor Summary
Constructors Constructor Description AbstractResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetTimestamp()Returns theDateto use for attributes associated with this resource.Resourceresolve()Used to lookup additional resource related information that may not have been available when the resource was created, and optionally return a new resource.voidsetTimestamp(Date timestamp)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.collection.support.builder.Resource
getInstance, getLabel, getParent, getPath, getTypeName, getUnmodifiedInstance
-
-
-
-
Method Detail
-
setTimestamp
public void setTimestamp(Date timestamp)
-
getTimestamp
public Date getTimestamp()
Description copied from interface:ResourceReturns theDateto use for attributes associated with this resource.- Specified by:
getTimestampin interfaceResource- Returns:
- a
Dateor null if the current time should be used.
-
resolve
public Resource resolve()
Description copied from interface: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).
-
-