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;
}
Aggregations