public interface ClusterController extends AutoCloseableAsync
Modifier and Type | Method and Description |
---|---|
JobController |
submitJob(JobSubmission job,
java.time.Duration timeout)
Submits the given job to the cluster.
|
void |
submitSQLJob(SQLJobSubmission job,
java.time.Duration timeout)
Submits the given SQL job to the cluster.
|
close, closeAsync
JobController submitJob(JobSubmission job, java.time.Duration timeout) throws IOException
job
- job to submittimeout
- the maximum time to wait.IOException
void submitSQLJob(SQLJobSubmission job, java.time.Duration timeout) throws Exception
job
- job to submit.timeout
- the maximum time to wait.IOException
- if any IO error happen.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.