public class FileChannelCounter extends ChannelCounter implements FileChannelCounterMBean
MonitoredCounterGroup.Type
Constructor and Description |
---|
FileChannelCounter(String name) |
Modifier and Type | Method and Description |
---|---|
long |
getCheckpointBackupWriteErrorCount()
A count of the number of errors encountered while trying to write the backup checkpoints.
|
long |
getCheckpointWriteErrorCount()
A count of the number of errors encountered while trying to write the checkpoints.
|
int |
getClosed()
The numeric representation (0/1) of the negated value of the open flag.
|
long |
getEventPutErrorCount()
A count of the number of IOExceptions encountered while trying to put() onto the channel.
|
long |
getEventTakeErrorCount()
A count of the number of errors encountered while trying to take() from the channel,
including IOExceptions and corruption-related errors.
|
int |
getUnhealthy()
A value of 0 represents that the channel is in a healthy state: it is either starting
up (i.e.
|
void |
incrementCheckpointBackupWriteErrorCount() |
void |
incrementCheckpointWriteErrorCount() |
void |
incrementEventPutErrorCount() |
void |
incrementEventTakeErrorCount() |
boolean |
isOpen() |
void |
setOpen(boolean open) |
void |
setUnhealthy(int unhealthy) |
addToEventPutSuccessCount, addToEventTakeSuccessCount, getChannelCapacity, getChannelFillPercentage, getChannelSize, getEventPutAttemptCount, getEventPutSuccessCount, getEventTakeAttemptCount, getEventTakeSuccessCount, incrementEventPutAttemptCount, incrementEventTakeAttemptCount, setChannelCapacity, setChannelSize
addAndGet, get, getStartTime, getStopTime, getType, increment, set, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChannelCapacity, getChannelFillPercentage, getChannelSize, getEventPutAttemptCount, getEventPutSuccessCount, getEventTakeAttemptCount, getEventTakeSuccessCount, getStartTime, getStopTime, getType
public FileChannelCounter(String name)
public boolean isOpen()
isOpen
in interface FileChannelCounterMBean
public void setOpen(boolean open)
public int getClosed()
FileChannelCounterMBean
getClosed
in interface FileChannelCounterMBean
public int getUnhealthy()
FileChannelCounterMBean
getUnhealthy
in interface FileChannelCounterMBean
public void setUnhealthy(int unhealthy)
public long getEventPutErrorCount()
FileChannelCounterMBean
getEventPutErrorCount
in interface FileChannelCounterMBean
#doPut(org.apache.flume.Event)
public void incrementEventPutErrorCount()
public long getEventTakeErrorCount()
FileChannelCounterMBean
getEventTakeErrorCount
in interface FileChannelCounterMBean
FileChannel.FileBackedTransaction.doTake()
public void incrementEventTakeErrorCount()
public long getCheckpointWriteErrorCount()
FileChannelCounterMBean
getCheckpointWriteErrorCount
in interface FileChannelCounterMBean
Log.BackgroundWorker.run()
public void incrementCheckpointWriteErrorCount()
public long getCheckpointBackupWriteErrorCount()
FileChannelCounterMBean
getCheckpointBackupWriteErrorCount
in interface FileChannelCounterMBean
EventQueueBackingStoreFile.startBackupThread()
public void incrementCheckpointBackupWriteErrorCount()
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.