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,
org.opennms.netmgt.config.DataCollectionConfig config)
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 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 ? 2008. All Rights Reserved.