public class XmlMultiInstanceCollectionResource extends XmlCollectionResource
m_agent
RESOURCE_TYPE_IF, RESOURCE_TYPE_NODE
Constructor and Description |
---|
XmlMultiInstanceCollectionResource(CollectionAgent agent,
String instance,
XmlResourceType type)
Instantiates a new XML Multi-instance collection resource.
|
Modifier and Type | Method and Description |
---|---|
String |
getInstance()
Returns the name of the instance this
CollectionResource represents. |
String |
getInterfaceLabel()
getInterfaceLabel
|
File |
getResourceDir(RrdRepository repository)
getResourceDir
|
String |
getResourceTypeName()
Returns a string which indicates what type of resource.
|
boolean |
shouldPersist(ServiceParameters params)
Resources should be persisted by default.
|
String |
toString() |
getTimeKeeper, setAttributeValue, setTimeKeeper
addAttribute, getGroup, getOwnerName, getParent, rescanNeeded, visit
public XmlMultiInstanceCollectionResource(CollectionAgent agent, String instance, XmlResourceType type)
agent
- the collection agentinstance
- the resource instancetype
- the XML resource typepublic boolean shouldPersist(ServiceParameters params)
AbstractCollectionResource
shouldPersist
in interface Persistable
shouldPersist
in class AbstractCollectionResource
params
- a ServiceParameters
object.public File getResourceDir(RrdRepository repository)
AbstractCollectionResource
getResourceDir
getResourceDir
in interface ResourceIdentifier
getResourceDir
in class AbstractCollectionResource
repository
- a RrdRepository
object.File
object.public String getResourceTypeName()
CollectionResource
getResourceTypeName
in interface CollectionResource
getResourceTypeName
in class XmlCollectionResource
String
object.public String getInstance()
CollectionResource
CollectionResource
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 CollectionResource
getInstance
in class XmlCollectionResource
String
object.public String getInterfaceLabel()
AbstractCollectionResource
getInterfaceLabel
getInterfaceLabel
in interface CollectionResource
getInterfaceLabel
in class AbstractCollectionResource
String
object.Copyright © 2015. All rights reserved.