salto.batch.lanceur.init
Class NoBatchStart

java.lang.Object
  extended by salto.batch.lanceur.init.AbstractBatchStart
      extended by salto.batch.lanceur.init.NoBatchStart
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IBatchStart

public final class NoBatchStart
extends AbstractBatchStart

Implementation of IBatchStart that enables triggering a batch without passing any data. Use this kind of IBatchStart only for batches that do not manipulate a lot of data.

Author:
Philippe Mouawad
See Also:
Serialized Form

Constructor Summary
NoBatchStart()
           
 
Method Summary
 java.lang.Object clone()
           
 void close()
          Close all opened resources.
 int getNbLinesRead()
           
 void init(BatchExecutionContext context)
          Called after Traitement#initialize(BatchExecutionContext context)
 java.lang.Object next()
          Extract next set of data
 void preInit(BatchExecutionContext context)
          Called before Traitement#initialize(BatchExecutionContext context)
 void setIdComputer(IdComputer idComputer)
           
 void validate()
          Validate the configuration
 
Methods inherited from class salto.batch.lanceur.init.AbstractBatchStart
getBatchExecutionContext
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoBatchStart

public NoBatchStart()
Method Detail

init

public final void init(BatchExecutionContext context)
                throws BatchException
Description copied from interface: IBatchStart
Called after Traitement#initialize(BatchExecutionContext context)

Parameters:
context - BatchExecutionContext
Throws:
BatchException - exception if the object did not start correctly
See Also:
IBatchStart.init(salto.batch.lanceur.thread.BatchExecutionContext)

next

public final java.lang.Object next()
                            throws BatchException
Description copied from interface: IBatchStart
Extract next set of data

Returns:
Object data for next treatment (null if no data)
Throws:
BatchException
See Also:
IBatchStart.next()

setIdComputer

public final void setIdComputer(IdComputer idComputer)
Parameters:
idComputer - IdComputer Computes unique ID per line
See Also:
IBatchStart.setIdComputer(salto.batch.lanceur.init.IdComputer)

close

public final void close()
Description copied from interface: IBatchStart
Close all opened resources.

See Also:
IBatchStart.close()

clone

public final java.lang.Object clone()
Specified by:
clone in interface IBatchStart
Overrides:
clone in class AbstractBatchStart
Returns:
Cloned Object
See Also:
Object.clone()

getNbLinesRead

public final int getNbLinesRead()
Returns:
Number of lines read
See Also:
IBatchStart.getNbLinesRead()

preInit

public void preInit(BatchExecutionContext context)
Description copied from interface: IBatchStart
Called before Traitement#initialize(BatchExecutionContext context)

Specified by:
preInit in interface IBatchStart
Overrides:
preInit in class AbstractBatchStart
Parameters:
context - BatchExecutionContext
See Also:
IBatchStart.preInit(salto.batch.lanceur.thread.BatchExecutionContext)

validate

public void validate()
Description copied from interface: IBatchStart
Validate the configuration

See Also:
IBatchStart.validate()


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