Github user tillrohrmann commented on a diff in the pull request: https://github.com/apache/flink/pull/1153#discussion_r41128614 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/util/ZooKeeperUtils.java --- @@ -153,6 +176,143 @@ public static ZooKeeperLeaderElectionService createLeaderElectionService( } /** + * Creates a {@link ZooKeeperSubmittedJobGraphs} instance. + * + * @param client The {@link CuratorFramework} ZooKeeper client to use + * @param configuration {@link Configuration} object + * @return {@link ZooKeeperSubmittedJobGraphs} instance + */ + public static ZooKeeperSubmittedJobGraphs createSubmittedJobGraphs( + CuratorFramework client, + Configuration configuration) throws Exception { + + checkNotNull(configuration, "Configuration"); + + // State backend + String stateBackend = configuration.getString( + ConfigConstants.STATE_BACKEND, + ConfigConstants.DEFAULT_STATE_BACKEND); + + if (!stateBackend.toLowerCase().equals("filesystem")) { --- End diff -- Could we use the enum `StateBackend` here rather than string equality? Maybe it would be a good idea to use a factory method for the state backend depending on the `StateBackend` enum value.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---