public abstract class AbstractSocketManager extends OutputStreamManager
| Modifier and Type | Field and 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.
|
byteBuffer, layoutcount, LOGGER| Constructor and 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 and Description |
|---|---|
Map<String,String> |
getContentFormat()
Gets this AbstractSocketManager's content format.
|
closeOutputStream, createOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, getOutputStream, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, write, write, writeBytes, writeBytes, writeFooter, writeToDestinationclose, getCount, getLoggerContext, getName, hasManager, log, logDebug, logError, logger, logWarn, narrow, release, stop, updateDataprotected 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-2021 The 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.