Package org.apache.flink.runtime.client
Class DuplicateJobSubmissionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.flink.util.FlinkException
-
- org.apache.flink.runtime.client.JobExecutionException
-
- org.apache.flink.runtime.client.JobSubmissionException
-
- org.apache.flink.runtime.client.DuplicateJobSubmissionException
-
- All Implemented Interfaces:
Serializable
public class DuplicateJobSubmissionException extends JobSubmissionException
Exception which is returned upon job submission if the submitted job is currently being executed.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isGloballyTerminated()
Checks whether the duplicate job has already been finished.static DuplicateJobSubmissionException
of(org.apache.flink.api.common.JobID jobId)
static DuplicateJobSubmissionException
ofGloballyTerminated(org.apache.flink.api.common.JobID jobId)
-
Methods inherited from class org.apache.flink.runtime.client.JobExecutionException
getJobID
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
of
public static DuplicateJobSubmissionException of(org.apache.flink.api.common.JobID jobId)
-
ofGloballyTerminated
public static DuplicateJobSubmissionException ofGloballyTerminated(org.apache.flink.api.common.JobID jobId)
-
isGloballyTerminated
public boolean isGloballyTerminated()
Checks whether the duplicate job has already been finished.- Returns:
- true if the job has already finished, either successfully or as a failure
-
-