public class GenericTypeResource extends DeferredGenericTypeResource
Constructor and Description |
---|
GenericTypeResource(NodeLevelResource node,
ResourceType resourceType,
String instance) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLabel(CollectionResource resource)
Returns a unique label for the instance of this resource.
|
ResourcePath |
getPath(CollectionResource resource)
Retrieves the path of the resource, relative to the repository root.
|
PersistenceSelectorStrategy |
getPersistenceSelectorStrategy() |
ResourceType |
getResourceType() |
StorageStrategy |
getStorageStrategy() |
String |
getTypeName()
Returns the type name associated with the resource.
|
int |
hashCode() |
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.
|
protected static String |
sanitizeInstance(String instance) |
static String |
sanitizeInstanceStrict(String instance) |
String |
toString() |
getFallbackTypeName, getInstance, getParent, getUnmodifiedInstance
getTimestamp, setTimestamp
public GenericTypeResource(NodeLevelResource node, ResourceType resourceType, String instance)
public ResourceType getResourceType()
public String getLabel(CollectionResource resource)
Resource
CollectionResourceWrapper
getLabel
in interface Resource
getLabel
in class DeferredGenericTypeResource
String
object.public ResourcePath getPath(CollectionResource resource)
Resource
getPath
in interface Resource
getPath
in class DeferredGenericTypeResource
resource
- Used by the GenericTypeResource
in order to determine the instance name.public Resource resolve()
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).
resolve
in interface Resource
resolve
in class DeferredGenericTypeResource
public StorageStrategy getStorageStrategy()
public PersistenceSelectorStrategy getPersistenceSelectorStrategy()
public String getTypeName()
Resource
getTypeName
in interface Resource
getTypeName
in class DeferredGenericTypeResource
public String toString()
toString
in class DeferredGenericTypeResource
public int hashCode()
hashCode
in class DeferredGenericTypeResource
public boolean equals(Object obj)
equals
in class DeferredGenericTypeResource
Copyright © 2020. All rights reserved.