MetricsRecordImpl
instead.@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class MetricsRecordImpl extends Object implements org.apache.hadoop.metrics.MetricsRecord
update
and remove()
.Modifier | Constructor and Description |
---|---|
protected |
MetricsRecordImpl(String recordName,
AbstractMetricsContext context)
Deprecated.
Creates a new instance of FileRecord
|
Modifier and Type | Method and Description |
---|---|
String |
getRecordName()
Deprecated.
Returns the record name.
|
void |
incrMetric(String metricName,
byte metricValue)
Deprecated.
Increments the named metric by the specified value.
|
void |
incrMetric(String metricName,
float metricValue)
Deprecated.
Increments the named metric by the specified value.
|
void |
incrMetric(String metricName,
int metricValue)
Deprecated.
Increments the named metric by the specified value.
|
void |
incrMetric(String metricName,
long metricValue)
Deprecated.
Increments the named metric by the specified value.
|
void |
incrMetric(String metricName,
short metricValue)
Deprecated.
Increments the named metric by the specified value.
|
void |
remove()
Deprecated.
Removes the row, if it exists, in the buffered data table having tags
that equal the tags that have been set on this record.
|
void |
removeTag(String tagName)
Deprecated.
Removes any tag of the specified name.
|
void |
setMetric(String metricName,
byte metricValue)
Deprecated.
Sets the named metric to the specified value.
|
void |
setMetric(String metricName,
float metricValue)
Deprecated.
Sets the named metric to the specified value.
|
void |
setMetric(String metricName,
int metricValue)
Deprecated.
Sets the named metric to the specified value.
|
void |
setMetric(String metricName,
long metricValue)
Deprecated.
Sets the named metric to the specified value.
|
void |
setMetric(String metricName,
short metricValue)
Deprecated.
Sets the named metric to the specified value.
|
void |
setTag(String tagName,
byte tagValue)
Deprecated.
Sets the named tag to the specified value.
|
void |
setTag(String tagName,
int tagValue)
Deprecated.
Sets the named tag to the specified value.
|
void |
setTag(String tagName,
long tagValue)
Deprecated.
Sets the named tag to the specified value.
|
void |
setTag(String tagName,
short tagValue)
Deprecated.
Sets the named tag to the specified value.
|
void |
setTag(String tagName,
String tagValue)
Deprecated.
Sets the named tag to the specified value.
|
void |
update()
Deprecated.
Updates the table of buffered data which is to be sent periodically.
|
protected MetricsRecordImpl(String recordName, AbstractMetricsContext context)
public String getRecordName()
getRecordName
in interface org.apache.hadoop.metrics.MetricsRecord
public void setTag(String tagName, String tagValue)
setTag
in interface org.apache.hadoop.metrics.MetricsRecord
tagName
- name of the tagtagValue
- new value of the tagorg.apache.hadoop.metrics.MetricsException
- if the tagName conflicts with the configurationpublic void setTag(String tagName, int tagValue)
setTag
in interface org.apache.hadoop.metrics.MetricsRecord
tagName
- name of the tagtagValue
- new value of the tagorg.apache.hadoop.metrics.MetricsException
- if the tagName conflicts with the configurationpublic void setTag(String tagName, long tagValue)
setTag
in interface org.apache.hadoop.metrics.MetricsRecord
tagName
- name of the tagtagValue
- new value of the tagorg.apache.hadoop.metrics.MetricsException
- if the tagName conflicts with the configurationpublic void setTag(String tagName, short tagValue)
setTag
in interface org.apache.hadoop.metrics.MetricsRecord
tagName
- name of the tagtagValue
- new value of the tagorg.apache.hadoop.metrics.MetricsException
- if the tagName conflicts with the configurationpublic void setTag(String tagName, byte tagValue)
setTag
in interface org.apache.hadoop.metrics.MetricsRecord
tagName
- name of the tagtagValue
- new value of the tagorg.apache.hadoop.metrics.MetricsException
- if the tagName conflicts with the configurationpublic void removeTag(String tagName)
removeTag
in interface org.apache.hadoop.metrics.MetricsRecord
tagName
- name of a tagpublic void setMetric(String metricName, int metricValue)
setMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- new value of the metricorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void setMetric(String metricName, long metricValue)
setMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- new value of the metricorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void setMetric(String metricName, short metricValue)
setMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- new value of the metricorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void setMetric(String metricName, byte metricValue)
setMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- new value of the metricorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void setMetric(String metricName, float metricValue)
setMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- new value of the metricorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, int metricValue)
incrMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- incremental valueorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, long metricValue)
incrMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- incremental valueorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, short metricValue)
incrMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- incremental valueorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, byte metricValue)
incrMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- incremental valueorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, float metricValue)
incrMetric
in interface org.apache.hadoop.metrics.MetricsRecord
metricName
- name of the metricmetricValue
- incremental valueorg.apache.hadoop.metrics.MetricsException
- if the metricName or the type of the metricValue
conflicts with the configurationpublic void update()
update
in interface org.apache.hadoop.metrics.MetricsRecord
public void remove()
remove
in interface org.apache.hadoop.metrics.MetricsRecord
Copyright © 2018 Apache Software Foundation. All rights reserved.