org.apache.flume
Class CounterGroup
java.lang.Object
org.apache.flume.CounterGroup
public class CounterGroup
- extends Object
Used for counting events, collecting metrics, etc.
CounterGroup
public CounterGroup()
get
public Long get(String name)
incrementAndGet
public Long incrementAndGet(String name)
addAndGet
public Long addAndGet(String name,
Long delta)
add
public void add(CounterGroup counterGroup)
set
public void set(String name,
Long value)
getCounter
public AtomicLong getCounter(String name)
toString
public String toString()
- Overrides:
toString
in class Object
getName
public String getName()
setName
public void setName(String name)
getCounters
public HashMap<String,AtomicLong> getCounters()
setCounters
public void setCounters(HashMap<String,AtomicLong> counters)
Copyright © 2009-2015 Apache Software Foundation. All Rights Reserved.