org.opennms.netmgt.collectd
Class OnmsSnmpCollection

java.lang.Object
  extended by 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.


Constructor Summary
OnmsSnmpCollection(CollectionAgent agent, ServiceParameters params)
           
OnmsSnmpCollection(CollectionAgent agent, ServiceParameters params, DataCollectionConfig config)
           
 
Method Summary
 SnmpCollectionSet createCollectionSet(CollectionAgent agent)
           
 List<SnmpAttributeType> getAliasAttributeTypes(CollectionAgent agent)
           
 Collection<SnmpAttributeType> getAttributeTypes(CollectionAgent agent)
           
 Collection<ResourceType> getGenericIndexResourceTypes(CollectionAgent agent)
           
 IfAliasResourceType getIfAliasResourceType(CollectionAgent agent)
           
 IfResourceType getIfResourceType(CollectionAgent agent)
           
 List<SnmpAttributeType> getIndexedAttributeTypesForResourceType(CollectionAgent agent, ResourceType resourceType)
           
 String getName()
           
 List<SnmpAttributeType> getNodeAttributeTypes(CollectionAgent agent)
           
 NodeResourceType getNodeResourceType(CollectionAgent agent)
           
 Collection<? extends CollectionResource> getResources(CollectionAgent agent)
           
 ResourceType getResourceType(CollectionAgent agent, String instanceName)
           
 ServiceParameters getServiceParameters()
           
 String getSnmpAuthPassPhrase(String current)
           
 String getSnmpAuthProtocol(String current)
           
 int getSnmpMaxRepetitions(int current)
           
 int getSnmpMaxRequestSize(int current)
           
 int getSnmpMaxVarsPerPdu(int current)
           
 int getSnmpPort(int current)
           
 String getSnmpPrivPassPhrase(String current)
           
 String getSnmpPrivProtocol(String current)
           
 InetAddress getSnmpProxyFor(InetAddress current)
           
 String getSnmpReadCommunity(String current)
           
 int getSnmpRetries(int current)
           
 String getSnmpSecurityName(String current)
           
 int getSnmpTimeout(int current)
           
 int getSnmpVersion(int current)
           
 String getSnmpWriteCommunity(String current)
           
 String getStorageFlag()
           
 List<SnmpAttributeType> loadAliasAttributeTypes(CollectionAgent agent)
           
 List<SnmpAttributeType> loadAttributeTypes(CollectionAgent agent, int ifType)
           
 Category log()
           
 void setDataCollectionConfig(DataCollectionConfig config)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnmsSnmpCollection

public OnmsSnmpCollection(CollectionAgent agent,
                          ServiceParameters params)

OnmsSnmpCollection

public OnmsSnmpCollection(CollectionAgent agent,
                          ServiceParameters params,
                          DataCollectionConfig config)
Method Detail

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.