class RemoteAppenderServerRunner extends ConcurrentServerRunner<RemoteAppenderClient>
ServerRunner that receives logging events from remote appender
clients.context| Constructor and Description |
|---|
RemoteAppenderServerRunner(ServerListener<RemoteAppenderClient> listener,
java.util.concurrent.Executor executor)
Constructs a new server runner.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
configureClient(RemoteAppenderClient client)
Configures a connected client.
|
accept, isRunning, run, setRunning, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic RemoteAppenderServerRunner(ServerListener<RemoteAppenderClient> listener, java.util.concurrent.Executor executor)
listener - the listener from which the server will accept new
clientsexecutor - that will be used to execute asynchronous tasks
on behalf of the runner.protected boolean configureClient(RemoteAppenderClient client)
A subclass implements this method to perform any necessary configuration
of the client object before its Runnable.run() method is invoked.
configureClient in class ConcurrentServerRunner<RemoteAppenderClient>client - the subject clienttrue if configuration was successful; if the return
value is false the client connection will be dropped