org.apache.logging.log4j.core.net
Class DatagramSocketManager
java.lang.Object
org.apache.logging.log4j.core.appender.AbstractManager
org.apache.logging.log4j.core.appender.OutputStreamManager
org.apache.logging.log4j.core.net.AbstractSocketManager
org.apache.logging.log4j.core.net.DatagramSocketManager
public class DatagramSocketManager
- extends AbstractSocketManager
Socket Manager for UDP connections.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatagramSocketManager
protected DatagramSocketManager(String name,
OutputStream os,
InetAddress inetAddress,
String host,
int port,
Layout<? extends Serializable> layout)
- The Constructor.
- Parameters:
name
- The unique name of the connection.os
- The OutputStream.inetAddress
- host
- The host to connect to.port
- The port on the host.layout
- The layout
getSocketManager
public static DatagramSocketManager getSocketManager(String host,
int port,
Layout<? extends Serializable> layout)
- Obtain a SocketManager.
- Parameters:
host
- The host to connect to.port
- The port on the host.layout
- The layout.
- Returns:
- A DatagramSocketManager.
getContentFormat
public Map<String,String> getContentFormat()
- Gets this DatagramSocketManager's content format. Specified by:
- Key: "protocol" Value: "udp"
- Key: "direction" Value: "out"
- Overrides:
getContentFormat
in class AbstractSocketManager
- Returns:
- Map of content format keys supporting DatagramSocketManager
Copyright © 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.