public class BaseExecutionEnvironment extends java.lang.Object implements ExecutionEnvironment
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseExecutionEnvironment.BaseExecutionEnvironmentDefaults
Defaults for the base execution environment
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DESCRIPTION
Description of the default execution environment
|
| Constructor and Description |
|---|
BaseExecutionEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
Defaults |
getDefaultSettings()
Get default settings for the base execution environment
|
java.lang.String |
getDescription()
Get a description of this execution environment
|
Environment |
getEnvironmentVariables()
Get environment variables for this execution environment
|
Logger |
getLog()
Get the log in use
|
LoggingLevel |
getLoggingLevel()
Get the logging level in use
|
Settings |
getSettings()
Get knowledge flow settings for this execution environment
|
boolean |
isHeadless()
Get whether this execution environment is headless
|
void |
setEnvironmentVariables(Environment env)
Set environment variables for this execution environment
|
void |
setHeadless(boolean headless)
Set whether this execution environment is headless
|
void |
setLog(Logger log)
Set the log to use
|
void |
setLoggingLevel(LoggingLevel level)
Set the logging level to use
|
void |
setSettings(Settings settings)
Set knowledge flow settings for this execution environment
|
void |
stopProcessing()
The main point at which to request stop processing of a flow.
|
<T> java.util.concurrent.Future<ExecutionResult<T>> |
submitTask(StepTask<T> stepTask)
Submit a task to be run by the execution environment.
|
public static final java.lang.String DESCRIPTION
public java.lang.String getDescription()
getDescription in interface ExecutionEnvironmentpublic boolean isHeadless()
isHeadless in interface ExecutionEnvironmentpublic void setHeadless(boolean headless)
setHeadless in interface ExecutionEnvironmentheadless - true if the execution environment is headlesspublic Environment getEnvironmentVariables()
getEnvironmentVariables in interface ExecutionEnvironmentpublic void setEnvironmentVariables(Environment env)
setEnvironmentVariables in interface ExecutionEnvironmentenv - the environment variables to usepublic void setSettings(Settings settings)
ExecutionEnvironmentsetSettings in interface ExecutionEnvironmentsettings - the settings to usepublic Settings getSettings()
ExecutionEnvironmentgetSettings in interface ExecutionEnvironmentpublic Logger getLog()
getLog in interface ExecutionEnvironmentpublic void setLog(Logger log)
setLog in interface ExecutionEnvironmentlog - the log to usepublic LoggingLevel getLoggingLevel()
getLoggingLevel in interface ExecutionEnvironmentpublic void setLoggingLevel(LoggingLevel level)
setLoggingLevel in interface ExecutionEnvironmentlevel - the logging level to usepublic <T> java.util.concurrent.Future<ExecutionResult<T>> submitTask(StepTask<T> stepTask) throws WekaException
submitTask in interface ExecutionEnvironmentstepTask - the StepTask encapsulating the code to be runWekaException - if processing fails in the case ofpublic void stopProcessing()
stopProcessing in interface ExecutionEnvironmentpublic Defaults getDefaultSettings()
getDefaultSettings in interface ExecutionEnvironment