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, setChannelSizeaddAndGet, get, getStartTime, getStopTime, getType, increment, set, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChannelCapacity, getChannelFillPercentage, getChannelSize, getEventPutAttemptCount, getEventPutSuccessCount, getEventTakeAttemptCount, getEventTakeSuccessCount, getStartTime, getStopTime, getTypepublic FileChannelCounter(String name)
public boolean isOpen()
isOpen in interface FileChannelCounterMBeanpublic void setOpen(boolean open)
public int getClosed()
FileChannelCounterMBeangetClosed in interface FileChannelCounterMBeanpublic int getUnhealthy()
FileChannelCounterMBeangetUnhealthy in interface FileChannelCounterMBeanpublic void setUnhealthy(int unhealthy)
public long getEventPutErrorCount()
FileChannelCounterMBeangetEventPutErrorCount in interface FileChannelCounterMBean#doPut(org.apache.flume.Event)public void incrementEventPutErrorCount()
public long getEventTakeErrorCount()
FileChannelCounterMBeangetEventTakeErrorCount in interface FileChannelCounterMBeanFileChannel.FileBackedTransaction.doTake()public void incrementEventTakeErrorCount()
public long getCheckpointWriteErrorCount()
FileChannelCounterMBeangetCheckpointWriteErrorCount in interface FileChannelCounterMBeanLog.BackgroundWorker.run()public void incrementCheckpointWriteErrorCount()
public long getCheckpointBackupWriteErrorCount()
FileChannelCounterMBeangetCheckpointBackupWriteErrorCount in interface FileChannelCounterMBeanEventQueueBackingStoreFile.startBackupThread()public void incrementCheckpointBackupWriteErrorCount()
Copyright © 2009-2022 Apache Software Foundation. All Rights Reserved.