class RemoteReceiverServerRunner extends ConcurrentServerRunner<RemoteReceiverClient>
ServerRunner that listens for connections from remote receiver
component clients and delivers logging events to all connected clients.| Modifier and Type | Field and Description |
|---|---|
private int |
clientQueueSize |
context| Constructor and Description |
|---|
RemoteReceiverServerRunner(ServerListener<RemoteReceiverClient> listener,
java.util.concurrent.Executor executor,
int clientQueueSize)
Constructs a new server runner.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
configureClient(RemoteReceiverClient 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 RemoteReceiverServerRunner(ServerListener<RemoteReceiverClient> listener, java.util.concurrent.Executor executor, int clientQueueSize)
listener - the listener from which the server will accept new
clientsexecutor - that will be used to execute asynchronous tasks
on behalf of the runner.queueSize - size of the event queue that will be maintained for
each clientprotected boolean configureClient(RemoteReceiverClient 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<RemoteReceiverClient>client - the subject clienttrue if configuration was successful; if the return
value is false the client connection will be dropped