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.ServerConfigurationFactory
Factory that creates a Configuration for the server.
|
Modifier and Type | Field and Description |
---|---|
protected LogEventBridge<T> |
logEventInput |
protected org.apache.logging.log4j.Logger |
logger |
protected static int |
MAX_PORT |
Constructor and Description |
---|
AbstractSocketServer(int port,
LogEventBridge<T> logEventInput)
Creates a new socket server.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isActive() |
protected void |
setActive(boolean isActive) |
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 org.apache.logging.log4j.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-2021 Apache Software Foundation. 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.