salto.batch.apiconsole.listener
Class AbstractBatchListener

java.lang.Object
  extended by salto.batch.apiconsole.listener.AbstractBatchListener
All Implemented Interfaces:
BatchListener

public abstract class AbstractBatchListener
extends java.lang.Object
implements BatchListener

Base Class for implementation of BatchListener.
A Batch Listener is a callback class that get called when a batch start, ends, is vetoed.
PART OF PUBLIC API Copyright Ubik-Ingenierie

Author:
Philippe Mouawad

Constructor Summary
AbstractBatchListener()
           
 
Method Summary
abstract  java.lang.String getName()
          
 void jobExecutionVetoed(BatchExecutionContext context)
           Called by the Scheduler after a Batch has been executed
 void jobToBeExecuted(BatchExecutionContext context)
           Called by the BatchScheduler when a Batch is about to be executed.
 void jobWasExecuted(BatchExecutionContext context, BatchException jobException)
           Called by the Scheduler after a Batch has been executed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBatchListener

public AbstractBatchListener()
Method Detail

getName

public abstract java.lang.String getName()
Description copied from interface: BatchListener

Specified by:
getName in interface BatchListener
Returns:
String the name of the BatchListener.

See Also:
BatchListener.getName()

jobExecutionVetoed

public void jobExecutionVetoed(BatchExecutionContext context)
Description copied from interface: BatchListener

Called by the Scheduler after a Batch has been executed

Specified by:
jobExecutionVetoed in interface BatchListener
Parameters:
context - BatchExecutionContext
See Also:
BatchListener.jobExecutionVetoed(salto.batch.lanceur.thread.BatchExecutionContext)

jobToBeExecuted

public void jobToBeExecuted(BatchExecutionContext context)
Description copied from interface: BatchListener

Called by the BatchScheduler when a Batch is about to be executed.

Specified by:
jobToBeExecuted in interface BatchListener
Parameters:
context - BatchExecutionContext
See Also:
BatchListener.jobToBeExecuted(salto.batch.lanceur.thread.BatchExecutionContext)

jobWasExecuted

public void jobWasExecuted(BatchExecutionContext context,
                           BatchException jobException)
Description copied from interface: BatchListener

Called by the Scheduler after a Batch has been executed

Specified by:
jobWasExecuted in interface BatchListener
Parameters:
context - BatchExecutionContext
jobException - BatchException
See Also:
salto.batch.apiconsole.listener.BatchListener#jobWasExecuted(salto.batch.lanceur.thread.BatchExecutionContext, salto.batch.lanceur.BatchException)


Copyright © 2005-2008 Ubik-Ingenierie. All Rights Reserved.