salto.batch.apiconsole.lanceur.builder
Class BatchManagerWrapper

java.lang.Object
  extended by salto.batch.apiconsole.lanceur.builder.BatchManagerWrapper

public class BatchManagerWrapper
extends java.lang.Object

This class must be used in batches when access to TraitementConfiguration is required instead of using TraitementConfiguration directly.

Since:
3.0.0.7
Author:
David Degardin

Method Summary
static BatchManagerWrapper getInstance()
           
 boolean restoreFromDB(java.lang.String fullBatchName)
          This method restores from the database the configuration of a batch and its launches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BatchManagerWrapper getInstance()
Returns:
BatchManagerWrapper the singleton

restoreFromDB

public final boolean restoreFromDB(java.lang.String fullBatchName)
                            throws BatchException,
                                   SchedulerException
This method restores from the database the configuration of a batch and its launches. I one launch is still running, it will be restored after its execution. Otherwise it is restored now.

Parameters:
fullBatchName - the full name of the batch
Returns:
true if the generic batch and its launches (if any) have been reloaded now. False if we have to wait for its end
Throws:
BatchException
SchedulerException


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