org.apache.logging.log4j.core.net
Class TLSSocketManager

java.lang.Object
  extended by org.apache.logging.log4j.core.appender.AbstractManager
      extended by org.apache.logging.log4j.core.appender.OutputStreamManager
          extended by org.apache.logging.log4j.core.net.AbstractSocketManager
              extended by org.apache.logging.log4j.core.net.TCPSocketManager
                  extended by org.apache.logging.log4j.core.net.TLSSocketManager

public class TLSSocketManager
extends TCPSocketManager


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.net.TCPSocketManager
TCPSocketManager.TCPSocketManagerFactory
 
Field Summary
static int DEFAULT_PORT
           
 
Fields inherited from class org.apache.logging.log4j.core.net.TCPSocketManager
DEFAULT_RECONNECTION_DELAY
 
Fields inherited from class org.apache.logging.log4j.core.net.AbstractSocketManager
address, host, port
 
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager
count, LOGGER
 
Constructor Summary
TLSSocketManager(String name, OutputStream os, Socket sock, SSLConfiguration sslConfig, InetAddress addr, String host, int port, int delay, boolean immediateFail, Layout layout)
           
 
Method Summary
protected  Socket createSocket(String host, int port)
           
static TLSSocketManager getSocketManager(SSLConfiguration sslConfig, String host, int port, int delay, boolean immediateFail, Layout layout)
           
 
Methods inherited from class org.apache.logging.log4j.core.net.TCPSocketManager
close, createSocket, getContentFormat, getSocketManager, write
 
Methods inherited from class org.apache.logging.log4j.core.appender.OutputStreamManager
flush, getManager, getOutputStream, isOpen, releaseSub, setOutputStream, write
 
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager
getCount, getName, hasManager, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

TLSSocketManager

public TLSSocketManager(String name,
                        OutputStream os,
                        Socket sock,
                        SSLConfiguration sslConfig,
                        InetAddress addr,
                        String host,
                        int port,
                        int delay,
                        boolean immediateFail,
                        Layout layout)
Parameters:
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.
Method Detail

getSocketManager

public static TLSSocketManager getSocketManager(SSLConfiguration sslConfig,
                                                String host,
                                                int port,
                                                int delay,
                                                boolean immediateFail,
                                                Layout layout)

createSocket

protected Socket createSocket(String host,
                              int port)
                       throws IOException
Overrides:
createSocket in class TCPSocketManager
Throws:
IOException


Copyright © 1999-2013 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.