|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
ch.qos.logback.core.net.server.AbstractServerSocketAppender<E>
public abstract class AbstractServerSocketAppender<E>
This is the super class for module specific ServerSocketAppender implementations can derive from.
| Field Summary | |
|---|---|
static int |
DEFAULT_BACKLOG
Default ServerSocket backlog |
static int |
DEFAULT_CLIENT_QUEUE_SIZE
Default queue size used for each client |
| Fields inherited from class ch.qos.logback.core.AppenderBase |
|---|
name, started |
| Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
|---|
context |
| Constructor Summary | |
|---|---|
AbstractServerSocketAppender()
|
|
| Method Summary | |
|---|---|
protected void |
append(E event)
|
protected ServerListener<ch.qos.logback.core.net.server.RemoteReceiverClient> |
createServerListener(ServerSocket socket)
|
protected ServerRunner<ch.qos.logback.core.net.server.RemoteReceiverClient> |
createServerRunner(ServerListener<ch.qos.logback.core.net.server.RemoteReceiverClient> listener,
Executor executor)
|
String |
getAddress()
Gets the local address for the listener. |
int |
getBacklog()
Gets the listener queue depth. |
int |
getClientQueueSize()
Gets the event queue size used for each client connection. |
protected InetAddress |
getInetAddress()
Gets the local address for the listener. |
int |
getPort()
Gets the local port for the listener. |
protected abstract PreSerializationTransformer<E> |
getPST()
Gets a transformer that will be used to convert a received event to a Serializable form. |
protected ServerSocketFactory |
getServerSocketFactory()
Gets the factory used to create ServerSocket objects. |
protected abstract void |
postProcessEvent(E event)
Post process an event received via #append(E). |
void |
setAddress(String address)
Sets the local address for the listener. |
void |
setBacklog(int backlog)
Sets the listener queue depth. |
void |
setClientQueueSize(int clientQueueSize)
Sets the event queue size used for each client connection. |
void |
setPort(int port)
Sets the local port for the listener. |
void |
start()
|
void |
stop()
|
| Methods inherited from class ch.qos.logback.core.AppenderBase |
|---|
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString |
| Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
|---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ch.qos.logback.core.spi.ContextAware |
|---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext |
| Field Detail |
|---|
public static final int DEFAULT_BACKLOG
ServerSocket backlog
public static final int DEFAULT_CLIENT_QUEUE_SIZE
| Constructor Detail |
|---|
public AbstractServerSocketAppender()
| Method Detail |
|---|
public void start()
start in interface LifeCyclestart in class AppenderBase<E>protected ServerListener<ch.qos.logback.core.net.server.RemoteReceiverClient> createServerListener(ServerSocket socket)
protected ServerRunner<ch.qos.logback.core.net.server.RemoteReceiverClient> createServerRunner(ServerListener<ch.qos.logback.core.net.server.RemoteReceiverClient> listener,
Executor executor)
public void stop()
stop in interface LifeCyclestop in class AppenderBase<E>protected void append(E event)
append in class AppenderBase<E>protected abstract void postProcessEvent(E event)
#append(E).
event - protected abstract PreSerializationTransformer<E> getPST()
Serializable form.
protected ServerSocketFactory getServerSocketFactory()
throws Exception
ServerSocket objects.
The default implementation delegates to
ServerSocketFactory.getDefault(). Subclasses may override to
private a different socket factory implementation.
Exception
protected InetAddress getInetAddress()
throws UnknownHostException
InetAddress representation of the local address.
UnknownHostExceptionpublic int getPort()
public void setPort(int port)
port - the local port to setpublic int getBacklog()
This represents the number of connected clients whose connections have not yet been accepted.
ServerSocketpublic void setBacklog(int backlog)
This represents the number of connected clients whose connections have not yet been accepted.
backlog - the queue depth to setServerSocketpublic String getAddress()
public void setAddress(String address)
address - a host name or a string representation of an IP addresspublic int getClientQueueSize()
public void setClientQueueSize(int clientQueueSize)
clientQueueSize - the queue size to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||