org.opennms.netmgt.collectd
Class SnmpCollectionResource
java.lang.Object
org.opennms.netmgt.collectd.SnmpCollectionResource
- All Implemented Interfaces:
- CollectionResource, ResourceIdentifier
- Direct Known Subclasses:
- AliasedResource, GenericIndexResource
public abstract class SnmpCollectionResource
- extends Object
- implements CollectionResource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnmpCollectionResource
public SnmpCollectionResource(ResourceType def)
getResourceType
public ResourceType getResourceType()
getCollectionAgent
public final CollectionAgent getCollectionAgent()
shouldPersist
public abstract boolean shouldPersist(ServiceParameters params)
- Specified by:
shouldPersist in interface CollectionResource
getOwnerName
public String getOwnerName()
- Specified by:
getOwnerName in interface ResourceIdentifier
getResourceDir
public abstract File getResourceDir(RrdRepository repository)
- Specified by:
getResourceDir in interface ResourceIdentifier
getType
public abstract int getType()
- Description copied from interface:
CollectionResource
- Returns something like an ifType; is (but not sure if it should be) -1 for non interface type collections, otherwise
the SNMP type of the interface. Relates to ifType in datacollection-config.xml
- Specified by:
getType in interface CollectionResource
- Returns:
log
public Category log()
rescanNeeded
public boolean rescanNeeded()
- Specified by:
rescanNeeded in interface CollectionResource
setAttributeValue
public void setAttributeValue(SnmpAttributeType type,
SnmpValue val)
visit
public void visit(CollectionSetVisitor visitor)
- Specified by:
visit in interface CollectionResource
getGroups
protected Collection<AttributeGroup> getGroups()
Copyright © 2009. All Rights Reserved.