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 with createCollectionSet(org.opennms.netmgt.collectd.CollectionAgent) and to provide
data to CollectionSet and other classes that are created during
collection.
OnmsSnmpCollection
public OnmsSnmpCollection(CollectionAgent agent,
ServiceParameters params)
OnmsSnmpCollection
public OnmsSnmpCollection(CollectionAgent agent,
ServiceParameters params,
DataCollectionConfig config)
getServiceParameters
public ServiceParameters getServiceParameters()
getName
public String getName()
getSnmpPort
public int getSnmpPort(int current)
getSnmpRetries
public int getSnmpRetries(int current)
getSnmpTimeout
public int getSnmpTimeout(int current)
getSnmpReadCommunity
public String getSnmpReadCommunity(String current)
getSnmpWriteCommunity
public String getSnmpWriteCommunity(String current)
getSnmpProxyFor
public InetAddress getSnmpProxyFor(InetAddress current)
getSnmpVersion
public int getSnmpVersion(int current)
getSnmpMaxVarsPerPdu
public int getSnmpMaxVarsPerPdu(int current)
getSnmpMaxRepetitions
public int getSnmpMaxRepetitions(int current)
getSnmpMaxRequestSize
public int getSnmpMaxRequestSize(int current)
getSnmpSecurityName
public String getSnmpSecurityName(String current)
getSnmpAuthPassPhrase
public String getSnmpAuthPassPhrase(String current)
getSnmpAuthProtocol
public String getSnmpAuthProtocol(String current)
getSnmpPrivPassPhrase
public String getSnmpPrivPassPhrase(String current)
getSnmpPrivProtocol
public String getSnmpPrivProtocol(String current)
log
public Category log()
setDataCollectionConfig
public void setDataCollectionConfig(DataCollectionConfig config)
getStorageFlag
public String getStorageFlag()
toString
public String toString()
- Overrides:
toString in class Object
createCollectionSet
public SnmpCollectionSet createCollectionSet(CollectionAgent agent)
getIndexedAttributeTypesForResourceType
public List<SnmpAttributeType> getIndexedAttributeTypesForResourceType(CollectionAgent agent,
ResourceType resourceType)
getNodeAttributeTypes
public List<SnmpAttributeType> getNodeAttributeTypes(CollectionAgent agent)
loadAttributeTypes
public List<SnmpAttributeType> loadAttributeTypes(CollectionAgent agent,
int ifType)
getResourceType
public ResourceType getResourceType(CollectionAgent agent,
String instanceName)
getNodeResourceType
public NodeResourceType getNodeResourceType(CollectionAgent agent)
getIfResourceType
public IfResourceType getIfResourceType(CollectionAgent agent)
getIfAliasResourceType
public IfAliasResourceType getIfAliasResourceType(CollectionAgent agent)
getGenericIndexResourceTypes
public Collection<ResourceType> getGenericIndexResourceTypes(CollectionAgent agent)
getAttributeTypes
public Collection<SnmpAttributeType> getAttributeTypes(CollectionAgent agent)
getResources
public Collection<? extends CollectionResource> getResources(CollectionAgent agent)
loadAliasAttributeTypes
public List<SnmpAttributeType> loadAliasAttributeTypes(CollectionAgent agent)
getAliasAttributeTypes
public List<SnmpAttributeType> getAliasAttributeTypes(CollectionAgent agent)
Copyright © 2009. All Rights Reserved.