salto.batch.lanceur.builder
Class MultipleBatchLauncher

java.lang.Object
  extended by salto.batch.lanceur.builder.MultipleBatchLauncher

public class MultipleBatchLauncher
extends java.lang.Object

Class that describes Multiple launches.
A Multiple Launch is configured by setting an IBatchStartParametersComputer that reads BatchLaunches

Author:
Philippe Mouawad

Constructor Summary
MultipleBatchLauncher(java.lang.String group, java.lang.String name)
          Constructeur for configuration, not part of client API
 
Method Summary
 void addLaunch(IBatchLaunch batchLaunch)
          Add a Launch in DB during configuration Phase
 void addLaunchAndNotify(IBatchLaunch batchLaunch)
          Permet d'ajouter un BatchLaunch [Part of internal API, do not call directly]
 IBatchStart getBatchStart()
           
 IBatchLaunch[] getLaunches()
           
 IBatchLaunch[] getLaunches(boolean noReadFromDB)
           
 IBatchStartParametersComputer getParametersComputer()
           
 void removeLaunch(IBatchLaunch batchLaunch)
          Remove a Launch from DB during configuration Phase
 void removeLaunchAndNotify(IBatchLaunch batchLaunch)
          [Part of internal API, do not call directly]
 void save()
          Save BatchLaunch
 void save(IBatchLaunch batchLaunch)
          Save BatchLaunch
 void setBatchStart(IBatchStart batchStart)
           
 void setParametersComputer(DBBatchStartParametersComputer batchStartParametersComputer)
           
 void setStaled()
           
 void setup()
          Configure object by reading BatchLaunch using parametersComputer
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleBatchLauncher

public MultipleBatchLauncher(java.lang.String group,
                             java.lang.String name)
Constructeur for configuration, not part of client API

Parameters:
group - Groupe du batch
name - Nom du batch
Method Detail

addLaunch

public void addLaunch(IBatchLaunch batchLaunch)
Add a Launch in DB during configuration Phase

Parameters:
batchLaunch - BatchLaunch

removeLaunch

public void removeLaunch(IBatchLaunch batchLaunch)
Remove a Launch from DB during configuration Phase

Parameters:
batchLaunch -

addLaunchAndNotify

public void addLaunchAndNotify(IBatchLaunch batchLaunch)
Permet d'ajouter un BatchLaunch [Part of internal API, do not call directly]

Parameters:
batchLaunch - IBatchLaunch

removeLaunchAndNotify

public void removeLaunchAndNotify(IBatchLaunch batchLaunch)
[Part of internal API, do not call directly]

Parameters:
batchLaunch - IBatchLaunch

getLaunches

public IBatchLaunch[] getLaunches()
                           throws BatchInitException
Returns:
BatchLaunch[]
Throws:
BatchInitException
BatchInitException

getLaunches

public IBatchLaunch[] getLaunches(boolean noReadFromDB)
                           throws BatchInitException
Parameters:
noReadFromDB - Boolean read or not from Database
Returns:
BatchLaunch[]
Throws:
BatchInitException
BatchInitException

save

public void save()
          throws BatchException
Save BatchLaunch

Throws:
BatchException

save

public void save(IBatchLaunch batchLaunch)
          throws BatchException
Save BatchLaunch

Parameters:
batchLaunch -
Throws:
BatchException

setup

public void setup()
           throws BatchInitException
Configure object by reading BatchLaunch using parametersComputer

Throws:
BatchInitException

setParametersComputer

public void setParametersComputer(DBBatchStartParametersComputer batchStartParametersComputer)
Parameters:
batchStartParametersComputer -

getBatchStart

public IBatchStart getBatchStart()
Returns:
Returns the batchStart.

setBatchStart

public void setBatchStart(IBatchStart batchStart)
Parameters:
batchStart - the batchStart.

getParametersComputer

public IBatchStartParametersComputer getParametersComputer()
Returns:
Returns the parametersComputer.

setStaled

public void setStaled()

validate

public void validate()
See Also:
salto.batch.lanceur.builder.IBatchLauncher#validate()


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