Package alluxio.proxy
Class AlluxioProxyProcess
- java.lang.Object
-
- alluxio.proxy.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface alluxio.proxy.ProxyProcess
ProxyProcess.Factory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetStartTimeMs()longgetUptimeMs()intgetWebLocalPort()voidstart()voidstop()java.lang.StringtoString()booleanwaitForReady(int timeoutMs)
-
-
-
Method Detail
-
getWebLocalPort
public int getWebLocalPort()
- Specified by:
getWebLocalPortin interfaceProxyProcess- Returns:
- the worker web service port (used by unit test only)
-
getStartTimeMs
public long getStartTimeMs()
- Specified by:
getStartTimeMsin interfaceProxyProcess- Returns:
- the start time of the worker in milliseconds
-
getUptimeMs
public long getUptimeMs()
- Specified by:
getUptimeMsin interfaceProxyProcess- Returns:
- the uptime of the worker in milliseconds
-
start
public void start() throws java.lang.Exception- Specified by:
startin interfacealluxio.Process- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception- Specified by:
stopin interfacealluxio.Process- Throws:
java.lang.Exception
-
waitForReady
public boolean waitForReady(int timeoutMs)
- Specified by:
waitForReadyin interfacealluxio.Process
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-