public abstract class ResourceType extends Object
Abstract ResourceType class.
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ResourceType(SnmpCollectionAgent agent,
OnmsSnmpCollection snmpCollection)
Constructor for ResourceType.
|
Modifier and Type | Method and Description |
---|---|
abstract SnmpCollectionResource |
findAliasedResource(SnmpInstId inst,
String ifAlias)
findAliasedResource
|
abstract SnmpCollectionResource |
findResource(SnmpInstId inst)
findResource
|
SnmpCollectionAgent |
getAgent()
getAgent
|
Collection<SnmpAttributeType> |
getAttributeTypes()
getAttributeTypes
|
protected OnmsSnmpCollection |
getCollection()
getCollection
|
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.
|
protected String |
getCollectionName()
getCollectionName
|
abstract Collection<? extends SnmpCollectionResource> |
getResources()
getResources
|
protected boolean |
hasDataToCollect()
hasDataToCollect
|
protected abstract Collection<SnmpAttributeType> |
loadAttributeTypes()
loadAttributeTypes
|
public ResourceType(SnmpCollectionAgent agent, OnmsSnmpCollection snmpCollection)
Constructor for ResourceType.
agent
- a CollectionAgent
object.snmpCollection
- a OnmsSnmpCollection
object.public SnmpCollectionAgent getAgent()
getAgent
CollectionAgent
object.protected OnmsSnmpCollection getCollection()
getCollection
OnmsSnmpCollection
object.public final Collection<SnmpAttributeType> getAttributeTypes()
getAttributeTypes
Collection
object.protected abstract Collection<SnmpAttributeType> loadAttributeTypes()
loadAttributeTypes
Collection
object.protected boolean hasDataToCollect()
hasDataToCollect
public SnmpInstId[] getCollectionInstances()
SnmpInstId
objects.public abstract SnmpCollectionResource findResource(SnmpInstId inst)
findResource
inst
- a SnmpInstId
object.SnmpCollectionResource
object.public abstract SnmpCollectionResource findAliasedResource(SnmpInstId inst, String ifAlias)
findAliasedResource
inst
- a SnmpInstId
object.ifAlias
- a String
object.SnmpCollectionResource
object.public abstract Collection<? extends SnmpCollectionResource> getResources()
getResources
Collection
object.Copyright © 2016. All rights reserved.