public class BasicTaskExecutionContext extends Object implements TaskExecutionContext
TaskExecutionContext.| Constructor and Description |
|---|
BasicTaskExecutionContext(ExecutionContext parent,
String batchId,
String flowId,
String executionId,
Map<String,String> batchArguments)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
findResource(Class<T> type)
Returns a resource for the type.
|
Map<String,String> |
getBatchArguments()
Returns the batch arguments.
|
String |
getBatchId()
Returns the container batch information.
|
ClassLoader |
getClassLoader()
Returns the class loader to load testing peripherals.
|
Map<String,String> |
getConfigurations()
Returns the platform configurations.
|
Map<String,String> |
getEnvironmentVariables()
Returns the environment variables.
|
String |
getExecutionId()
Returns the current execution ID.
|
String |
getFlowId()
Returns the container jobflow information.
|
public BasicTaskExecutionContext(ExecutionContext parent, String batchId, String flowId, String executionId, Map<String,String> batchArguments)
parent - the parent contextbatchId - the batch IDflowId - the flow IDexecutionId - the execution IDbatchArguments - the batch argumentspublic String getBatchId()
TaskExecutionContextgetBatchId in interface TaskExecutionContextpublic String getFlowId()
TaskExecutionContextgetFlowId in interface TaskExecutionContextpublic String getExecutionId()
TaskExecutionContextgetExecutionId in interface TaskExecutionContextpublic Map<String,String> getBatchArguments()
TaskExecutionContextgetBatchArguments in interface TaskExecutionContextpublic ClassLoader getClassLoader()
ExecutionContextgetClassLoader in interface ExecutionContextpublic Map<String,String> getConfigurations()
ExecutionContextgetConfigurations in interface ExecutionContextpublic Map<String,String> getEnvironmentVariables()
ExecutionContextgetEnvironmentVariables in interface ExecutionContextpublic <T> Optional<T> findResource(Class<T> type)
ExecutionContextfindResource in interface ExecutionContextT - the provider typetype - the provider typeempty if it is not definedCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.