public interface ExecutionEnvironment
Modifier and Type | Method and Description |
---|---|
Defaults |
getDefaultSettings()
Get default settings for this ExecutionEnvironment.
|
java.lang.String |
getDescription()
Get a description of this execution environment
|
Environment |
getEnvironmentVariables()
Get environment variables for this execution environment
|
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 |
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()
Step/StepManager can use this to request a stop to all processing
|
<T> java.util.concurrent.Future<ExecutionResult<T>> |
submitTask(StepTask<T> callable)
Submit a task to be run by the execution environment.
|
java.lang.String getDescription()
Defaults getDefaultSettings()
void setHeadless(boolean headless)
headless
- true if the execution environment is headlessboolean isHeadless()
void setGraphicalEnvironmentCommandHandler(GraphicalEnvironmentCommandHandler handler)
GraphicalEnvironmentCommandHandler getGraphicalEnvironmentCommandHandler()
void setEnvironmentVariables(Environment env)
env
- the environment variables to useEnvironment getEnvironmentVariables()
void setSettings(Settings settings)
settings
- the settings to useSettings getSettings()
void setLog(Logger log)
log
- the log to useLogger getLog()
void setLoggingLevel(LoggingLevel level)
level
- the logging level to useLoggingLevel getLoggingLevel()
<T> java.util.concurrent.Future<ExecutionResult<T>> submitTask(StepTask<T> callable) throws WekaException
callable
- the Callable encapsulating the task to be runWekaException
- if processing fails in the case ofvoid stopProcessing()