|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics2.util.MetricsCache
@InterfaceAudience.Public @InterfaceStability.Evolving public class MetricsCache
A metrics cache for sinks that don't support sparse updates.
Constructor Summary | |
---|---|
MetricsCache()
|
|
MetricsCache(int maxRecsPerName)
Construct a metrics cache |
Method Summary | |
---|---|
org.apache.hadoop.metrics2.util.MetricsCache.Record |
get(String name,
Collection<MetricsTag> tags)
Get the cached record |
org.apache.hadoop.metrics2.util.MetricsCache.Record |
update(MetricsRecord mr)
Update the cache and return the current cache record |
org.apache.hadoop.metrics2.util.MetricsCache.Record |
update(MetricsRecord mr,
boolean includingTags)
Update the cache and return the current cached record |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetricsCache()
public MetricsCache(int maxRecsPerName)
maxRecsPerName
- limit of the number records per record nameMethod Detail |
---|
public org.apache.hadoop.metrics2.util.MetricsCache.Record update(MetricsRecord mr, boolean includingTags)
mr
- the update recordincludingTags
- cache tag values (for later lookup by name) if true
public org.apache.hadoop.metrics2.util.MetricsCache.Record update(MetricsRecord mr)
mr
- the update record
public org.apache.hadoop.metrics2.util.MetricsCache.Record get(String name, Collection<MetricsTag> tags)
name
- of the recordtags
- of the record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |