Class FileConfigStore


  • public class FileConfigStore
    extends ConfigStorage
    FileConfigStore: Extends PropConfigStore with methods to load/save from/to file for persistent storage. This is a configuration store agent who reads data from a file.

    Version:
    $Revision$, $Date$
    See Also:
    PropConfigStore
    • Constructor Summary

      Constructors 
      Constructor Description
      FileConfigStore​(java.lang.String fileName)
      Constructs a file configuration store.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void commit​(IConfigStore config, boolean createBackup)
      The original config file is copied to ..
      java.io.File getFile()  
      void load​(IConfigStore config)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileConfigStore

        public FileConfigStore​(java.lang.String fileName)
                        throws java.lang.Exception
        Constructs a file configuration store.

        Parameters:
        fileName - file name
        Throws:
        EBaseException - failed to create file configuration
        java.lang.Exception
    • Method Detail

      • getFile

        public java.io.File getFile()
      • load

        public void load​(IConfigStore config)
                  throws java.lang.Exception
        Overrides:
        load in class ConfigStorage
        Throws:
        java.lang.Exception