org.opennms.netmgt.collectd
Class ResourceType
java.lang.Object
org.opennms.netmgt.collectd.ResourceType
- Direct Known Subclasses:
- GenericIndexResourceType, IfAliasResourceType, IfResourceType, NodeResourceType
public abstract class ResourceType
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceType
public ResourceType(CollectionAgent agent,
OnmsSnmpCollection snmpCollection)
getAgent
public CollectionAgent getAgent()
getCollectionName
protected String getCollectionName()
getCollection
protected OnmsSnmpCollection getCollection()
getAttributeTypes
public final Collection<SnmpAttributeType> getAttributeTypes()
loadAttributeTypes
protected abstract Collection<SnmpAttributeType> loadAttributeTypes()
hasDataToCollect
protected boolean hasDataToCollect()
getCollectionInstances
public org.opennms.netmgt.snmp.SnmpInstId[] getCollectionInstances()
- This method returns an array of the instances that the attributes of this type should be collected for
It is used to restricting data collection to just these instances. It is useful for collecting only the
required data when a small amount of data from a large table is being collected.
findResource
public abstract SnmpCollectionResource findResource(org.opennms.netmgt.snmp.SnmpInstId inst)
findAliasedResource
public abstract SnmpCollectionResource findAliasedResource(org.opennms.netmgt.snmp.SnmpInstId inst,
String ifAlias)
getResources
public abstract Collection<? extends SnmpCollectionResource> getResources()
log
public Category log()
Copyright © 2009. All Rights Reserved.