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- aCollectionAgentobject.params- aServiceParametersobject.
-
OnmsSnmpCollection
public OnmsSnmpCollection(SnmpCollectionAgent agent, ServiceParameters params, DataCollectionConfigDao config, LocationAwareSnmpClient client)
Constructor for OnmsSnmpCollection.
- Parameters:
agent- aCollectionAgentobject.params- aServiceParametersobject.config- aDataCollectionConfigDaoobject.
-
-
Method Detail
-
getServiceParameters
public ServiceParameters getServiceParameters()
getServiceParameters
- Returns:
- a
ServiceParametersobject.
-
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- aInetAddressobject.- Returns:
- a
InetAddressobject.
-
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- aDataCollectionConfigDaoobject.
-
toString
public String toString()
toString
-
createCollectionSet
public SnmpCollectionSet createCollectionSet(SnmpCollectionAgent agent)
createCollectionSet
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
SnmpCollectionSetobject.
-
getIndexedAttributeTypesForResourceType
public List<SnmpAttributeType> getIndexedAttributeTypesForResourceType(SnmpCollectionAgent agent, ResourceType resourceType)
getIndexedAttributeTypesForResourceType
- Parameters:
agent- aCollectionAgentobject.resourceType- aResourceTypeobject.- Returns:
- a
Listobject.
-
getNodeAttributeTypes
public List<SnmpAttributeType> getNodeAttributeTypes(SnmpCollectionAgent agent)
getNodeAttributeTypes
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
Listobject.
-
loadAttributeTypes
public List<SnmpAttributeType> loadAttributeTypes(SnmpCollectionAgent agent, int ifType)
loadAttributeTypes
- Parameters:
agent- aCollectionAgentobject.ifType- a int.- Returns:
- a
Listobject.
-
getResourceType
public ResourceType getResourceType(SnmpCollectionAgent agent, String instanceName)
getResourceType
- Parameters:
agent- aCollectionAgentobject.instanceName- aStringobject.- Returns:
- a
ResourceTypeobject.
-
getNodeResourceType
public NodeResourceType getNodeResourceType(SnmpCollectionAgent agent)
getNodeResourceType
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
NodeResourceTypeobject.
-
getIfResourceType
public IfResourceType getIfResourceType(SnmpCollectionAgent agent)
getIfResourceType
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
IfResourceTypeobject.
-
getIfAliasResourceType
public IfAliasResourceType getIfAliasResourceType(SnmpCollectionAgent agent)
getIfAliasResourceType
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
IfAliasResourceTypeobject.
-
getGenericIndexResourceTypes
public Collection<ResourceType> getGenericIndexResourceTypes(SnmpCollectionAgent agent)
getGenericIndexResourceTypes
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
Collectionobject.
-
getAttributeTypes
public Collection<SnmpAttributeType> getAttributeTypes(SnmpCollectionAgent agent)
getAttributeTypes
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
Collectionobject.
-
getResources
public Collection<? extends CollectionResource> getResources(SnmpCollectionAgent agent)
getResources
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
Collectionobject.
-
loadAliasAttributeTypes
public List<SnmpAttributeType> loadAliasAttributeTypes(SnmpCollectionAgent agent)
loadAliasAttributeTypes
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
Listobject.
-
getAliasAttributeTypes
public List<SnmpAttributeType> getAliasAttributeTypes(SnmpCollectionAgent agent)
getAliasAttributeTypes
- Parameters:
agent- aCollectionAgentobject.- Returns:
- a
Listobject.
-
-