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 java.lang.Object implements Resource
-
-
Constructor Summary
Constructors Constructor Description AbstractResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getTimestamp()
Returns theDate
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(java.util.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(java.util.Date timestamp)
-
getTimestamp
public java.util.Date getTimestamp()
Description copied from interface:Resource
Returns theDate
to use for attributes associated with this resource.- Specified by:
getTimestamp
in interfaceResource
- Returns:
- a
Date
or null if the current time should be used.
-
resolve
public Resource resolve()
Description copied from interface: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).
-
-