public class CloudWatchAppenderStatistics extends AbstractAppenderStatistics implements CloudWatchAppenderStatisticsMXBean
Since it's possible that there may be multiple logwriters alive at once, we need to synchronize any methods that update a statistic. Simple writes are fine just being volatile (in general, those fields will only be set when the writer is created).
| Constructor and Description |
|---|
CloudWatchAppenderStatistics() |
| Modifier and Type | Method and Description |
|---|---|
String |
getActualLogGroupName()
Returns the actual log group name for the appender, after substitutions.
|
String |
getActualLogStreamName()
Returns the actual log stream name for the appender, after substitutions.
|
int |
getMessagesDiscardedByCurrentWriter()
Returns the number of messages discarded by the current writer's message queue.
|
void |
setActualLogGroupName(String actualLogGroupName) |
void |
setActualLogStreamName(String actualLogStreamName) |
getLastError, getLastErrorMessage, getLastErrorStacktrace, getLastErrorTimestamp, getMessagesDiscarded, getMessagesSent, setLastError, setMessageQueue, updateMessagesSentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLastErrorMessage, getLastErrorStacktrace, getLastErrorTimestamp, getMessagesSentpublic String getActualLogGroupName()
CloudWatchAppenderStatisticsMXBeangetActualLogGroupName in interface CloudWatchAppenderStatisticsMXBeanpublic void setActualLogGroupName(String actualLogGroupName)
public String getActualLogStreamName()
CloudWatchAppenderStatisticsMXBeangetActualLogStreamName in interface CloudWatchAppenderStatisticsMXBeanpublic void setActualLogStreamName(String actualLogStreamName)
public int getMessagesDiscardedByCurrentWriter()
CloudWatchAppenderStatisticsMXBeangetMessagesDiscardedByCurrentWriter in interface CloudWatchAppenderStatisticsMXBeanCopyright © 2018. All rights reserved.