public class TLSSocketManager extends TCPSocketManager
TCPSocketManager.TCPSocketManagerFactory
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
DEFAULT_RECONNECTION_DELAY
address, host, port
count, LOGGER
Constructor and Description |
---|
TLSSocketManager(String name,
OutputStream os,
Socket sock,
SSLConfiguration sslConfig,
InetAddress addr,
String host,
int port,
int delay,
boolean immediateFail,
Layout layout) |
Modifier and Type | Method and Description |
---|---|
protected Socket |
createSocket(String host,
int port) |
static TLSSocketManager |
getSocketManager(SSLConfiguration sslConfig,
String host,
int port,
int delay,
boolean immediateFail,
Layout layout) |
close, createSocket, getContentFormat, getSocketManager, write
flush, getManager, getOutputStream, isOpen, releaseSub, setOutputStream, write
getCount, getName, hasManager, release
public static final int DEFAULT_PORT
public TLSSocketManager(String name, OutputStream os, Socket sock, SSLConfiguration sslConfig, InetAddress addr, String host, int port, int delay, boolean immediateFail, Layout layout)
name
- The unique name of this connection.os
- The OutputStream.sock
- The Socket.addr
- The internet address of the host.host
- The name of the host.port
- The port number on the host.delay
- Reconnection interval.immediateFail
- layout
- The Layout.public static TLSSocketManager getSocketManager(SSLConfiguration sslConfig, String host, int port, int delay, boolean immediateFail, Layout layout)
protected Socket createSocket(String host, int port) throws IOException
createSocket
in class TCPSocketManager
IOException
Copyright © 1999-2014 Apache Software Foundation. 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.