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

IfAliasResourceType class.

Version:
$Id: $
Author:
ranger

Constructor Summary
IfAliasResourceType(CollectionAgent agent, OnmsSnmpCollection snmpCollection, ServiceParameters params, IfResourceType ifResourceType)
          Constructor for IfAliasResourceType.
 
Method Summary
 SnmpCollectionResource findAliasedResource(SnmpInstId inst, String ifAlias)
          findAliasedResource
 SnmpCollectionResource findResource(SnmpInstId inst)
          findResource
 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()
          getResources
 Collection<SnmpAttributeType> loadAttributeTypes()
          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)

Constructor for IfAliasResourceType.

Parameters:
agent - a CollectionAgent object.
snmpCollection - a OnmsSnmpCollection object.
params - a ServiceParameters object.
ifResourceType - a IfResourceType object.
Method Detail

findResource

public SnmpCollectionResource findResource(SnmpInstId inst)

findResource

Specified by:
findResource in class ResourceType
Parameters:
inst - a SnmpInstId object.
Returns:
a SnmpCollectionResource object.

findAliasedResource

public SnmpCollectionResource findAliasedResource(SnmpInstId inst,
                                                  String ifAlias)

findAliasedResource

Specified by:
findAliasedResource in class ResourceType
Parameters:
inst - a SnmpInstId object.
ifAlias - a String object.
Returns:
a SnmpCollectionResource object.

getCollectionInstances

public 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.

Overrides:
getCollectionInstances in class ResourceType
Returns:
an array of SnmpInstId objects.

loadAttributeTypes

public Collection<SnmpAttributeType> loadAttributeTypes()

loadAttributeTypes

Specified by:
loadAttributeTypes in class ResourceType
Returns:
a Collection object.

getResources

public Collection<AliasedResource> getResources()

getResources

Specified by:
getResources in class ResourceType
Returns:
a Collection object.


Copyright © 2011. All Rights Reserved.