org.apache.flume.instrumentation
Class SinkCounter
java.lang.Object
org.apache.flume.instrumentation.MonitoredCounterGroup
org.apache.flume.instrumentation.SinkCounter
- All Implemented Interfaces:
- SinkCounterMBean
public class SinkCounter
- extends MonitoredCounterGroup
- implements SinkCounterMBean
SinkCounter
public SinkCounter(String name)
getConnectionCreatedCount
public long getConnectionCreatedCount()
- Specified by:
getConnectionCreatedCount
in interface SinkCounterMBean
incrementConnectionCreatedCount
public long incrementConnectionCreatedCount()
getConnectionClosedCount
public long getConnectionClosedCount()
- Specified by:
getConnectionClosedCount
in interface SinkCounterMBean
incrementConnectionClosedCount
public long incrementConnectionClosedCount()
getConnectionFailedCount
public long getConnectionFailedCount()
- Specified by:
getConnectionFailedCount
in interface SinkCounterMBean
incrementConnectionFailedCount
public long incrementConnectionFailedCount()
getBatchEmptyCount
public long getBatchEmptyCount()
- Specified by:
getBatchEmptyCount
in interface SinkCounterMBean
incrementBatchEmptyCount
public long incrementBatchEmptyCount()
getBatchUnderflowCount
public long getBatchUnderflowCount()
- Specified by:
getBatchUnderflowCount
in interface SinkCounterMBean
incrementBatchUnderflowCount
public long incrementBatchUnderflowCount()
getBatchCompleteCount
public long getBatchCompleteCount()
- Specified by:
getBatchCompleteCount
in interface SinkCounterMBean
incrementBatchCompleteCount
public long incrementBatchCompleteCount()
getEventDrainAttemptCount
public long getEventDrainAttemptCount()
- Specified by:
getEventDrainAttemptCount
in interface SinkCounterMBean
incrementEventDrainAttemptCount
public long incrementEventDrainAttemptCount()
addToEventDrainAttemptCount
public long addToEventDrainAttemptCount(long delta)
getEventDrainSuccessCount
public long getEventDrainSuccessCount()
- Specified by:
getEventDrainSuccessCount
in interface SinkCounterMBean
incrementEventDrainSuccessCount
public long incrementEventDrainSuccessCount()
addToEventDrainSuccessCount
public long addToEventDrainSuccessCount(long delta)
Copyright © 2009-2013 Apache Software Foundation. All Rights Reserved.