Class InterfaceLevelResource
- java.lang.Object
-
- org.opennms.netmgt.collection.support.builder.AbstractResource
-
- org.opennms.netmgt.collection.support.builder.InterfaceLevelResource
-
- All Implemented Interfaces:
Resource
public class InterfaceLevelResource extends AbstractResource
-
-
Constructor Summary
Constructors Constructor Description InterfaceLevelResource(NodeLevelResource node, String ifName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getIfName()
String
getInstance()
Returns a unique name for the instance of this resource.String
getLabel(CollectionResource resource)
Returns a unique label for the instance of this resource.NodeLevelResource
getParent()
ResourcePath
getPath(CollectionResource resource)
Retrieves the path of the resource, relative to the repository root.String
getTypeName()
Returns the type name associated with the resource.String
getUnmodifiedInstance()
Returns the original unmodified unique name for the instance of this resource.int
hashCode()
String
toString()
-
Methods inherited from class org.opennms.netmgt.collection.support.builder.AbstractResource
getTimestamp, resolve, setTimestamp
-
-
-
-
Constructor Detail
-
InterfaceLevelResource
public InterfaceLevelResource(NodeLevelResource node, String ifName)
-
-
Method Detail
-
getIfName
public String getIfName()
-
getParent
public NodeLevelResource getParent()
-
getInstance
public String getInstance()
Description copied from interface:Resource
Returns a unique name for the instance of this resource. Used by theIndexStorageStrategy
- Returns:
- instance name
-
getUnmodifiedInstance
public String getUnmodifiedInstance()
Description copied from interface:Resource
Returns the original unmodified unique name for the instance of this resource. Used by theObjectNameStorageStrategy
- Returns:
- instance name
-
getLabel
public String getLabel(CollectionResource resource)
Description copied from interface:Resource
Returns 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
String
object.
-
getPath
public ResourcePath getPath(CollectionResource resource)
Description copied from interface:Resource
Retrieves the path of the resource, relative to the repository root.- Parameters:
resource
- Used by theGenericTypeResource
in order to determine the instance name.- Returns:
- relative path
-
getTypeName
public String getTypeName()
Description copied from interface:Resource
Returns the type name associated with the resource. Used for thresholding.- Returns:
- type name
-
-