public class ProcessLauncher extends Object
PropertyKey.HOME
variable to determine the
root path to search for the alluxio-start.sh
script.Constructor and Description |
---|
ProcessLauncher(AlluxioConfiguration conf)
Creates a new instances of
ProcessLauncher . |
Modifier and Type | Method and Description |
---|---|
void |
start(AlluxioNodeType type)
Starts an Alluxio process of the given type.
|
void |
stop(AlluxioNodeType type)
Stop an Alluxio process of the given type.
|
public ProcessLauncher(AlluxioConfiguration conf) throws IOException
ProcessLauncher
.conf
- configuration to useIOException
- if the alluxio-start.sh
script cannot be foundpublic void start(AlluxioNodeType type) throws IOException, InterruptedException
type
- the alluxio process type to launchIOException
- if there is an issue creating the subprocessInterruptedException
- if the thread is interrupted while waiting for the process to
startpublic void stop(AlluxioNodeType type) throws IOException, InterruptedException, TimeoutException
type
- the alluxio process type to stopIOException
- if there is an issue creating the subprocessInterruptedException
- if the thread is interrupted while waiting for the process to
stopTimeoutException
Copyright © 2023. All Rights Reserved.