Class PersistenceSpec

java.lang.Object
org.jppf.node.protocol.PersistenceSpec
All Implemented Interfaces:
Serializable

public class PersistenceSpec extends Object implements Serializable
This class defines whether a job should be persisted and the behavior of the persistence facility upon recovery.
Since:
6.0
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • PersistenceSpec

      public PersistenceSpec()
  • Method Details

    • isPersistent

      public boolean isPersistent()
      Determine whether the job is persisted in the driver. The default value of this attribute is false.
      Returns:
      true if the job is persisted, false otherwise.
    • setPersistent

      public PersistenceSpec setPersistent(boolean persistent)
      Specify whether the job is persisted in the driver.
      Parameters:
      persistent - true if the job is to be persisted, false otherwise.
      Returns:
      this PersistenceSpec instance, for method call chaining.
    • isAutoExecuteOnRestart

      public boolean isAutoExecuteOnRestart()
      Determine whether the driver should automatically execute the persisted job after a restart. The default value of this attribute is false.
      Returns:
      true if the job is automatically executed upon recovery, false otherwise.
    • setAutoExecuteOnRestart

      public PersistenceSpec setAutoExecuteOnRestart(boolean autoExecuteOnRestart)
      Specify whether the driver should automatically execute the persisted job after a restart.
      Parameters:
      autoExecuteOnRestart - true if the job is to be automatically executed upon recovery, false otherwise.
      Returns:
      this PersistenceSpec instance, for method call chaining.
    • isDeleteOnCompletion

      public boolean isDeleteOnCompletion()
      Determine whether the persisted job should be deleted from the persistence store when it terminates. The default value of this attribute is true.
      Returns:
      true if the job should be deleted from persistence, false otherwise.
    • setDeleteOnCompletion

      public PersistenceSpec setDeleteOnCompletion(boolean deleteOnCompletion)
      Determine whether the persisted job should be deleted from the persistence store when it terminates.
      Parameters:
      deleteOnCompletion - true if the job should be deleted from persistence, false otherwise.
      Returns:
      this PersistenceSpec instance, for method call chaining.