Class DatagramSocketManager

    • Constructor Detail

      • DatagramSocketManager

        protected DatagramSocketManager​(String name,
                                        OutputStream os,
                                        InetAddress inetAddress,
                                        String host,
                                        int port,
                                        Layout<? extends Serializable> layout,
                                        int bufferSize)
        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
        bufferSize - The buffer size
    • Method Detail

      • getSocketManager

        public static DatagramSocketManager getSocketManager​(String host,
                                                             int port,
                                                             Layout<? extends Serializable> layout,
                                                             int bufferSize)
        Obtain a SocketManager.
        Parameters:
        host - The host to connect to.
        port - The port on the host.
        layout - The layout.
        bufferSize - The buffer size.
        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