public abstract class XmlCollectionResource extends AbstractCollectionResource
m_agentRESOURCE_TYPE_IF, RESOURCE_TYPE_NODE| Constructor and Description |
|---|
XmlCollectionResource(CollectionAgent agent)
Instantiates a new XML collection resource.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getInstance()
Returns the name of the instance this
CollectionResource represents. |
abstract String |
getResourceTypeName()
Returns a string which indicates what type of resource.
|
TimeKeeper |
getTimeKeeper()
Returns a not-null
TimeKeeper instance when this resource requires to use a special timestamp when updating RRDs/JRBs. |
void |
setAttributeValue(XmlCollectionAttributeType type,
String value)
Sets the attribute value.
|
void |
setTimeKeeper(TimeKeeper timeKeeper)
Sets the time keeper.
|
addAttribute, getGroup, getInterfaceLabel, getOwnerName, getParent, getPath, rescanNeeded, shouldPersist, visitpublic XmlCollectionResource(CollectionAgent agent)
agent - the agentpublic void setAttributeValue(XmlCollectionAttributeType type, String value)
type - the typevalue - the valuepublic abstract String getResourceTypeName()
CollectionResourceString object.public abstract 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.public TimeKeeper getTimeKeeper()
CollectionResourceTimeKeeper instance when this resource requires to use a special timestamp when updating RRDs/JRBs.
If the resource doesn't need a special TimeKeeper it should return null.getTimeKeeper in interface CollectionResourcegetTimeKeeper in class AbstractCollectionResourceDefaultTimeKeeper should be used.public void setTimeKeeper(TimeKeeper timeKeeper)
timeKeeper - the new time keeperCopyright © 2020. All rights reserved.