org.opennms.netmgt.collectd
Interface CollectionResource

All Superinterfaces:
ResourceIdentifier
All Known Implementing Classes:
AbstractCollectionResource, AliasedResource, GenericIndexResource, SnmpCollectionResource

public interface CollectionResource
extends ResourceIdentifier


Method Summary
 String getInstance()
          Returns the name of the instance this CollectionResource represents.
 String getResourceTypeName()
          Returns a string which indicates what type of resource.
 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.
 boolean rescanNeeded()
           
 boolean shouldPersist(ServiceParameters params)
           
 void visit(CollectionSetVisitor visitor)
           
 
Methods inherited from interface org.opennms.netmgt.collectd.ResourceIdentifier
getOwnerName, getResourceDir
 

Method Detail

shouldPersist

boolean shouldPersist(ServiceParameters params)

rescanNeeded

boolean rescanNeeded()

visit

void visit(CollectionSetVisitor visitor)

getType

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. Relates to ifType in datacollection-config.xml

Returns:

getResourceTypeName

String getResourceTypeName()
Returns a string which indicates what type of resource. Will be one of "node" for the node level resource "if" for network interface resources "*" for all other resource types defined in the relevant config files, e.g. hrStorage

Returns:

getInstance

String getInstance()
Returns the name of the instance this CollectionResource represents. For node level resources, this will be null to indicate the default instance. For interface level resources, some label unique to the node (ifIndex probably) For Generic resources (e.g. the SNMP GenericIndexResource), this will be some identifying label, probably the index in the table

Returns:


Copyright © 2009. All Rights Reserved.