Class PerspectiveResponseTimeResource
- java.lang.Object
-
- org.opennms.netmgt.collection.support.builder.AbstractResource
-
- org.opennms.netmgt.collection.support.builder.PerspectiveResponseTimeResource
-
- All Implemented Interfaces:
Resource
public class PerspectiveResponseTimeResource extends AbstractResource
-
-
Constructor Summary
Constructors Constructor Description PerspectiveResponseTimeResource(java.lang.String location, java.lang.String address, java.lang.String service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInstance()Returns a unique name for the instance of this resource.java.lang.StringgetLabel(CollectionResource resource)Returns a unique label for the instance of this resource.ResourcegetParent()ResourcePathgetPath(CollectionResource resource)Retrieves the path of the resource, relative to the repository root.java.lang.StringgetTypeName()Returns the type name associated with the resource.java.lang.StringgetUnmodifiedInstance()Returns the original unmodified unique name for the instance of this resource.-
Methods inherited from class org.opennms.netmgt.collection.support.builder.AbstractResource
getTimestamp, resolve, setTimestamp
-
-
-
-
Method Detail
-
getParent
public Resource getParent()
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:ResourceReturns the type name associated with the resource. Used for thresholding.- Returns:
- type name
-
getInstance
public java.lang.String getInstance()
Description copied from interface:ResourceReturns a unique name for the instance of this resource. Used by theIndexStorageStrategy- Returns:
- instance name
-
getUnmodifiedInstance
public java.lang.String getUnmodifiedInstance()
Description copied from interface:ResourceReturns the original unmodified unique name for the instance of this resource. Used by theObjectNameStorageStrategy- Returns:
- instance name
-
getLabel
public java.lang.String getLabel(CollectionResource resource)
Description copied from interface:ResourceReturns a unique label for the instance of this resource. This label is used by threshd to generate a unique id on a per resource basis, grouped by node. SeeCollectionResourceWrapper- Returns:
- a
Stringobject.
-
getPath
public ResourcePath getPath(CollectionResource resource)
Description copied from interface:ResourceRetrieves the path of the resource, relative to the repository root.- Parameters:
resource- Used by theGenericTypeResourcein order to determine the instance name.- Returns:
- relative path
-
-