public class XmlSingleInstanceCollectionResource extends XmlCollectionResource
m_agentRESOURCE_TYPE_IF, RESOURCE_TYPE_NODE| Constructor and Description |
|---|
XmlSingleInstanceCollectionResource(CollectionAgent agent)
Instantiates a new XML single instance collection resource.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInstance()
Returns the name of the instance this
CollectionResource represents. |
String |
getResourceTypeName()
Returns a string which indicates what type of resource.
|
String |
toString() |
getTimeKeeper, setAttributeValue, setTimeKeeperaddAttribute, getGroup, getInterfaceLabel, getOwnerName, getParent, getPath, rescanNeeded, shouldPersist, visitpublic XmlSingleInstanceCollectionResource(CollectionAgent agent)
agent - the agentpublic String getResourceTypeName()
CollectionResourcegetResourceTypeName in interface CollectionResourcegetResourceTypeName in class XmlCollectionResourceString 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.getInstance in interface CollectionResourcegetInstance in class XmlCollectionResourceString object.Copyright © 2020. All rights reserved.