use of org.apache.flink.runtime.jobgraph.SavepointRestoreSettings in project flink by apache.
the class StreamGraphGeneratorTest method testSettingSavepointRestoreSettingsSetterOverrides.
@Test
public void testSettingSavepointRestoreSettingsSetterOverrides() {
Configuration config = new Configuration();
config.set(SavepointConfigOptions.SAVEPOINT_PATH, "/tmp/savepoint");
StreamGraphGenerator generator = new StreamGraphGenerator(Collections.emptyList(), new ExecutionConfig(), new CheckpointConfig(), config);
generator.setSavepointRestoreSettings(SavepointRestoreSettings.forPath("/tmp/savepoint1"));
final StreamGraph streamGraph = generator.generate();
SavepointRestoreSettings savepointRestoreSettings = streamGraph.getSavepointRestoreSettings();
assertThat(savepointRestoreSettings, equalTo(SavepointRestoreSettings.forPath("/tmp/savepoint1")));
}
use of org.apache.flink.runtime.jobgraph.SavepointRestoreSettings in project flink by apache.
the class StreamGraphGeneratorTest method testSettingSavepointRestoreSettings.
@Test
public void testSettingSavepointRestoreSettings() {
Configuration config = new Configuration();
config.set(SavepointConfigOptions.SAVEPOINT_PATH, "/tmp/savepoint");
final StreamGraph streamGraph = new StreamGraphGenerator(Collections.emptyList(), new ExecutionConfig(), new CheckpointConfig(), config).generate();
SavepointRestoreSettings savepointRestoreSettings = streamGraph.getSavepointRestoreSettings();
assertThat(savepointRestoreSettings, equalTo(SavepointRestoreSettings.forPath("/tmp/savepoint")));
}
Aggregations