Package org.opennms.netmgt.collectd
Class OnmsSnmpCollection
- java.lang.Object
-
- org.opennms.netmgt.collectd.OnmsSnmpCollection
-
public class OnmsSnmpCollection extends Object
Represents SNMP collection data for a single collection period. It is particularly used to create a CollectionSet for a specific remote agent withcreateCollectionSet(org.opennms.netmgt.collectd.SnmpCollectionAgent)
and to provide data to CollectionSet and other classes that are created during collection.- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description OnmsSnmpCollection(SnmpCollectionAgent agent, ServiceParameters params, DataCollectionConfigDao config, LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.OnmsSnmpCollection(SnmpCollectionAgent agent, ServiceParameters params, LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.
-
Method Summary
-
-
-
Constructor Detail
-
OnmsSnmpCollection
public OnmsSnmpCollection(SnmpCollectionAgent agent, ServiceParameters params, LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.
- Parameters:
agent
- aCollectionAgent
object.params
- aServiceParameters
object.
-
OnmsSnmpCollection
public OnmsSnmpCollection(SnmpCollectionAgent agent, ServiceParameters params, DataCollectionConfigDao config, LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.
- Parameters:
agent
- aCollectionAgent
object.params
- aServiceParameters
object.config
- aDataCollectionConfigDao
object.
-
-
Method Detail
-
getServiceParameters
public ServiceParameters getServiceParameters()
getServiceParameters
- Returns:
- a
ServiceParameters
object.
-
getSnmpPort
public int getSnmpPort(int current)
getSnmpPort
- Parameters:
current
- a int.- Returns:
- a int.
-
getSnmpRetries
public int getSnmpRetries(int current)
getSnmpRetries
- Parameters:
current
- a int.- Returns:
- a int.
-
getSnmpTimeout
public int getSnmpTimeout(int current)
getSnmpTimeout
- Parameters:
current
- a int.- Returns:
- a int.
-
getSnmpProxyFor
public InetAddress getSnmpProxyFor(InetAddress current)
getSnmpProxyFor
- Parameters:
current
- aInetAddress
object.- Returns:
- a
InetAddress
object.
-
getSnmpVersion
public int getSnmpVersion(int current)
getSnmpVersion
- Parameters:
current
- a int.- Returns:
- a int.
-
getSnmpMaxVarsPerPdu
public int getSnmpMaxVarsPerPdu(int current)
getSnmpMaxVarsPerPdu
- Parameters:
current
- a int.- Returns:
- a int.
-
getSnmpMaxRepetitions
public int getSnmpMaxRepetitions(int current)
getSnmpMaxRepetitions
- Parameters:
current
- a int.- Returns:
- a int.
-
getSnmpMaxRequestSize
public int getSnmpMaxRequestSize(int current)
getSnmpMaxRequestSize
- Parameters:
current
- a int.- Returns:
- a int.
-
setDataCollectionConfigDao
public void setDataCollectionConfigDao(DataCollectionConfigDao config)
setDataCollectionConfig
- Parameters:
config
- aDataCollectionConfigDao
object.
-
toString
public String toString()
toString
-
createCollectionSet
public SnmpCollectionSet createCollectionSet(SnmpCollectionAgent agent)
createCollectionSet
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
SnmpCollectionSet
object.
-
getIndexedAttributeTypesForResourceType
public List<SnmpAttributeType> getIndexedAttributeTypesForResourceType(SnmpCollectionAgent agent, ResourceType resourceType)
getIndexedAttributeTypesForResourceType
- Parameters:
agent
- aCollectionAgent
object.resourceType
- aResourceType
object.- Returns:
- a
List
object.
-
getNodeAttributeTypes
public List<SnmpAttributeType> getNodeAttributeTypes(SnmpCollectionAgent agent)
getNodeAttributeTypes
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
List
object.
-
loadAttributeTypes
public List<SnmpAttributeType> loadAttributeTypes(SnmpCollectionAgent agent, int ifType)
loadAttributeTypes
- Parameters:
agent
- aCollectionAgent
object.ifType
- a int.- Returns:
- a
List
object.
-
getResourceType
public ResourceType getResourceType(SnmpCollectionAgent agent, String instanceName)
getResourceType
- Parameters:
agent
- aCollectionAgent
object.instanceName
- aString
object.- Returns:
- a
ResourceType
object.
-
getNodeResourceType
public NodeResourceType getNodeResourceType(SnmpCollectionAgent agent)
getNodeResourceType
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
NodeResourceType
object.
-
getIfResourceType
public IfResourceType getIfResourceType(SnmpCollectionAgent agent)
getIfResourceType
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
IfResourceType
object.
-
getIfAliasResourceType
public IfAliasResourceType getIfAliasResourceType(SnmpCollectionAgent agent)
getIfAliasResourceType
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
IfAliasResourceType
object.
-
getGenericIndexResourceTypes
public Collection<ResourceType> getGenericIndexResourceTypes(SnmpCollectionAgent agent)
getGenericIndexResourceTypes
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
Collection
object.
-
getAttributeTypes
public Collection<SnmpAttributeType> getAttributeTypes(SnmpCollectionAgent agent)
getAttributeTypes
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
Collection
object.
-
getResources
public Collection<? extends CollectionResource> getResources(SnmpCollectionAgent agent)
getResources
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
Collection
object.
-
loadAliasAttributeTypes
public List<SnmpAttributeType> loadAliasAttributeTypes(SnmpCollectionAgent agent)
loadAliasAttributeTypes
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
List
object.
-
getAliasAttributeTypes
public List<SnmpAttributeType> getAliasAttributeTypes(SnmpCollectionAgent agent)
getAliasAttributeTypes
- Parameters:
agent
- aCollectionAgent
object.- Returns:
- a
List
object.
-
-