public class InstrumentedServerSocketReceiver extends ServerSocketReceiver
ServerSocketReceiver
with instrumentation for unit testing.DEFAULT_BACKLOG
context
Constructor and Description |
---|
InstrumentedServerSocketReceiver(ServerSocket serverSocket) |
InstrumentedServerSocketReceiver(ServerSocket serverSocket,
ServerListener<ch.qos.logback.classic.net.server.RemoteAppenderClient> listener,
ServerRunner<ch.qos.logback.classic.net.server.RemoteAppenderClient> runner) |
Modifier and Type | Method and Description |
---|---|
protected ServerListener<ch.qos.logback.classic.net.server.RemoteAppenderClient> |
createServerListener(ServerSocket socket) |
protected ServerRunner |
createServerRunner(ServerListener<ch.qos.logback.classic.net.server.RemoteAppenderClient> listener,
Executor executor) |
ServerListener |
getLastListener() |
protected ServerSocketFactory |
getServerSocketFactory() |
getAddress, getBacklog, getInetAddress, getPort, getRunnableTask, onStop, setAddress, setBacklog, setPort, shouldStart
isStarted, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public InstrumentedServerSocketReceiver(ServerSocket serverSocket)
public InstrumentedServerSocketReceiver(ServerSocket serverSocket, ServerListener<ch.qos.logback.classic.net.server.RemoteAppenderClient> listener, ServerRunner<ch.qos.logback.classic.net.server.RemoteAppenderClient> runner)
protected ServerSocketFactory getServerSocketFactory() throws Exception
getServerSocketFactory
in class ServerSocketReceiver
Exception
protected ServerRunner createServerRunner(ServerListener<ch.qos.logback.classic.net.server.RemoteAppenderClient> listener, Executor executor)
createServerRunner
in class ServerSocketReceiver
protected ServerListener<ch.qos.logback.classic.net.server.RemoteAppenderClient> createServerListener(ServerSocket socket)
createServerListener
in class ServerSocketReceiver
public ServerListener getLastListener()
Copyright © 2005–2018 QOS.ch. All rights reserved.