org.apache.flume.instrumentation
Class MonitoredCounterGroup

java.lang.Object
  extended by org.apache.flume.instrumentation.MonitoredCounterGroup
Direct Known Subclasses:
ChannelCounter, ChannelProcessorCounter, SinkCounter, SinkProcessorCounter, SourceCounter

public abstract class MonitoredCounterGroup
extends Object


Nested Class Summary
static class MonitoredCounterGroup.Type
           
 
Constructor Summary
protected MonitoredCounterGroup(MonitoredCounterGroup.Type type, String name, String... attrs)
           
 
Method Summary
protected  long addAndGet(String counter, long delta)
           
protected  long get(String counter)
           
 long getStartTime()
           
 long getStopTime()
           
 String getType()
           
protected  long increment(String counter)
           
protected  void set(String counter, long value)
           
 void start()
           
 void stop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonitoredCounterGroup

protected MonitoredCounterGroup(MonitoredCounterGroup.Type type,
                                String name,
                                String... attrs)
Method Detail

start

public void start()

stop

public void stop()

getStartTime

public long getStartTime()

getStopTime

public long getStopTime()

toString

public final String toString()
Overrides:
toString in class Object

get

protected long get(String counter)

set

protected void set(String counter,
                   long value)

addAndGet

protected long addAndGet(String counter,
                         long delta)

increment

protected long increment(String counter)

getType

public String getType()


Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.