com.norconex.jef.progress
Class JobProgressAdapter

java.lang.Object
  extended by com.norconex.jef.progress.JobProgressAdapter
All Implemented Interfaces:
IJobProgressListener
Direct Known Subclasses:
JobProgressStateChangeAdapter

public class JobProgressAdapter
extends Object
implements IJobProgressListener

Adapter for a job life-cycle. Default implementation for all methods do nothing.

Author:
Pascal Essiembre

Constructor Summary
JobProgressAdapter()
           
 
Method Summary
 void jobCompleted(IJobStatus progress)
          Invoked after a job normally finished its execution.
 void jobProgressed(IJobStatus progress)
          Invoked every time the progress state changes.
 void jobResumed(IJobStatus progress)
          Invoked just before a job resumes its execution.
 void jobRunningVerified(IJobStatus progress)
          Invoked at regular intervals to confirm the job is still running.
 void jobSkipped(IJobStatus progress)
          Invoked when the execution of a job gets skipped.
 void jobStarted(IJobStatus progress)
          Invoked just before a job begins its execution.
 void jobStopped(IJobStatus progress)
          Invoked just after has stopped.
 void jobStopping(IJobStatus progress)
          Invoked just before a job starts to stop.
 void jobTerminatedPrematuraly(IJobStatus progress)
          Invoked after a job finished its execution before progress was 100% complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobProgressAdapter

public JobProgressAdapter()
Method Detail

jobTerminatedPrematuraly

public void jobTerminatedPrematuraly(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked after a job finished its execution before progress was 100% complete.

Specified by:
jobTerminatedPrematuraly in interface IJobProgressListener
Parameters:
progress - job progress

jobProgressed

public void jobProgressed(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked every time the progress state changes.

Specified by:
jobProgressed in interface IJobProgressListener
Parameters:
progress - job progress

jobStarted

public void jobStarted(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked just before a job begins its execution.

Specified by:
jobStarted in interface IJobProgressListener
Parameters:
progress - job progress

jobResumed

public void jobResumed(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked just before a job resumes its execution.

Specified by:
jobResumed in interface IJobProgressListener
Parameters:
progress - job progress

jobSkipped

public void jobSkipped(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked when the execution of a job gets skipped. This may happen when resuming a job suite and the job has already been completed.

Specified by:
jobSkipped in interface IJobProgressListener
Parameters:
progress - job progress

jobStopped

public void jobStopped(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked just after has stopped.

Specified by:
jobStopped in interface IJobProgressListener
Parameters:
progress - job progress

jobStopping

public void jobStopping(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked just before a job starts to stop.

Specified by:
jobStopping in interface IJobProgressListener
Parameters:
progress - job progress

jobRunningVerified

public void jobRunningVerified(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked at regular intervals to confirm the job is still running. This is separate than checking for a change of progress. The progress may not have changed between invocation, or may have changed multiple times.

Specified by:
jobRunningVerified in interface IJobProgressListener
Parameters:
progress - job progress

jobCompleted

public void jobCompleted(IJobStatus progress)
Description copied from interface: IJobProgressListener
Invoked after a job normally finished its execution.

Specified by:
jobCompleted in interface IJobProgressListener
Parameters:
progress - job progress


Copyright © 2007-2013 Norconex Inc.. All Rights Reserved.