Search in sources :

Example 1 with RemoteDebugProcessHandler

use of com.intellij.debugger.engine.RemoteDebugProcessHandler in project azure-tools-for-java by Microsoft.

the class SparkBatchJobSubmissionState method execute.

@Nullable
@Override
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner programRunner) throws ExecutionException {
    if (programRunner instanceof SparkBatchJobDebuggerRunner) {
        ConsoleViewImpl consoleView = new ConsoleViewImpl(myProject, false);
        RemoteDebugProcessHandler process = new RemoteDebugProcessHandler(myProject);
        consoleView.attachToProcess(process);
        return new DefaultExecutionResult(consoleView, process);
    } else if (programRunner instanceof SparkBatchJobRunner) {
        SparkBatchJobRunner jobRunner = (SparkBatchJobRunner) programRunner;
        jobRunner.submitJob(getSubmitModel());
    }
    return null;
}
Also used : DefaultExecutionResult(com.intellij.execution.DefaultExecutionResult) RemoteDebugProcessHandler(com.intellij.debugger.engine.RemoteDebugProcessHandler) ConsoleViewImpl(com.intellij.execution.impl.ConsoleViewImpl) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

RemoteDebugProcessHandler (com.intellij.debugger.engine.RemoteDebugProcessHandler)1 DefaultExecutionResult (com.intellij.execution.DefaultExecutionResult)1 ConsoleViewImpl (com.intellij.execution.impl.ConsoleViewImpl)1 Nullable (org.jetbrains.annotations.Nullable)1