Interface Persistence

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
AbstractDarabasePersistence, AbstractFilePersistence, AbstractPersistence, JPPFAsyncFilePersistence, JPPFFilePersistence

public interface Persistence extends AutoCloseable
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.jppf.utils.TypedProperties
    Load the settings for the specified user.
    Load the settings for the specified user.
    void
    saveProperties(String name, org.jppf.utils.TypedProperties settings)
    Save the settings for the specified user.
    void
    saveString(String name, String settings)
    Save the settings for the specified user.
  • Method Details

    • loadProperties

      org.jppf.utils.TypedProperties loadProperties(String name) throws Exception
      Load the settings for the specified user.
      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

      void saveProperties(String name, org.jppf.utils.TypedProperties settings) throws Exception
      Save the settings for the specified user.
      Parameters:
      name - the name of the file to save to.
      settings - the settings to save.
      Throws:
      Exception - if any error occurs.
    • loadString

      String loadString(String name) throws Exception
      Load the settings for the specified user.
      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.
    • saveString

      void saveString(String name, String settings) throws Exception
      Save the settings for the specified user.
      Parameters:
      name - the name of the file to save to.
      settings - the settings to save.
      Throws:
      Exception - if any error occurs.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable