Class FileJobGraphRetriever
- java.lang.Object
-
- org.apache.flink.runtime.entrypoint.component.AbstractUserClassPathJobGraphRetriever
-
- org.apache.flink.runtime.entrypoint.component.FileJobGraphRetriever
-
- All Implemented Interfaces:
JobGraphRetriever
public class FileJobGraphRetriever extends AbstractUserClassPathJobGraphRetriever
JobGraphRetriever
implementation which retrieves theJobGraph
from a file on disk.
-
-
Field Summary
Fields Modifier and Type Field Description static ConfigOption<String>
JOB_GRAPH_FILE_PATH
-
Constructor Summary
Constructors Constructor Description FileJobGraphRetriever(String jobGraphFile, File usrLibDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileJobGraphRetriever
createFrom(Configuration configuration, File usrLibDir)
JobGraph
retrieveJobGraph(Configuration configuration)
Retrieve theJobGraph
.-
Methods inherited from class org.apache.flink.runtime.entrypoint.component.AbstractUserClassPathJobGraphRetriever
getUserClassPaths
-
-
-
-
Field Detail
-
JOB_GRAPH_FILE_PATH
@Internal public static final ConfigOption<String> JOB_GRAPH_FILE_PATH
-
-
Constructor Detail
-
FileJobGraphRetriever
public FileJobGraphRetriever(@Nonnull String jobGraphFile, @Nullable File usrLibDir) throws IOException
- Throws:
IOException
-
-
Method Detail
-
retrieveJobGraph
public JobGraph retrieveJobGraph(Configuration configuration) throws FlinkException
Description copied from interface:JobGraphRetriever
Retrieve theJobGraph
.- Parameters:
configuration
- cluster configuration- Returns:
- the retrieved
JobGraph
. - Throws:
FlinkException
- if theJobGraph
could not be retrieved
-
createFrom
public static FileJobGraphRetriever createFrom(Configuration configuration, @Nullable File usrLibDir) throws IOException
- Throws:
IOException
-
-