ILoggingEvent objects from a
remote appender over a Socket.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private InetAddress | |
| private Future | |
| private static final int | |
| private int | |
| private String | |
| private int | |
| private String | |
| private volatile Socket |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Future | |
| public void | connectionFailed(SocketConnector connector, Exception ex)
Implements ch. |
| private SocketConnector | |
| private void | |
| protected Runnable | getRunnableTask()
Implements abstract ch. |
| protected SocketFactory | |
| protected SocketConnector | |
| protected void | onStop()
Implements abstract ch. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected boolean | shouldStart()
Implements abstract ch. |
| private Socket |
| acceptConnectionTimeout | back to summary |
|---|---|
| private int acceptConnectionTimeout | |
| address | back to summary |
|---|---|
| private InetAddress address | |
| connectorTask | back to summary |
|---|---|
| private Future<Socket> connectorTask | |
| DEFAULT_ACCEPT_CONNECTION_DELAY | back to summary |
|---|---|
| private static final int DEFAULT_ACCEPT_CONNECTION_DELAY | |
| port | back to summary |
|---|---|
| private int port | |
| receiverId | back to summary |
|---|---|
| private String receiverId | |
| reconnectionDelay | back to summary |
|---|---|
| private int reconnectionDelay | |
| remoteHost | back to summary |
|---|---|
| private String remoteHost | |
| socket | back to summary |
|---|---|
| private volatile Socket socket | |
| SocketReceiver | back to summary |
|---|---|
| public SocketReceiver() | |
| activateConnector | back to summary |
|---|---|
| private Future | |
| connectionFailed | back to summary |
|---|---|
| public void connectionFailed(SocketConnector connector, Exception ex) Implements ch. | |
| createConnector | back to summary |
|---|---|
| private SocketConnector createConnector(InetAddress address, int port, int initialDelay, int retryDelay) | |
| dispatchEvents | back to summary |
|---|---|
| private void dispatchEvents(LoggerContext lc) | |
| getRunnableTask | back to summary |
|---|---|
| protected Runnable getRunnableTask() Implements abstract ch. Doc from ch. Provides the runnable task this receiver will execute. | |
| getSocketFactory | back to summary |
|---|---|
| protected SocketFactory getSocketFactory() | |
| newConnector | back to summary |
|---|---|
| protected SocketConnector newConnector(InetAddress address, int port, int initialDelay, int retryDelay) | |
| onStop | back to summary |
|---|---|
| protected void onStop() Implements abstract ch. Doc from ch. Allows a subclass to participate in receiver shutdown. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| setAcceptConnectionTimeout | back to summary |
|---|---|
| public void setAcceptConnectionTimeout(int acceptConnectionTimeout) | |
| setPort | back to summary |
|---|---|
| public void setPort(int port) | |
| setReconnectionDelay | back to summary |
|---|---|
| public void setReconnectionDelay(int reconnectionDelay) | |
| setRemoteHost | back to summary |
|---|---|
| public void setRemoteHost(String remoteHost) | |
| shouldStart | back to summary |
|---|---|
| protected boolean shouldStart() Implements abstract ch. Doc from ch. Determines whether this receiver should start.
Subclasses will implement this method to do any subclass-specific validation.
The subclass's
| |
| waitForConnectorToReturnASocket | back to summary |
|---|---|
| private Socket waitForConnectorToReturnASocket() throws InterruptedException | |