public enum ThrowingJobGraphWriter extends Enum<ThrowingJobGraphWriter> implements JobGraphWriter
JobGraphWriter
implementation which does not allow to store JobGraph
.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
putJobGraph(JobGraph jobGraph)
Adds the
JobGraph instance. |
void |
releaseJobGraph(org.apache.flink.api.common.JobID jobId)
Releases the locks on the specified
JobGraph . |
void |
removeJobGraph(org.apache.flink.api.common.JobID jobId)
Removes the
JobGraph with the given JobID if it exists. |
static ThrowingJobGraphWriter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThrowingJobGraphWriter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThrowingJobGraphWriter INSTANCE
public static ThrowingJobGraphWriter[] values()
for (ThrowingJobGraphWriter c : ThrowingJobGraphWriter.values()) System.out.println(c);
public static ThrowingJobGraphWriter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void putJobGraph(JobGraph jobGraph)
JobGraphWriter
JobGraph
instance.
If a job graph with the same JobID
exists, it is replaced.
putJobGraph
in interface JobGraphWriter
public void removeJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphWriter
JobGraph
with the given JobID
if it exists.removeJobGraph
in interface JobGraphWriter
public void releaseJobGraph(org.apache.flink.api.common.JobID jobId)
JobGraphWriter
JobGraph
.
Releasing the locks allows that another instance can delete the job from the JobGraphStore
.
releaseJobGraph
in interface JobGraphWriter
jobId
- specifying the job to release the locks forCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.