public abstract class UnsynchronizedAppenderBase<E> extends ContextAwareBase implements Appender<E>
Modifier and Type | Field and Description |
---|---|
protected String |
name
Appenders are named.
|
protected boolean |
started |
context
Constructor and Description |
---|
UnsynchronizedAppenderBase() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter<E> newFilter)
Add a filter.
|
protected abstract void |
append(E eventObject) |
void |
clearAllFilters() |
void |
doAppend(E eventObject)
This is where an appender accomplishes its work.
|
List<Filter<E>> |
getCopyOfAttachedFiltersList()
Get a copy of all the filters contained within this FilterAttachable
object.
|
FilterReply |
getFilterChainDecision(E event)
Loop through the filters in the chain.
|
String |
getName()
Get the name of this appender.
|
boolean |
isStarted() |
void |
setName(String name)
Set the name of this appender.
|
void |
start() |
void |
stop() |
String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
protected boolean started
protected String name
public String getName()
Appender
public void doAppend(E eventObject)
Appender
protected abstract void append(E eventObject)
public void setName(String name)
public void addFilter(Filter<E> newFilter)
FilterAttachable
addFilter
in interface FilterAttachable<E>
public void clearAllFilters()
clearAllFilters
in interface FilterAttachable<E>
public List<Filter<E>> getCopyOfAttachedFiltersList()
FilterAttachable
getCopyOfAttachedFiltersList
in interface FilterAttachable<E>
public FilterReply getFilterChainDecision(E event)
FilterAttachable
getFilterChainDecision
in interface FilterAttachable<E>
Copyright © 2005-2013 QOS.ch. All Rights Reserved.