public class DatagramSocketManager extends AbstractSocketManager
Modifier and Type | Class and Description |
---|---|
private static class |
DatagramSocketManager.DatagramSocketManagerFactory
Factory to create the DatagramSocketManager.
|
private static class |
DatagramSocketManager.FactoryData
Data for the factory.
|
Modifier and Type | Field and Description |
---|---|
private static DatagramSocketManager.DatagramSocketManagerFactory |
FACTORY |
host, inetAddress, port
byteBuffer, layout
count, LOGGER
Modifier | Constructor and Description |
---|---|
protected |
DatagramSocketManager(java.lang.String name,
java.io.OutputStream os,
java.net.InetAddress inetAddress,
java.lang.String host,
int port,
Layout<? extends java.io.Serializable> layout,
int bufferSize)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getContentFormat()
Gets this DatagramSocketManager's content format.
|
static DatagramSocketManager |
getSocketManager(java.lang.String host,
int port,
Layout<? extends java.io.Serializable> layout,
int bufferSize)
Obtain a SocketManager.
|
closeOutputStream, createOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, getOutputStream, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, write, write, writeBytes, writeBytes, writeFooter, writeToDestination
close, getCount, getLoggerContext, getName, hasManager, log, logDebug, logError, logWarn, narrow, release, stop, updateData
private static final DatagramSocketManager.DatagramSocketManagerFactory FACTORY
protected DatagramSocketManager(java.lang.String name, java.io.OutputStream os, java.net.InetAddress inetAddress, java.lang.String host, int port, Layout<? extends java.io.Serializable> layout, int bufferSize)
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 layoutbufferSize
- The buffer sizepublic static DatagramSocketManager getSocketManager(java.lang.String host, int port, Layout<? extends java.io.Serializable> layout, int bufferSize)
host
- The host to connect to.port
- The port on the host.layout
- The layout.bufferSize
- The buffer size.public java.util.Map<java.lang.String,java.lang.String> getContentFormat()
getContentFormat
in class AbstractSocketManager