Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.apache.zeppelin.interpreter.thrift.RemoteInterpreterEventService Maven / Gradle / Ivy
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.zeppelin.interpreter.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2021-03-09")
public class RemoteInterpreterEventService {
public interface Iface {
public void registerInterpreterProcess(RegisterInfo registerInfo) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void unRegisterInterpreterProcess(java.lang.String intpGroupId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void appendOutput(OutputAppendEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void updateOutput(OutputUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void updateAllOutput(OutputUpdateAllEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void appendAppOutput(AppOutputAppendEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void updateAppOutput(AppOutputUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void updateAppStatus(AppStatusUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void checkpointOutput(java.lang.String noteId, java.lang.String paragraphId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void runParagraphs(RunParagraphsEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void addAngularObject(java.lang.String intpGroupId, java.lang.String json) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void updateAngularObject(java.lang.String intpGroupId, java.lang.String json) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void removeAngularObject(java.lang.String intpGroupId, java.lang.String noteId, java.lang.String paragraphId, java.lang.String name) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void sendWebUrl(WebUrlInfo weburlInfo) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void sendParagraphInfo(java.lang.String intpGroupId, java.lang.String json) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void updateParagraphConfig(java.lang.String noteId, java.lang.String paragraphId, java.util.Map config) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public java.util.List getAllResources(java.lang.String intpGroupId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public java.nio.ByteBuffer getResource(java.lang.String resourceIdJson) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public java.nio.ByteBuffer invokeMethod(java.lang.String intpGroupId, java.lang.String invokeMethodJson) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public java.util.List getParagraphList(java.lang.String user, java.lang.String noteId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public java.util.List getAllLibraryMetadatas(java.lang.String intpSettingName) throws org.apache.thrift.TException;
public java.nio.ByteBuffer getLibrary(java.lang.String intpSettingName, java.lang.String libraryName) throws org.apache.thrift.TException;
}
public interface AsyncIface {
public void registerInterpreterProcess(RegisterInfo registerInfo, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void unRegisterInterpreterProcess(java.lang.String intpGroupId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void appendOutput(OutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void updateOutput(OutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void updateAllOutput(OutputUpdateAllEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void appendAppOutput(AppOutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void updateAppOutput(AppOutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void updateAppStatus(AppStatusUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void checkpointOutput(java.lang.String noteId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void runParagraphs(RunParagraphsEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void addAngularObject(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void updateAngularObject(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void removeAngularObject(java.lang.String intpGroupId, java.lang.String noteId, java.lang.String paragraphId, java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void sendWebUrl(WebUrlInfo weburlInfo, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void sendParagraphInfo(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void updateParagraphConfig(java.lang.String noteId, java.lang.String paragraphId, java.util.Map config, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void getAllResources(java.lang.String intpGroupId, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void getResource(java.lang.String resourceIdJson, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void invokeMethod(java.lang.String intpGroupId, java.lang.String invokeMethodJson, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void getParagraphList(java.lang.String user, java.lang.String noteId, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void getAllLibraryMetadatas(java.lang.String intpSettingName, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void getLibrary(java.lang.String intpSettingName, java.lang.String libraryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory {
public Factory() {}
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public void registerInterpreterProcess(RegisterInfo registerInfo) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_registerInterpreterProcess(registerInfo);
recv_registerInterpreterProcess();
}
public void send_registerInterpreterProcess(RegisterInfo registerInfo) throws org.apache.thrift.TException
{
registerInterpreterProcess_args args = new registerInterpreterProcess_args();
args.setRegisterInfo(registerInfo);
sendBase("registerInterpreterProcess", args);
}
public void recv_registerInterpreterProcess() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
registerInterpreterProcess_result result = new registerInterpreterProcess_result();
receiveBase(result, "registerInterpreterProcess");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void unRegisterInterpreterProcess(java.lang.String intpGroupId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_unRegisterInterpreterProcess(intpGroupId);
recv_unRegisterInterpreterProcess();
}
public void send_unRegisterInterpreterProcess(java.lang.String intpGroupId) throws org.apache.thrift.TException
{
unRegisterInterpreterProcess_args args = new unRegisterInterpreterProcess_args();
args.setIntpGroupId(intpGroupId);
sendBase("unRegisterInterpreterProcess", args);
}
public void recv_unRegisterInterpreterProcess() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
unRegisterInterpreterProcess_result result = new unRegisterInterpreterProcess_result();
receiveBase(result, "unRegisterInterpreterProcess");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void appendOutput(OutputAppendEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_appendOutput(event);
recv_appendOutput();
}
public void send_appendOutput(OutputAppendEvent event) throws org.apache.thrift.TException
{
appendOutput_args args = new appendOutput_args();
args.setEvent(event);
sendBase("appendOutput", args);
}
public void recv_appendOutput() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
appendOutput_result result = new appendOutput_result();
receiveBase(result, "appendOutput");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void updateOutput(OutputUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_updateOutput(event);
recv_updateOutput();
}
public void send_updateOutput(OutputUpdateEvent event) throws org.apache.thrift.TException
{
updateOutput_args args = new updateOutput_args();
args.setEvent(event);
sendBase("updateOutput", args);
}
public void recv_updateOutput() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
updateOutput_result result = new updateOutput_result();
receiveBase(result, "updateOutput");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void updateAllOutput(OutputUpdateAllEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_updateAllOutput(event);
recv_updateAllOutput();
}
public void send_updateAllOutput(OutputUpdateAllEvent event) throws org.apache.thrift.TException
{
updateAllOutput_args args = new updateAllOutput_args();
args.setEvent(event);
sendBase("updateAllOutput", args);
}
public void recv_updateAllOutput() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
updateAllOutput_result result = new updateAllOutput_result();
receiveBase(result, "updateAllOutput");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void appendAppOutput(AppOutputAppendEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_appendAppOutput(event);
recv_appendAppOutput();
}
public void send_appendAppOutput(AppOutputAppendEvent event) throws org.apache.thrift.TException
{
appendAppOutput_args args = new appendAppOutput_args();
args.setEvent(event);
sendBase("appendAppOutput", args);
}
public void recv_appendAppOutput() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
appendAppOutput_result result = new appendAppOutput_result();
receiveBase(result, "appendAppOutput");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void updateAppOutput(AppOutputUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_updateAppOutput(event);
recv_updateAppOutput();
}
public void send_updateAppOutput(AppOutputUpdateEvent event) throws org.apache.thrift.TException
{
updateAppOutput_args args = new updateAppOutput_args();
args.setEvent(event);
sendBase("updateAppOutput", args);
}
public void recv_updateAppOutput() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
updateAppOutput_result result = new updateAppOutput_result();
receiveBase(result, "updateAppOutput");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void updateAppStatus(AppStatusUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_updateAppStatus(event);
recv_updateAppStatus();
}
public void send_updateAppStatus(AppStatusUpdateEvent event) throws org.apache.thrift.TException
{
updateAppStatus_args args = new updateAppStatus_args();
args.setEvent(event);
sendBase("updateAppStatus", args);
}
public void recv_updateAppStatus() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
updateAppStatus_result result = new updateAppStatus_result();
receiveBase(result, "updateAppStatus");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void checkpointOutput(java.lang.String noteId, java.lang.String paragraphId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_checkpointOutput(noteId, paragraphId);
recv_checkpointOutput();
}
public void send_checkpointOutput(java.lang.String noteId, java.lang.String paragraphId) throws org.apache.thrift.TException
{
checkpointOutput_args args = new checkpointOutput_args();
args.setNoteId(noteId);
args.setParagraphId(paragraphId);
sendBase("checkpointOutput", args);
}
public void recv_checkpointOutput() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
checkpointOutput_result result = new checkpointOutput_result();
receiveBase(result, "checkpointOutput");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void runParagraphs(RunParagraphsEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_runParagraphs(event);
recv_runParagraphs();
}
public void send_runParagraphs(RunParagraphsEvent event) throws org.apache.thrift.TException
{
runParagraphs_args args = new runParagraphs_args();
args.setEvent(event);
sendBase("runParagraphs", args);
}
public void recv_runParagraphs() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
runParagraphs_result result = new runParagraphs_result();
receiveBase(result, "runParagraphs");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void addAngularObject(java.lang.String intpGroupId, java.lang.String json) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_addAngularObject(intpGroupId, json);
recv_addAngularObject();
}
public void send_addAngularObject(java.lang.String intpGroupId, java.lang.String json) throws org.apache.thrift.TException
{
addAngularObject_args args = new addAngularObject_args();
args.setIntpGroupId(intpGroupId);
args.setJson(json);
sendBase("addAngularObject", args);
}
public void recv_addAngularObject() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
addAngularObject_result result = new addAngularObject_result();
receiveBase(result, "addAngularObject");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void updateAngularObject(java.lang.String intpGroupId, java.lang.String json) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_updateAngularObject(intpGroupId, json);
recv_updateAngularObject();
}
public void send_updateAngularObject(java.lang.String intpGroupId, java.lang.String json) throws org.apache.thrift.TException
{
updateAngularObject_args args = new updateAngularObject_args();
args.setIntpGroupId(intpGroupId);
args.setJson(json);
sendBase("updateAngularObject", args);
}
public void recv_updateAngularObject() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
updateAngularObject_result result = new updateAngularObject_result();
receiveBase(result, "updateAngularObject");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void removeAngularObject(java.lang.String intpGroupId, java.lang.String noteId, java.lang.String paragraphId, java.lang.String name) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_removeAngularObject(intpGroupId, noteId, paragraphId, name);
recv_removeAngularObject();
}
public void send_removeAngularObject(java.lang.String intpGroupId, java.lang.String noteId, java.lang.String paragraphId, java.lang.String name) throws org.apache.thrift.TException
{
removeAngularObject_args args = new removeAngularObject_args();
args.setIntpGroupId(intpGroupId);
args.setNoteId(noteId);
args.setParagraphId(paragraphId);
args.setName(name);
sendBase("removeAngularObject", args);
}
public void recv_removeAngularObject() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
removeAngularObject_result result = new removeAngularObject_result();
receiveBase(result, "removeAngularObject");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void sendWebUrl(WebUrlInfo weburlInfo) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_sendWebUrl(weburlInfo);
recv_sendWebUrl();
}
public void send_sendWebUrl(WebUrlInfo weburlInfo) throws org.apache.thrift.TException
{
sendWebUrl_args args = new sendWebUrl_args();
args.setWeburlInfo(weburlInfo);
sendBase("sendWebUrl", args);
}
public void recv_sendWebUrl() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
sendWebUrl_result result = new sendWebUrl_result();
receiveBase(result, "sendWebUrl");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void sendParagraphInfo(java.lang.String intpGroupId, java.lang.String json) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_sendParagraphInfo(intpGroupId, json);
recv_sendParagraphInfo();
}
public void send_sendParagraphInfo(java.lang.String intpGroupId, java.lang.String json) throws org.apache.thrift.TException
{
sendParagraphInfo_args args = new sendParagraphInfo_args();
args.setIntpGroupId(intpGroupId);
args.setJson(json);
sendBase("sendParagraphInfo", args);
}
public void recv_sendParagraphInfo() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
sendParagraphInfo_result result = new sendParagraphInfo_result();
receiveBase(result, "sendParagraphInfo");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void updateParagraphConfig(java.lang.String noteId, java.lang.String paragraphId, java.util.Map config) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_updateParagraphConfig(noteId, paragraphId, config);
recv_updateParagraphConfig();
}
public void send_updateParagraphConfig(java.lang.String noteId, java.lang.String paragraphId, java.util.Map config) throws org.apache.thrift.TException
{
updateParagraphConfig_args args = new updateParagraphConfig_args();
args.setNoteId(noteId);
args.setParagraphId(paragraphId);
args.setConfig(config);
sendBase("updateParagraphConfig", args);
}
public void recv_updateParagraphConfig() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
updateParagraphConfig_result result = new updateParagraphConfig_result();
receiveBase(result, "updateParagraphConfig");
if (result.ex != null) {
throw result.ex;
}
return;
}
public java.util.List getAllResources(java.lang.String intpGroupId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_getAllResources(intpGroupId);
return recv_getAllResources();
}
public void send_getAllResources(java.lang.String intpGroupId) throws org.apache.thrift.TException
{
getAllResources_args args = new getAllResources_args();
args.setIntpGroupId(intpGroupId);
sendBase("getAllResources", args);
}
public java.util.List recv_getAllResources() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
getAllResources_result result = new getAllResources_result();
receiveBase(result, "getAllResources");
if (result.isSetSuccess()) {
return result.success;
}
if (result.ex != null) {
throw result.ex;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllResources failed: unknown result");
}
public java.nio.ByteBuffer getResource(java.lang.String resourceIdJson) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_getResource(resourceIdJson);
return recv_getResource();
}
public void send_getResource(java.lang.String resourceIdJson) throws org.apache.thrift.TException
{
getResource_args args = new getResource_args();
args.setResourceIdJson(resourceIdJson);
sendBase("getResource", args);
}
public java.nio.ByteBuffer recv_getResource() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
getResource_result result = new getResource_result();
receiveBase(result, "getResource");
if (result.isSetSuccess()) {
return result.success;
}
if (result.ex != null) {
throw result.ex;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getResource failed: unknown result");
}
public java.nio.ByteBuffer invokeMethod(java.lang.String intpGroupId, java.lang.String invokeMethodJson) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_invokeMethod(intpGroupId, invokeMethodJson);
return recv_invokeMethod();
}
public void send_invokeMethod(java.lang.String intpGroupId, java.lang.String invokeMethodJson) throws org.apache.thrift.TException
{
invokeMethod_args args = new invokeMethod_args();
args.setIntpGroupId(intpGroupId);
args.setInvokeMethodJson(invokeMethodJson);
sendBase("invokeMethod", args);
}
public java.nio.ByteBuffer recv_invokeMethod() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
invokeMethod_result result = new invokeMethod_result();
receiveBase(result, "invokeMethod");
if (result.isSetSuccess()) {
return result.success;
}
if (result.ex != null) {
throw result.ex;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "invokeMethod failed: unknown result");
}
public java.util.List getParagraphList(java.lang.String user, java.lang.String noteId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_getParagraphList(user, noteId);
return recv_getParagraphList();
}
public void send_getParagraphList(java.lang.String user, java.lang.String noteId) throws org.apache.thrift.TException
{
getParagraphList_args args = new getParagraphList_args();
args.setUser(user);
args.setNoteId(noteId);
sendBase("getParagraphList", args);
}
public java.util.List recv_getParagraphList() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
getParagraphList_result result = new getParagraphList_result();
receiveBase(result, "getParagraphList");
if (result.isSetSuccess()) {
return result.success;
}
if (result.ex != null) {
throw result.ex;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getParagraphList failed: unknown result");
}
public java.util.List getAllLibraryMetadatas(java.lang.String intpSettingName) throws org.apache.thrift.TException
{
send_getAllLibraryMetadatas(intpSettingName);
return recv_getAllLibraryMetadatas();
}
public void send_getAllLibraryMetadatas(java.lang.String intpSettingName) throws org.apache.thrift.TException
{
getAllLibraryMetadatas_args args = new getAllLibraryMetadatas_args();
args.setIntpSettingName(intpSettingName);
sendBase("getAllLibraryMetadatas", args);
}
public java.util.List recv_getAllLibraryMetadatas() throws org.apache.thrift.TException
{
getAllLibraryMetadatas_result result = new getAllLibraryMetadatas_result();
receiveBase(result, "getAllLibraryMetadatas");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllLibraryMetadatas failed: unknown result");
}
public java.nio.ByteBuffer getLibrary(java.lang.String intpSettingName, java.lang.String libraryName) throws org.apache.thrift.TException
{
send_getLibrary(intpSettingName, libraryName);
return recv_getLibrary();
}
public void send_getLibrary(java.lang.String intpSettingName, java.lang.String libraryName) throws org.apache.thrift.TException
{
getLibrary_args args = new getLibrary_args();
args.setIntpSettingName(intpSettingName);
args.setLibraryName(libraryName);
sendBase("getLibrary", args);
}
public java.nio.ByteBuffer recv_getLibrary() throws org.apache.thrift.TException
{
getLibrary_result result = new getLibrary_result();
receiveBase(result, "getLibrary");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLibrary failed: unknown result");
}
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory {
private org.apache.thrift.async.TAsyncClientManager clientManager;
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
public void registerInterpreterProcess(RegisterInfo registerInfo, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
registerInterpreterProcess_call method_call = new registerInterpreterProcess_call(registerInfo, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class registerInterpreterProcess_call extends org.apache.thrift.async.TAsyncMethodCall {
private RegisterInfo registerInfo;
public registerInterpreterProcess_call(RegisterInfo registerInfo, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.registerInfo = registerInfo;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("registerInterpreterProcess", org.apache.thrift.protocol.TMessageType.CALL, 0));
registerInterpreterProcess_args args = new registerInterpreterProcess_args();
args.setRegisterInfo(registerInfo);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void unRegisterInterpreterProcess(java.lang.String intpGroupId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
unRegisterInterpreterProcess_call method_call = new unRegisterInterpreterProcess_call(intpGroupId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class unRegisterInterpreterProcess_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String intpGroupId;
public unRegisterInterpreterProcess_call(java.lang.String intpGroupId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpGroupId = intpGroupId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unRegisterInterpreterProcess", org.apache.thrift.protocol.TMessageType.CALL, 0));
unRegisterInterpreterProcess_args args = new unRegisterInterpreterProcess_args();
args.setIntpGroupId(intpGroupId);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void appendOutput(OutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
appendOutput_call method_call = new appendOutput_call(event, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class appendOutput_call extends org.apache.thrift.async.TAsyncMethodCall {
private OutputAppendEvent event;
public appendOutput_call(OutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.event = event;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("appendOutput", org.apache.thrift.protocol.TMessageType.CALL, 0));
appendOutput_args args = new appendOutput_args();
args.setEvent(event);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void updateOutput(OutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
updateOutput_call method_call = new updateOutput_call(event, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class updateOutput_call extends org.apache.thrift.async.TAsyncMethodCall {
private OutputUpdateEvent event;
public updateOutput_call(OutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.event = event;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOutput", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateOutput_args args = new updateOutput_args();
args.setEvent(event);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void updateAllOutput(OutputUpdateAllEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
updateAllOutput_call method_call = new updateAllOutput_call(event, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class updateAllOutput_call extends org.apache.thrift.async.TAsyncMethodCall {
private OutputUpdateAllEvent event;
public updateAllOutput_call(OutputUpdateAllEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.event = event;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAllOutput", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateAllOutput_args args = new updateAllOutput_args();
args.setEvent(event);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void appendAppOutput(AppOutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
appendAppOutput_call method_call = new appendAppOutput_call(event, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class appendAppOutput_call extends org.apache.thrift.async.TAsyncMethodCall {
private AppOutputAppendEvent event;
public appendAppOutput_call(AppOutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.event = event;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("appendAppOutput", org.apache.thrift.protocol.TMessageType.CALL, 0));
appendAppOutput_args args = new appendAppOutput_args();
args.setEvent(event);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void updateAppOutput(AppOutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
updateAppOutput_call method_call = new updateAppOutput_call(event, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class updateAppOutput_call extends org.apache.thrift.async.TAsyncMethodCall {
private AppOutputUpdateEvent event;
public updateAppOutput_call(AppOutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.event = event;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAppOutput", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateAppOutput_args args = new updateAppOutput_args();
args.setEvent(event);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void updateAppStatus(AppStatusUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
updateAppStatus_call method_call = new updateAppStatus_call(event, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class updateAppStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
private AppStatusUpdateEvent event;
public updateAppStatus_call(AppStatusUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.event = event;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAppStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateAppStatus_args args = new updateAppStatus_args();
args.setEvent(event);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void checkpointOutput(java.lang.String noteId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
checkpointOutput_call method_call = new checkpointOutput_call(noteId, paragraphId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class checkpointOutput_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String noteId;
private java.lang.String paragraphId;
public checkpointOutput_call(java.lang.String noteId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.noteId = noteId;
this.paragraphId = paragraphId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkpointOutput", org.apache.thrift.protocol.TMessageType.CALL, 0));
checkpointOutput_args args = new checkpointOutput_args();
args.setNoteId(noteId);
args.setParagraphId(paragraphId);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void runParagraphs(RunParagraphsEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
runParagraphs_call method_call = new runParagraphs_call(event, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class runParagraphs_call extends org.apache.thrift.async.TAsyncMethodCall {
private RunParagraphsEvent event;
public runParagraphs_call(RunParagraphsEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.event = event;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runParagraphs", org.apache.thrift.protocol.TMessageType.CALL, 0));
runParagraphs_args args = new runParagraphs_args();
args.setEvent(event);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void addAngularObject(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
addAngularObject_call method_call = new addAngularObject_call(intpGroupId, json, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class addAngularObject_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String intpGroupId;
private java.lang.String json;
public addAngularObject_call(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpGroupId = intpGroupId;
this.json = json;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAngularObject", org.apache.thrift.protocol.TMessageType.CALL, 0));
addAngularObject_args args = new addAngularObject_args();
args.setIntpGroupId(intpGroupId);
args.setJson(json);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void updateAngularObject(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
updateAngularObject_call method_call = new updateAngularObject_call(intpGroupId, json, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class updateAngularObject_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String intpGroupId;
private java.lang.String json;
public updateAngularObject_call(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpGroupId = intpGroupId;
this.json = json;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAngularObject", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateAngularObject_args args = new updateAngularObject_args();
args.setIntpGroupId(intpGroupId);
args.setJson(json);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void removeAngularObject(java.lang.String intpGroupId, java.lang.String noteId, java.lang.String paragraphId, java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
removeAngularObject_call method_call = new removeAngularObject_call(intpGroupId, noteId, paragraphId, name, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class removeAngularObject_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String intpGroupId;
private java.lang.String noteId;
private java.lang.String paragraphId;
private java.lang.String name;
public removeAngularObject_call(java.lang.String intpGroupId, java.lang.String noteId, java.lang.String paragraphId, java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpGroupId = intpGroupId;
this.noteId = noteId;
this.paragraphId = paragraphId;
this.name = name;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeAngularObject", org.apache.thrift.protocol.TMessageType.CALL, 0));
removeAngularObject_args args = new removeAngularObject_args();
args.setIntpGroupId(intpGroupId);
args.setNoteId(noteId);
args.setParagraphId(paragraphId);
args.setName(name);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void sendWebUrl(WebUrlInfo weburlInfo, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
sendWebUrl_call method_call = new sendWebUrl_call(weburlInfo, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class sendWebUrl_call extends org.apache.thrift.async.TAsyncMethodCall {
private WebUrlInfo weburlInfo;
public sendWebUrl_call(WebUrlInfo weburlInfo, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.weburlInfo = weburlInfo;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendWebUrl", org.apache.thrift.protocol.TMessageType.CALL, 0));
sendWebUrl_args args = new sendWebUrl_args();
args.setWeburlInfo(weburlInfo);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void sendParagraphInfo(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
sendParagraphInfo_call method_call = new sendParagraphInfo_call(intpGroupId, json, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class sendParagraphInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String intpGroupId;
private java.lang.String json;
public sendParagraphInfo_call(java.lang.String intpGroupId, java.lang.String json, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpGroupId = intpGroupId;
this.json = json;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendParagraphInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
sendParagraphInfo_args args = new sendParagraphInfo_args();
args.setIntpGroupId(intpGroupId);
args.setJson(json);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void updateParagraphConfig(java.lang.String noteId, java.lang.String paragraphId, java.util.Map config, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
updateParagraphConfig_call method_call = new updateParagraphConfig_call(noteId, paragraphId, config, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class updateParagraphConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String noteId;
private java.lang.String paragraphId;
private java.util.Map config;
public updateParagraphConfig_call(java.lang.String noteId, java.lang.String paragraphId, java.util.Map config, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.noteId = noteId;
this.paragraphId = paragraphId;
this.config = config;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateParagraphConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateParagraphConfig_args args = new updateParagraphConfig_args();
args.setNoteId(noteId);
args.setParagraphId(paragraphId);
args.setConfig(config);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return null;
}
}
public void getAllResources(java.lang.String intpGroupId, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
getAllResources_call method_call = new getAllResources_call(intpGroupId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getAllResources_call extends org.apache.thrift.async.TAsyncMethodCall> {
private java.lang.String intpGroupId;
public getAllResources_call(java.lang.String intpGroupId, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpGroupId = intpGroupId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllResources", org.apache.thrift.protocol.TMessageType.CALL, 0));
getAllResources_args args = new getAllResources_args();
args.setIntpGroupId(intpGroupId);
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getAllResources();
}
}
public void getResource(java.lang.String resourceIdJson, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
getResource_call method_call = new getResource_call(resourceIdJson, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getResource_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String resourceIdJson;
public getResource_call(java.lang.String resourceIdJson, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.resourceIdJson = resourceIdJson;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getResource", org.apache.thrift.protocol.TMessageType.CALL, 0));
getResource_args args = new getResource_args();
args.setResourceIdJson(resourceIdJson);
args.write(prot);
prot.writeMessageEnd();
}
public java.nio.ByteBuffer getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getResource();
}
}
public void invokeMethod(java.lang.String intpGroupId, java.lang.String invokeMethodJson, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
invokeMethod_call method_call = new invokeMethod_call(intpGroupId, invokeMethodJson, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class invokeMethod_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String intpGroupId;
private java.lang.String invokeMethodJson;
public invokeMethod_call(java.lang.String intpGroupId, java.lang.String invokeMethodJson, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpGroupId = intpGroupId;
this.invokeMethodJson = invokeMethodJson;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("invokeMethod", org.apache.thrift.protocol.TMessageType.CALL, 0));
invokeMethod_args args = new invokeMethod_args();
args.setIntpGroupId(intpGroupId);
args.setInvokeMethodJson(invokeMethodJson);
args.write(prot);
prot.writeMessageEnd();
}
public java.nio.ByteBuffer getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_invokeMethod();
}
}
public void getParagraphList(java.lang.String user, java.lang.String noteId, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
getParagraphList_call method_call = new getParagraphList_call(user, noteId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getParagraphList_call extends org.apache.thrift.async.TAsyncMethodCall> {
private java.lang.String user;
private java.lang.String noteId;
public getParagraphList_call(java.lang.String user, java.lang.String noteId, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.user = user;
this.noteId = noteId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getParagraphList", org.apache.thrift.protocol.TMessageType.CALL, 0));
getParagraphList_args args = new getParagraphList_args();
args.setUser(user);
args.setNoteId(noteId);
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getParagraphList();
}
}
public void getAllLibraryMetadatas(java.lang.String intpSettingName, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
getAllLibraryMetadatas_call method_call = new getAllLibraryMetadatas_call(intpSettingName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getAllLibraryMetadatas_call extends org.apache.thrift.async.TAsyncMethodCall> {
private java.lang.String intpSettingName;
public getAllLibraryMetadatas_call(java.lang.String intpSettingName, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpSettingName = intpSettingName;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllLibraryMetadatas", org.apache.thrift.protocol.TMessageType.CALL, 0));
getAllLibraryMetadatas_args args = new getAllLibraryMetadatas_args();
args.setIntpSettingName(intpSettingName);
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getAllLibraryMetadatas();
}
}
public void getLibrary(java.lang.String intpSettingName, java.lang.String libraryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
getLibrary_call method_call = new getLibrary_call(intpSettingName, libraryName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getLibrary_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String intpSettingName;
private java.lang.String libraryName;
public getLibrary_call(java.lang.String intpSettingName, java.lang.String libraryName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.intpSettingName = intpSettingName;
this.libraryName = libraryName;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLibrary", org.apache.thrift.protocol.TMessageType.CALL, 0));
getLibrary_args args = new getLibrary_args();
args.setIntpSettingName(intpSettingName);
args.setLibraryName(libraryName);
args.write(prot);
prot.writeMessageEnd();
}
public java.nio.ByteBuffer getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getLibrary();
}
}
}
public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new java.util.HashMap>()));
}
protected Processor(I iface, java.util.Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static java.util.Map> getProcessMap(java.util.Map> processMap) {
processMap.put("registerInterpreterProcess", new registerInterpreterProcess());
processMap.put("unRegisterInterpreterProcess", new unRegisterInterpreterProcess());
processMap.put("appendOutput", new appendOutput());
processMap.put("updateOutput", new updateOutput());
processMap.put("updateAllOutput", new updateAllOutput());
processMap.put("appendAppOutput", new appendAppOutput());
processMap.put("updateAppOutput", new updateAppOutput());
processMap.put("updateAppStatus", new updateAppStatus());
processMap.put("checkpointOutput", new checkpointOutput());
processMap.put("runParagraphs", new runParagraphs());
processMap.put("addAngularObject", new addAngularObject());
processMap.put("updateAngularObject", new updateAngularObject());
processMap.put("removeAngularObject", new removeAngularObject());
processMap.put("sendWebUrl", new sendWebUrl());
processMap.put("sendParagraphInfo", new sendParagraphInfo());
processMap.put("updateParagraphConfig", new updateParagraphConfig());
processMap.put("getAllResources", new getAllResources());
processMap.put("getResource", new getResource());
processMap.put("invokeMethod", new invokeMethod());
processMap.put("getParagraphList", new getParagraphList());
processMap.put("getAllLibraryMetadatas", new getAllLibraryMetadatas());
processMap.put("getLibrary", new getLibrary());
return processMap;
}
public static class registerInterpreterProcess extends org.apache.thrift.ProcessFunction {
public registerInterpreterProcess() {
super("registerInterpreterProcess");
}
public registerInterpreterProcess_args getEmptyArgsInstance() {
return new registerInterpreterProcess_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public registerInterpreterProcess_result getResult(I iface, registerInterpreterProcess_args args) throws org.apache.thrift.TException {
registerInterpreterProcess_result result = new registerInterpreterProcess_result();
try {
iface.registerInterpreterProcess(args.registerInfo);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class unRegisterInterpreterProcess extends org.apache.thrift.ProcessFunction {
public unRegisterInterpreterProcess() {
super("unRegisterInterpreterProcess");
}
public unRegisterInterpreterProcess_args getEmptyArgsInstance() {
return new unRegisterInterpreterProcess_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public unRegisterInterpreterProcess_result getResult(I iface, unRegisterInterpreterProcess_args args) throws org.apache.thrift.TException {
unRegisterInterpreterProcess_result result = new unRegisterInterpreterProcess_result();
try {
iface.unRegisterInterpreterProcess(args.intpGroupId);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class appendOutput extends org.apache.thrift.ProcessFunction {
public appendOutput() {
super("appendOutput");
}
public appendOutput_args getEmptyArgsInstance() {
return new appendOutput_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public appendOutput_result getResult(I iface, appendOutput_args args) throws org.apache.thrift.TException {
appendOutput_result result = new appendOutput_result();
try {
iface.appendOutput(args.event);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class updateOutput extends org.apache.thrift.ProcessFunction {
public updateOutput() {
super("updateOutput");
}
public updateOutput_args getEmptyArgsInstance() {
return new updateOutput_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public updateOutput_result getResult(I iface, updateOutput_args args) throws org.apache.thrift.TException {
updateOutput_result result = new updateOutput_result();
try {
iface.updateOutput(args.event);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class updateAllOutput extends org.apache.thrift.ProcessFunction {
public updateAllOutput() {
super("updateAllOutput");
}
public updateAllOutput_args getEmptyArgsInstance() {
return new updateAllOutput_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public updateAllOutput_result getResult(I iface, updateAllOutput_args args) throws org.apache.thrift.TException {
updateAllOutput_result result = new updateAllOutput_result();
try {
iface.updateAllOutput(args.event);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class appendAppOutput extends org.apache.thrift.ProcessFunction {
public appendAppOutput() {
super("appendAppOutput");
}
public appendAppOutput_args getEmptyArgsInstance() {
return new appendAppOutput_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public appendAppOutput_result getResult(I iface, appendAppOutput_args args) throws org.apache.thrift.TException {
appendAppOutput_result result = new appendAppOutput_result();
try {
iface.appendAppOutput(args.event);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class updateAppOutput extends org.apache.thrift.ProcessFunction {
public updateAppOutput() {
super("updateAppOutput");
}
public updateAppOutput_args getEmptyArgsInstance() {
return new updateAppOutput_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public updateAppOutput_result getResult(I iface, updateAppOutput_args args) throws org.apache.thrift.TException {
updateAppOutput_result result = new updateAppOutput_result();
try {
iface.updateAppOutput(args.event);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class updateAppStatus extends org.apache.thrift.ProcessFunction {
public updateAppStatus() {
super("updateAppStatus");
}
public updateAppStatus_args getEmptyArgsInstance() {
return new updateAppStatus_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public updateAppStatus_result getResult(I iface, updateAppStatus_args args) throws org.apache.thrift.TException {
updateAppStatus_result result = new updateAppStatus_result();
try {
iface.updateAppStatus(args.event);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class checkpointOutput extends org.apache.thrift.ProcessFunction {
public checkpointOutput() {
super("checkpointOutput");
}
public checkpointOutput_args getEmptyArgsInstance() {
return new checkpointOutput_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public checkpointOutput_result getResult(I iface, checkpointOutput_args args) throws org.apache.thrift.TException {
checkpointOutput_result result = new checkpointOutput_result();
try {
iface.checkpointOutput(args.noteId, args.paragraphId);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class runParagraphs extends org.apache.thrift.ProcessFunction {
public runParagraphs() {
super("runParagraphs");
}
public runParagraphs_args getEmptyArgsInstance() {
return new runParagraphs_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public runParagraphs_result getResult(I iface, runParagraphs_args args) throws org.apache.thrift.TException {
runParagraphs_result result = new runParagraphs_result();
try {
iface.runParagraphs(args.event);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class addAngularObject extends org.apache.thrift.ProcessFunction {
public addAngularObject() {
super("addAngularObject");
}
public addAngularObject_args getEmptyArgsInstance() {
return new addAngularObject_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public addAngularObject_result getResult(I iface, addAngularObject_args args) throws org.apache.thrift.TException {
addAngularObject_result result = new addAngularObject_result();
try {
iface.addAngularObject(args.intpGroupId, args.json);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class updateAngularObject extends org.apache.thrift.ProcessFunction {
public updateAngularObject() {
super("updateAngularObject");
}
public updateAngularObject_args getEmptyArgsInstance() {
return new updateAngularObject_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public updateAngularObject_result getResult(I iface, updateAngularObject_args args) throws org.apache.thrift.TException {
updateAngularObject_result result = new updateAngularObject_result();
try {
iface.updateAngularObject(args.intpGroupId, args.json);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class removeAngularObject extends org.apache.thrift.ProcessFunction {
public removeAngularObject() {
super("removeAngularObject");
}
public removeAngularObject_args getEmptyArgsInstance() {
return new removeAngularObject_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public removeAngularObject_result getResult(I iface, removeAngularObject_args args) throws org.apache.thrift.TException {
removeAngularObject_result result = new removeAngularObject_result();
try {
iface.removeAngularObject(args.intpGroupId, args.noteId, args.paragraphId, args.name);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class sendWebUrl extends org.apache.thrift.ProcessFunction {
public sendWebUrl() {
super("sendWebUrl");
}
public sendWebUrl_args getEmptyArgsInstance() {
return new sendWebUrl_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public sendWebUrl_result getResult(I iface, sendWebUrl_args args) throws org.apache.thrift.TException {
sendWebUrl_result result = new sendWebUrl_result();
try {
iface.sendWebUrl(args.weburlInfo);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class sendParagraphInfo extends org.apache.thrift.ProcessFunction {
public sendParagraphInfo() {
super("sendParagraphInfo");
}
public sendParagraphInfo_args getEmptyArgsInstance() {
return new sendParagraphInfo_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public sendParagraphInfo_result getResult(I iface, sendParagraphInfo_args args) throws org.apache.thrift.TException {
sendParagraphInfo_result result = new sendParagraphInfo_result();
try {
iface.sendParagraphInfo(args.intpGroupId, args.json);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class updateParagraphConfig extends org.apache.thrift.ProcessFunction {
public updateParagraphConfig() {
super("updateParagraphConfig");
}
public updateParagraphConfig_args getEmptyArgsInstance() {
return new updateParagraphConfig_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public updateParagraphConfig_result getResult(I iface, updateParagraphConfig_args args) throws org.apache.thrift.TException {
updateParagraphConfig_result result = new updateParagraphConfig_result();
try {
iface.updateParagraphConfig(args.noteId, args.paragraphId, args.config);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class getAllResources extends org.apache.thrift.ProcessFunction {
public getAllResources() {
super("getAllResources");
}
public getAllResources_args getEmptyArgsInstance() {
return new getAllResources_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public getAllResources_result getResult(I iface, getAllResources_args args) throws org.apache.thrift.TException {
getAllResources_result result = new getAllResources_result();
try {
result.success = iface.getAllResources(args.intpGroupId);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class getResource extends org.apache.thrift.ProcessFunction {
public getResource() {
super("getResource");
}
public getResource_args getEmptyArgsInstance() {
return new getResource_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public getResource_result getResult(I iface, getResource_args args) throws org.apache.thrift.TException {
getResource_result result = new getResource_result();
try {
result.success = iface.getResource(args.resourceIdJson);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class invokeMethod extends org.apache.thrift.ProcessFunction {
public invokeMethod() {
super("invokeMethod");
}
public invokeMethod_args getEmptyArgsInstance() {
return new invokeMethod_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public invokeMethod_result getResult(I iface, invokeMethod_args args) throws org.apache.thrift.TException {
invokeMethod_result result = new invokeMethod_result();
try {
result.success = iface.invokeMethod(args.intpGroupId, args.invokeMethodJson);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class getParagraphList extends org.apache.thrift.ProcessFunction {
public getParagraphList() {
super("getParagraphList");
}
public getParagraphList_args getEmptyArgsInstance() {
return new getParagraphList_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public getParagraphList_result getResult(I iface, getParagraphList_args args) throws org.apache.thrift.TException {
getParagraphList_result result = new getParagraphList_result();
try {
result.success = iface.getParagraphList(args.user, args.noteId);
} catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class getAllLibraryMetadatas extends org.apache.thrift.ProcessFunction {
public getAllLibraryMetadatas() {
super("getAllLibraryMetadatas");
}
public getAllLibraryMetadatas_args getEmptyArgsInstance() {
return new getAllLibraryMetadatas_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public getAllLibraryMetadatas_result getResult(I iface, getAllLibraryMetadatas_args args) throws org.apache.thrift.TException {
getAllLibraryMetadatas_result result = new getAllLibraryMetadatas_result();
result.success = iface.getAllLibraryMetadatas(args.intpSettingName);
return result;
}
}
public static class getLibrary extends org.apache.thrift.ProcessFunction {
public getLibrary() {
super("getLibrary");
}
public getLibrary_args getEmptyArgsInstance() {
return new getLibrary_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public getLibrary_result getResult(I iface, getLibrary_args args) throws org.apache.thrift.TException {
getLibrary_result result = new getLibrary_result();
result.success = iface.getLibrary(args.intpSettingName, args.libraryName);
return result;
}
}
}
public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
super(iface, getProcessMap(new java.util.HashMap>()));
}
protected AsyncProcessor(I iface, java.util.Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static java.util.Map> getProcessMap(java.util.Map> processMap) {
processMap.put("registerInterpreterProcess", new registerInterpreterProcess());
processMap.put("unRegisterInterpreterProcess", new unRegisterInterpreterProcess());
processMap.put("appendOutput", new appendOutput());
processMap.put("updateOutput", new updateOutput());
processMap.put("updateAllOutput", new updateAllOutput());
processMap.put("appendAppOutput", new appendAppOutput());
processMap.put("updateAppOutput", new updateAppOutput());
processMap.put("updateAppStatus", new updateAppStatus());
processMap.put("checkpointOutput", new checkpointOutput());
processMap.put("runParagraphs", new runParagraphs());
processMap.put("addAngularObject", new addAngularObject());
processMap.put("updateAngularObject", new updateAngularObject());
processMap.put("removeAngularObject", new removeAngularObject());
processMap.put("sendWebUrl", new sendWebUrl());
processMap.put("sendParagraphInfo", new sendParagraphInfo());
processMap.put("updateParagraphConfig", new updateParagraphConfig());
processMap.put("getAllResources", new getAllResources());
processMap.put("getResource", new getResource());
processMap.put("invokeMethod", new invokeMethod());
processMap.put("getParagraphList", new getParagraphList());
processMap.put("getAllLibraryMetadatas", new getAllLibraryMetadatas());
processMap.put("getLibrary", new getLibrary());
return processMap;
}
public static class registerInterpreterProcess extends org.apache.thrift.AsyncProcessFunction {
public registerInterpreterProcess() {
super("registerInterpreterProcess");
}
public registerInterpreterProcess_args getEmptyArgsInstance() {
return new registerInterpreterProcess_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
registerInterpreterProcess_result result = new registerInterpreterProcess_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
registerInterpreterProcess_result result = new registerInterpreterProcess_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, registerInterpreterProcess_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.registerInterpreterProcess(args.registerInfo,resultHandler);
}
}
public static class unRegisterInterpreterProcess extends org.apache.thrift.AsyncProcessFunction {
public unRegisterInterpreterProcess() {
super("unRegisterInterpreterProcess");
}
public unRegisterInterpreterProcess_args getEmptyArgsInstance() {
return new unRegisterInterpreterProcess_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
unRegisterInterpreterProcess_result result = new unRegisterInterpreterProcess_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
unRegisterInterpreterProcess_result result = new unRegisterInterpreterProcess_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, unRegisterInterpreterProcess_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.unRegisterInterpreterProcess(args.intpGroupId,resultHandler);
}
}
public static class appendOutput extends org.apache.thrift.AsyncProcessFunction {
public appendOutput() {
super("appendOutput");
}
public appendOutput_args getEmptyArgsInstance() {
return new appendOutput_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
appendOutput_result result = new appendOutput_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
appendOutput_result result = new appendOutput_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, appendOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.appendOutput(args.event,resultHandler);
}
}
public static class updateOutput extends org.apache.thrift.AsyncProcessFunction {
public updateOutput() {
super("updateOutput");
}
public updateOutput_args getEmptyArgsInstance() {
return new updateOutput_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
updateOutput_result result = new updateOutput_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
updateOutput_result result = new updateOutput_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, updateOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.updateOutput(args.event,resultHandler);
}
}
public static class updateAllOutput extends org.apache.thrift.AsyncProcessFunction {
public updateAllOutput() {
super("updateAllOutput");
}
public updateAllOutput_args getEmptyArgsInstance() {
return new updateAllOutput_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
updateAllOutput_result result = new updateAllOutput_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
updateAllOutput_result result = new updateAllOutput_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, updateAllOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.updateAllOutput(args.event,resultHandler);
}
}
public static class appendAppOutput extends org.apache.thrift.AsyncProcessFunction {
public appendAppOutput() {
super("appendAppOutput");
}
public appendAppOutput_args getEmptyArgsInstance() {
return new appendAppOutput_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
appendAppOutput_result result = new appendAppOutput_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
appendAppOutput_result result = new appendAppOutput_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, appendAppOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.appendAppOutput(args.event,resultHandler);
}
}
public static class updateAppOutput extends org.apache.thrift.AsyncProcessFunction {
public updateAppOutput() {
super("updateAppOutput");
}
public updateAppOutput_args getEmptyArgsInstance() {
return new updateAppOutput_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
updateAppOutput_result result = new updateAppOutput_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
updateAppOutput_result result = new updateAppOutput_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, updateAppOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.updateAppOutput(args.event,resultHandler);
}
}
public static class updateAppStatus extends org.apache.thrift.AsyncProcessFunction {
public updateAppStatus() {
super("updateAppStatus");
}
public updateAppStatus_args getEmptyArgsInstance() {
return new updateAppStatus_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
updateAppStatus_result result = new updateAppStatus_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
updateAppStatus_result result = new updateAppStatus_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, updateAppStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.updateAppStatus(args.event,resultHandler);
}
}
public static class checkpointOutput extends org.apache.thrift.AsyncProcessFunction {
public checkpointOutput() {
super("checkpointOutput");
}
public checkpointOutput_args getEmptyArgsInstance() {
return new checkpointOutput_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
checkpointOutput_result result = new checkpointOutput_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
checkpointOutput_result result = new checkpointOutput_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, checkpointOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.checkpointOutput(args.noteId, args.paragraphId,resultHandler);
}
}
public static class runParagraphs extends org.apache.thrift.AsyncProcessFunction {
public runParagraphs() {
super("runParagraphs");
}
public runParagraphs_args getEmptyArgsInstance() {
return new runParagraphs_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
runParagraphs_result result = new runParagraphs_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
runParagraphs_result result = new runParagraphs_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, runParagraphs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.runParagraphs(args.event,resultHandler);
}
}
public static class addAngularObject extends org.apache.thrift.AsyncProcessFunction {
public addAngularObject() {
super("addAngularObject");
}
public addAngularObject_args getEmptyArgsInstance() {
return new addAngularObject_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
addAngularObject_result result = new addAngularObject_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
addAngularObject_result result = new addAngularObject_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, addAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.addAngularObject(args.intpGroupId, args.json,resultHandler);
}
}
public static class updateAngularObject extends org.apache.thrift.AsyncProcessFunction {
public updateAngularObject() {
super("updateAngularObject");
}
public updateAngularObject_args getEmptyArgsInstance() {
return new updateAngularObject_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
updateAngularObject_result result = new updateAngularObject_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
updateAngularObject_result result = new updateAngularObject_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, updateAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.updateAngularObject(args.intpGroupId, args.json,resultHandler);
}
}
public static class removeAngularObject extends org.apache.thrift.AsyncProcessFunction {
public removeAngularObject() {
super("removeAngularObject");
}
public removeAngularObject_args getEmptyArgsInstance() {
return new removeAngularObject_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
removeAngularObject_result result = new removeAngularObject_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
removeAngularObject_result result = new removeAngularObject_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, removeAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.removeAngularObject(args.intpGroupId, args.noteId, args.paragraphId, args.name,resultHandler);
}
}
public static class sendWebUrl extends org.apache.thrift.AsyncProcessFunction {
public sendWebUrl() {
super("sendWebUrl");
}
public sendWebUrl_args getEmptyArgsInstance() {
return new sendWebUrl_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
sendWebUrl_result result = new sendWebUrl_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
sendWebUrl_result result = new sendWebUrl_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, sendWebUrl_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.sendWebUrl(args.weburlInfo,resultHandler);
}
}
public static class sendParagraphInfo extends org.apache.thrift.AsyncProcessFunction {
public sendParagraphInfo() {
super("sendParagraphInfo");
}
public sendParagraphInfo_args getEmptyArgsInstance() {
return new sendParagraphInfo_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
sendParagraphInfo_result result = new sendParagraphInfo_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
sendParagraphInfo_result result = new sendParagraphInfo_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, sendParagraphInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.sendParagraphInfo(args.intpGroupId, args.json,resultHandler);
}
}
public static class updateParagraphConfig extends org.apache.thrift.AsyncProcessFunction {
public updateParagraphConfig() {
super("updateParagraphConfig");
}
public updateParagraphConfig_args getEmptyArgsInstance() {
return new updateParagraphConfig_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
updateParagraphConfig_result result = new updateParagraphConfig_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
updateParagraphConfig_result result = new updateParagraphConfig_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
msg = result;
} else if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, updateParagraphConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.updateParagraphConfig(args.noteId, args.paragraphId, args.config,resultHandler);
}
}
public static class getAllResources extends org.apache.thrift.AsyncProcessFunction> {
public getAllResources() {
super("getAllResources");
}
public getAllResources_args getEmptyArgsInstance() {
return new getAllResources_args();
}
public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback