Skip to content

Commit

Permalink
[FLINK-16658] Make StandaloneJobClusterEntryPoint extend directly Clu…
Browse files Browse the repository at this point in the history
…sterEntrypoint

The StandaloneJobClusterEntryPoint is actually a
StandaloneApplicationClusterEntryPoint now. To illustrate that, we break
the previous hierarchy which would be misleading, but we keep the same
name for backwards compatibility reasons.
  • Loading branch information
kl0u committed Apr 21, 2020
1 parent e15da89 commit 8af9e21
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
import org.apache.flink.configuration.DeploymentOptions;
import org.apache.flink.configuration.PipelineOptions;
import org.apache.flink.configuration.PipelineOptionsInternal;
import org.apache.flink.runtime.concurrent.ScheduledExecutor;
import org.apache.flink.runtime.dispatcher.ArchivedExecutionGraphStore;
import org.apache.flink.runtime.dispatcher.MemoryArchivedExecutionGraphStore;
import org.apache.flink.runtime.dispatcher.SessionDispatcherFactory;
import org.apache.flink.runtime.dispatcher.runner.DefaultDispatcherRunnerFactory;
import org.apache.flink.runtime.entrypoint.ClusterEntrypoint;
Expand Down Expand Up @@ -58,7 +61,7 @@
* {@link JobClusterEntrypoint} which is started with a job in a predefined
* location.
*/
public final class StandaloneJobClusterEntryPoint extends JobClusterEntrypoint {
public final class StandaloneJobClusterEntryPoint extends ClusterEntrypoint {

public static final JobID ZERO_JOB_ID = new JobID(0, 0);

Expand All @@ -81,6 +84,13 @@ protected DispatcherResourceManagerComponentFactory createDispatcherResourceMana
JobRestEndpointFactory.INSTANCE);
}

@Override
protected ArchivedExecutionGraphStore createSerializableExecutionGraphStore(
Configuration configuration,
ScheduledExecutor scheduledExecutor) {
return new MemoryArchivedExecutionGraphStore();
}

public static void main(String[] args) {
// startup checks and logging
EnvironmentInformation.logEnvironmentInfo(LOG, StandaloneJobClusterEntryPoint.class.getSimpleName(), args);
Expand Down

0 comments on commit 8af9e21

Please sign in to comment.