org.opennms.netmgt.collectd
Class SnmpCollectionResource

java.lang.Object
  extended by org.opennms.netmgt.collectd.SnmpCollectionResource
All Implemented Interfaces:
CollectionResource, ResourceIdentifier
Direct Known Subclasses:
AliasedResource, GenericIndexResource

public abstract class SnmpCollectionResource
extends Object
implements CollectionResource


Constructor Summary
SnmpCollectionResource(ResourceType def)
           
 
Method Summary
 CollectionAgent getCollectionAgent()
           
protected  Collection<AttributeGroup> getGroups()
           
 String getOwnerName()
           
abstract  File getResourceDir(RrdRepository repository)
           
 ResourceType getResourceType()
           
abstract  int getType()
          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.
 Category log()
           
 boolean rescanNeeded()
           
 void setAttributeValue(SnmpAttributeType type, SnmpValue val)
           
abstract  boolean shouldPersist(ServiceParameters params)
           
 void visit(CollectionSetVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opennms.netmgt.collectd.CollectionResource
getInstance, getResourceTypeName
 

Constructor Detail

SnmpCollectionResource

public SnmpCollectionResource(ResourceType def)
Method Detail

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.