public class NodeLevelResource extends AbstractResource
Constructor and Description |
---|
NodeLevelResource(int nodeId) |
NodeLevelResource(int nodeId,
String path)
Deprecated.
use a
GenericTypeResource instead |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
int |
getNodeId() |
Resource |
getParent() |
String |
getPath() |
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() |
getTimestamp, resolve, setTimestamp
public NodeLevelResource(int nodeId)
public NodeLevelResource(int nodeId, String path)
GenericTypeResource
insteadGenericTypeResource
s instead, however
it exists for backwards compatibility with the JMX collector.nodeId
- the node idpath
- sub-directory of the node directorypublic int getNodeId()
public String getPath()
public Resource getParent()
public String getInstance()
Resource
IndexStorageStrategy
public String getUnmodifiedInstance()
Resource
ObjectNameStorageStrategy
public ResourcePath getPath(CollectionResource resource)
Resource
resource
- Used by the GenericTypeResource
in order to determine the instance name.public String getLabel(CollectionResource resource)
Resource
CollectionResourceWrapper
String
object.public String getTypeName()
Resource
Copyright © 2021. All rights reserved.