Class AbstractSocketManager

    • Field Detail

      • inetAddress

        protected final java.net.InetAddress inetAddress
        The Internet address of the host.
      • host

        protected final java.lang.String host
        The name of the host.
      • port

        protected final int port
        The port on the host.
    • Constructor Detail

      • AbstractSocketManager

        public AbstractSocketManager​(java.lang.String name,
                                     java.io.OutputStream os,
                                     java.net.InetAddress inetAddress,
                                     java.lang.String host,
                                     int port,
                                     Layout<? extends java.io.Serializable> layout,
                                     boolean writeHeader,
                                     int bufferSize)
        Constructs a new instance.
        Parameters:
        name - The unique name of this connection.
        os - The OutputStream to manage.
        inetAddress - The Internet address.
        host - The target host name.
        port - The target port number.
        bufferSize - The buffer size.
    • Method Detail

      • getContentFormat

        public java.util.Map<java.lang.String,​java.lang.String> getContentFormat()
        Gets this AbstractSocketManager's content format. Specified by:
        • Key: "port" Value: provided "port" param
        • Key: "address" Value: provided "address" param
        Overrides:
        getContentFormat in class AbstractManager
        Returns:
        Map of content format keys supporting AbstractSocketManager
      • getHost

        public java.lang.String getHost()
        Gets the host.
        Returns:
        the host.
      • getPort

        public int getPort()
        Gets the port.
        Returns:
        the port.