|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractConfiguration
salto.batch.lanceur.builder.TraitementConfiguration
public class TraitementConfiguration
Configuration Bean for a Batch. Central class that links together:
IBatchStartIBatchAppenderCronTrigger or SimpleTriggerAbstractLinkerTraitementConfiguration#registerAsBatch() methods to build a configuration.TraitementConfiguration#save() must be called at end of configuration.
| Nested Class Summary | |
|---|---|
static class |
TraitementConfiguration.TraitementConfigurationMemento
|
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_IN_CONTEXT
|
| Constructor Summary | |
|---|---|
TraitementConfiguration()
|
|
| Method Summary | |
|---|---|
void |
addLinker(AbstractLinker linker)
|
void |
computeMemento()
|
void |
destroy()
Un destroy n'est possible que si aucun batch de la configuration n'est en train de tourner. |
void |
destroyLaunchOfFamily(java.lang.String launchFamily)
This method unregisters a batch launch knowing the family. |
void |
disable()
|
void |
enable()
|
boolean |
equals(java.lang.Object obj)
|
LanceurActionOnErrorEnum |
getActionOnError()
|
IBatchAppender |
getBatchAppender()
|
IBatchBuilder |
getBatchBuilder()
|
IBatchLauncher |
getBatchLauncher()
|
BuilderTypeEnum |
getBuilderTypeEnum()
|
java.lang.String[] |
getChildNames()
|
java.lang.String |
getDescription()
|
java.lang.String |
getFullName()
|
java.lang.String |
getGroup()
|
IdComputer |
getIdComputer()
|
java.lang.String |
getKey()
|
java.util.List |
getLaunches(java.lang.String batchName)
|
AbstractLinker[] |
getLinkers()
|
int |
getMaxJob()
|
int |
getMaxThreads()
|
Memento |
getMemento()
|
int |
getMinJob()
|
int |
getMinThreads()
|
java.lang.String |
getName()
|
long |
getTempo()
|
java.lang.String |
getTrtClassName()
|
int |
hashCode()
|
boolean |
isDisabled()
|
boolean |
isMultipleLaunch()
|
MultipleBatchLauncher |
newMultipleBatchLauncher(IBatchStart batchStarter)
Deprecated. Only for compatibility with SI3SI, use TraitementConfigurationnewMultipleBatchLauncher(IBatchStart, DBBatchStartParametersComputer) |
MultipleBatchLauncher |
newMultipleBatchLauncher(IBatchStart batchStarter,
DBBatchStartParametersComputer batchStartParamsComputer)
Create a Multiple Launcher |
void |
register()
Register configuration in scheduler |
void |
register(java.lang.String launchFamilyName)
Registers launches of the given family for this configuration |
void |
reload()
|
IConfiguration |
reloadGenericConfiguration()
Reloads only the configuration from the database |
void |
reloadLaunchOfFamily(java.lang.String launchFamilyName)
This method reloads this configurations but only for launches that belongs to the given launch family |
boolean |
removeLinker(AbstractLinker linker)
|
void |
restore()
|
BatchReloadDisableResult |
restoreFromDB()
Reloads the configuration from the database. |
void |
save()
Permet de sauvegarder la configuration. |
void |
setActionOnError(LanceurActionOnErrorEnum actionOnError)
|
void |
setActionWhenError(LanceurActionOnErrorEnum actionOnError)
Deprecated. use setActionOnError |
void |
setAppender(IBatchAppender batchppender)
Deprecated. use setBatchAppender() |
void |
setBasicBatchLauncher(BasicBatchLauncher basicBatchLauncher)
|
void |
setBatchAppender(IBatchAppender batchAppender)
|
void |
setBatchStart(IBatchStart batchStart)
|
void |
setDescription(java.lang.String description)
|
void |
setDisabled(boolean disabled)
|
void |
setGroup(java.lang.String batchGroup)
|
void |
setIdComputer(IdComputer computer)
|
void |
setLinkers(AbstractLinker[] linkers)
|
void |
setMaxJob(int maxJob)
|
void |
setMaxThreads(int maxThreads)
|
void |
setMinJob(int minJob)
|
void |
setMinThreads(int minThreads)
|
void |
setMultipleBatchLauncher(MultipleBatchLauncher multipleBatchLauncher)
|
void |
setMultipleBatchStart(MultipleBatchLauncher metaBatchStart)
|
void |
setName(java.lang.String batchName)
|
void |
setTempo(long tempo)
|
void |
setTrtClass(java.lang.String className)
Deprecated. pour réduire impact migration, utiliser setTrtClassName |
void |
setTrtClassName(java.lang.String trtClassName)
|
java.lang.String |
toString()
|
java.util.List |
validateConfiguration()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_IN_CONTEXT
| Constructor Detail |
|---|
public TraitementConfiguration()
| Method Detail |
|---|
public IBatchBuilder getBatchBuilder()
throws BatchInitException
BatchInitExceptionpublic void setMultipleBatchStart(MultipleBatchLauncher metaBatchStart)
metaBatchStart - The metaBatchStart to set.public void setBatchStart(IBatchStart batchStart)
batchStart - The metaBatchStart to set.
public void save()
throws BatchException
BatchException
public void restore()
throws BatchException
BatchExceptionsalto.batch.lanceur.builder.IConfiguration#restore()public LanceurActionOnErrorEnum getActionOnError()
public void setActionOnError(LanceurActionOnErrorEnum actionOnError)
actionOnError - The actionOnError to set.public IBatchAppender getBatchAppender()
public void setBatchAppender(IBatchAppender batchAppender)
batchAppender - The batchAppender to set.public java.lang.String getGroup()
public void setGroup(java.lang.String batchGroup)
batchGroup - The group to set.public java.lang.String getName()
public void setName(java.lang.String batchName)
batchName - The name to set.public AbstractLinker[] getLinkers()
public void setLinkers(AbstractLinker[] linkers)
linkers - The linkers to set.public int getMaxJob()
public void setMaxJob(int maxJob)
maxJob - The maxJob to set.public int getMaxThreads()
public void setMaxThreads(int maxThreads)
maxThreads - The maxThreads to set.public IBatchLauncher getBatchLauncher()
public int getMinJob()
public void setMinJob(int minJob)
minJob - The minJob to set.public int getMinThreads()
public void setMinThreads(int minThreads)
minThreads - The minThreads to set.public java.lang.String getTrtClassName()
public void setTrtClassName(java.lang.String trtClassName)
trtClassName - The trtClassName to set.public boolean isDisabled()
public void setDisabled(boolean disabled)
disabled - The disabled to set.public boolean isMultipleLaunch()
public long getTempo()
public void setTempo(long tempo)
tempo - The tempo to set.public void setTrtClass(java.lang.String className)
className - Classe du traitementpublic void setActionWhenError(LanceurActionOnErrorEnum actionOnError)
actionOnError - public void setAppender(IBatchAppender batchppender)
batchppender -
public final void register()
throws BatchException,
SchedulerException
BatchException
SchedulerException
public final void register(java.lang.String launchFamilyName)
throws BatchException,
SchedulerException
launchFamilyName - String launch family name
BatchException
SchedulerExceptionpublic void setIdComputer(IdComputer computer)
computer - IdComputerpublic IdComputer getIdComputer()
public final MultipleBatchLauncher newMultipleBatchLauncher(IBatchStart batchStarter,
DBBatchStartParametersComputer batchStartParamsComputer)
batchStarter - IBatchStartbatchStartParamsComputer - DBBatchStartParametersComputer used to get Launches from DB
public final MultipleBatchLauncher newMultipleBatchLauncher(IBatchStart batchStarter)
TraitementConfigurationnewMultipleBatchLauncher(IBatchStart, DBBatchStartParametersComputer)
batchStarter - IBatchStart
MultipleBatchLauncherpublic void addLinker(AbstractLinker linker)
linker - public boolean removeLinker(AbstractLinker linker)
linker - AbstractLinker to remove
public void setBasicBatchLauncher(BasicBatchLauncher basicBatchLauncher)
basicBatchLauncher - public void setMultipleBatchLauncher(MultipleBatchLauncher multipleBatchLauncher)
multipleBatchLauncher - public final BuilderTypeEnum getBuilderTypeEnum()
public void destroy()
throws BatchException,
SchedulerException
BatchException
SchedulerExceptionsalto.batch.lanceur.builder.IConfiguration#destroy()
public void destroyLaunchOfFamily(java.lang.String launchFamily)
throws BatchException,
SchedulerException
launchFamily - the launch family name
BatchException
SchedulerExceptionpublic java.lang.String getFullName()
public Memento getMemento()
salto.batch.lanceur.builder.IConfiguration#getMemento()
public final void computeMemento()
throws BatchInitException
BatchInitExceptionsalto.batch.lanceur.builder.IConfiguration#computeMemento()
public void reload()
throws BatchException,
SchedulerException
BatchException
SchedulerExceptionsalto.batch.lanceur.builder.IConfiguration#reload()
public void reloadLaunchOfFamily(java.lang.String launchFamilyName)
throws BatchException,
SchedulerException
launchFamilyName - the name of the launch family
BatchException
SchedulerException
public IConfiguration reloadGenericConfiguration()
throws BatchException
BatchExceptionpublic final void disable()
setDisabled(boolean)public void enable()
salto.batch.lanceur.builder.IConfiguration#enable()
public java.lang.String[] getChildNames()
throws BatchInitException
BatchInitExceptionsalto.batch.lanceur.builder.IConfiguration#getChildNames()public java.util.List validateConfiguration()
salto.batch.lanceur.builder.AbstractConfiguration#validateConfiguration()public java.lang.String toString()
Object.toString()public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()public java.lang.String getKey()
public final java.lang.String getDescription()
public final void setDescription(java.lang.String description)
description - The description to set.
public BatchReloadDisableResult restoreFromDB()
throws BatchException,
SchedulerException
BatchException
SchedulerException
public final java.util.List getLaunches(java.lang.String batchName)
throws BatchInitException
batchName - name of the batch
BatchInitException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||