public class OnmsSnmpCollection extends Object
createCollectionSet(org.opennms.netmgt.collectd.SnmpCollectionAgent)
and to provide
data to CollectionSet and other classes that are created during
collection.Constructor and Description |
---|
OnmsSnmpCollection(SnmpCollectionAgent agent,
ServiceParameters params,
DataCollectionConfigDao config,
LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.
|
OnmsSnmpCollection(SnmpCollectionAgent agent,
ServiceParameters params,
LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.
|
public OnmsSnmpCollection(SnmpCollectionAgent agent, ServiceParameters params, LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.
agent
- a CollectionAgent
object.params
- a ServiceParameters
object.public OnmsSnmpCollection(SnmpCollectionAgent agent, ServiceParameters params, DataCollectionConfigDao config, LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.
agent
- a CollectionAgent
object.params
- a ServiceParameters
object.config
- a DataCollectionConfigDao
object.public ServiceParameters getServiceParameters()
getServiceParameters
ServiceParameters
object.public int getSnmpPort(int current)
getSnmpPort
current
- a int.public int getSnmpRetries(int current)
getSnmpRetries
current
- a int.public int getSnmpTimeout(int current)
getSnmpTimeout
current
- a int.public InetAddress getSnmpProxyFor(InetAddress current)
getSnmpProxyFor
current
- a InetAddress
object.InetAddress
object.public int getSnmpVersion(int current)
getSnmpVersion
current
- a int.public int getSnmpMaxVarsPerPdu(int current)
getSnmpMaxVarsPerPdu
current
- a int.public int getSnmpMaxRepetitions(int current)
getSnmpMaxRepetitions
current
- a int.public int getSnmpMaxRequestSize(int current)
getSnmpMaxRequestSize
current
- a int.public void setDataCollectionConfigDao(DataCollectionConfigDao config)
setDataCollectionConfig
config
- a DataCollectionConfigDao
object.public String toString()
toString
public SnmpCollectionSet createCollectionSet(SnmpCollectionAgent agent)
createCollectionSet
agent
- a CollectionAgent
object.SnmpCollectionSet
object.public List<SnmpAttributeType> getIndexedAttributeTypesForResourceType(SnmpCollectionAgent agent, ResourceType resourceType)
getIndexedAttributeTypesForResourceType
agent
- a CollectionAgent
object.resourceType
- a ResourceType
object.List
object.public List<SnmpAttributeType> getNodeAttributeTypes(SnmpCollectionAgent agent)
getNodeAttributeTypes
agent
- a CollectionAgent
object.List
object.public List<SnmpAttributeType> loadAttributeTypes(SnmpCollectionAgent agent, int ifType)
loadAttributeTypes
agent
- a CollectionAgent
object.ifType
- a int.List
object.public ResourceType getResourceType(SnmpCollectionAgent agent, String instanceName)
getResourceType
agent
- a CollectionAgent
object.instanceName
- a String
object.ResourceType
object.public NodeResourceType getNodeResourceType(SnmpCollectionAgent agent)
getNodeResourceType
agent
- a CollectionAgent
object.NodeResourceType
object.public IfResourceType getIfResourceType(SnmpCollectionAgent agent)
getIfResourceType
agent
- a CollectionAgent
object.IfResourceType
object.public IfAliasResourceType getIfAliasResourceType(SnmpCollectionAgent agent)
getIfAliasResourceType
agent
- a CollectionAgent
object.IfAliasResourceType
object.public Collection<ResourceType> getGenericIndexResourceTypes(SnmpCollectionAgent agent)
getGenericIndexResourceTypes
agent
- a CollectionAgent
object.Collection
object.public Collection<SnmpAttributeType> getAttributeTypes(SnmpCollectionAgent agent)
getAttributeTypes
agent
- a CollectionAgent
object.Collection
object.public Collection<? extends CollectionResource> getResources(SnmpCollectionAgent agent)
getResources
agent
- a CollectionAgent
object.Collection
object.public List<SnmpAttributeType> loadAliasAttributeTypes(SnmpCollectionAgent agent)
loadAliasAttributeTypes
agent
- a CollectionAgent
object.List
object.public List<SnmpAttributeType> getAliasAttributeTypes(SnmpCollectionAgent agent)
getAliasAttributeTypes
agent
- a CollectionAgent
object.List
object.Copyright © 2021. All rights reserved.