public class TimeseriesPersistOperationBuilder extends Object implements PersistOperationBuilder
TimeseriesWriter
on commit()
.Constructor and Description |
---|
TimeseriesPersistOperationBuilder(TimeseriesWriter writer,
RrdRepository repository,
ResourceIdentifier resource,
String name,
Map<String,String> metaTags,
com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Persists the attribute values and meta-data.
|
String |
getName()
Used to identify the builder in log messages in an exception is thrown during a call to commit().
|
List<org.opennms.integration.api.v1.timeseries.Sample> |
getSamplesToIndex() |
List<org.opennms.integration.api.v1.timeseries.Sample> |
getSamplesToInsert() |
void |
persistStringAttribute(ResourcePath path,
String key,
String value) |
void |
setAttributeMetadata(String metricIdentifier,
String name) |
void |
setAttributeValue(CollectionAttributeType attributeType,
Number value) |
void |
setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
|
public TimeseriesPersistOperationBuilder(TimeseriesWriter writer, RrdRepository repository, ResourceIdentifier resource, String name, Map<String,String> metaTags, com.codahale.metrics.MetricRegistry metricRegistry)
public String getName()
PersistOperationBuilder
getName
in interface PersistOperationBuilder
public void setAttributeValue(CollectionAttributeType attributeType, Number value)
setAttributeValue
in interface PersistOperationBuilder
public void persistStringAttribute(ResourcePath path, String key, String value)
public void setAttributeMetadata(String metricIdentifier, String name)
setAttributeMetadata
in interface PersistOperationBuilder
public void commit()
PersistOperationBuilder
commit
in interface PersistOperationBuilder
public List<org.opennms.integration.api.v1.timeseries.Sample> getSamplesToInsert()
public List<org.opennms.integration.api.v1.timeseries.Sample> getSamplesToIndex()
public void setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
timeKeeper
- a TimeKeeper
object.Copyright © 2021. All rights reserved.