public abstract class AbstractSocketManager extends OutputStreamManager
| Modifier and Type | Field and Description |
|---|---|
protected InetAddress |
address
The internet address of the host.
|
protected String |
host
The name of the host.
|
protected int |
port
The port on the host.
|
count, LOGGER| Constructor and Description |
|---|
AbstractSocketManager(String name,
OutputStream os,
InetAddress addr,
String host,
int port,
Layout<? extends Serializable> layout)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getContentFormat()
AbstractSocketManager's content format is specified by:
Key: "port" Value: provided "port" param
Key: "address" Value: provided "address" param
|
close, flush, getManager, getOutputStream, isOpen, releaseSub, setOutputStream, write, writegetCount, getName, hasManager, releaseprotected final InetAddress address
protected final String host
protected final int port
public AbstractSocketManager(String name, OutputStream os, InetAddress addr, String host, int port, Layout<? extends Serializable> layout)
name - The unique name of this connection.os - The OutputStream to manage.addr - The internet address.host - The target host name.port - The target port number.public Map<String,String> getContentFormat()
getContentFormat in class AbstractManagerCopyright © 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.