Class AgentServer

    • Field Detail

      • agentThread

        private java.util.concurrent.Future<?> agentThread
      • authSocket

        private java.lang.String authSocket
      • pool

        private long pool
      • handle

        private long handle
    • Method Detail

      • start

        public java.lang.String start()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • throwException

        private static void throwException​(int code)
                                    throws java.io.IOException
        transform an APR error number in a more fancy exception
        Parameters:
        code - APR error code
        Throws:
        java.io.IOException - the produced exception for the given APR error number