@ThreadSafe public final class JobGrpcClientUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Thread |
createProgressThread(long intervalMs,
PrintStream stream)
Creates a thread which will write "." to the given print stream at the given interval.
|
static Thread |
createProgressThread(PrintStream stream)
Convenience method for calling
createProgressThread(long, PrintStream) with an
interval of 2 seconds. |
static void |
run(JobConfig config,
int attempts,
alluxio.conf.AlluxioConfiguration alluxioConf)
Runs the specified job and waits for it to finish.
|
public static void run(JobConfig config, int attempts, alluxio.conf.AlluxioConfiguration alluxioConf) throws InterruptedException
config - configuration for the job to runattempts - number of times to try running the job before giving upalluxioConf - Alluxio configurationInterruptedExceptionpublic static Thread createProgressThread(PrintStream stream)
createProgressThread(long, PrintStream) with an
interval of 2 seconds.stream - the print stream to write topublic static Thread createProgressThread(long intervalMs, PrintStream stream)
intervalMs - the time interval in milliseconds between writesstream - the print stream to write toCopyright © 2019. All Rights Reserved.