public class SizedMetric extends Metric
Metric._FieldsmetaDataMap, metricValue, name, tags, timestamp| Constructor and Description |
|---|
SizedMetric()
Creates a default (empty)
SizedMetric. |
SizedMetric(Metric metric,
int size)
Creates a new
SizedMetric with the given metric and size. |
| Modifier and Type | Method and Description |
|---|---|
Metric |
getMetric()
Returns the metric.
|
int |
getSize()
Returns the size of this metric.
|
SizedMetric |
setMetric(Metric metric)
Sets the underlying metric.
|
SizedMetric |
setSize(int size)
Sets the underlying metric's size.
|
addToTags, clear, compareTo, deepCopy, equals, equals, fieldForId, getFieldValue, getMetricValue, getName, getTags, getTagsIterator, getTagsSize, getTimestamp, hashCode, isSet, isSetMetricValue, isSetName, isSetTags, isSetTimestamp, read, setFieldValue, setMetricValue, setMetricValueIsSet, setName, setNameIsSet, setTags, setTagsIsSet, setTimestamp, setTimestampIsSet, toString, unsetMetricValue, unsetName, unsetTags, unsetTimestamp, validate, writepublic SizedMetric(Metric metric, int size)
SizedMetric with the given metric and size.metric - the metricsize - the size of this metricpublic SizedMetric()
SizedMetric.public SizedMetric setMetric(Metric metric)
metric - the metric to setSizedMetric after setting the metricpublic SizedMetric setSize(int size)
size - the size to setSizedMetric after setting the sizepublic Metric getMetric()
public int getSize()