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(JobID jobId)
Releases the locks on the specified
JobGraph . |
void |
removeJobGraph(JobID jobId)
|
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
putJobGraph
in interface JobGraphWriter
public void removeJobGraph(JobID jobId)
JobGraphWriter
removeJobGraph
in interface JobGraphWriter
public void releaseJobGraph(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.