Interface Handler


public interface Handler
Handlers handle data retrieved once exportation phase is finished, including sending mail with reports, retrying the job execution, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Checks whether errors affect the status of a job.
    void
    execute(JobData jobData, JobReport jobReport)
    Called by the Scheduler once the extraction and exportation of all the tuples of a job have finished.
    void
    Initialize the handler.
    default void
     
  • Method Details

    • init

      void init(ParameterStructure parameters) throws ConfigurationException
      Initialize the handler.
      Parameters:
      parameters - required configuration for initializing the handler.
      Throws:
      ConfigurationException - if the configuration information required by the handler is malformed or missing.
    • execute

      void execute(JobData jobData, JobReport jobReport) throws InternalErrorException
      Called by the Scheduler once the extraction and exportation of all the tuples of a job have finished.
      Parameters:
      jobData - information about the current state of the job.
      jobReport - detailed information about the current job execution.
      Throws:
      InternalErrorException
    • interrupt

      default void interrupt()
    • errorsAffectJobStatus

      default boolean errorsAffectJobStatus()
      Checks whether errors affect the status of a job. This method returns a boolean value indicating whether errors encountered during the execution of this handler should affect the job's status. When this method returns true, errors will cause the job status to be set to com.denodo.scheduler.client.job.JobData.Result.ERROR. When it returns false, errors will cause the job status to be set to com.denodo.scheduler.client.job.JobData.Result.WARNING.
      Returns:
      true if errors should affect the job status, false otherwise.