public class RrdPersistOperationBuilder extends Object implements PersistOperationBuilder
PersistOperationBuilder class.
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DS_NAME_LENGTH
Constant
MAX_DS_NAME_LENGTH=19 |
| Constructor and Description |
|---|
RrdPersistOperationBuilder(RrdStrategy<?,?> rrdStrategy,
RrdRepository repository,
ResourceIdentifier resource,
String rrdName,
boolean dontReorderAttributes)
Constructor for PersistOperationBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
commit
|
void |
declareAttribute(CollectionAttributeType attrType)
declareAttribute
|
String |
getName()
getName
|
RrdRepository |
getRepository()
getRepository
|
RrdStrategy<?,?> |
getRrdStrategy() |
TimeKeeper |
getTimeKeeper()
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.
|
static String |
mapValue(Number num) |
void |
setAttributeMetadata(String metricIdentifier,
String name) |
void |
setAttributeValue(CollectionAttributeType attrType,
Number value)
setAttributeValue
|
void |
setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
|
public static final int MAX_DS_NAME_LENGTH
MAX_DS_NAME_LENGTH=19public RrdPersistOperationBuilder(RrdStrategy<?,?> rrdStrategy, RrdRepository repository, ResourceIdentifier resource, String rrdName, boolean dontReorderAttributes)
Constructor for PersistOperationBuilder.
rrdStrategy - a RrdStrategy object.repository - a RrdRepository object.resource - a ResourceIdentifier object.rrdName - a String object.public RrdStrategy<?,?> getRrdStrategy()
public RrdRepository getRepository()
getRepository
RrdRepository object.public void declareAttribute(CollectionAttributeType attrType)
declareAttribute
attrType - a CollectionAttributeType object.public void setAttributeValue(CollectionAttributeType attrType, Number value)
setAttributeValue
setAttributeValue in interface PersistOperationBuilderattrType - a CollectionAttributeType object.value - a Number object.public void setAttributeMetadata(String metricIdentifier, String name)
setAttributeMetadata in interface PersistOperationBuilderpublic static String mapType(String objectType)
objectType - -
MIB object type to be mapped.public void commit()
throws PersistException
commit
commit in interface PersistOperationBuilderPersistException - if any.public String getName()
getName
getName in interface PersistOperationBuilderString object.public TimeKeeper getTimeKeeper()
getTimeKeeper
TimeKeeper object.public void setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
timeKeeper - a TimeKeeper object.Copyright © 2020. All rights reserved.