Package org.opennms.netmgt.collectd
Class IfAliasResourceType
- java.lang.Object
-
- org.opennms.netmgt.collectd.ResourceType
-
- org.opennms.netmgt.collectd.IfAliasResourceType
-
public class IfAliasResourceType extends ResourceType
IfAliasResourceType class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description IfAliasResourceType(SnmpCollectionAgent agent, OnmsSnmpCollection snmpCollection, ServiceParameters params, IfResourceType ifResourceType)
Constructor for IfAliasResourceType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnmpCollectionResource
findAliasedResource(SnmpInstId inst, java.lang.String ifAlias)
findAliasedResourceSnmpCollectionResource
findResource(SnmpInstId inst)
findResourceSnmpInstId[]
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.java.util.Collection<AliasedResource>
getResources()
getResourcesjava.util.Collection<SnmpAttributeType>
loadAttributeTypes()
loadAttributeTypesjava.lang.String
toString()
-
Methods inherited from class org.opennms.netmgt.collectd.ResourceType
getAgent, getAttributeTypes, getCollection, getCollectionName, hasDataToCollect
-
-
-
-
Constructor Detail
-
IfAliasResourceType
public IfAliasResourceType(SnmpCollectionAgent agent, OnmsSnmpCollection snmpCollection, ServiceParameters params, IfResourceType ifResourceType)
Constructor for IfAliasResourceType.
- Parameters:
agent
- aCollectionAgent
object.snmpCollection
- aOnmsSnmpCollection
object.params
- aServiceParameters
object.ifResourceType
- aIfResourceType
object.
-
-
Method Detail
-
findResource
public SnmpCollectionResource findResource(SnmpInstId inst)
findResource
- Specified by:
findResource
in classResourceType
- Parameters:
inst
- aSnmpInstId
object.- Returns:
- a
SnmpCollectionResource
object.
-
findAliasedResource
public SnmpCollectionResource findAliasedResource(SnmpInstId inst, java.lang.String ifAlias)
findAliasedResource
- Specified by:
findAliasedResource
in classResourceType
- Parameters:
inst
- aSnmpInstId
object.ifAlias
- aString
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 classResourceType
- Returns:
- an array of
SnmpInstId
objects.
-
loadAttributeTypes
public java.util.Collection<SnmpAttributeType> loadAttributeTypes()
loadAttributeTypes
- Specified by:
loadAttributeTypes
in classResourceType
- Returns:
- a
Collection
object.
-
getResources
public java.util.Collection<AliasedResource> getResources()
getResources
- Specified by:
getResources
in classResourceType
- Returns:
- a
Collection
object.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-