@ThreadSafe
public final class JobGrpcClientUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static JobInfo |
getJobStatus(long jobId,
AlluxioConfiguration alluxioConf,
boolean verbose) |
static long |
run(JobConfig config,
int attempts,
AlluxioConfiguration alluxioConf)
Runs the specified job and waits for it to finish.
|
public static JobInfo getJobStatus(long jobId, AlluxioConfiguration alluxioConf, boolean verbose) throws java.io.IOException
jobId - the job idalluxioConf - the Alluxio configurationverbose - if true, will return the detailed job infoJobInfo for the job idjava.io.IOExceptionpublic static long run(JobConfig config, int attempts, AlluxioConfiguration alluxioConf) throws java.lang.InterruptedException
config - configuration for the job to runattempts - number of times to try running the job before giving upalluxioConf - Alluxio configurationjava.lang.InterruptedExceptionCopyright © 2021. All Rights Reserved.