@Override public FsStateBackend createFromConfig(Configuration config) throws IllegalConfigurationException { // we need to explicitly read the checkpoint directory here, because that // is a required constructor parameter final String checkpointDir = config.getString(CheckpointingOptions.CHECKPOINTS_DIRECTORY); if (checkpointDir == null) { throw new IllegalConfigurationException( "Cannot create the file system state backend: The configuration does not specify the " + "checkpoint directory '" + CheckpointingOptions.CHECKPOINTS_DIRECTORY.key() + '\''); } try { return new FsStateBackend(checkpointDir).configure(config); } catch (IllegalArgumentException e) { throw new IllegalConfigurationException("Invalid configuration for the state backend", e); } } }
@Override public FsStateBackend createFromConfig(Configuration config) throws IllegalConfigurationException { // we need to explicitly read the checkpoint directory here, because that // is a required constructor parameter final String checkpointDir = config.getString(CheckpointingOptions.CHECKPOINTS_DIRECTORY); if (checkpointDir == null) { throw new IllegalConfigurationException( "Cannot create the file system state backend: The configuration does not specify the " + "checkpoint directory '" + CheckpointingOptions.CHECKPOINTS_DIRECTORY.key() + '\''); } try { return new FsStateBackend(checkpointDir).configure(config); } catch (IllegalArgumentException e) { throw new IllegalConfigurationException("Invalid configuration for the state backend", e); } } }
@Override public FsStateBackend createFromConfig(Configuration config) throws IllegalConfigurationException { // we need to explicitly read the checkpoint directory here, because that // is a required constructor parameter final String checkpointDir = config.getString(CheckpointingOptions.CHECKPOINTS_DIRECTORY); if (checkpointDir == null) { throw new IllegalConfigurationException( "Cannot create the file system state backend: The configuration does not specify the " + "checkpoint directory '" + CheckpointingOptions.CHECKPOINTS_DIRECTORY.key() + '\''); } try { return new FsStateBackend(checkpointDir).configure(config); } catch (IllegalArgumentException e) { throw new IllegalConfigurationException("Invalid configuration for the state backend", e); } } }