org.opennms.netmgt.collectd
Class ResourceType

java.lang.Object
  extended by org.opennms.netmgt.collectd.ResourceType
Direct Known Subclasses:
GenericIndexResourceType, IfAliasResourceType, IfResourceType, NodeResourceType

public abstract class ResourceType
extends Object


Constructor Summary
ResourceType(CollectionAgent agent, OnmsSnmpCollection snmpCollection)
           
 
Method Summary
abstract  SnmpCollectionResource findAliasedResource(SnmpInstId inst, String ifAlias)
           
abstract  SnmpCollectionResource findResource(SnmpInstId inst)
           
 CollectionAgent getAgent()
           
 Collection<SnmpAttributeType> getAttributeTypes()
           
protected  OnmsSnmpCollection getCollection()
           
protected  String getCollectionName()
           
abstract  Collection<? extends SnmpCollectionResource> getResources()
           
protected  boolean hasDataToCollect()
           
protected abstract  Collection<SnmpAttributeType> loadAttributeTypes()
           
 Category log()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceType

public ResourceType(CollectionAgent agent,
                    OnmsSnmpCollection snmpCollection)
Method Detail

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()

findResource

public abstract SnmpCollectionResource findResource(SnmpInstId inst)

findAliasedResource

public abstract SnmpCollectionResource findAliasedResource(SnmpInstId inst,
                                                           String ifAlias)

getResources

public abstract Collection<? extends SnmpCollectionResource> getResources()

log

public Category log()


Copyright © 2009. All Rights Reserved.