public abstract class XmlCollectionResource extends AbstractCollectionResource
m_agent
RESOURCE_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, visit
public XmlCollectionResource(CollectionAgent agent)
agent
- the agentpublic void setAttributeValue(XmlCollectionAttributeType type, String value)
type
- the typevalue
- the valuepublic abstract String getResourceTypeName()
CollectionResource
String
object.public abstract 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.String
object.public TimeKeeper getTimeKeeper()
CollectionResource
TimeKeeper
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 CollectionResource
getTimeKeeper
in class AbstractCollectionResource
DefaultTimeKeeper
should be used.public void setTimeKeeper(TimeKeeper timeKeeper)
timeKeeper
- the new time keeperCopyright © 2017. All rights reserved.