Package alluxio.proxy

Class AlluxioProxyProcess

  • All Implemented Interfaces:
    alluxio.Process, ProxyProcess

    @NotThreadSafe
    public final class AlluxioProxyProcess
    extends java.lang.Object
    implements ProxyProcess
    This class encapsulates the different worker services that are configured to run.
    • Method Detail

      • getWebLocalPort

        public int getWebLocalPort()
        Specified by:
        getWebLocalPort in interface ProxyProcess
        Returns:
        the worker web service port (used by unit test only)
      • getStartTimeMs

        public long getStartTimeMs()
        Specified by:
        getStartTimeMs in interface ProxyProcess
        Returns:
        the start time of the worker in milliseconds
      • getUptimeMs

        public long getUptimeMs()
        Specified by:
        getUptimeMs in interface ProxyProcess
        Returns:
        the uptime of the worker in milliseconds
      • start

        public void start()
                   throws java.lang.Exception
        Specified by:
        start in interface alluxio.Process
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Specified by:
        stop in interface alluxio.Process
        Throws:
        java.lang.Exception
      • waitForReady

        public boolean waitForReady​(int timeoutMs)
        Specified by:
        waitForReady in interface alluxio.Process
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object