org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService Maven / Gradle / Ivy
The newest version!
/**
* 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 RemoteInterpreterService {
public interface Iface {
public void createInterpreter(java.lang.String intpGroupId, java.lang.String sessionId, java.lang.String className, java.util.Map properties, java.lang.String userName) throws InterpreterRPCException, org.apache.thrift.TException;
public void init(java.util.Map properties) throws InterpreterRPCException, org.apache.thrift.TException;
public void open(java.lang.String sessionId, java.lang.String className) throws InterpreterRPCException, org.apache.thrift.TException;
public void close(java.lang.String sessionId, java.lang.String className) throws InterpreterRPCException, org.apache.thrift.TException;
public void reconnect(java.lang.String host, int port) throws InterpreterRPCException, org.apache.thrift.TException;
public RemoteInterpreterResult interpret(java.lang.String sessionId, java.lang.String className, java.lang.String st, RemoteInterpreterContext interpreterContext) throws InterpreterRPCException, org.apache.thrift.TException;
public void cancel(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext) throws InterpreterRPCException, org.apache.thrift.TException;
public int getProgress(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext) throws InterpreterRPCException, org.apache.thrift.TException;
public java.lang.String getFormType(java.lang.String sessionId, java.lang.String className) throws InterpreterRPCException, org.apache.thrift.TException;
public java.util.List completion(java.lang.String sessionId, java.lang.String className, java.lang.String buf, int cursor, RemoteInterpreterContext interpreterContext) throws InterpreterRPCException, org.apache.thrift.TException;
public void shutdown() throws org.apache.thrift.TException;
public java.lang.String getStatus(java.lang.String sessionId, java.lang.String jobId) throws InterpreterRPCException, org.apache.thrift.TException;
public java.util.List resourcePoolGetAll() throws InterpreterRPCException, org.apache.thrift.TException;
public java.nio.ByteBuffer resourceGet(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName) throws InterpreterRPCException, org.apache.thrift.TException;
public boolean resourceRemove(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName) throws InterpreterRPCException, org.apache.thrift.TException;
public java.nio.ByteBuffer resourceInvokeMethod(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, java.lang.String invokeMessage) throws InterpreterRPCException, org.apache.thrift.TException;
public void angularObjectUpdate(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object) throws InterpreterRPCException, org.apache.thrift.TException;
public void angularObjectAdd(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object) throws InterpreterRPCException, org.apache.thrift.TException;
public void angularObjectRemove(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId) throws InterpreterRPCException, org.apache.thrift.TException;
public void angularRegistryPush(java.lang.String registry) throws InterpreterRPCException, org.apache.thrift.TException;
public RemoteApplicationResult loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId) throws InterpreterRPCException, org.apache.thrift.TException;
public RemoteApplicationResult unloadApplication(java.lang.String applicationInstanceId) throws InterpreterRPCException, org.apache.thrift.TException;
public RemoteApplicationResult runApplication(java.lang.String applicationInstanceId) throws InterpreterRPCException, org.apache.thrift.TException;
}
public interface AsyncIface {
public void createInterpreter(java.lang.String intpGroupId, java.lang.String sessionId, java.lang.String className, java.util.Map properties, java.lang.String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void init(java.util.Map properties, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void open(java.lang.String sessionId, java.lang.String className, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void close(java.lang.String sessionId, java.lang.String className, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void reconnect(java.lang.String host, int port, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void interpret(java.lang.String sessionId, java.lang.String className, java.lang.String st, RemoteInterpreterContext interpreterContext, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void cancel(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void getProgress(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void getFormType(java.lang.String sessionId, java.lang.String className, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void completion(java.lang.String sessionId, java.lang.String className, java.lang.String buf, int cursor, RemoteInterpreterContext interpreterContext, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void shutdown(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void getStatus(java.lang.String sessionId, java.lang.String jobId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void resourcePoolGetAll(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void resourceGet(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void resourceRemove(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void resourceInvokeMethod(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, java.lang.String invokeMessage, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void angularObjectUpdate(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void angularObjectAdd(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void angularObjectRemove(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void angularRegistryPush(java.lang.String registry, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void unloadApplication(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void runApplication(java.lang.String applicationInstanceId, 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 createInterpreter(java.lang.String intpGroupId, java.lang.String sessionId, java.lang.String className, java.util.Map properties, java.lang.String userName) throws InterpreterRPCException, org.apache.thrift.TException
{
send_createInterpreter(intpGroupId, sessionId, className, properties, userName);
recv_createInterpreter();
}
public void send_createInterpreter(java.lang.String intpGroupId, java.lang.String sessionId, java.lang.String className, java.util.Map properties, java.lang.String userName) throws org.apache.thrift.TException
{
createInterpreter_args args = new createInterpreter_args();
args.setIntpGroupId(intpGroupId);
args.setSessionId(sessionId);
args.setClassName(className);
args.setProperties(properties);
args.setUserName(userName);
sendBase("createInterpreter", args);
}
public void recv_createInterpreter() throws InterpreterRPCException, org.apache.thrift.TException
{
createInterpreter_result result = new createInterpreter_result();
receiveBase(result, "createInterpreter");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void init(java.util.Map properties) throws InterpreterRPCException, org.apache.thrift.TException
{
send_init(properties);
recv_init();
}
public void send_init(java.util.Map properties) throws org.apache.thrift.TException
{
init_args args = new init_args();
args.setProperties(properties);
sendBase("init", args);
}
public void recv_init() throws InterpreterRPCException, org.apache.thrift.TException
{
init_result result = new init_result();
receiveBase(result, "init");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void open(java.lang.String sessionId, java.lang.String className) throws InterpreterRPCException, org.apache.thrift.TException
{
send_open(sessionId, className);
recv_open();
}
public void send_open(java.lang.String sessionId, java.lang.String className) throws org.apache.thrift.TException
{
open_args args = new open_args();
args.setSessionId(sessionId);
args.setClassName(className);
sendBase("open", args);
}
public void recv_open() throws InterpreterRPCException, org.apache.thrift.TException
{
open_result result = new open_result();
receiveBase(result, "open");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void close(java.lang.String sessionId, java.lang.String className) throws InterpreterRPCException, org.apache.thrift.TException
{
send_close(sessionId, className);
recv_close();
}
public void send_close(java.lang.String sessionId, java.lang.String className) throws org.apache.thrift.TException
{
close_args args = new close_args();
args.setSessionId(sessionId);
args.setClassName(className);
sendBase("close", args);
}
public void recv_close() throws InterpreterRPCException, org.apache.thrift.TException
{
close_result result = new close_result();
receiveBase(result, "close");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void reconnect(java.lang.String host, int port) throws InterpreterRPCException, org.apache.thrift.TException
{
send_reconnect(host, port);
recv_reconnect();
}
public void send_reconnect(java.lang.String host, int port) throws org.apache.thrift.TException
{
reconnect_args args = new reconnect_args();
args.setHost(host);
args.setPort(port);
sendBase("reconnect", args);
}
public void recv_reconnect() throws InterpreterRPCException, org.apache.thrift.TException
{
reconnect_result result = new reconnect_result();
receiveBase(result, "reconnect");
if (result.ex != null) {
throw result.ex;
}
return;
}
public RemoteInterpreterResult interpret(java.lang.String sessionId, java.lang.String className, java.lang.String st, RemoteInterpreterContext interpreterContext) throws InterpreterRPCException, org.apache.thrift.TException
{
send_interpret(sessionId, className, st, interpreterContext);
return recv_interpret();
}
public void send_interpret(java.lang.String sessionId, java.lang.String className, java.lang.String st, RemoteInterpreterContext interpreterContext) throws org.apache.thrift.TException
{
interpret_args args = new interpret_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.setSt(st);
args.setInterpreterContext(interpreterContext);
sendBase("interpret", args);
}
public RemoteInterpreterResult recv_interpret() throws InterpreterRPCException, org.apache.thrift.TException
{
interpret_result result = new interpret_result();
receiveBase(result, "interpret");
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, "interpret failed: unknown result");
}
public void cancel(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext) throws InterpreterRPCException, org.apache.thrift.TException
{
send_cancel(sessionId, className, interpreterContext);
recv_cancel();
}
public void send_cancel(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext) throws org.apache.thrift.TException
{
cancel_args args = new cancel_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.setInterpreterContext(interpreterContext);
sendBase("cancel", args);
}
public void recv_cancel() throws InterpreterRPCException, org.apache.thrift.TException
{
cancel_result result = new cancel_result();
receiveBase(result, "cancel");
if (result.ex != null) {
throw result.ex;
}
return;
}
public int getProgress(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext) throws InterpreterRPCException, org.apache.thrift.TException
{
send_getProgress(sessionId, className, interpreterContext);
return recv_getProgress();
}
public void send_getProgress(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext) throws org.apache.thrift.TException
{
getProgress_args args = new getProgress_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.setInterpreterContext(interpreterContext);
sendBase("getProgress", args);
}
public int recv_getProgress() throws InterpreterRPCException, org.apache.thrift.TException
{
getProgress_result result = new getProgress_result();
receiveBase(result, "getProgress");
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, "getProgress failed: unknown result");
}
public java.lang.String getFormType(java.lang.String sessionId, java.lang.String className) throws InterpreterRPCException, org.apache.thrift.TException
{
send_getFormType(sessionId, className);
return recv_getFormType();
}
public void send_getFormType(java.lang.String sessionId, java.lang.String className) throws org.apache.thrift.TException
{
getFormType_args args = new getFormType_args();
args.setSessionId(sessionId);
args.setClassName(className);
sendBase("getFormType", args);
}
public java.lang.String recv_getFormType() throws InterpreterRPCException, org.apache.thrift.TException
{
getFormType_result result = new getFormType_result();
receiveBase(result, "getFormType");
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, "getFormType failed: unknown result");
}
public java.util.List completion(java.lang.String sessionId, java.lang.String className, java.lang.String buf, int cursor, RemoteInterpreterContext interpreterContext) throws InterpreterRPCException, org.apache.thrift.TException
{
send_completion(sessionId, className, buf, cursor, interpreterContext);
return recv_completion();
}
public void send_completion(java.lang.String sessionId, java.lang.String className, java.lang.String buf, int cursor, RemoteInterpreterContext interpreterContext) throws org.apache.thrift.TException
{
completion_args args = new completion_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.setBuf(buf);
args.setCursor(cursor);
args.setInterpreterContext(interpreterContext);
sendBase("completion", args);
}
public java.util.List recv_completion() throws InterpreterRPCException, org.apache.thrift.TException
{
completion_result result = new completion_result();
receiveBase(result, "completion");
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, "completion failed: unknown result");
}
public void shutdown() throws org.apache.thrift.TException
{
send_shutdown();
recv_shutdown();
}
public void send_shutdown() throws org.apache.thrift.TException
{
shutdown_args args = new shutdown_args();
sendBase("shutdown", args);
}
public void recv_shutdown() throws org.apache.thrift.TException
{
shutdown_result result = new shutdown_result();
receiveBase(result, "shutdown");
return;
}
public java.lang.String getStatus(java.lang.String sessionId, java.lang.String jobId) throws InterpreterRPCException, org.apache.thrift.TException
{
send_getStatus(sessionId, jobId);
return recv_getStatus();
}
public void send_getStatus(java.lang.String sessionId, java.lang.String jobId) throws org.apache.thrift.TException
{
getStatus_args args = new getStatus_args();
args.setSessionId(sessionId);
args.setJobId(jobId);
sendBase("getStatus", args);
}
public java.lang.String recv_getStatus() throws InterpreterRPCException, org.apache.thrift.TException
{
getStatus_result result = new getStatus_result();
receiveBase(result, "getStatus");
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, "getStatus failed: unknown result");
}
public java.util.List resourcePoolGetAll() throws InterpreterRPCException, org.apache.thrift.TException
{
send_resourcePoolGetAll();
return recv_resourcePoolGetAll();
}
public void send_resourcePoolGetAll() throws org.apache.thrift.TException
{
resourcePoolGetAll_args args = new resourcePoolGetAll_args();
sendBase("resourcePoolGetAll", args);
}
public java.util.List recv_resourcePoolGetAll() throws InterpreterRPCException, org.apache.thrift.TException
{
resourcePoolGetAll_result result = new resourcePoolGetAll_result();
receiveBase(result, "resourcePoolGetAll");
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, "resourcePoolGetAll failed: unknown result");
}
public java.nio.ByteBuffer resourceGet(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName) throws InterpreterRPCException, org.apache.thrift.TException
{
send_resourceGet(sessionId, paragraphId, resourceName);
return recv_resourceGet();
}
public void send_resourceGet(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName) throws org.apache.thrift.TException
{
resourceGet_args args = new resourceGet_args();
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setResourceName(resourceName);
sendBase("resourceGet", args);
}
public java.nio.ByteBuffer recv_resourceGet() throws InterpreterRPCException, org.apache.thrift.TException
{
resourceGet_result result = new resourceGet_result();
receiveBase(result, "resourceGet");
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, "resourceGet failed: unknown result");
}
public boolean resourceRemove(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName) throws InterpreterRPCException, org.apache.thrift.TException
{
send_resourceRemove(sessionId, paragraphId, resourceName);
return recv_resourceRemove();
}
public void send_resourceRemove(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName) throws org.apache.thrift.TException
{
resourceRemove_args args = new resourceRemove_args();
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setResourceName(resourceName);
sendBase("resourceRemove", args);
}
public boolean recv_resourceRemove() throws InterpreterRPCException, org.apache.thrift.TException
{
resourceRemove_result result = new resourceRemove_result();
receiveBase(result, "resourceRemove");
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, "resourceRemove failed: unknown result");
}
public java.nio.ByteBuffer resourceInvokeMethod(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, java.lang.String invokeMessage) throws InterpreterRPCException, org.apache.thrift.TException
{
send_resourceInvokeMethod(sessionId, paragraphId, resourceName, invokeMessage);
return recv_resourceInvokeMethod();
}
public void send_resourceInvokeMethod(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, java.lang.String invokeMessage) throws org.apache.thrift.TException
{
resourceInvokeMethod_args args = new resourceInvokeMethod_args();
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setResourceName(resourceName);
args.setInvokeMessage(invokeMessage);
sendBase("resourceInvokeMethod", args);
}
public java.nio.ByteBuffer recv_resourceInvokeMethod() throws InterpreterRPCException, org.apache.thrift.TException
{
resourceInvokeMethod_result result = new resourceInvokeMethod_result();
receiveBase(result, "resourceInvokeMethod");
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, "resourceInvokeMethod failed: unknown result");
}
public void angularObjectUpdate(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object) throws InterpreterRPCException, org.apache.thrift.TException
{
send_angularObjectUpdate(name, sessionId, paragraphId, object);
recv_angularObjectUpdate();
}
public void send_angularObjectUpdate(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object) throws org.apache.thrift.TException
{
angularObjectUpdate_args args = new angularObjectUpdate_args();
args.setName(name);
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setObject(object);
sendBase("angularObjectUpdate", args);
}
public void recv_angularObjectUpdate() throws InterpreterRPCException, org.apache.thrift.TException
{
angularObjectUpdate_result result = new angularObjectUpdate_result();
receiveBase(result, "angularObjectUpdate");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void angularObjectAdd(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object) throws InterpreterRPCException, org.apache.thrift.TException
{
send_angularObjectAdd(name, sessionId, paragraphId, object);
recv_angularObjectAdd();
}
public void send_angularObjectAdd(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object) throws org.apache.thrift.TException
{
angularObjectAdd_args args = new angularObjectAdd_args();
args.setName(name);
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setObject(object);
sendBase("angularObjectAdd", args);
}
public void recv_angularObjectAdd() throws InterpreterRPCException, org.apache.thrift.TException
{
angularObjectAdd_result result = new angularObjectAdd_result();
receiveBase(result, "angularObjectAdd");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void angularObjectRemove(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId) throws InterpreterRPCException, org.apache.thrift.TException
{
send_angularObjectRemove(name, sessionId, paragraphId);
recv_angularObjectRemove();
}
public void send_angularObjectRemove(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId) throws org.apache.thrift.TException
{
angularObjectRemove_args args = new angularObjectRemove_args();
args.setName(name);
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
sendBase("angularObjectRemove", args);
}
public void recv_angularObjectRemove() throws InterpreterRPCException, org.apache.thrift.TException
{
angularObjectRemove_result result = new angularObjectRemove_result();
receiveBase(result, "angularObjectRemove");
if (result.ex != null) {
throw result.ex;
}
return;
}
public void angularRegistryPush(java.lang.String registry) throws InterpreterRPCException, org.apache.thrift.TException
{
send_angularRegistryPush(registry);
recv_angularRegistryPush();
}
public void send_angularRegistryPush(java.lang.String registry) throws org.apache.thrift.TException
{
angularRegistryPush_args args = new angularRegistryPush_args();
args.setRegistry(registry);
sendBase("angularRegistryPush", args);
}
public void recv_angularRegistryPush() throws InterpreterRPCException, org.apache.thrift.TException
{
angularRegistryPush_result result = new angularRegistryPush_result();
receiveBase(result, "angularRegistryPush");
if (result.ex != null) {
throw result.ex;
}
return;
}
public RemoteApplicationResult loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId) throws InterpreterRPCException, org.apache.thrift.TException
{
send_loadApplication(applicationInstanceId, packageInfo, sessionId, paragraphId);
return recv_loadApplication();
}
public void send_loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId) throws org.apache.thrift.TException
{
loadApplication_args args = new loadApplication_args();
args.setApplicationInstanceId(applicationInstanceId);
args.setPackageInfo(packageInfo);
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
sendBase("loadApplication", args);
}
public RemoteApplicationResult recv_loadApplication() throws InterpreterRPCException, org.apache.thrift.TException
{
loadApplication_result result = new loadApplication_result();
receiveBase(result, "loadApplication");
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, "loadApplication failed: unknown result");
}
public RemoteApplicationResult unloadApplication(java.lang.String applicationInstanceId) throws InterpreterRPCException, org.apache.thrift.TException
{
send_unloadApplication(applicationInstanceId);
return recv_unloadApplication();
}
public void send_unloadApplication(java.lang.String applicationInstanceId) throws org.apache.thrift.TException
{
unloadApplication_args args = new unloadApplication_args();
args.setApplicationInstanceId(applicationInstanceId);
sendBase("unloadApplication", args);
}
public RemoteApplicationResult recv_unloadApplication() throws InterpreterRPCException, org.apache.thrift.TException
{
unloadApplication_result result = new unloadApplication_result();
receiveBase(result, "unloadApplication");
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, "unloadApplication failed: unknown result");
}
public RemoteApplicationResult runApplication(java.lang.String applicationInstanceId) throws InterpreterRPCException, org.apache.thrift.TException
{
send_runApplication(applicationInstanceId);
return recv_runApplication();
}
public void send_runApplication(java.lang.String applicationInstanceId) throws org.apache.thrift.TException
{
runApplication_args args = new runApplication_args();
args.setApplicationInstanceId(applicationInstanceId);
sendBase("runApplication", args);
}
public RemoteApplicationResult recv_runApplication() throws InterpreterRPCException, org.apache.thrift.TException
{
runApplication_result result = new runApplication_result();
receiveBase(result, "runApplication");
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, "runApplication 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 createInterpreter(java.lang.String intpGroupId, java.lang.String sessionId, java.lang.String className, java.util.Map properties, java.lang.String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
createInterpreter_call method_call = new createInterpreter_call(intpGroupId, sessionId, className, properties, userName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class createInterpreter_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String intpGroupId;
private java.lang.String sessionId;
private java.lang.String className;
private java.util.Map properties;
private java.lang.String userName;
public createInterpreter_call(java.lang.String intpGroupId, java.lang.String sessionId, java.lang.String className, java.util.Map properties, java.lang.String userName, 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.sessionId = sessionId;
this.className = className;
this.properties = properties;
this.userName = userName;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createInterpreter", org.apache.thrift.protocol.TMessageType.CALL, 0));
createInterpreter_args args = new createInterpreter_args();
args.setIntpGroupId(intpGroupId);
args.setSessionId(sessionId);
args.setClassName(className);
args.setProperties(properties);
args.setUserName(userName);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 init(java.util.Map properties, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
init_call method_call = new init_call(properties, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class init_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.util.Map properties;
public init_call(java.util.Map properties, 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.properties = properties;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("init", org.apache.thrift.protocol.TMessageType.CALL, 0));
init_args args = new init_args();
args.setProperties(properties);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 open(java.lang.String sessionId, java.lang.String className, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
open_call method_call = new open_call(sessionId, className, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class open_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String className;
public open_call(java.lang.String sessionId, java.lang.String className, 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.sessionId = sessionId;
this.className = className;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("open", org.apache.thrift.protocol.TMessageType.CALL, 0));
open_args args = new open_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 close(java.lang.String sessionId, java.lang.String className, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
close_call method_call = new close_call(sessionId, className, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class close_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String className;
public close_call(java.lang.String sessionId, java.lang.String className, 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.sessionId = sessionId;
this.className = className;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("close", org.apache.thrift.protocol.TMessageType.CALL, 0));
close_args args = new close_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 reconnect(java.lang.String host, int port, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
reconnect_call method_call = new reconnect_call(host, port, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class reconnect_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String host;
private int port;
public reconnect_call(java.lang.String host, int port, 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.host = host;
this.port = port;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reconnect", org.apache.thrift.protocol.TMessageType.CALL, 0));
reconnect_args args = new reconnect_args();
args.setHost(host);
args.setPort(port);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 interpret(java.lang.String sessionId, java.lang.String className, java.lang.String st, RemoteInterpreterContext interpreterContext, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
interpret_call method_call = new interpret_call(sessionId, className, st, interpreterContext, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class interpret_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String className;
private java.lang.String st;
private RemoteInterpreterContext interpreterContext;
public interpret_call(java.lang.String sessionId, java.lang.String className, java.lang.String st, RemoteInterpreterContext interpreterContext, 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.sessionId = sessionId;
this.className = className;
this.st = st;
this.interpreterContext = interpreterContext;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("interpret", org.apache.thrift.protocol.TMessageType.CALL, 0));
interpret_args args = new interpret_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.setSt(st);
args.setInterpreterContext(interpreterContext);
args.write(prot);
prot.writeMessageEnd();
}
public RemoteInterpreterResult getResult() throws 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_interpret();
}
}
public void cancel(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
cancel_call method_call = new cancel_call(sessionId, className, interpreterContext, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class cancel_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String className;
private RemoteInterpreterContext interpreterContext;
public cancel_call(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext, 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.sessionId = sessionId;
this.className = className;
this.interpreterContext = interpreterContext;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("cancel", org.apache.thrift.protocol.TMessageType.CALL, 0));
cancel_args args = new cancel_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.setInterpreterContext(interpreterContext);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 getProgress(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
getProgress_call method_call = new getProgress_call(sessionId, className, interpreterContext, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getProgress_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String className;
private RemoteInterpreterContext interpreterContext;
public getProgress_call(java.lang.String sessionId, java.lang.String className, RemoteInterpreterContext interpreterContext, 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.sessionId = sessionId;
this.className = className;
this.interpreterContext = interpreterContext;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProgress", org.apache.thrift.protocol.TMessageType.CALL, 0));
getProgress_args args = new getProgress_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.setInterpreterContext(interpreterContext);
args.write(prot);
prot.writeMessageEnd();
}
public java.lang.Integer getResult() throws 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_getProgress();
}
}
public void getFormType(java.lang.String sessionId, java.lang.String className, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
getFormType_call method_call = new getFormType_call(sessionId, className, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getFormType_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String className;
public getFormType_call(java.lang.String sessionId, java.lang.String className, 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.sessionId = sessionId;
this.className = className;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFormType", org.apache.thrift.protocol.TMessageType.CALL, 0));
getFormType_args args = new getFormType_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.write(prot);
prot.writeMessageEnd();
}
public java.lang.String getResult() throws 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_getFormType();
}
}
public void completion(java.lang.String sessionId, java.lang.String className, java.lang.String buf, int cursor, RemoteInterpreterContext interpreterContext, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
completion_call method_call = new completion_call(sessionId, className, buf, cursor, interpreterContext, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class completion_call extends org.apache.thrift.async.TAsyncMethodCall> {
private java.lang.String sessionId;
private java.lang.String className;
private java.lang.String buf;
private int cursor;
private RemoteInterpreterContext interpreterContext;
public completion_call(java.lang.String sessionId, java.lang.String className, java.lang.String buf, int cursor, RemoteInterpreterContext interpreterContext, 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.sessionId = sessionId;
this.className = className;
this.buf = buf;
this.cursor = cursor;
this.interpreterContext = interpreterContext;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("completion", org.apache.thrift.protocol.TMessageType.CALL, 0));
completion_args args = new completion_args();
args.setSessionId(sessionId);
args.setClassName(className);
args.setBuf(buf);
args.setCursor(cursor);
args.setInterpreterContext(interpreterContext);
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws 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_completion();
}
}
public void shutdown(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
shutdown_call method_call = new shutdown_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class shutdown_call extends org.apache.thrift.async.TAsyncMethodCall {
public shutdown_call(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);
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shutdown", org.apache.thrift.protocol.TMessageType.CALL, 0));
shutdown_args args = new shutdown_args();
args.write(prot);
prot.writeMessageEnd();
}
public Void 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 null;
}
}
public void getStatus(java.lang.String sessionId, java.lang.String jobId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
getStatus_call method_call = new getStatus_call(sessionId, jobId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String jobId;
public getStatus_call(java.lang.String sessionId, java.lang.String jobId, 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.sessionId = sessionId;
this.jobId = jobId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
getStatus_args args = new getStatus_args();
args.setSessionId(sessionId);
args.setJobId(jobId);
args.write(prot);
prot.writeMessageEnd();
}
public java.lang.String getResult() throws 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_getStatus();
}
}
public void resourcePoolGetAll(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
resourcePoolGetAll_call method_call = new resourcePoolGetAll_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class resourcePoolGetAll_call extends org.apache.thrift.async.TAsyncMethodCall> {
public resourcePoolGetAll_call(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);
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resourcePoolGetAll", org.apache.thrift.protocol.TMessageType.CALL, 0));
resourcePoolGetAll_args args = new resourcePoolGetAll_args();
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws 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_resourcePoolGetAll();
}
}
public void resourceGet(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
resourceGet_call method_call = new resourceGet_call(sessionId, paragraphId, resourceName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class resourceGet_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String paragraphId;
private java.lang.String resourceName;
public resourceGet_call(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, 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.sessionId = sessionId;
this.paragraphId = paragraphId;
this.resourceName = resourceName;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resourceGet", org.apache.thrift.protocol.TMessageType.CALL, 0));
resourceGet_args args = new resourceGet_args();
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setResourceName(resourceName);
args.write(prot);
prot.writeMessageEnd();
}
public java.nio.ByteBuffer getResult() throws 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_resourceGet();
}
}
public void resourceRemove(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
resourceRemove_call method_call = new resourceRemove_call(sessionId, paragraphId, resourceName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class resourceRemove_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String paragraphId;
private java.lang.String resourceName;
public resourceRemove_call(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, 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.sessionId = sessionId;
this.paragraphId = paragraphId;
this.resourceName = resourceName;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resourceRemove", org.apache.thrift.protocol.TMessageType.CALL, 0));
resourceRemove_args args = new resourceRemove_args();
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setResourceName(resourceName);
args.write(prot);
prot.writeMessageEnd();
}
public java.lang.Boolean getResult() throws 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_resourceRemove();
}
}
public void resourceInvokeMethod(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, java.lang.String invokeMessage, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
resourceInvokeMethod_call method_call = new resourceInvokeMethod_call(sessionId, paragraphId, resourceName, invokeMessage, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class resourceInvokeMethod_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String sessionId;
private java.lang.String paragraphId;
private java.lang.String resourceName;
private java.lang.String invokeMessage;
public resourceInvokeMethod_call(java.lang.String sessionId, java.lang.String paragraphId, java.lang.String resourceName, java.lang.String invokeMessage, 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.sessionId = sessionId;
this.paragraphId = paragraphId;
this.resourceName = resourceName;
this.invokeMessage = invokeMessage;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resourceInvokeMethod", org.apache.thrift.protocol.TMessageType.CALL, 0));
resourceInvokeMethod_args args = new resourceInvokeMethod_args();
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setResourceName(resourceName);
args.setInvokeMessage(invokeMessage);
args.write(prot);
prot.writeMessageEnd();
}
public java.nio.ByteBuffer getResult() throws 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_resourceInvokeMethod();
}
}
public void angularObjectUpdate(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
angularObjectUpdate_call method_call = new angularObjectUpdate_call(name, sessionId, paragraphId, object, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class angularObjectUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String name;
private java.lang.String sessionId;
private java.lang.String paragraphId;
private java.lang.String object;
public angularObjectUpdate_call(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object, 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.name = name;
this.sessionId = sessionId;
this.paragraphId = paragraphId;
this.object = object;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("angularObjectUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
angularObjectUpdate_args args = new angularObjectUpdate_args();
args.setName(name);
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setObject(object);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 angularObjectAdd(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
angularObjectAdd_call method_call = new angularObjectAdd_call(name, sessionId, paragraphId, object, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class angularObjectAdd_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String name;
private java.lang.String sessionId;
private java.lang.String paragraphId;
private java.lang.String object;
public angularObjectAdd_call(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, java.lang.String object, 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.name = name;
this.sessionId = sessionId;
this.paragraphId = paragraphId;
this.object = object;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("angularObjectAdd", org.apache.thrift.protocol.TMessageType.CALL, 0));
angularObjectAdd_args args = new angularObjectAdd_args();
args.setName(name);
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.setObject(object);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 angularObjectRemove(java.lang.String name, java.lang.String sessionId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
angularObjectRemove_call method_call = new angularObjectRemove_call(name, sessionId, paragraphId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class angularObjectRemove_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String name;
private java.lang.String sessionId;
private java.lang.String paragraphId;
public angularObjectRemove_call(java.lang.String name, java.lang.String sessionId, 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.name = name;
this.sessionId = sessionId;
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("angularObjectRemove", org.apache.thrift.protocol.TMessageType.CALL, 0));
angularObjectRemove_args args = new angularObjectRemove_args();
args.setName(name);
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 angularRegistryPush(java.lang.String registry, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
angularRegistryPush_call method_call = new angularRegistryPush_call(registry, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class angularRegistryPush_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String registry;
public angularRegistryPush_call(java.lang.String registry, 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.registry = registry;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("angularRegistryPush", org.apache.thrift.protocol.TMessageType.CALL, 0));
angularRegistryPush_args args = new angularRegistryPush_args();
args.setRegistry(registry);
args.write(prot);
prot.writeMessageEnd();
}
public Void getResult() throws 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 loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
loadApplication_call method_call = new loadApplication_call(applicationInstanceId, packageInfo, sessionId, paragraphId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class loadApplication_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String applicationInstanceId;
private java.lang.String packageInfo;
private java.lang.String sessionId;
private java.lang.String paragraphId;
public loadApplication_call(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, 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.applicationInstanceId = applicationInstanceId;
this.packageInfo = packageInfo;
this.sessionId = sessionId;
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("loadApplication", org.apache.thrift.protocol.TMessageType.CALL, 0));
loadApplication_args args = new loadApplication_args();
args.setApplicationInstanceId(applicationInstanceId);
args.setPackageInfo(packageInfo);
args.setSessionId(sessionId);
args.setParagraphId(paragraphId);
args.write(prot);
prot.writeMessageEnd();
}
public RemoteApplicationResult getResult() throws 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_loadApplication();
}
}
public void unloadApplication(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
unloadApplication_call method_call = new unloadApplication_call(applicationInstanceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class unloadApplication_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String applicationInstanceId;
public unloadApplication_call(java.lang.String applicationInstanceId, 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.applicationInstanceId = applicationInstanceId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unloadApplication", org.apache.thrift.protocol.TMessageType.CALL, 0));
unloadApplication_args args = new unloadApplication_args();
args.setApplicationInstanceId(applicationInstanceId);
args.write(prot);
prot.writeMessageEnd();
}
public RemoteApplicationResult getResult() throws 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_unloadApplication();
}
}
public void runApplication(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
runApplication_call method_call = new runApplication_call(applicationInstanceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class runApplication_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String applicationInstanceId;
public runApplication_call(java.lang.String applicationInstanceId, 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.applicationInstanceId = applicationInstanceId;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runApplication", org.apache.thrift.protocol.TMessageType.CALL, 0));
runApplication_args args = new runApplication_args();
args.setApplicationInstanceId(applicationInstanceId);
args.write(prot);
prot.writeMessageEnd();
}
public RemoteApplicationResult getResult() throws 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_runApplication();
}
}
}
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("createInterpreter", new createInterpreter());
processMap.put("init", new init());
processMap.put("open", new open());
processMap.put("close", new close());
processMap.put("reconnect", new reconnect());
processMap.put("interpret", new interpret());
processMap.put("cancel", new cancel());
processMap.put("getProgress", new getProgress());
processMap.put("getFormType", new getFormType());
processMap.put("completion", new completion());
processMap.put("shutdown", new shutdown());
processMap.put("getStatus", new getStatus());
processMap.put("resourcePoolGetAll", new resourcePoolGetAll());
processMap.put("resourceGet", new resourceGet());
processMap.put("resourceRemove", new resourceRemove());
processMap.put("resourceInvokeMethod", new resourceInvokeMethod());
processMap.put("angularObjectUpdate", new angularObjectUpdate());
processMap.put("angularObjectAdd", new angularObjectAdd());
processMap.put("angularObjectRemove", new angularObjectRemove());
processMap.put("angularRegistryPush", new angularRegistryPush());
processMap.put("loadApplication", new loadApplication());
processMap.put("unloadApplication", new unloadApplication());
processMap.put("runApplication", new runApplication());
return processMap;
}
public static class createInterpreter extends org.apache.thrift.ProcessFunction {
public createInterpreter() {
super("createInterpreter");
}
public createInterpreter_args getEmptyArgsInstance() {
return new createInterpreter_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public createInterpreter_result getResult(I iface, createInterpreter_args args) throws org.apache.thrift.TException {
createInterpreter_result result = new createInterpreter_result();
try {
iface.createInterpreter(args.intpGroupId, args.sessionId, args.className, args.properties, args.userName);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class init extends org.apache.thrift.ProcessFunction {
public init() {
super("init");
}
public init_args getEmptyArgsInstance() {
return new init_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public init_result getResult(I iface, init_args args) throws org.apache.thrift.TException {
init_result result = new init_result();
try {
iface.init(args.properties);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class open extends org.apache.thrift.ProcessFunction {
public open() {
super("open");
}
public open_args getEmptyArgsInstance() {
return new open_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public open_result getResult(I iface, open_args args) throws org.apache.thrift.TException {
open_result result = new open_result();
try {
iface.open(args.sessionId, args.className);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class close extends org.apache.thrift.ProcessFunction {
public close() {
super("close");
}
public close_args getEmptyArgsInstance() {
return new close_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public close_result getResult(I iface, close_args args) throws org.apache.thrift.TException {
close_result result = new close_result();
try {
iface.close(args.sessionId, args.className);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class reconnect extends org.apache.thrift.ProcessFunction {
public reconnect() {
super("reconnect");
}
public reconnect_args getEmptyArgsInstance() {
return new reconnect_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public reconnect_result getResult(I iface, reconnect_args args) throws org.apache.thrift.TException {
reconnect_result result = new reconnect_result();
try {
iface.reconnect(args.host, args.port);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class interpret extends org.apache.thrift.ProcessFunction {
public interpret() {
super("interpret");
}
public interpret_args getEmptyArgsInstance() {
return new interpret_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public interpret_result getResult(I iface, interpret_args args) throws org.apache.thrift.TException {
interpret_result result = new interpret_result();
try {
result.success = iface.interpret(args.sessionId, args.className, args.st, args.interpreterContext);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class cancel extends org.apache.thrift.ProcessFunction {
public cancel() {
super("cancel");
}
public cancel_args getEmptyArgsInstance() {
return new cancel_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public cancel_result getResult(I iface, cancel_args args) throws org.apache.thrift.TException {
cancel_result result = new cancel_result();
try {
iface.cancel(args.sessionId, args.className, args.interpreterContext);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class getProgress extends org.apache.thrift.ProcessFunction {
public getProgress() {
super("getProgress");
}
public getProgress_args getEmptyArgsInstance() {
return new getProgress_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public getProgress_result getResult(I iface, getProgress_args args) throws org.apache.thrift.TException {
getProgress_result result = new getProgress_result();
try {
result.success = iface.getProgress(args.sessionId, args.className, args.interpreterContext);
result.setSuccessIsSet(true);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class getFormType extends org.apache.thrift.ProcessFunction {
public getFormType() {
super("getFormType");
}
public getFormType_args getEmptyArgsInstance() {
return new getFormType_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public getFormType_result getResult(I iface, getFormType_args args) throws org.apache.thrift.TException {
getFormType_result result = new getFormType_result();
try {
result.success = iface.getFormType(args.sessionId, args.className);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class completion extends org.apache.thrift.ProcessFunction {
public completion() {
super("completion");
}
public completion_args getEmptyArgsInstance() {
return new completion_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public completion_result getResult(I iface, completion_args args) throws org.apache.thrift.TException {
completion_result result = new completion_result();
try {
result.success = iface.completion(args.sessionId, args.className, args.buf, args.cursor, args.interpreterContext);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class shutdown extends org.apache.thrift.ProcessFunction {
public shutdown() {
super("shutdown");
}
public shutdown_args getEmptyArgsInstance() {
return new shutdown_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public shutdown_result getResult(I iface, shutdown_args args) throws org.apache.thrift.TException {
shutdown_result result = new shutdown_result();
iface.shutdown();
return result;
}
}
public static class getStatus extends org.apache.thrift.ProcessFunction {
public getStatus() {
super("getStatus");
}
public getStatus_args getEmptyArgsInstance() {
return new getStatus_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public getStatus_result getResult(I iface, getStatus_args args) throws org.apache.thrift.TException {
getStatus_result result = new getStatus_result();
try {
result.success = iface.getStatus(args.sessionId, args.jobId);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class resourcePoolGetAll extends org.apache.thrift.ProcessFunction {
public resourcePoolGetAll() {
super("resourcePoolGetAll");
}
public resourcePoolGetAll_args getEmptyArgsInstance() {
return new resourcePoolGetAll_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public resourcePoolGetAll_result getResult(I iface, resourcePoolGetAll_args args) throws org.apache.thrift.TException {
resourcePoolGetAll_result result = new resourcePoolGetAll_result();
try {
result.success = iface.resourcePoolGetAll();
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class resourceGet extends org.apache.thrift.ProcessFunction {
public resourceGet() {
super("resourceGet");
}
public resourceGet_args getEmptyArgsInstance() {
return new resourceGet_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public resourceGet_result getResult(I iface, resourceGet_args args) throws org.apache.thrift.TException {
resourceGet_result result = new resourceGet_result();
try {
result.success = iface.resourceGet(args.sessionId, args.paragraphId, args.resourceName);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class resourceRemove extends org.apache.thrift.ProcessFunction {
public resourceRemove() {
super("resourceRemove");
}
public resourceRemove_args getEmptyArgsInstance() {
return new resourceRemove_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public resourceRemove_result getResult(I iface, resourceRemove_args args) throws org.apache.thrift.TException {
resourceRemove_result result = new resourceRemove_result();
try {
result.success = iface.resourceRemove(args.sessionId, args.paragraphId, args.resourceName);
result.setSuccessIsSet(true);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class resourceInvokeMethod extends org.apache.thrift.ProcessFunction {
public resourceInvokeMethod() {
super("resourceInvokeMethod");
}
public resourceInvokeMethod_args getEmptyArgsInstance() {
return new resourceInvokeMethod_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public resourceInvokeMethod_result getResult(I iface, resourceInvokeMethod_args args) throws org.apache.thrift.TException {
resourceInvokeMethod_result result = new resourceInvokeMethod_result();
try {
result.success = iface.resourceInvokeMethod(args.sessionId, args.paragraphId, args.resourceName, args.invokeMessage);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class angularObjectUpdate extends org.apache.thrift.ProcessFunction {
public angularObjectUpdate() {
super("angularObjectUpdate");
}
public angularObjectUpdate_args getEmptyArgsInstance() {
return new angularObjectUpdate_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public angularObjectUpdate_result getResult(I iface, angularObjectUpdate_args args) throws org.apache.thrift.TException {
angularObjectUpdate_result result = new angularObjectUpdate_result();
try {
iface.angularObjectUpdate(args.name, args.sessionId, args.paragraphId, args.object);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class angularObjectAdd extends org.apache.thrift.ProcessFunction {
public angularObjectAdd() {
super("angularObjectAdd");
}
public angularObjectAdd_args getEmptyArgsInstance() {
return new angularObjectAdd_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public angularObjectAdd_result getResult(I iface, angularObjectAdd_args args) throws org.apache.thrift.TException {
angularObjectAdd_result result = new angularObjectAdd_result();
try {
iface.angularObjectAdd(args.name, args.sessionId, args.paragraphId, args.object);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class angularObjectRemove extends org.apache.thrift.ProcessFunction {
public angularObjectRemove() {
super("angularObjectRemove");
}
public angularObjectRemove_args getEmptyArgsInstance() {
return new angularObjectRemove_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public angularObjectRemove_result getResult(I iface, angularObjectRemove_args args) throws org.apache.thrift.TException {
angularObjectRemove_result result = new angularObjectRemove_result();
try {
iface.angularObjectRemove(args.name, args.sessionId, args.paragraphId);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class angularRegistryPush extends org.apache.thrift.ProcessFunction {
public angularRegistryPush() {
super("angularRegistryPush");
}
public angularRegistryPush_args getEmptyArgsInstance() {
return new angularRegistryPush_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public angularRegistryPush_result getResult(I iface, angularRegistryPush_args args) throws org.apache.thrift.TException {
angularRegistryPush_result result = new angularRegistryPush_result();
try {
iface.angularRegistryPush(args.registry);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class loadApplication extends org.apache.thrift.ProcessFunction {
public loadApplication() {
super("loadApplication");
}
public loadApplication_args getEmptyArgsInstance() {
return new loadApplication_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public loadApplication_result getResult(I iface, loadApplication_args args) throws org.apache.thrift.TException {
loadApplication_result result = new loadApplication_result();
try {
result.success = iface.loadApplication(args.applicationInstanceId, args.packageInfo, args.sessionId, args.paragraphId);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class unloadApplication extends org.apache.thrift.ProcessFunction {
public unloadApplication() {
super("unloadApplication");
}
public unloadApplication_args getEmptyArgsInstance() {
return new unloadApplication_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public unloadApplication_result getResult(I iface, unloadApplication_args args) throws org.apache.thrift.TException {
unloadApplication_result result = new unloadApplication_result();
try {
result.success = iface.unloadApplication(args.applicationInstanceId);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
return result;
}
}
public static class runApplication extends org.apache.thrift.ProcessFunction {
public runApplication() {
super("runApplication");
}
public runApplication_args getEmptyArgsInstance() {
return new runApplication_args();
}
protected boolean isOneway() {
return false;
}
@Override
protected boolean rethrowUnhandledExceptions() {
return false;
}
public runApplication_result getResult(I iface, runApplication_args args) throws org.apache.thrift.TException {
runApplication_result result = new runApplication_result();
try {
result.success = iface.runApplication(args.applicationInstanceId);
} catch (InterpreterRPCException ex) {
result.ex = ex;
}
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("createInterpreter", new createInterpreter());
processMap.put("init", new init());
processMap.put("open", new open());
processMap.put("close", new close());
processMap.put("reconnect", new reconnect());
processMap.put("interpret", new interpret());
processMap.put("cancel", new cancel());
processMap.put("getProgress", new getProgress());
processMap.put("getFormType", new getFormType());
processMap.put("completion", new completion());
processMap.put("shutdown", new shutdown());
processMap.put("getStatus", new getStatus());
processMap.put("resourcePoolGetAll", new resourcePoolGetAll());
processMap.put("resourceGet", new resourceGet());
processMap.put("resourceRemove", new resourceRemove());
processMap.put("resourceInvokeMethod", new resourceInvokeMethod());
processMap.put("angularObjectUpdate", new angularObjectUpdate());
processMap.put("angularObjectAdd", new angularObjectAdd());
processMap.put("angularObjectRemove", new angularObjectRemove());
processMap.put("angularRegistryPush", new angularRegistryPush());
processMap.put("loadApplication", new loadApplication());
processMap.put("unloadApplication", new unloadApplication());
processMap.put("runApplication", new runApplication());
return processMap;
}
public static class createInterpreter extends org.apache.thrift.AsyncProcessFunction {
public createInterpreter() {
super("createInterpreter");
}
public createInterpreter_args getEmptyArgsInstance() {
return new createInterpreter_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) {
createInterpreter_result result = new createInterpreter_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;
createInterpreter_result result = new createInterpreter_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, createInterpreter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.createInterpreter(args.intpGroupId, args.sessionId, args.className, args.properties, args.userName,resultHandler);
}
}
public static class init extends org.apache.thrift.AsyncProcessFunction {
public init() {
super("init");
}
public init_args getEmptyArgsInstance() {
return new init_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) {
init_result result = new init_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;
init_result result = new init_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, init_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.init(args.properties,resultHandler);
}
}
public static class open extends org.apache.thrift.AsyncProcessFunction {
public open() {
super("open");
}
public open_args getEmptyArgsInstance() {
return new open_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) {
open_result result = new open_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;
open_result result = new open_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, open_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.open(args.sessionId, args.className,resultHandler);
}
}
public static class close extends org.apache.thrift.AsyncProcessFunction {
public close() {
super("close");
}
public close_args getEmptyArgsInstance() {
return new close_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) {
close_result result = new close_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;
close_result result = new close_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, close_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.close(args.sessionId, args.className,resultHandler);
}
}
public static class reconnect extends org.apache.thrift.AsyncProcessFunction {
public reconnect() {
super("reconnect");
}
public reconnect_args getEmptyArgsInstance() {
return new reconnect_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) {
reconnect_result result = new reconnect_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;
reconnect_result result = new reconnect_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, reconnect_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.reconnect(args.host, args.port,resultHandler);
}
}
public static class interpret extends org.apache.thrift.AsyncProcessFunction {
public interpret() {
super("interpret");
}
public interpret_args getEmptyArgsInstance() {
return new interpret_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(RemoteInterpreterResult o) {
interpret_result result = new interpret_result();
result.success = o;
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;
interpret_result result = new interpret_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, interpret_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.interpret(args.sessionId, args.className, args.st, args.interpreterContext,resultHandler);
}
}
public static class cancel extends org.apache.thrift.AsyncProcessFunction {
public cancel() {
super("cancel");
}
public cancel_args getEmptyArgsInstance() {
return new cancel_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) {
cancel_result result = new cancel_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;
cancel_result result = new cancel_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, cancel_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.cancel(args.sessionId, args.className, args.interpreterContext,resultHandler);
}
}
public static class getProgress extends org.apache.thrift.AsyncProcessFunction {
public getProgress() {
super("getProgress");
}
public getProgress_args getEmptyArgsInstance() {
return new getProgress_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(java.lang.Integer o) {
getProgress_result result = new getProgress_result();
result.success = o;
result.setSuccessIsSet(true);
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;
getProgress_result result = new getProgress_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, getProgress_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.getProgress(args.sessionId, args.className, args.interpreterContext,resultHandler);
}
}
public static class getFormType extends org.apache.thrift.AsyncProcessFunction {
public getFormType() {
super("getFormType");
}
public getFormType_args getEmptyArgsInstance() {
return new getFormType_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(java.lang.String o) {
getFormType_result result = new getFormType_result();
result.success = o;
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;
getFormType_result result = new getFormType_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, getFormType_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.getFormType(args.sessionId, args.className,resultHandler);
}
}
public static class completion extends org.apache.thrift.AsyncProcessFunction> {
public completion() {
super("completion");
}
public completion_args getEmptyArgsInstance() {
return new completion_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(java.util.List o) {
completion_result result = new completion_result();
result.success = o;
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;
completion_result result = new completion_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, completion_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
iface.completion(args.sessionId, args.className, args.buf, args.cursor, args.interpreterContext,resultHandler);
}
}
public static class shutdown extends org.apache.thrift.AsyncProcessFunction {
public shutdown() {
super("shutdown");
}
public shutdown_args getEmptyArgsInstance() {
return new shutdown_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) {
shutdown_result result = new shutdown_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;
shutdown_result result = new shutdown_result();
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, shutdown_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.shutdown(resultHandler);
}
}
public static class getStatus extends org.apache.thrift.AsyncProcessFunction {
public getStatus() {
super("getStatus");
}
public getStatus_args getEmptyArgsInstance() {
return new getStatus_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(java.lang.String o) {
getStatus_result result = new getStatus_result();
result.success = o;
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;
getStatus_result result = new getStatus_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, getStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.getStatus(args.sessionId, args.jobId,resultHandler);
}
}
public static class resourcePoolGetAll extends org.apache.thrift.AsyncProcessFunction> {
public resourcePoolGetAll() {
super("resourcePoolGetAll");
}
public resourcePoolGetAll_args getEmptyArgsInstance() {
return new resourcePoolGetAll_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(java.util.List o) {
resourcePoolGetAll_result result = new resourcePoolGetAll_result();
result.success = o;
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;
resourcePoolGetAll_result result = new resourcePoolGetAll_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, resourcePoolGetAll_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
iface.resourcePoolGetAll(resultHandler);
}
}
public static class resourceGet extends org.apache.thrift.AsyncProcessFunction {
public resourceGet() {
super("resourceGet");
}
public resourceGet_args getEmptyArgsInstance() {
return new resourceGet_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(java.nio.ByteBuffer o) {
resourceGet_result result = new resourceGet_result();
result.success = o;
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;
resourceGet_result result = new resourceGet_result();
if (e instanceof InterpreterRPCException) {
result.ex = (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, resourceGet_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.resourceGet(args.sessionId, args.paragraphId, args.resourceName,resultHandler);
}
}
public static class resourceRemove extends org.apache.thrift.AsyncProcessFunction {
public resourceRemove() {
super("resourceRemove");
}
public resourceRemove_args getEmptyArgsInstance() {
return new resourceRemove_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