AutoCloseable, ByteBufferDestinationpublic class SslSocketManager extends TcpSocketManager
TcpSocketManager.TcpSocketManagerFactory<M extends TcpSocketManager,T extends org.apache.logging.log4j.core.net.TcpSocketManager.FactoryData>| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_PORT |
count, LOGGERhost, inetAddress, portbyteBuffer, layoutDEFAULT_RECONNECTION_DELAY_MILLIS| Constructor | Description |
|---|---|
SslSocketManager(String name,
OutputStream os,
Socket sock,
SslConfiguration sslConfig,
InetAddress inetAddress,
String host,
int port,
int connectTimeoutMillis,
int reconnectionDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize) |
|
SslSocketManager(String name,
OutputStream os,
Socket sock,
SslConfiguration sslConfig,
InetAddress inetAddress,
String host,
int port,
int connectTimeoutMillis,
int reconnectionDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize,
SocketOptions socketOptions) |
| Modifier and Type | Method | Description |
|---|---|---|
protected Socket |
createSocket(String host,
int port) |
|
static SslSocketManager |
getSocketManager(SslConfiguration sslConfig,
String host,
int port,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize) |
|
static SslSocketManager |
getSocketManager(SslConfiguration sslConfig,
String host,
int port,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
Layout<? extends Serializable> layout,
int bufferSize,
SocketOptions socketOptions) |
close, getCount, getLoggerContext, getName, hasManager, log, logDebug, logError, logWarn, narrow, release, stop, updateDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, getOutputStream, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, write, writeBytes, writeBytes, writeFooter, writeToDestinationcloseOutputStream, createSocket, getConnectTimeoutMillis, getContentFormat, getReconnectionDelayMillis, getSocket, getSocketManager, getSocketManager, getSocketOptions, toString, writepublic static final int DEFAULT_PORT
@Deprecated public SslSocketManager(String name, OutputStream os, Socket sock, SslConfiguration sslConfig, InetAddress inetAddress, String host, int port, int connectTimeoutMillis, int reconnectionDelayMillis, boolean immediateFail, Layout<? extends Serializable> layout, int bufferSize)
SslSocketManager(String, OutputStream, Socket, SslConfiguration, InetAddress, String, int, int, int, boolean, Layout, int, SocketOptions).name - The unique name of this connection.os - The OutputStream.sock - The Socket.inetAddress - The Internet address of the host.host - The name of the host.port - The port number on the host.connectTimeoutMillis - the connect timeout in milliseconds.reconnectionDelayMillis - Reconnection interval.immediateFail - layout - The Layout.bufferSize - The buffer size.public SslSocketManager(String name, OutputStream os, Socket sock, SslConfiguration sslConfig, InetAddress inetAddress, String host, int port, int connectTimeoutMillis, int reconnectionDelayMillis, boolean immediateFail, Layout<? extends Serializable> layout, int bufferSize, SocketOptions socketOptions)
name - The unique name of this connection.os - The OutputStream.sock - The Socket.inetAddress - The Internet address of the host.host - The name of the host.port - The port number on the host.connectTimeoutMillis - the connect timeout in milliseconds.reconnectionDelayMillis - Reconnection interval.immediateFail - layout - The Layout.bufferSize - The buffer size.@Deprecated public static SslSocketManager getSocketManager(SslConfiguration sslConfig, String host, int port, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, Layout<? extends Serializable> layout, int bufferSize)
public static SslSocketManager getSocketManager(SslConfiguration sslConfig, String host, int port, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, Layout<? extends Serializable> layout, int bufferSize, SocketOptions socketOptions)
protected Socket createSocket(String host, int port) throws IOException
createSocket in class TcpSocketManagerIOExceptionCopyright © 1999-2018. 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.