public class SslSocketManager extends TcpSocketManager
Modifier and Type | Class and Description |
---|---|
private static class |
SslSocketManager.SslFactoryData |
private static class |
SslSocketManager.SslSocketManagerFactory |
TcpSocketManager.TcpSocketManagerFactory
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
private static SslSocketManager.SslSocketManagerFactory |
FACTORY |
private SslConfiguration |
sslConfig |
DEFAULT_RECONNECTION_DELAY_MILLIS
host, inetAddress, port
byteBuffer, layout
count, LOGGER
Constructor and Description |
---|
SslSocketManager(java.lang.String name,
java.io.OutputStream os,
java.net.Socket sock,
SslConfiguration sslConfig,
java.net.InetAddress inetAddress,
java.lang.String host,
int port,
int connectTimeoutMillis,
int delay,
boolean immediateFail,
Layout<? extends java.io.Serializable> layout,
int bufferSize)
|
SslSocketManager(java.lang.String name,
java.io.OutputStream os,
java.net.Socket sock,
SslConfiguration sslConfig,
java.net.InetAddress inetAddress,
java.lang.String host,
int port,
int connectTimeoutMillis,
int delay,
boolean immediateFail,
Layout<? extends java.io.Serializable> layout,
int bufferSize,
SocketOptions socketOptions) |
Modifier and Type | Method and Description |
---|---|
protected java.net.Socket |
createSocket(java.lang.String host,
int port) |
private static javax.net.ssl.SSLSocketFactory |
createSslSocketFactory(SslConfiguration sslConf) |
static SslSocketManager |
getSocketManager(SslConfiguration sslConfig,
java.lang.String host,
int port,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
Layout<? extends java.io.Serializable> layout,
int bufferSize)
|
static SslSocketManager |
getSocketManager(SslConfiguration sslConfig,
java.lang.String host,
int port,
int connectTimeoutMillis,
int reconnectDelayMillis,
boolean immediateFail,
Layout<? extends java.io.Serializable> layout,
int bufferSize,
SocketOptions socketOptions) |
closeOutputStream, createSocket, getConnectTimeoutMillis, getContentFormat, getSocket, getSocketManager, getSocketManager, getSocketOptions, write
createOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, getOutputStream, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, write, writeFooter, writeToDestination
close, getCount, getLoggerContext, getName, hasManager, log, logDebug, logError, logWarn, release, stop, updateData
public static final int DEFAULT_PORT
private static final SslSocketManager.SslSocketManagerFactory FACTORY
private final SslConfiguration sslConfig
public SslSocketManager(java.lang.String name, java.io.OutputStream os, java.net.Socket sock, SslConfiguration sslConfig, java.net.InetAddress inetAddress, java.lang.String host, int port, int connectTimeoutMillis, int delay, boolean immediateFail, Layout<? extends java.io.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.delay
- Reconnection interval.immediateFail
- layout
- The Layout.bufferSize
- The buffer size.public SslSocketManager(java.lang.String name, java.io.OutputStream os, java.net.Socket sock, SslConfiguration sslConfig, java.net.InetAddress inetAddress, java.lang.String host, int port, int connectTimeoutMillis, int delay, boolean immediateFail, Layout<? extends java.io.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.delay
- Reconnection interval.immediateFail
- layout
- The Layout.bufferSize
- The buffer size.@Deprecated public static SslSocketManager getSocketManager(SslConfiguration sslConfig, java.lang.String host, int port, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, Layout<? extends java.io.Serializable> layout, int bufferSize)
public static SslSocketManager getSocketManager(SslConfiguration sslConfig, java.lang.String host, int port, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, Layout<? extends java.io.Serializable> layout, int bufferSize, SocketOptions socketOptions)
protected java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
createSocket
in class TcpSocketManager
java.io.IOException
private static javax.net.ssl.SSLSocketFactory createSslSocketFactory(SslConfiguration sslConf)