Class SslSocketManager
- All Implemented Interfaces:
AutoCloseable, ByteBufferDestination
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classNested classes/interfaces inherited from class TcpSocketManager
TcpSocketManager.FactoryData, TcpSocketManager.HostResolver, TcpSocketManager.TcpSocketManagerFactory<M,T> Nested classes/interfaces inherited from class AbstractManager
AbstractManager.AbstractFactoryData -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final SslSocketManager.SslSocketManagerFactoryprivate final SslConfigurationFields inherited from class TcpSocketManager
DEFAULT_RECONNECTION_DELAY_MILLISFields inherited from class AbstractSocketManager
host, inetAddress, portFields inherited from class OutputStreamManager
byteBuffer, layoutFields inherited from class AbstractManager
count, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionSslSocketManager(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) Deprecated.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) -
Method Summary
Modifier and TypeMethodDescriptionprotected SocketcreateSocket(InetSocketAddress socketAddress) (package private) static SocketcreateSocket(InetSocketAddress socketAddress, int connectTimeoutMillis, SslConfiguration sslConfiguration, SocketOptions socketOptions) private static SSLSocketFactorycreateSslSocketFactory(SslConfiguration sslConf) static SslSocketManagergetSocketManager(SslConfiguration sslConfig, String host, int port, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, Layout<? extends Serializable> layout, int bufferSize) static SslSocketManagergetSocketManager(SslConfiguration sslConfig, String host, int port, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, Layout<? extends Serializable> layout, int bufferSize, SocketOptions socketOptions) Methods inherited from class TcpSocketManager
closeOutputStream, createSocket, getConnectTimeoutMillis, getContentFormat, getReconnectionDelayMillis, getSocket, getSocketManager, getSocketManager, getSocketOptions, setHostResolver, toString, writeMethods inherited from class AbstractSocketManager
getHost, getPortMethods inherited from class OutputStreamManager
createOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, getOutputStream, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, write, writeBytes, writeBytes, writeFooter, writeHeader, writeToDestinationMethods inherited from class AbstractManager
close, getCount, getLoggerContext, getManager, getName, getStrSubstitutor, hasManager, log, logDebug, logError, logger, logWarn, narrow, release, stop, updateData
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
FACTORY
-
sslConfig
-
-
Constructor Details
-
SslSocketManager
@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) Deprecated.- Parameters:
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.
-
SslSocketManager
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) - Parameters:
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.
-
-
Method Details
-
getSocketManager
@Deprecated public static SslSocketManager getSocketManager(SslConfiguration sslConfig, String host, int port, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, Layout<? extends Serializable> layout, int bufferSize) -
getSocketManager
public static SslSocketManager getSocketManager(SslConfiguration sslConfig, String host, int port, int connectTimeoutMillis, int reconnectDelayMillis, boolean immediateFail, Layout<? extends Serializable> layout, int bufferSize, SocketOptions socketOptions) -
createSocket
- Overrides:
createSocketin classTcpSocketManager- Throws:
IOException
-
createSslSocketFactory
-
createSocket
static Socket createSocket(InetSocketAddress socketAddress, int connectTimeoutMillis, SslConfiguration sslConfiguration, SocketOptions socketOptions) throws IOException - Throws:
IOException
-
SslSocketManager(String, OutputStream, Socket, SslConfiguration, InetAddress, String, int, int, int, boolean, Layout, int, SocketOptions).