com.bea.p13n.jobmanager.job
Interface JobListener


public interface JobListener

Classes that implement this interface and register it with the job manager will get contacted each time a job completes or fails. Once notified the class can interogate the job to find out its completed status and do any extra work. Also the onComplete and onFailure callback will be executed in the same thread as the Job was executed.


Method Summary
 void onComplete(JobContext context)
          The call back method when the job with which this registered is successfully executed.
 void onFailure(JobContext context, Throwable exception)
          Called when there is an error executing the job with which this is registered.
 

Method Detail

onComplete

void onComplete(JobContext context)
The call back method when the job with which this registered is successfully executed.

Parameters
context - The job's context

onFailure

void onFailure(JobContext context,
               Throwable exception)
Called when there is an error executing the job with which this is registered.

Parameters
context - The job's context
exception - An error or exception that occurred during job's execution.


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.