Class RemoteAppenderServerRunner
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.net.server.ConcurrentServerRunner<RemoteAppenderClient>
ch.qos.logback.classic.net.server.RemoteAppenderServerRunner
- All Implemented Interfaces:
ServerRunner<RemoteAppenderClient>,ContextAware,Runnable
A
ServerRunner that receives logging events from remote appender
clients.-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionRemoteAppenderServerRunner(ServerListener<RemoteAppenderClient> listener, Executor executor) Constructs a new server runner. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconfigureClient(RemoteAppenderClient client) Configures a connected client.Methods inherited from class ch.qos.logback.core.net.server.ConcurrentServerRunner
accept, isRunning, run, setRunning, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
RemoteAppenderServerRunner
Constructs a new server runner.- Parameters:
listener- the listener from which the server will accept new clientsexecutor- that will be used to execute asynchronous tasks on behalf of the runner.
-
-
Method Details
-
configureClient
Configures a connected client.A subclass implements this method to perform any necessary configuration of the client object before its
Runnable.run()method is invoked.- Specified by:
configureClientin classConcurrentServerRunner<RemoteAppenderClient>- Parameters:
client- the subject client- Returns:
trueif configuration was successful; if the return value isfalsethe client connection will be dropped
-