salto.batch.apiconsole.lanceur.builder
Class BatchLaunchManagerWrapper

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

public class BatchLaunchManagerWrapper
extends java.lang.Object

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

Since:
3.0.0.7
Author:
David Degardin

Method Summary
 boolean disableBatchesOfLaunchFamily(java.lang.String launchFamilyName)
          This method disbles all launches of the same family
 boolean disableLaunch(java.lang.String fullLaunchName)
          This method disables a launch and the actual state is stored
 boolean disableLaunch(java.lang.String fullLaunchName, boolean useDisableMemento)
          This method disables a launch and the actual state is stored if needed
 boolean enableBatchesOfLaunchFamily(java.lang.String launchFamilyName)
          This method enables all launches of the same family
 boolean enableLaunch(java.lang.String fullLaunchName)
          This method enables a launch
static BatchLaunchManagerWrapper getInstance()
           
 boolean restoreLaunchFamilyFromDB(java.lang.String fullLaunchName)
          This method reloads configuration from database for each launch of the family and the generic batch associated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BatchLaunchManagerWrapper getInstance()
Returns:
BatchLaunchManagerWrapper the singleton

disableBatchesOfLaunchFamily

public final boolean disableBatchesOfLaunchFamily(java.lang.String launchFamilyName)
                                           throws SchedulerException,
                                                  BatchException,
                                                  TechnicalException
This method disbles all launches of the same family

Parameters:
launchFamilyName - the name of the launch family
Returns:
true if all launches have been disabled now, false if, at least, one is still running
Throws:
SchedulerException
BatchException
TechnicalException

enableBatchesOfLaunchFamily

public final boolean enableBatchesOfLaunchFamily(java.lang.String launchFamilyName)
                                          throws SchedulerException,
                                                 BatchException,
                                                 TechnicalException
This method enables all launches of the same family

Parameters:
launchFamilyName - the name of the launch family
Returns:
true
Throws:
SchedulerException
BatchException
TechnicalException

disableLaunch

public final boolean disableLaunch(java.lang.String fullLaunchName)
                            throws SchedulerException,
                                   BatchException,
                                   TechnicalException
This method disables a launch and the actual state is stored

Parameters:
fullLaunchName - the full name of the launch
Returns:
true if the launch has been disabled now, false if we have to wait for it to end
Throws:
SchedulerException
BatchException
TechnicalException

disableLaunch

public final boolean disableLaunch(java.lang.String fullLaunchName,
                                   boolean useDisableMemento)
                            throws SchedulerException,
                                   BatchException,
                                   TechnicalException
This method disables a launch and the actual state is stored if needed

Parameters:
fullLaunchName - the full name of the launch
useDisableMemento - if true, we store/restore the actual/previous state in/from BLH_DISABLED_BKP column
Returns:
true if the launch has been disabled now, false if we have to wait for it to end
Throws:
SchedulerException
BatchException
TechnicalException

enableLaunch

public final boolean enableLaunch(java.lang.String fullLaunchName)
                           throws SchedulerException,
                                  BatchException,
                                  TechnicalException
This method enables a launch

Parameters:
fullLaunchName - the full name of the launch
Returns:
true if the launch has been enabled now, false if we have to wait for it to end
Throws:
SchedulerException
BatchException
TechnicalException

restoreLaunchFamilyFromDB

public final boolean restoreLaunchFamilyFromDB(java.lang.String fullLaunchName)
                                        throws SchedulerException,
                                               BatchException,
                                               TechnicalException
This method reloads configuration from database for each launch of the family and the generic batch associated.

Parameters:
fullLaunchName - the full name of the launch
Returns:
true if all launches have been reloaded now from database, false if, at least, one is still running
Throws:
SchedulerException
BatchException
TechnicalException


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