Package org.opennms.netmgt.collectd
Class IfResourceType
- java.lang.Object
-
- org.opennms.netmgt.collectd.ResourceType
-
- org.opennms.netmgt.collectd.IfResourceType
-
public class IfResourceType extends ResourceType
IfResourceType class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description IfResourceType(SnmpCollectionAgent agent, OnmsSnmpCollection snmpCollection)
Constructor for IfResourceType.
-
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<IfInfo>
getResources()
getResourcesprotected java.util.Collection<SnmpAttributeType>
loadAttributeTypes()
loadAttributeTypes-
Methods inherited from class org.opennms.netmgt.collectd.ResourceType
getAgent, getAttributeTypes, getCollection, getCollectionName, hasDataToCollect
-
-
-
-
Constructor Detail
-
IfResourceType
public IfResourceType(SnmpCollectionAgent agent, OnmsSnmpCollection snmpCollection)
Constructor for IfResourceType.
- Parameters:
agent
- aCollectionAgent
object.snmpCollection
- aOnmsSnmpCollection
object.
-
-
Method Detail
-
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.
-
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.
-
getResources
public java.util.Collection<IfInfo> getResources()
getResources
- Specified by:
getResources
in classResourceType
- Returns:
- a
Collection
object.
-
loadAttributeTypes
protected java.util.Collection<SnmpAttributeType> loadAttributeTypes()
loadAttributeTypes
- Specified by:
loadAttributeTypes
in classResourceType
- Returns:
- a
Collection
object.
-
-