Class DefaultFilePersistence

All Implemented Interfaces:
JobPersistence

public class DefaultFilePersistence extends AbstractFilePersistence<PersistenceInfo,JobPersistenceException> implements JobPersistence
A file-based persistent store for jobs. The store's structure is made of a root directory, under which there is one directory per job, named after the job's uuid. Each job directory contains:
  • a file named header.data for the job header
  • a file named data_provider.data for the job's data_provider
  • a file named task-i.data for each task i of the job
  • a file named result-i.data for each task result i received from a node
Since:
6.0
Author:
Laurent Cohen
  • Constructor Details

    • DefaultFilePersistence

      public DefaultFilePersistence()
      Initialize this persistence with the root path DEFAULT_ROOT under the current user directory.
    • DefaultFilePersistence

      public DefaultFilePersistence(String... paths)
      Initialize this persistence with the specified path as root directory.
      Parameters:
      paths - the root directory for this persistence.
  • Method Details