public class ExecutionTask extends Object
Modifier and Type | Method and Description |
---|---|
void |
executeBatch(String batchId)
Executes a target flow.
|
void |
executeFlow(String batchId,
String flowId,
String executionId)
Executes a target flow.
|
void |
executePhase(ExecutionContext context)
Executes a target phase.
|
void |
executePhase(String batchId,
String flowId,
String executionId,
ExecutionPhase phase)
Executes a target phase.
|
static ExecutionTask |
load(YaessProfile profile,
Properties script,
Map<String,String> batchArguments)
Loads profile and create a new
ExecutionTask . |
static ExecutionTask |
load(YaessProfile profile,
Properties script,
Map<String,String> batchArguments,
Map<String,String> yaessArguments)
Loads profile and create a new
ExecutionTask . |
static ExecutionTask |
load(YaessProfile profile,
Properties script,
Map<String,String> batchArguments,
Map<String,String> yaessArguments,
Map<String,Blob> extensions)
Loads profile and create a new
ExecutionTask . |
public static ExecutionTask load(YaessProfile profile, Properties script, Map<String,String> batchArguments) throws InterruptedException, IOException
ExecutionTask
.profile
- target profilescript
- target scriptbatchArguments
- current batch argumentsInterruptedException
- if interrupted while configuring servicesIOException
- if failed to configure servicesIllegalArgumentException
- if some parameters were null
public static ExecutionTask load(YaessProfile profile, Properties script, Map<String,String> batchArguments, Map<String,String> yaessArguments) throws InterruptedException, IOException
ExecutionTask
.profile
- target profilescript
- target scriptbatchArguments
- current batch argumentsyaessArguments
- current control argumentsInterruptedException
- if interrupted while configuring servicesIOException
- if failed to configure servicesIllegalArgumentException
- if some parameters were null
public static ExecutionTask load(YaessProfile profile, Properties script, Map<String,String> batchArguments, Map<String,String> yaessArguments, Map<String,Blob> extensions) throws InterruptedException, IOException
ExecutionTask
.profile
- target profilescript
- target scriptbatchArguments
- current batch argumentsyaessArguments
- current control argumentsextensions
- extension BLOBsInterruptedException
- if interrupted while configuring servicesIOException
- if failed to configure servicesIllegalArgumentException
- if some parameters were null
public void executeBatch(String batchId) throws InterruptedException, IOException
setup
, finalize
,
or cleanup
, then the finalize
phase will be executed for recovery
before the target flow execution is aborted.
Execution ID for each flow will automatically generated.batchId
- target batch IDInterruptedException
- if interrupted during this executionIOException
- if failed to execute target batchIllegalArgumentException
- if some parameters were null
public void executeFlow(String batchId, String flowId, String executionId) throws InterruptedException, IOException
setup
, finalize
,
or cleanup
, then the finalize
phase will be executed for recovery
before execution is aborted.batchId
- target batch IDflowId
- target flow IDexecutionId
- target execution IDInterruptedException
- if interrupted during this executionIOException
- if failed to execute target flowIllegalArgumentException
- if some parameters were null
public void executePhase(String batchId, String flowId, String executionId, ExecutionPhase phase) throws InterruptedException, IOException
batchId
- target batch IDflowId
- target flow IDexecutionId
- target execution IDphase
- target phaseInterruptedException
- if interrupted during this executionIOException
- if failed to execute target phaseIllegalArgumentException
- if some parameters were null
public void executePhase(ExecutionContext context) throws InterruptedException, IOException
context
- the current contextInterruptedException
- if interrupted during this executionIOException
- if failed to execute target phaseIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.