org.opennms.netmgt.collectd
Class PersistOperationBuilder

java.lang.Object
  extended by org.opennms.netmgt.collectd.PersistOperationBuilder

public class PersistOperationBuilder
extends java.lang.Object


Field Summary
static int MAX_DS_NAME_LENGTH
           
 
Constructor Summary
PersistOperationBuilder(org.opennms.netmgt.model.RrdRepository repository, ResourceIdentifier resource, java.lang.String rrdName)
           
 
Method Summary
 void commit()
           
 void declareAttribute(AttributeDefinition attrType)
           
 java.lang.String getName()
           
 org.opennms.netmgt.model.RrdRepository getRepository()
           
static java.lang.String mapType(java.lang.String objectType)
          Static method which takes a MIB object type (counter, counter32, octetstring, etc...) and returns the appropriate RRD data type.
 void setAttributeValue(AttributeDefinition attrType, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_DS_NAME_LENGTH

public static final int MAX_DS_NAME_LENGTH
See Also:
Constant Field Values
Constructor Detail

PersistOperationBuilder

public PersistOperationBuilder(org.opennms.netmgt.model.RrdRepository repository,
                               ResourceIdentifier resource,
                               java.lang.String rrdName)
Method Detail

getRepository

public org.opennms.netmgt.model.RrdRepository getRepository()

declareAttribute

public void declareAttribute(AttributeDefinition attrType)

setAttributeValue

public void setAttributeValue(AttributeDefinition attrType,
                              java.lang.String value)

mapType

public static java.lang.String mapType(java.lang.String objectType)
Static method which takes a MIB object type (counter, counter32, octetstring, etc...) and returns the appropriate RRD data type. If the object type cannot be mapped to an RRD type, null is returned. RRD only supports integer data so MIB objects of type 'octetstring' are not supported.

Parameters:
objectType - - MIB object type to be mapped.
Returns:
RRD type string or NULL object type is not supported.

commit

public void commit()
            throws org.opennms.netmgt.rrd.RrdException
Throws:
org.opennms.netmgt.rrd.RrdException

getName

public java.lang.String getName()


Copyright © 2007. All Rights Reserved.