public abstract class SnmpCollectionResource extends Object implements CollectionResource
Abstract SnmpCollectionResource class.
Constructor and Description |
---|
SnmpCollectionResource(ResourceType def)
Constructor for SnmpCollectionResource.
|
Modifier and Type | Method and Description |
---|---|
CollectionAgent |
getCollectionAgent()
getCollectionAgent
|
protected Collection<AttributeGroup> |
getGroups()
getGroups
|
String |
getOwnerName()
getOwnerName
|
abstract File |
getResourceDir(RrdRepository repository)
getResourceDir
|
ResourceType |
getResourceType()
getResourceType
|
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
|
ThreadCategory |
log()
log
|
boolean |
rescanNeeded()
rescanNeeded
|
void |
setAttributeValue(SnmpAttributeType type,
SnmpValue val)
setAttributeValue
|
abstract boolean |
shouldPersist(ServiceParameters params)
shouldPersist
|
void |
visit(CollectionSetVisitor visitor)
visit
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance, getLabel, getParent, getResourceTypeName
public SnmpCollectionResource(ResourceType def)
Constructor for SnmpCollectionResource.
def
- a ResourceType
object.public ResourceType getResourceType()
getResourceType
ResourceType
object.public final CollectionAgent getCollectionAgent()
getCollectionAgent
CollectionAgent
object.public abstract boolean shouldPersist(ServiceParameters params)
shouldPersist
shouldPersist
in interface CollectionResource
params
- a org.opennms.netmgt.collectd.ServiceParameters
object.public String getOwnerName()
getOwnerName
getOwnerName
in interface ResourceIdentifier
String
object.public abstract File getResourceDir(RrdRepository repository) throws FileNotFoundException
getResourceDir
getResourceDir
in interface ResourceIdentifier
repository
- a RrdRepository
object.File
object.FileNotFoundException
public abstract int getType()
getType
getType
in interface CollectionResource
public ThreadCategory log()
log
ThreadCategory
object.public boolean rescanNeeded()
rescanNeeded
rescanNeeded
in interface CollectionResource
public void setAttributeValue(SnmpAttributeType type, SnmpValue val)
setAttributeValue
type
- a SnmpAttributeType
object.val
- a SnmpValue
object.public void visit(CollectionSetVisitor visitor)
visit
visit
in interface CollectionResource
visitor
- a org.opennms.netmgt.collectd.CollectionSetVisitor
object.protected Collection<AttributeGroup> getGroups()
getGroups
Collection
object.public TimeKeeper getTimeKeeper()
CollectionResource
getTimeKeeper
in interface CollectionResource
TimeKeeper
object.Copyright © 2015. All Rights Reserved.