Interface JobHandler

All Known Implementing Classes:
JobHandlerRebuildIndex, JobHandlerRenameUser, JobHandlerUpgradeWorkitems

public interface JobHandler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Called by the AdminPService.
  • Field Details

  • Method Details

    • run

      Called by the AdminPService. The JobHandler returns the job description with pre defined fields to signal the status. The AdminPService will terminate the job in cases the job is complete. Otherwise the AdminPServcie will wait for the next timeout.

      Fields:

      • type - fixed to value 'adminp'
      • job - the job type/name, defined by handler
      • $WorkflowStatus - status controlled by AdminP Service
      • $WorkflowSummary - summary of job description
      • isCompleted - boolean indicates if job is completed - controlled by job handler
      The AdminPService will not call the JobHandler if the job description field 'isCompleted==true' A JobHandler may throw a AdminPException if something went wrong.
      Parameters:
      job - description
      Returns:
      updated job description
      Throws:
      AdminPException