public abstract class XmlCollectionResource extends AbstractCollectionResource
m_agent| 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.
|
String |
getParent()
Returns the name of the parent resource.
|
abstract String |
getResourceTypeName()
Returns a string which indicates what type of resource.
|
TimeKeeper |
getTimeKeeper()
Returns a not-null time tracker instance when this resource requires to use a special timestamp when updating RRDs/JRBs.
|
int |
getType()
getType
|
boolean |
rescanNeeded()
rescanNeeded
|
void |
setAttributeValue(XmlCollectionAttributeType type,
String value)
Sets the attribute value.
|
void |
setTimeKeeper(TimeKeeper timeKeeper)
Sets the time keeper.
|
boolean |
shouldPersist(ServiceParameters params)
shouldPersist
|
addAttribute, getGroup, getLabel, getOwnerName, getResourceDir, visitpublic XmlCollectionResource(CollectionAgent agent)
agent - the agentpublic boolean shouldPersist(ServiceParameters params)
AbstractCollectionResourceshouldPersist
shouldPersist in interface CollectionResourceshouldPersist in class AbstractCollectionResourceparams - a org.opennms.netmgt.collectd.ServiceParameters object.public boolean rescanNeeded()
AbstractCollectionResourcerescanNeeded
rescanNeeded in interface CollectionResourcerescanNeeded in class AbstractCollectionResourcepublic void setAttributeValue(XmlCollectionAttributeType type, String value)
type - the typevalue - the valuepublic int getType()
AbstractCollectionResourcegetType
getType in interface CollectionResourcegetType in class AbstractCollectionResourcepublic abstract String getResourceTypeName()
CollectionResourceString object.public abstract String getInstance()
CollectionResourceString object.public String getParent()
CollectionResourceString object.public TimeKeeper getTimeKeeper()
CollectionResourcegetTimeKeeper in interface CollectionResourcegetTimeKeeper in class AbstractCollectionResourceTimeKeeper object.public void setTimeKeeper(TimeKeeper timeKeeper)
timeKeeper - the new time keeperCopyright © 2015. All Rights Reserved.