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, org.opennms.netmgt.config.DataCollectionConfig config)
           
 
Method Summary
 CollectionSet createCollectionSet(CollectionAgent agent)
           
 List<AttributeType> getAliasAttributeTypes(CollectionAgent agent)
           
 Collection<AttributeType> getAttributeTypes(CollectionAgent agent)
           
 Collection<ResourceType> getGenericIndexResourceTypes(CollectionAgent agent)
           
 IfAliasResourceType getIfAliasResourceType(CollectionAgent agent)
           
 IfResourceType getIfResourceType(CollectionAgent agent)
           
 List<AttributeType> getIndexedAttributeTypesForResourceType(CollectionAgent agent, ResourceType resourceType)
           
 int getMaxRepetitions(int maxRepetitions)
           
 String getName()
           
 List<AttributeType> getNodeAttributeTypes(CollectionAgent agent)
           
 NodeResourceType getNodeResourceType(CollectionAgent agent)
           
 String getReadCommunity(String current)
           
 Collection<? extends CollectionResource> getResources(CollectionAgent agent)
           
 ResourceType getResourceType(CollectionAgent agent, String instanceName)
           
 ServiceParameters getServiceParameters()
           
 int getSnmpPort()
           
 String getStorageFlag()
           
 List<AttributeType> loadAliasAttributeTypes(CollectionAgent agent)
           
 List<AttributeType> loadAttributeTypes(CollectionAgent agent, int ifType)
           
 Category log()
           
 void setDataCollectionConfig(org.opennms.netmgt.config.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,
                          org.opennms.netmgt.config.DataCollectionConfig config)
Method Detail

getServiceParameters

public ServiceParameters getServiceParameters()

getName

public String getName()

getSnmpPort

public int getSnmpPort()

getReadCommunity

public String getReadCommunity(String current)

getMaxRepetitions

public int getMaxRepetitions(int maxRepetitions)

log

public Category log()

setDataCollectionConfig

public void setDataCollectionConfig(org.opennms.netmgt.config.DataCollectionConfig config)

getStorageFlag

public String getStorageFlag()

toString

public String toString()
Overrides:
toString in class Object

createCollectionSet

public CollectionSet createCollectionSet(CollectionAgent agent)

getIndexedAttributeTypesForResourceType

public List<AttributeType> getIndexedAttributeTypesForResourceType(CollectionAgent agent,
                                                                   ResourceType resourceType)

getNodeAttributeTypes

public List<AttributeType> getNodeAttributeTypes(CollectionAgent agent)

loadAttributeTypes

public List<AttributeType> 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<AttributeType> getAttributeTypes(CollectionAgent agent)

getResources

public Collection<? extends CollectionResource> getResources(CollectionAgent agent)

loadAliasAttributeTypes

public List<AttributeType> loadAliasAttributeTypes(CollectionAgent agent)

getAliasAttributeTypes

public List<AttributeType> getAliasAttributeTypes(CollectionAgent agent)


Copyright ? 2007. All Rights Reserved.