Class ServerSocketReceiver
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.classic.net.ReceiverBase
-
- ch.qos.logback.classic.net.server.ServerSocketReceiver
-
- All Implemented Interfaces:
ContextAware
,LifeCycle
- Direct Known Subclasses:
SSLServerSocketReceiver
public class ServerSocketReceiver extends ReceiverBase
A logging socket server that is configurable using Joran.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BACKLOG
DefaultServerSocket
backlog
-
Constructor Summary
Constructors Constructor Description ServerSocketReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAddress()
Gets the local address for the listener.int
getBacklog()
Gets the listener queue depth.int
getPort()
Gets the local port for the listener.void
setAddress(java.lang.String address)
Sets the local address for the listener.void
setBacklog(int backlog)
Sets the listener queue depth.void
setPort(int port)
Sets the local port for the listener.-
Methods inherited from class ch.qos.logback.classic.net.ReceiverBase
isStarted, start, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Field Detail
-
DEFAULT_BACKLOG
public static final int DEFAULT_BACKLOG
DefaultServerSocket
backlog- See Also:
- Constant Field Values
-
-
Method Detail
-
getPort
public int getPort()
Gets the local port for the listener.- Returns:
- local port
-
setPort
public void setPort(int port)
Sets the local port for the listener.- Parameters:
port
- the local port to set
-
getBacklog
public int getBacklog()
Gets the listener queue depth.This represents the number of connected clients whose connections have not yet been accepted.
- Returns:
- queue depth
- See Also:
ServerSocket
-
setBacklog
public void setBacklog(int backlog)
Sets the listener queue depth.This represents the number of connected clients whose connections have not yet been accepted.
- Parameters:
backlog
- the queue depth to set- See Also:
ServerSocket
-
getAddress
public java.lang.String getAddress()
Gets the local address for the listener.- Returns:
- a string representation of the local address
-
setAddress
public void setAddress(java.lang.String address)
Sets the local address for the listener.- Parameters:
address
- a host name or a string representation of an IP address
-
-