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()
TaskExecutionContext
getBatchId
in interface TaskExecutionContext
public String getFlowId()
TaskExecutionContext
getFlowId
in interface TaskExecutionContext
public String getExecutionId()
TaskExecutionContext
getExecutionId
in interface TaskExecutionContext
public Map<String,String> getBatchArguments()
TaskExecutionContext
getBatchArguments
in interface TaskExecutionContext
public ClassLoader getClassLoader()
ExecutionContext
getClassLoader
in interface ExecutionContext
public Map<String,String> getConfigurations()
ExecutionContext
getConfigurations
in interface ExecutionContext
public Map<String,String> getEnvironmentVariables()
ExecutionContext
getEnvironmentVariables
in interface ExecutionContext
public <T> Optional<T> findResource(Class<T> type)
ExecutionContext
findResource
in interface ExecutionContext
T
- the provider typetype
- the provider typeempty
if it is not definedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.