Top Description Constructors Methods
ch.qos.logback.classic.net.server

pack-priv Class RemoteAppenderServerRunner

extends ConcurrentServerRunner<RemoteAppenderClient>
Class Inheritance
Imports
java.util.concurrent.Executor, ch.qos.logback.classic.LoggerContext, ch.qos.logback.core.net.server.ConcurrentServerRunner, .ServerListener, .ServerRunner

A ServerRunner that receives logging events from remote appender clients.
Author
Carl Harris

Constructor Summary

AccessConstructor and Description
public
RemoteAppenderServerRunner(ServerListener<RemoteAppenderClient>
the listener from which the server will accept new clients
listener
,
Executor
that will be used to execute asynchronous tasks on behalf of the runner.
executor
)

Constructs a new server runner.

Method Summary

Modifier and TypeMethod and Description
protected boolean
configureClient(RemoteAppenderClient
the subject client
client
)

Implements abstract ch.qos.logback.core.net.server.ConcurrentServerRunner.configureClient.

Configures a connected client.
Inherited from ch.qos.logback.core.net.server.ConcurrentServerRunner:
acceptisRunningrunsetRunningstop

Constructor Detail

RemoteAppenderServerRunnerback to summary
public RemoteAppenderServerRunner(ServerListener<RemoteAppenderClient> listener, Executor executor)

Constructs a new server runner.

Parameters
listener:ServerListener<RemoteAppenderClient>

the listener from which the server will accept new clients

executor:Executor

that will be used to execute asynchronous tasks on behalf of the runner.

Method Detail

configureClientback to summary
protected boolean configureClient(RemoteAppenderClient client)

Implements abstract ch.qos.logback.core.net.server.ConcurrentServerRunner.configureClient.

Doc from ch.qos.logback.core.net.server.ConcurrentServerRunner.configureClient.

Configures a connected client.

A subclass implements this method to perform any necessary configuration of the client object before its Client#run() method is invoked.

Parameters
client:RemoteAppenderClient

the subject client

Returns:boolean

true if configuration was successful; if the return value is false the client connection will be dropped

Annotations
@Override