public class PersistOperationBuilder extends Object
PersistOperationBuilder class.
Modifier and Type | Field and Description |
---|---|
static int |
MAX_DS_NAME_LENGTH
Constant
MAX_DS_NAME_LENGTH=19 |
Constructor and Description |
---|
PersistOperationBuilder(RrdRepository repository,
ResourceIdentifier resource,
String rrdName)
Constructor for PersistOperationBuilder.
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
commit
|
void |
declareAttribute(CollectionAttributeType attrType)
declareAttribute
|
String |
getName()
getName
|
RrdRepository |
getRepository()
getRepository
|
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.
|
void |
setAttributeMetadata(String metricIdentifier,
String name) |
void |
setAttributeValue(CollectionAttributeType attrType,
String value)
setAttributeValue
|
void |
setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
|
public static final int MAX_DS_NAME_LENGTH
MAX_DS_NAME_LENGTH=19
public PersistOperationBuilder(RrdRepository repository, ResourceIdentifier resource, String rrdName)
Constructor for PersistOperationBuilder.
repository
- a RrdRepository
object.resource
- a ResourceIdentifier
object.rrdName
- a String
object.public RrdRepository getRepository()
getRepository
RrdRepository
object.public void declareAttribute(CollectionAttributeType attrType)
declareAttribute
attrType
- a CollectionAttributeType
object.public void setAttributeValue(CollectionAttributeType attrType, String value)
setAttributeValue
attrType
- a CollectionAttributeType
object.value
- a String
object.public static String mapType(String objectType)
objectType
- -
MIB object type to be mapped.public void commit() throws RrdException
commit
RrdException
- if any.public TimeKeeper getTimeKeeper()
getTimeKeeper
TimeKeeper
object.public void setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
timeKeeper
- a TimeKeeper
object.Copyright © 2015. All rights reserved.