org.opennms.netmgt.collectd
Class PersistOperationBuilder

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

public class PersistOperationBuilder
extends Object


Field Summary
static int MAX_DS_NAME_LENGTH
           
 
Constructor Summary
PersistOperationBuilder(RrdRepository repository, ResourceIdentifier resource, String rrdName)
           
 
Method Summary
 void commit()
           
 void declareAttribute(AttributeDefinition attrType)
           
 String getName()
           
 RrdRepository getRepository()
           
 TimeKeeper getTimeKeeper()
           
static String mapType(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, String value)
           
 void setTimeKeeper(TimeKeeper timeKeeper)
           
 
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(RrdRepository repository,
                               ResourceIdentifier resource,
                               String rrdName)
Method Detail

getRepository

public RrdRepository getRepository()

declareAttribute

public void declareAttribute(AttributeDefinition attrType)

setAttributeValue

public void setAttributeValue(AttributeDefinition attrType,
                              String value)

mapType

public static String mapType(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 RrdException
Throws:
RrdException

getName

public String getName()

getTimeKeeper

public TimeKeeper getTimeKeeper()

setTimeKeeper

public void setTimeKeeper(TimeKeeper timeKeeper)


Copyright © 2009. All Rights Reserved.