public abstract class AbstractCollectionResource extends Object implements CollectionResource
Modifier and Type | Field and Description |
---|---|
protected CollectionAgent |
m_agent |
Modifier | Constructor and Description |
---|---|
protected |
AbstractCollectionResource(CollectionAgent agent)
Constructor for AbstractCollectionResource.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttribute(CollectionAttribute attr)
Adds the given attribute into the collection for this resource
|
protected AttributeGroup |
getGroup(AttributeGroupType groupType)
Finds, or creates, and returns the AttributeGroup for the given group Type
|
String |
getLabel()
getLabel
|
String |
getOwnerName()
getOwnerName
|
File |
getResourceDir(RrdRepository repository)
getResourceDir
|
TimeKeeper |
getTimeKeeper()
Returns a not-null time tracker instance when this resource requires to use a special timestamp when updating RRDs/JRBs.
|
abstract int |
getType()
getType
|
abstract boolean |
rescanNeeded()
rescanNeeded
|
abstract boolean |
shouldPersist(ServiceParameters params)
shouldPersist
|
void |
visit(CollectionSetVisitor visitor)
visit
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance, getParent, getResourceTypeName
protected CollectionAgent m_agent
protected AbstractCollectionResource(CollectionAgent agent)
Constructor for AbstractCollectionResource.
agent
- a CollectionAgent
object.public String getOwnerName()
getOwnerName
getOwnerName
in interface ResourceIdentifier
String
object.public File getResourceDir(RrdRepository repository)
getResourceDir
getResourceDir
in interface ResourceIdentifier
repository
- a RrdRepository
object.File
object.protected void addAttribute(CollectionAttribute attr)
attr
- The Attribute to addprotected AttributeGroup getGroup(AttributeGroupType groupType)
groupType
- a AttributeGroupType
object.AttributeGroup
object.public void visit(CollectionSetVisitor visitor)
visit
visit
in interface CollectionResource
visitor
- a org.opennms.netmgt.collectd.CollectionSetVisitor
object.public abstract int getType()
getType
getType
in interface CollectionResource
public abstract boolean rescanNeeded()
rescanNeeded
rescanNeeded
in interface CollectionResource
public abstract boolean shouldPersist(ServiceParameters params)
shouldPersist
shouldPersist
in interface CollectionResource
params
- a org.opennms.netmgt.collectd.ServiceParameters
object.public String getLabel()
getLabel
getLabel
in interface CollectionResource
String
object.public TimeKeeper getTimeKeeper()
CollectionResource
getTimeKeeper
in interface CollectionResource
TimeKeeper
object.Copyright © 2015. All Rights Reserved.