public class AccessContext extends ContextBase implements AppenderAttachable<IAccessEvent>, FilterAttachable<IAccessEvent>
scheduledFutures| Constructor and Description |
|---|
AccessContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAppender(Appender<IAccessEvent> newAppender)
Add an appender.
|
void |
addFilter(Filter<IAccessEvent> newFilter)
Add a filter.
|
void |
callAppenders(IAccessEvent event) |
void |
clearAllFilters() |
void |
detachAndStopAllAppenders()
Detach and processPriorToRemoval all previously added appenders.
|
boolean |
detachAppender(Appender<IAccessEvent> appender)
Detach the appender passed as parameter from the list of appenders.
|
boolean |
detachAppender(String name)
Detach the appender with the name passed as parameter from the list of
appenders.
|
Appender<IAccessEvent> |
getAppender(String name)
Get an appender by name.
|
List<Filter<IAccessEvent>> |
getCopyOfAttachedFiltersList()
Get a copy of all the filters contained within this FilterAttachable
object.
|
FilterReply |
getFilterChainDecision(IAccessEvent event)
Loop through the filters in the chain.
|
boolean |
isAttached(Appender<IAccessEvent> appender)
Returns
true if the specified appender is in list of
attached attached, false otherwise. |
Iterator<Appender<IAccessEvent>> |
iteratorForAppenders()
Get an iterator for appenders contained in the parent object.
|
addScheduledFuture, getBirthTime, getConfigurationLock, getCopyOfPropertyMap, getExecutorService, getName, getObject, getProperty, getScheduledExecutorService, getScheduledFutures, getStatusManager, initCollisionMaps, isStarted, putObject, putProperty, register, removeObject, reset, setName, setStatusManager, start, stop, toStringpublic void callAppenders(IAccessEvent event)
public void addAppender(Appender<IAccessEvent> newAppender)
AppenderAttachableaddAppender in interface AppenderAttachable<IAccessEvent>public void detachAndStopAllAppenders()
AppenderAttachabledetachAndStopAllAppenders in interface AppenderAttachable<IAccessEvent>public boolean detachAppender(Appender<IAccessEvent> appender)
AppenderAttachabledetachAppender in interface AppenderAttachable<IAccessEvent>public boolean detachAppender(String name)
AppenderAttachabledetachAppender in interface AppenderAttachable<IAccessEvent>public Appender<IAccessEvent> getAppender(String name)
AppenderAttachablegetAppender in interface AppenderAttachable<IAccessEvent>public boolean isAttached(Appender<IAccessEvent> appender)
AppenderAttachabletrue if the specified appender is in list of
attached attached, false otherwise.isAttached in interface AppenderAttachable<IAccessEvent>public Iterator<Appender<IAccessEvent>> iteratorForAppenders()
AppenderAttachableiteratorForAppenders in interface AppenderAttachable<IAccessEvent>public void addFilter(Filter<IAccessEvent> newFilter)
FilterAttachableaddFilter in interface FilterAttachable<IAccessEvent>public void clearAllFilters()
clearAllFilters in interface FilterAttachable<IAccessEvent>public List<Filter<IAccessEvent>> getCopyOfAttachedFiltersList()
FilterAttachablegetCopyOfAttachedFiltersList in interface FilterAttachable<IAccessEvent>public FilterReply getFilterChainDecision(IAccessEvent event)
FilterAttachablegetFilterChainDecision in interface FilterAttachable<IAccessEvent>Copyright © 2005–2022 QOS.ch. All rights reserved.