Class TcpProxyService

    • Field Detail

      • logger

        private static final Logger logger
        logger
      • DEBUG

        private static final boolean DEBUG
      • SO_TIMEOUT_PROP

        public static final String SO_TIMEOUT_PROP
        Name the property that allow to fix the TCP SO_TIMEOUT property for the client's connections.
        See Also:
        Constant Field Values
      • DEFAULT_SO_TIMEOUT

        public static final int DEFAULT_SO_TIMEOUT
        Default value for the TCP SO_TIMEOUT property.
        See Also:
        Constant Field Values
      • POOL_SIZE_PROP

        public static final String POOL_SIZE_PROP
        Name the property that allow to fix the pool size for the connection's listener.
        See Also:
        Constant Field Values
      • DEFAULT_POOL_SIZE

        public static final int DEFAULT_POOL_SIZE
        Default value for the pool size.
        See Also:
        Constant Field Values
      • BACKLOG_PROP

        public static final String BACKLOG_PROP
        Name the property that allow to fix the TCP BACKLOG property for the client's connections.
        See Also:
        Constant Field Values
      • DEFAULT_BACKLOG

        public static final int DEFAULT_BACKLOG
        Default value for the TCP BACKLOG property.
        See Also:
        Constant Field Values
      • DEFAULT_PORT

        public static final int DEFAULT_PORT
        Default value for the TCP port of the listen socket.
        See Also:
        Constant Field Values
      • DEFAULT_BINDADDRESS

        public static final String DEFAULT_BINDADDRESS
        Default IP address for binding the listen socket.
        See Also:
        Constant Field Values
      • proxyService

        private static TcpProxyService proxyService
        The proxy service reference (used to stop it).
      • cnxWithNoAckedQueue

        private static boolean cnxWithNoAckedQueue
      • port

        private int port
      • backlog

        private int backlog
      • address

        private String address
      • serverSocket

        private ServerSocket serverSocket
        The server socket listening to connections from the JMS clients.
      • connectionListeners

        private TcpConnectionListener[] connectionListeners
        The thread listening to incoming TCP connections.
      • activated

        private boolean activated
    • Constructor Detail

      • TcpProxyService

        public TcpProxyService​(int port,
                               int backlog,
                               String address)
                        throws Exception
        Throws:
        Exception