Interface PersistenceInfo

All Superinterfaces:
Serializable
All Known Implementing Classes:
PersistenceInfoImpl

public interface PersistenceInfo extends Serializable
This interface represents the objects that are persisted in a job persistence store.
Since:
6.0
Author:
Laurent Cohen
  • Method Details

    • getJobUuid

      String getJobUuid()
      Get the job uuid.
      Returns:
      the uuid of the related job as a string.
    • getJob

      Get the related job information.
      Returns:
      a JPPFDistributedJob instance, or null if the job is not loaded.
    • getType

      Get the type of persisted object.
      Returns:
      one of the possible values of the PersistenceObjectType enum.
    • getPosition

      int getPosition()
      Get the position of the task in the job.
      Returns:
      the position of the task in the job, starting at 0, or -1 if the persisted object is neither a task nor a task result.
    • getInputStream

      InputStream getInputStream() throws Exception
      Get an input stream for the persisted object.
      Returns:
      an InputStream instance, or null if the object has not yet been loaded.
      Throws:
      Exception - if any error occurs.
    • getSize

      int getSize()
      Get the size in bytes of the persisted object.
      Returns:
      the size of the persisted data, or -1 if the size is not known.