Class DfsConfig


  • public final class DfsConfig
    extends StoredConfig
    Config implementation used by DFS repositories.

    The current implementation acts as if there is no persistent storage: loading simply clears the config, and saving does nothing.

    • Constructor Detail

      • DfsConfig

        public DfsConfig()
    • Method Detail

      • load

        public void load()
                  throws IOException,
                         ConfigInvalidException
        Load the configuration from the persistent store.

        If the configuration does not exist, this configuration is cleared, and thus behaves the same as though the backing store exists, but is empty.

        Specified by:
        load in class StoredConfig
        Throws:
        IOException - the configuration could not be read (but does exist).
        ConfigInvalidException - the configuration is not properly formatted.
      • save

        public void save()
                  throws IOException
        Save the configuration to the persistent store.
        Specified by:
        save in class StoredConfig
        Throws:
        IOException - the configuration could not be written.