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 |
---|---|
FlowExecutor |
getDefaultFlowExecutor()
Gets a new instance of the default flow executor suitable for use with this
execution environment
|
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
|
FlowExecutor |
getFlowExecutor()
Get the executor that will actually be responsible for running the flow.
|
GraphicalEnvironmentCommandHandler |
getGraphicalEnvironmentCommandHandler()
Get the environment for performing commands at the application-level in a
graphical 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 |
setFlowExecutor(FlowExecutor executor)
Set the executor that will actually be responsible for running the flow.
|
void |
setGraphicalEnvironmentCommandHandler(GraphicalEnvironmentCommandHandler handler)
Set the environment for performing commands at the application-level in a
graphical 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 ExecutionEnvironment
public boolean isHeadless()
isHeadless
in interface ExecutionEnvironment
public void setHeadless(boolean headless)
setHeadless
in interface ExecutionEnvironment
headless
- true if the execution environment is headlesspublic GraphicalEnvironmentCommandHandler getGraphicalEnvironmentCommandHandler()
getGraphicalEnvironmentCommandHandler
in interface ExecutionEnvironment
public void setGraphicalEnvironmentCommandHandler(GraphicalEnvironmentCommandHandler handler)
setGraphicalEnvironmentCommandHandler
in interface ExecutionEnvironment
public Environment getEnvironmentVariables()
getEnvironmentVariables
in interface ExecutionEnvironment
public void setEnvironmentVariables(Environment env)
setEnvironmentVariables
in interface ExecutionEnvironment
env
- the environment variables to usepublic void setSettings(Settings settings)
ExecutionEnvironment
setSettings
in interface ExecutionEnvironment
settings
- the settings to usepublic Settings getSettings()
ExecutionEnvironment
getSettings
in interface ExecutionEnvironment
public Logger getLog()
getLog
in interface ExecutionEnvironment
public void setLog(Logger log)
setLog
in interface ExecutionEnvironment
log
- the log to usepublic LoggingLevel getLoggingLevel()
getLoggingLevel
in interface ExecutionEnvironment
public void setLoggingLevel(LoggingLevel level)
setLoggingLevel
in interface ExecutionEnvironment
level
- the logging level to usepublic <T> java.util.concurrent.Future<ExecutionResult<T>> submitTask(StepTask<T> stepTask) throws WekaException
submitTask
in interface ExecutionEnvironment
stepTask
- the StepTask encapsulating the code to be runWekaException
- if processing fails in the case ofpublic void stopProcessing()
stopProcessing
in interface ExecutionEnvironment
public FlowExecutor getDefaultFlowExecutor()
public FlowExecutor getFlowExecutor()
public void setFlowExecutor(FlowExecutor executor)
executor
- the executor that will be running the flowpublic Defaults getDefaultSettings()
getDefaultSettings
in interface ExecutionEnvironment