Search in sources :

Example 1 with RemoteWorksController

use of org.apache.zeppelin.interpreter.RemoteWorksController in project zeppelin by apache.

the class ZeppelinContext method getInterpreterContextRunner.

/**
   * get Zeppelin Paragraph Runner from zeppelin server
   * @param noteId
   * @param paragraphId
   */
@ZeppelinApi
public List<InterpreterContextRunner> getInterpreterContextRunner(String noteId, String paragraphId, InterpreterContext interpreterContext) {
    List<InterpreterContextRunner> runners = new LinkedList<>();
    RemoteWorksController remoteWorksController = interpreterContext.getRemoteWorksController();
    if (remoteWorksController != null) {
        runners = remoteWorksController.getRemoteContextRunner(noteId, paragraphId);
    }
    return runners;
}
Also used : InterpreterContextRunner(org.apache.zeppelin.interpreter.InterpreterContextRunner) RemoteWorksController(org.apache.zeppelin.interpreter.RemoteWorksController) LinkedList(java.util.LinkedList) ZeppelinApi(org.apache.zeppelin.annotation.ZeppelinApi)

Aggregations

LinkedList (java.util.LinkedList)1 ZeppelinApi (org.apache.zeppelin.annotation.ZeppelinApi)1 InterpreterContextRunner (org.apache.zeppelin.interpreter.InterpreterContextRunner)1 RemoteWorksController (org.apache.zeppelin.interpreter.RemoteWorksController)1