org.apache.hadoop.metrics2 usage.@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class MetricsRecordImpl extends Object implements MetricsRecord
update
and remove().| 限定符 | 构造器和说明 |
|---|---|
protected |
MetricsRecordImpl(String recordName,
AbstractMetricsContext context)
已过时。
Creates a new instance of FileRecord
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getRecordName()
已过时。
Returns the record name.
|
void |
incrMetric(String metricName,
byte metricValue)
已过时。
Increments the named metric by the specified value.
|
void |
incrMetric(String metricName,
float metricValue)
已过时。
Increments the named metric by the specified value.
|
void |
incrMetric(String metricName,
int metricValue)
已过时。
Increments the named metric by the specified value.
|
void |
incrMetric(String metricName,
long metricValue)
已过时。
Increments the named metric by the specified value.
|
void |
incrMetric(String metricName,
short metricValue)
已过时。
Increments the named metric by the specified value.
|
void |
remove()
已过时。
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)
已过时。
Removes any tag of the specified name.
|
void |
setMetric(String metricName,
byte metricValue)
已过时。
Sets the named metric to the specified value.
|
void |
setMetric(String metricName,
float metricValue)
已过时。
Sets the named metric to the specified value.
|
void |
setMetric(String metricName,
int metricValue)
已过时。
Sets the named metric to the specified value.
|
void |
setMetric(String metricName,
long metricValue)
已过时。
Sets the named metric to the specified value.
|
void |
setMetric(String metricName,
short metricValue)
已过时。
Sets the named metric to the specified value.
|
void |
setTag(String tagName,
byte tagValue)
已过时。
Sets the named tag to the specified value.
|
void |
setTag(String tagName,
int tagValue)
已过时。
Sets the named tag to the specified value.
|
void |
setTag(String tagName,
long tagValue)
已过时。
Sets the named tag to the specified value.
|
void |
setTag(String tagName,
short tagValue)
已过时。
Sets the named tag to the specified value.
|
void |
setTag(String tagName,
String tagValue)
已过时。
Sets the named tag to the specified value.
|
void |
update()
已过时。
Updates the table of buffered data which is to be sent periodically.
|
protected MetricsRecordImpl(String recordName, AbstractMetricsContext context)
public String getRecordName()
getRecordName 在接口中 MetricsRecordpublic void setTag(String tagName, String tagValue)
setTag 在接口中 MetricsRecordtagName - name of the tagtagValue - new value of the tagMetricsException - if the tagName conflicts with the configurationpublic void setTag(String tagName, int tagValue)
setTag 在接口中 MetricsRecordtagName - name of the tagtagValue - new value of the tagMetricsException - if the tagName conflicts with the configurationpublic void setTag(String tagName, long tagValue)
setTag 在接口中 MetricsRecordtagName - name of the tagtagValue - new value of the tagMetricsException - if the tagName conflicts with the configurationpublic void setTag(String tagName, short tagValue)
setTag 在接口中 MetricsRecordtagName - name of the tagtagValue - new value of the tagMetricsException - if the tagName conflicts with the configurationpublic void setTag(String tagName, byte tagValue)
setTag 在接口中 MetricsRecordtagName - name of the tagtagValue - new value of the tagMetricsException - if the tagName conflicts with the configurationpublic void removeTag(String tagName)
removeTag 在接口中 MetricsRecordtagName - name of a tagpublic void setMetric(String metricName, int metricValue)
setMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - new value of the metricMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void setMetric(String metricName, long metricValue)
setMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - new value of the metricMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void setMetric(String metricName, short metricValue)
setMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - new value of the metricMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void setMetric(String metricName, byte metricValue)
setMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - new value of the metricMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void setMetric(String metricName, float metricValue)
setMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - new value of the metricMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, int metricValue)
incrMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - incremental valueMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, long metricValue)
incrMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - incremental valueMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, short metricValue)
incrMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - incremental valueMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, byte metricValue)
incrMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - incremental valueMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void incrMetric(String metricName, float metricValue)
incrMetric 在接口中 MetricsRecordmetricName - name of the metricmetricValue - incremental valueMetricsException - if the metricName or the type of the metricValue
conflicts with the configurationpublic void update()
update 在接口中 MetricsRecordpublic void remove()
remove 在接口中 MetricsRecordCopyright © 2009 The Apache Software Foundation