public class IfAliasResourceType extends ResourceType
IfAliasResourceType class.
Constructor and Description |
---|
IfAliasResourceType(SnmpCollectionAgent agent,
OnmsSnmpCollection snmpCollection,
ServiceParameters params,
IfResourceType ifResourceType)
Constructor for IfAliasResourceType.
|
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<AliasedResource> |
getResources()
getResources
|
Collection<SnmpAttributeType> |
loadAttributeTypes()
loadAttributeTypes
|
String |
toString() |
getAgent, getAttributeTypes, getCollection, getCollectionName, hasDataToCollect
public IfAliasResourceType(SnmpCollectionAgent agent, OnmsSnmpCollection snmpCollection, ServiceParameters params, IfResourceType ifResourceType)
Constructor for IfAliasResourceType.
agent
- a CollectionAgent
object.snmpCollection
- a OnmsSnmpCollection
object.params
- a ServiceParameters
object.ifResourceType
- a IfResourceType
object.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 SnmpInstId[] getCollectionInstances()
getCollectionInstances
in class ResourceType
SnmpInstId
objects.public Collection<SnmpAttributeType> loadAttributeTypes()
loadAttributeTypes
loadAttributeTypes
in class ResourceType
Collection
object.public Collection<AliasedResource> getResources()
getResources
getResources
in class ResourceType
Collection
object.Copyright © 2017. All rights reserved.