org.opennms.netmgt.collectd
Class IfAliasResourceType

java.lang.Object
  extended by org.opennms.netmgt.collectd.ResourceType
      extended by org.opennms.netmgt.collectd.IfAliasResourceType

public class IfAliasResourceType
extends ResourceType


Constructor Summary
IfAliasResourceType(CollectionAgent agent, OnmsSnmpCollection snmpCollection, ServiceParameters params, IfResourceType ifResourceType)
           
 
Method Summary
 SnmpCollectionResource findAliasedResource(org.opennms.netmgt.snmp.SnmpInstId inst, String ifAlias)
           
 SnmpCollectionResource findResource(org.opennms.netmgt.snmp.SnmpInstId inst)
           
 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.
 Collection<AliasedResource> getResources()
           
 Collection<SnmpAttributeType> loadAttributeTypes()
           
 
Methods inherited from class org.opennms.netmgt.collectd.ResourceType
getAgent, getAttributeTypes, getCollection, getCollectionName, hasDataToCollect, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfAliasResourceType

public IfAliasResourceType(CollectionAgent agent,
                           OnmsSnmpCollection snmpCollection,
                           ServiceParameters params,
                           IfResourceType ifResourceType)
Method Detail

findResource

public SnmpCollectionResource findResource(org.opennms.netmgt.snmp.SnmpInstId inst)
Specified by:
findResource in class ResourceType

findAliasedResource

public SnmpCollectionResource findAliasedResource(org.opennms.netmgt.snmp.SnmpInstId inst,
                                                  String ifAlias)
Specified by:
findAliasedResource in class ResourceType

getCollectionInstances

public org.opennms.netmgt.snmp.SnmpInstId[] getCollectionInstances()
Description copied from class: ResourceType
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.

Overrides:
getCollectionInstances in class ResourceType

loadAttributeTypes

public Collection<SnmpAttributeType> loadAttributeTypes()
Specified by:
loadAttributeTypes in class ResourceType

getResources

public Collection<AliasedResource> getResources()
Specified by:
getResources in class ResourceType


Copyright © 2009. All Rights Reserved.