Class PersistedServiceJob

  • All Implemented Interfaces:, java.lang.Runnable, Job

    public class PersistedServiceJob
    extends GenericServiceJob
    A Job that is backed by the entity engine. Job data is stored in the JobSandbox entity.

    When the job is queued, this object "owns" the entity value. Any external changes are ignored except the cancelDateTime field - jobs can be canceled after they are queued.

    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.ofbiz.service.job.Job

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deQueue()
      Transitions this job to the pre-queued (created) state.
      protected void failed​(java.lang.Throwable t)
      Method is called when the service fails.
      protected void finish​(java.util.Map<java.lang.String,​java.lang.Object> result)
      Method is called after the service has finished successfully.
      protected java.util.Map<java.lang.String,​java.lang.Object> getContext()
      Gets the context for the service invocation.
      protected java.lang.String getServiceName()
      Gets the name of the service as defined in the definition file.
      java.util.Date getStartTime()
      Returns the time this job is scheduled to start.
      protected void init()
      Method is called prior to running the service.
      void queue()
      Transitions this job to the queued state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait