@ThreadSafe public final class JobGrpcClientUtils extends 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 IOException
jobId
- the job idalluxioConf
- the Alluxio configurationverbose
- if true, will return the detailed job infoJobInfo
for the job idIOException
public static long run(JobConfig config, int attempts, AlluxioConfiguration alluxioConf) throws InterruptedException
config
- configuration for the job to runattempts
- number of times to try running the job before giving upalluxioConf
- Alluxio configurationInterruptedException
Copyright © 2023. All Rights Reserved.