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, toString
public void callAppenders(IAccessEvent event)
public void addAppender(Appender<IAccessEvent> newAppender)
AppenderAttachable
addAppender
in interface AppenderAttachable<IAccessEvent>
public void detachAndStopAllAppenders()
AppenderAttachable
detachAndStopAllAppenders
in interface AppenderAttachable<IAccessEvent>
public boolean detachAppender(Appender<IAccessEvent> appender)
AppenderAttachable
detachAppender
in interface AppenderAttachable<IAccessEvent>
public boolean detachAppender(String name)
AppenderAttachable
detachAppender
in interface AppenderAttachable<IAccessEvent>
public Appender<IAccessEvent> getAppender(String name)
AppenderAttachable
getAppender
in interface AppenderAttachable<IAccessEvent>
public boolean isAttached(Appender<IAccessEvent> appender)
AppenderAttachable
true
if the specified appender is in list of
attached attached, false
otherwise.isAttached
in interface AppenderAttachable<IAccessEvent>
public Iterator<Appender<IAccessEvent>> iteratorForAppenders()
AppenderAttachable
iteratorForAppenders
in interface AppenderAttachable<IAccessEvent>
public void addFilter(Filter<IAccessEvent> newFilter)
FilterAttachable
addFilter
in interface FilterAttachable<IAccessEvent>
public void clearAllFilters()
clearAllFilters
in interface FilterAttachable<IAccessEvent>
public List<Filter<IAccessEvent>> getCopyOfAttachedFiltersList()
FilterAttachable
getCopyOfAttachedFiltersList
in interface FilterAttachable<IAccessEvent>
public FilterReply getFilterChainDecision(IAccessEvent event)
FilterAttachable
getFilterChainDecision
in interface FilterAttachable<IAccessEvent>
Copyright © 2005–2016 QOS.ch. All rights reserved.