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) |
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 RrdAttributeType |
mapType(AttributeType type)
Static method which takes a MIB object type (counter, counter32,
octetstring, etc...) and returns the appropriate RRD data type.
|
static String |
mapValue(Number num) |
static String |
mapValue(Number num,
AttributeType type) |
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=19
public RrdPersistOperationBuilder(RrdStrategy<?,?> rrdStrategy, RrdRepository repository, ResourceIdentifier resource, String rrdName, boolean dontReorderAttributes)
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 PersistOperationBuilder
attrType
- a CollectionAttributeType
object.value
- a Number
object.public void setAttributeMetadata(String metricIdentifier, String name)
setAttributeMetadata
in interface PersistOperationBuilder
public static RrdAttributeType mapType(AttributeType type)
type
- -
MIB object type to be mapped.public static String mapValue(Number num, AttributeType type)
public void commit() throws PersistException
commit
commit
in interface PersistOperationBuilder
PersistException
- if any.public String getName()
getName
getName
in interface PersistOperationBuilder
String
object.public TimeKeeper getTimeKeeper()
getTimeKeeper
TimeKeeper
object.public void setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
timeKeeper
- a TimeKeeper
object.Copyright © 2021. All rights reserved.