public class IfResourceType extends ResourceType
IfResourceType class.
Constructor and Description |
---|
IfResourceType(SnmpCollectionAgent agent,
OnmsSnmpCollection snmpCollection)
Constructor for IfResourceType.
|
Modifier and Type | Method and Description |
---|---|
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<IfInfo> |
getResources()
getResources
|
protected Collection<SnmpAttributeType> |
loadAttributeTypes()
loadAttributeTypes
|
getAgent, getAttributeTypes, getCollection, getCollectionName, hasDataToCollect
public IfResourceType(SnmpCollectionAgent agent, OnmsSnmpCollection snmpCollection)
Constructor for IfResourceType.
agent
- a CollectionAgent
object.snmpCollection
- a OnmsSnmpCollection
object.public SnmpInstId[] getCollectionInstances()
getCollectionInstances
in class ResourceType
SnmpInstId
objects.public SnmpCollectionResource findResource(SnmpInstId inst)
findResource
findResource
in class ResourceType
inst
- a SnmpInstId
object.SnmpCollectionResource
object.public SnmpCollectionResource findAliasedResource(SnmpInstId inst, String ifAlias)
findAliasedResource
findAliasedResource
in class ResourceType
inst
- a SnmpInstId
object.ifAlias
- a String
object.SnmpCollectionResource
object.public Collection<IfInfo> getResources()
getResources
getResources
in class ResourceType
Collection
object.protected Collection<SnmpAttributeType> loadAttributeTypes()
loadAttributeTypes
loadAttributeTypes
in class ResourceType
Collection
object.Copyright © 2020. All rights reserved.