AutoCloseable, ByteBufferDestinationDatagramSocketManager, TcpSocketManagerpublic abstract class AbstractSocketManager extends OutputStreamManager
| Modifier and Type | Field | Description |
|---|---|---|
protected String |
host |
The name of the host.
|
protected InetAddress |
inetAddress |
The Internet address of the host.
|
protected int |
port |
The port on the host.
|
count, LOGGERbyteBuffer, layout| Constructor | Description |
|---|---|
AbstractSocketManager(String name,
OutputStream os,
InetAddress inetAddress,
String host,
int port,
Layout<? extends Serializable> layout,
boolean writeHeader,
int bufferSize) |
The Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
Map<String,String> |
getContentFormat() |
Gets this AbstractSocketManager's content format.
|
close, getCount, getLoggerContext, getName, hasManager, log, logDebug, logError, logWarn, narrow, release, stop, updateDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseOutputStream, createOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, getOutputStream, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, write, write, writeBytes, writeBytes, writeFooter, writeToDestinationprotected final InetAddress inetAddress
protected final String host
protected final int port
public AbstractSocketManager(String name, OutputStream os, InetAddress inetAddress, String host, int port, Layout<? extends Serializable> layout, boolean writeHeader, int bufferSize)
name - The unique name of this connection.os - The OutputStream to manage.inetAddress - The Internet address.host - The target host name.port - The target port number.bufferSize - The buffer size.public Map<String,String> getContentFormat()
getContentFormat in class AbstractManagerCopyright © 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.