Class AbstractPersistence

java.lang.Object
org.jppf.admin.web.settings.AbstractPersistence
All Implemented Interfaces:
AutoCloseable, Persistence
Direct Known Subclasses:
AbstractDarabasePersistence, AbstractFilePersistence

public abstract class AbstractPersistence extends Object implements Persistence
Author:
Laurent Cohen
  • Constructor Details

    • AbstractPersistence

      public AbstractPersistence()
  • Method Details

    • loadProperties

      public org.jppf.utils.TypedProperties loadProperties(String name) throws Exception
      Description copied from interface: Persistence
      Load the settings for the specified user.
      Specified by:
      loadProperties in interface Persistence
      Parameters:
      name - the name fo the file to load from.
      Returns:
      the settings propeties loadded from the persistent store.
      Throws:
      Exception - if any error occurs.
    • saveProperties

      public void saveProperties(String name, org.jppf.utils.TypedProperties settings) throws Exception
      Description copied from interface: Persistence
      Save the settings for the specified user.
      Specified by:
      saveProperties in interface Persistence
      Parameters:
      name - the name of the file to save to.
      settings - the settings to save.
      Throws:
      Exception - if any error occurs.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Persistence