Interface JobTerminationListener


  • public interface JobTerminationListener
    A JobTerminationListener is passed to the start method of a Job and has to be called when the Job has finished his work. It must not called if the stop method of the Job has been called in the meantime.

    After calling one of the 'jobTerminated' methods, the Job is marked as finished. Whether the Job is re-scheduled or not depedents whether a JobException has been passed and whether the JobException's flag 'furtherSchedulesAllowed' is true.
    Author:
    IIT GmbH, Bremen/Germany, Copyright (c) 2000-2003, All Rights Reserved
    • Method Detail

      • jobTerminated

        void jobTerminated()
        Marks the Job as finished and re-schedules it.
      • jobTerminated

        void jobTerminated​(java.lang.String message)
        Marks the Job as finished and re-schedules it. The passed message is informational and will be stored in the Job history / log file. It should contain some infos about the result, e.g. '200 Messages moved'.
      • jobTerminated

        void jobTerminated​(JobException exception)
        Marks the Job as finished. Whether the Job is re-scheduled or not depedents whether the JobException's flag 'furtherSchedulesAllowed' is true.
        Parameters:
        exception -