T
- The kind of input stream read
TODO Make a LifeCyclepublic abstract class AbstractSocketServer<T extends InputStream> extends LogEventListener implements Runnable
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractSocketServer.CommandLineArguments |
protected static class |
AbstractSocketServer.ServerConfigurationFactory
Factory that creates a Configuration for the server.
|
Modifier and Type | Field and Description |
---|---|
protected LogEventBridge<T> |
logEventInput |
protected Logger |
logger |
protected static int |
MAX_PORT |
LOGGER
Constructor and Description |
---|
AbstractSocketServer(int port,
LogEventBridge<T> logEventInput)
Creates a new socket server.
|
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(Thread serverThread) |
protected boolean |
isActive() |
protected void |
setActive(boolean isActive) |
abstract void |
shutdown() |
Thread |
startNewThread()
Start this server in a new thread.
|
log
protected static final int MAX_PORT
protected final LogEventBridge<T extends InputStream> logEventInput
protected final Logger logger
public AbstractSocketServer(int port, LogEventBridge<T> logEventInput)
port
- listen to this portlogEventInput
- Use this input to read log events.protected boolean isActive()
protected void setActive(boolean isActive)
public Thread startNewThread()
Copyright © 1999-2017. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.