public interface ProgramRunner<Settings extends RunnerSettings>
AsyncProgramRunner
Modifier and Type | Interface and Description |
---|---|
static interface |
ProgramRunner.Callback |
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<ProgramRunner<? extends RunnerSettings>> |
PROGRAM_RUNNER_EP |
Modifier and Type | Method and Description |
---|---|
boolean |
canRun(java.lang.String executorId,
RunProfile profile)
Checks if the program runner is capable of running the specified configuration with the specified executor.
|
default void |
checkConfiguration(RunnerSettings settings,
ConfigurationPerRunnerSettings configurationPerRunnerSettings) |
default Settings |
createConfigurationData(ConfigurationInfoProvider settingsProvider)
Creates a block of per-configuration settings used by this program runner.
|
void |
execute(ExecutionEnvironment environment) |
default void |
execute(ExecutionEnvironment environment,
ProgramRunner.Callback callback)
Deprecated.
Use
execute(ExecutionEnvironment) and ExecutionEnvironment#setCallback(Callback) |
static ProgramRunner<?> |
findRunnerById(java.lang.String id) |
static ProgramRunner<RunnerSettings> |
getRunner(java.lang.String executorId,
RunProfile settings) |
java.lang.String |
getRunnerId()
Returns the unique ID of this runner.
|
default SettingsEditor<Settings> |
getSettingsEditor(Executor executor,
RunConfiguration configuration) |
default void |
onProcessStarted(RunnerSettings settings,
ExecutionResult executionResult)
Deprecated.
Not used by platform.
|
static final ExtensionPointName<ProgramRunner<? extends RunnerSettings>> PROGRAM_RUNNER_EP
static ProgramRunner<?> findRunnerById(java.lang.String id)
static ProgramRunner<RunnerSettings> getRunner(java.lang.String executorId, RunProfile settings)
java.lang.String getRunnerId()
boolean canRun(java.lang.String executorId, RunProfile profile)
executorId
- ID of the Executor
with which the user is trying to run the configuration.profile
- the configuration being run.default Settings createConfigurationData(ConfigurationInfoProvider settingsProvider)
settingsProvider
- source of assorted information about the configuration being edited.default void checkConfiguration(RunnerSettings settings, ConfigurationPerRunnerSettings configurationPerRunnerSettings) throws RuntimeConfigurationException
RuntimeConfigurationException
@Deprecated default void onProcessStarted(RunnerSettings settings, ExecutionResult executionResult)
default SettingsEditor<Settings> getSettingsEditor(Executor executor, RunConfiguration configuration)
void execute(ExecutionEnvironment environment) throws ExecutionException
ExecutionException
@Deprecated default void execute(ExecutionEnvironment environment, ProgramRunner.Callback callback) throws ExecutionException
execute(ExecutionEnvironment)
and ExecutionEnvironment#setCallback(Callback)
ExecutionException