public class TaskExecutorContextAdapter extends Object implements TaskExecutionContext
TaskExecutor
.Constructor and Description |
---|
TaskExecutorContextAdapter(TestDriverContext context,
ConfigurationFactory configurations)
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 TaskExecutorContextAdapter(TestDriverContext context, ConfigurationFactory configurations)
context
- the current contextconfigurations
- the configuration factorypublic 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 definedpublic 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
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.