Package com.denodo.scheduler.api.handler
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 TypeMethodDescriptiondefault booleanChecks whether errors affect the status of a job.voidCalled by the Scheduler once the extraction and exportation of all the tuples of a job have finished.voidinit(ParameterStructure parameters) Initialize the handler.default void
-
Method Details
-
init
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
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 tocom.denodo.scheduler.client.job.JobData.Result.ERROR. When it returns false, errors will cause the job status to be set tocom.denodo.scheduler.client.job.JobData.Result.WARNING.- Returns:
trueif errors should affect the job status,falseotherwise.
-