Class FileManager

java.lang.Object
de.uka.ipd.sdq.sensorframework.dao.file.FileManager

public class FileManager extends Object
Deprecated.
Superseded by EDP2.
  • Constructor Details

  • Method Details

    • removeFile

      public boolean removeFile(String filename)
      Deprecated.
      Delete the given file
      Parameters:
      filename - Name of the file to delete
      Returns:
      true if deletion was successful
    • serializeToFile

      public void serializeToFile(String filename, Serializable ser)
      Deprecated.
      Write the given serializable into the given file using Java's object serialisation mechanism
      Parameters:
      filename - Name of the file in which the data is written
      ser - The object to persist
    • deserializeFromFile

      public Serializable deserializeFromFile(String fileName)
      Deprecated.
      Read the object stored in the given file
      Parameters:
      fileName - The file from which to read the data
      Returns:
      The object persisted in the given file
    • deserializeFromFile

      public Serializable deserializeFromFile(File file)
      Deprecated.
      Read the object stored in the given file
      Parameters:
      file - The file from which to read the data
      Returns:
      The object persisted in the given file
    • getRootDirectory

      public String getRootDirectory()
      Deprecated.
    • addOpenList

      public void addOpenList(BackgroundMemoryList<?> list)
      Deprecated.
      Add a new BackgroundMemoryList to this class's registry of open lists
      Parameters:
      list - The list to add to the registry for closing on termination
    • closeAllLists

      public void closeAllLists()
      Deprecated.
      Closes all lists registered in this class' registry of open background lists
    • getDAOFactory

      public IDAOFactory getDAOFactory()
      Deprecated.
    • flush

      public void flush()
      Deprecated.
      Flushes all open lists so that they use only little memory.