public static class JMXCollector.JMXCollectionResource extends AbstractCollectionResource
m_agentRESOURCE_TYPE_IF, RESOURCE_TYPE_NODE| Constructor and Description |
|---|
JMXCollectionResource(CollectionAgent agent,
String resourceName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInstance()
Returns the name of the instance this
CollectionResource represents. |
File |
getResourceDir(RrdRepository repository)
getResourceDir
|
String |
getResourceTypeName()
Returns a string which indicates what type of resource.
|
void |
setAttributeValue(CollectionAttributeType type,
String value) |
String |
toString() |
addAttribute, getGroup, getInterfaceLabel, getOwnerName, getParent, getTimeKeeper, rescanNeeded, shouldPersist, visitpublic JMXCollectionResource(CollectionAgent agent, String resourceName)
public void setAttributeValue(CollectionAttributeType type, String value)
public File getResourceDir(RrdRepository repository)
AbstractCollectionResourcegetResourceDir
getResourceDir in interface ResourceIdentifiergetResourceDir in class AbstractCollectionResourcerepository - a RrdRepository object.File object.public String getResourceTypeName()
CollectionResourceString object.public String getInstance()
CollectionResourceCollectionResource represents. For node level resources, this will be null
to indicate the default instance. For interface level resources, some label unique to the node (ifIndex probably).
For Generic resources (e.g. the SNMP GenericIndexResource), this will be some identifying label, probably the index in the table.
This value is used by the StorageStrategy implementations to figure out the label for the resource which
is used in constructing its RRD directory.String object.Copyright © 2015. All rights reserved.