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, visit
public XmlCollectionResource(CollectionAgent agent)
agent
- the agentpublic boolean shouldPersist(ServiceParameters params)
AbstractCollectionResource
shouldPersist
shouldPersist
in interface CollectionResource
shouldPersist
in class AbstractCollectionResource
params
- a org.opennms.netmgt.collectd.ServiceParameters
object.public boolean rescanNeeded()
AbstractCollectionResource
rescanNeeded
rescanNeeded
in interface CollectionResource
rescanNeeded
in class AbstractCollectionResource
public void setAttributeValue(XmlCollectionAttributeType type, String value)
type
- the typevalue
- the valuepublic int getType()
AbstractCollectionResource
getType
getType
in interface CollectionResource
getType
in class AbstractCollectionResource
public abstract String getResourceTypeName()
CollectionResource
String
object.public abstract String getInstance()
CollectionResource
String
object.public String getParent()
CollectionResource
String
object.public TimeKeeper getTimeKeeper()
CollectionResource
getTimeKeeper
in interface CollectionResource
getTimeKeeper
in class AbstractCollectionResource
TimeKeeper
object.public void setTimeKeeper(TimeKeeper timeKeeper)
timeKeeper
- the new time keeperCopyright © 2015. All Rights Reserved.