public class DatagramSocketManager extends AbstractSocketManager
address, host, portcount, LOGGER| Modifier | Constructor and Description |
|---|---|
protected |
DatagramSocketManager(String name,
OutputStream os,
InetAddress address,
String host,
int port,
Layout<? extends Serializable> layout)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getContentFormat()
DatagramSocketManager's content format is specified by:
Key: "protocol" Value: "udp"
Key: "direction" Value: "out"
|
static DatagramSocketManager |
getSocketManager(String host,
int port,
Layout<? extends Serializable> layout)
Obtain a SocketManager.
|
close, flush, getManager, getOutputStream, isOpen, releaseSub, setOutputStream, write, writegetCount, getName, hasManager, releaseprotected DatagramSocketManager(String name, OutputStream os, InetAddress address, String host, int port, Layout<? extends Serializable> layout)
name - The unique name of the connection.os - The OutputStream.address - host - The host to connect to.port - The port on the host.layout - The layoutpublic static DatagramSocketManager getSocketManager(String host, int port, Layout<? extends Serializable> layout)
host - The host to connect to.port - The port on the host.layout - The layout.public Map<String,String> getContentFormat()
getContentFormat in class AbstractSocketManagerCopyright © 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.