Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.xiaomi.infra.galaxy.sds.thrift.AdminService Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.xiaomi.infra.galaxy.sds.thrift;
import libthrift091.scheme.IScheme;
import libthrift091.scheme.SchemeFactory;
import libthrift091.scheme.StandardScheme;
import libthrift091.scheme.TupleScheme;
import libthrift091.protocol.TTupleProtocol;
import libthrift091.protocol.TProtocolException;
import libthrift091.EncodingUtils;
import libthrift091.TException;
import libthrift091.async.AsyncMethodCallback;
import libthrift091.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-4-21")
public class AdminService {
/**
* 结构化存储管理接口
*/
public interface Iface extends com.xiaomi.infra.galaxy.sds.thrift.BaseService.Iface {
/**
* 保存应用信息,用于注册第三方应用OAuth信息
*
* @param appInfo
*/
public void saveAppInfo(AppInfo appInfo) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 查询应用信息
*
* @param appId
*/
public AppInfo getAppInfo(String appId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 查询指定用户所有应用信息
*/
public List findAllApps() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 获取指定用户所有表信息
*/
public List findAllTables() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 清除所有延迟删除的表
*/
public List cleanAllLazyDroppedTables() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 创建表
*
* @param tableName
* @param tableSpec
*/
public com.xiaomi.infra.galaxy.sds.thrift.TableInfo createTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 删除表
*
* @param tableName
*/
public void dropTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 恢复表
*
* @param tableName
*/
public void restoreTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 修改表
*
* @param tableName
* @param tableSpec
*/
public void alterTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 克隆表
*
* @param srcName
* @param destTable
* @param flushTable
*/
public void cloneTable(String srcName, String destTable, boolean flushTable) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 关闭表读写操作
*
* @param tableName
*/
public void disableTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 打开表读写操作
*
* @param tableName
*/
public void enableTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 获取表定义
*
* @param tableName
*/
public com.xiaomi.infra.galaxy.sds.thrift.TableSpec describeTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 获取表状态等元信息
*
* @param tableName
*/
public com.xiaomi.infra.galaxy.sds.thrift.TableStatus getTableStatus(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 获取表状态
*
* @param tableName
*/
public com.xiaomi.infra.galaxy.sds.thrift.TableState getTableState(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 获取表分布信息,如用于MapReduce应用
*
* @param tableName
* @param startKey
* @param stopKey
*/
public List getTableSplits(String tableName, Map startKey, Map stopKey) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 查询表统计指标
*
* @param query
*/
public TimeSeriesData queryMetric(MetricQueryRequest query) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 批量查询表统计指标
*
* @param queries
*/
public List queryMetrics(List queries) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 获取AppInfo列表,只包括appId和appName
*/
public List findAllAppInfo() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
}
public interface AsyncIface extends com.xiaomi.infra.galaxy.sds.thrift.BaseService .AsyncIface {
public void saveAppInfo(AppInfo appInfo, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getAppInfo(String appId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void findAllApps(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void findAllTables(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void cleanAllLazyDroppedTables(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void createTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void dropTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void restoreTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void alterTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void cloneTable(String srcName, String destTable, boolean flushTable, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void disableTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void enableTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void describeTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getTableStatus(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getTableState(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getTableSplits(String tableName, Map startKey, Map stopKey, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void queryMetric(MetricQueryRequest query, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void queryMetrics(List queries, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void findAllAppInfo(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
}
public static class Client extends com.xiaomi.infra.galaxy.sds.thrift.BaseService.Client implements Iface {
public static class Factory implements libthrift091.TServiceClientFactory {
public Factory() {}
public Client getClient(libthrift091.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(libthrift091.protocol.TProtocol iprot, libthrift091.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(libthrift091.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(libthrift091.protocol.TProtocol iprot, libthrift091.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public void saveAppInfo(AppInfo appInfo) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_saveAppInfo(appInfo);
recv_saveAppInfo();
}
public void send_saveAppInfo(AppInfo appInfo) throws libthrift091.TException
{
saveAppInfo_args args = new saveAppInfo_args();
args.setAppInfo(appInfo);
sendBase("saveAppInfo", args);
}
public void recv_saveAppInfo() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
saveAppInfo_result result = new saveAppInfo_result();
receiveBase(result, "saveAppInfo");
if (result.se != null) {
throw result.se;
}
return;
}
public AppInfo getAppInfo(String appId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_getAppInfo(appId);
return recv_getAppInfo();
}
public void send_getAppInfo(String appId) throws libthrift091.TException
{
getAppInfo_args args = new getAppInfo_args();
args.setAppId(appId);
sendBase("getAppInfo", args);
}
public AppInfo recv_getAppInfo() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
getAppInfo_result result = new getAppInfo_result();
receiveBase(result, "getAppInfo");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getAppInfo failed: unknown result");
}
public List findAllApps() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_findAllApps();
return recv_findAllApps();
}
public void send_findAllApps() throws libthrift091.TException
{
findAllApps_args args = new findAllApps_args();
sendBase("findAllApps", args);
}
public List recv_findAllApps() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
findAllApps_result result = new findAllApps_result();
receiveBase(result, "findAllApps");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "findAllApps failed: unknown result");
}
public List findAllTables() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_findAllTables();
return recv_findAllTables();
}
public void send_findAllTables() throws libthrift091.TException
{
findAllTables_args args = new findAllTables_args();
sendBase("findAllTables", args);
}
public List recv_findAllTables() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
findAllTables_result result = new findAllTables_result();
receiveBase(result, "findAllTables");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "findAllTables failed: unknown result");
}
public List cleanAllLazyDroppedTables() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_cleanAllLazyDroppedTables();
return recv_cleanAllLazyDroppedTables();
}
public void send_cleanAllLazyDroppedTables() throws libthrift091.TException
{
cleanAllLazyDroppedTables_args args = new cleanAllLazyDroppedTables_args();
sendBase("cleanAllLazyDroppedTables", args);
}
public List recv_cleanAllLazyDroppedTables() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
cleanAllLazyDroppedTables_result result = new cleanAllLazyDroppedTables_result();
receiveBase(result, "cleanAllLazyDroppedTables");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "cleanAllLazyDroppedTables failed: unknown result");
}
public com.xiaomi.infra.galaxy.sds.thrift.TableInfo createTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_createTable(tableName, tableSpec);
return recv_createTable();
}
public void send_createTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec) throws libthrift091.TException
{
createTable_args args = new createTable_args();
args.setTableName(tableName);
args.setTableSpec(tableSpec);
sendBase("createTable", args);
}
public com.xiaomi.infra.galaxy.sds.thrift.TableInfo recv_createTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
createTable_result result = new createTable_result();
receiveBase(result, "createTable");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "createTable failed: unknown result");
}
public void dropTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_dropTable(tableName);
recv_dropTable();
}
public void send_dropTable(String tableName) throws libthrift091.TException
{
dropTable_args args = new dropTable_args();
args.setTableName(tableName);
sendBase("dropTable", args);
}
public void recv_dropTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
dropTable_result result = new dropTable_result();
receiveBase(result, "dropTable");
if (result.se != null) {
throw result.se;
}
return;
}
public void restoreTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_restoreTable(tableName);
recv_restoreTable();
}
public void send_restoreTable(String tableName) throws libthrift091.TException
{
restoreTable_args args = new restoreTable_args();
args.setTableName(tableName);
sendBase("restoreTable", args);
}
public void recv_restoreTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
restoreTable_result result = new restoreTable_result();
receiveBase(result, "restoreTable");
if (result.se != null) {
throw result.se;
}
return;
}
public void alterTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_alterTable(tableName, tableSpec);
recv_alterTable();
}
public void send_alterTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec) throws libthrift091.TException
{
alterTable_args args = new alterTable_args();
args.setTableName(tableName);
args.setTableSpec(tableSpec);
sendBase("alterTable", args);
}
public void recv_alterTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
alterTable_result result = new alterTable_result();
receiveBase(result, "alterTable");
if (result.se != null) {
throw result.se;
}
return;
}
public void cloneTable(String srcName, String destTable, boolean flushTable) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_cloneTable(srcName, destTable, flushTable);
recv_cloneTable();
}
public void send_cloneTable(String srcName, String destTable, boolean flushTable) throws libthrift091.TException
{
cloneTable_args args = new cloneTable_args();
args.setSrcName(srcName);
args.setDestTable(destTable);
args.setFlushTable(flushTable);
sendBase("cloneTable", args);
}
public void recv_cloneTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
cloneTable_result result = new cloneTable_result();
receiveBase(result, "cloneTable");
if (result.se != null) {
throw result.se;
}
return;
}
public void disableTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_disableTable(tableName);
recv_disableTable();
}
public void send_disableTable(String tableName) throws libthrift091.TException
{
disableTable_args args = new disableTable_args();
args.setTableName(tableName);
sendBase("disableTable", args);
}
public void recv_disableTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
disableTable_result result = new disableTable_result();
receiveBase(result, "disableTable");
if (result.se != null) {
throw result.se;
}
return;
}
public void enableTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_enableTable(tableName);
recv_enableTable();
}
public void send_enableTable(String tableName) throws libthrift091.TException
{
enableTable_args args = new enableTable_args();
args.setTableName(tableName);
sendBase("enableTable", args);
}
public void recv_enableTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
enableTable_result result = new enableTable_result();
receiveBase(result, "enableTable");
if (result.se != null) {
throw result.se;
}
return;
}
public com.xiaomi.infra.galaxy.sds.thrift.TableSpec describeTable(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_describeTable(tableName);
return recv_describeTable();
}
public void send_describeTable(String tableName) throws libthrift091.TException
{
describeTable_args args = new describeTable_args();
args.setTableName(tableName);
sendBase("describeTable", args);
}
public com.xiaomi.infra.galaxy.sds.thrift.TableSpec recv_describeTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
describeTable_result result = new describeTable_result();
receiveBase(result, "describeTable");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "describeTable failed: unknown result");
}
public com.xiaomi.infra.galaxy.sds.thrift.TableStatus getTableStatus(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_getTableStatus(tableName);
return recv_getTableStatus();
}
public void send_getTableStatus(String tableName) throws libthrift091.TException
{
getTableStatus_args args = new getTableStatus_args();
args.setTableName(tableName);
sendBase("getTableStatus", args);
}
public com.xiaomi.infra.galaxy.sds.thrift.TableStatus recv_getTableStatus() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
getTableStatus_result result = new getTableStatus_result();
receiveBase(result, "getTableStatus");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getTableStatus failed: unknown result");
}
public com.xiaomi.infra.galaxy.sds.thrift.TableState getTableState(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_getTableState(tableName);
return recv_getTableState();
}
public void send_getTableState(String tableName) throws libthrift091.TException
{
getTableState_args args = new getTableState_args();
args.setTableName(tableName);
sendBase("getTableState", args);
}
public com.xiaomi.infra.galaxy.sds.thrift.TableState recv_getTableState() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
getTableState_result result = new getTableState_result();
receiveBase(result, "getTableState");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getTableState failed: unknown result");
}
public List getTableSplits(String tableName, Map startKey, Map stopKey) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_getTableSplits(tableName, startKey, stopKey);
return recv_getTableSplits();
}
public void send_getTableSplits(String tableName, Map startKey, Map stopKey) throws libthrift091.TException
{
getTableSplits_args args = new getTableSplits_args();
args.setTableName(tableName);
args.setStartKey(startKey);
args.setStopKey(stopKey);
sendBase("getTableSplits", args);
}
public List recv_getTableSplits() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
getTableSplits_result result = new getTableSplits_result();
receiveBase(result, "getTableSplits");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getTableSplits failed: unknown result");
}
public TimeSeriesData queryMetric(MetricQueryRequest query) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_queryMetric(query);
return recv_queryMetric();
}
public void send_queryMetric(MetricQueryRequest query) throws libthrift091.TException
{
queryMetric_args args = new queryMetric_args();
args.setQuery(query);
sendBase("queryMetric", args);
}
public TimeSeriesData recv_queryMetric() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
queryMetric_result result = new queryMetric_result();
receiveBase(result, "queryMetric");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "queryMetric failed: unknown result");
}
public List queryMetrics(List queries) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_queryMetrics(queries);
return recv_queryMetrics();
}
public void send_queryMetrics(List queries) throws libthrift091.TException
{
queryMetrics_args args = new queryMetrics_args();
args.setQueries(queries);
sendBase("queryMetrics", args);
}
public List recv_queryMetrics() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
queryMetrics_result result = new queryMetrics_result();
receiveBase(result, "queryMetrics");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "queryMetrics failed: unknown result");
}
public List findAllAppInfo() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_findAllAppInfo();
return recv_findAllAppInfo();
}
public void send_findAllAppInfo() throws libthrift091.TException
{
findAllAppInfo_args args = new findAllAppInfo_args();
sendBase("findAllAppInfo", args);
}
public List recv_findAllAppInfo() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
findAllAppInfo_result result = new findAllAppInfo_result();
receiveBase(result, "findAllAppInfo");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "findAllAppInfo failed: unknown result");
}
}
public static class AsyncClient extends com.xiaomi.infra.galaxy.sds.thrift.BaseService.AsyncClient implements AsyncIface {
public static class Factory implements libthrift091.async.TAsyncClientFactory {
private libthrift091.async.TAsyncClientManager clientManager;
private libthrift091.protocol.TProtocolFactory protocolFactory;
public Factory(libthrift091.async.TAsyncClientManager clientManager, libthrift091.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
public AsyncClient getAsyncClient(libthrift091.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.async.TAsyncClientManager clientManager, libthrift091.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
public void saveAppInfo(AppInfo appInfo, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
saveAppInfo_call method_call = new saveAppInfo_call(appInfo, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class saveAppInfo_call extends libthrift091.async.TAsyncMethodCall {
private AppInfo appInfo;
public saveAppInfo_call(AppInfo appInfo, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.appInfo = appInfo;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("saveAppInfo", libthrift091.protocol.TMessageType.CALL, 0));
saveAppInfo_args args = new saveAppInfo_args();
args.setAppInfo(appInfo);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_saveAppInfo();
}
}
public void getAppInfo(String appId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getAppInfo_call method_call = new getAppInfo_call(appId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getAppInfo_call extends libthrift091.async.TAsyncMethodCall {
private String appId;
public getAppInfo_call(String appId, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.appId = appId;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getAppInfo", libthrift091.protocol.TMessageType.CALL, 0));
getAppInfo_args args = new getAppInfo_args();
args.setAppId(appId);
args.write(prot);
prot.writeMessageEnd();
}
public AppInfo getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getAppInfo();
}
}
public void findAllApps(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
findAllApps_call method_call = new findAllApps_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class findAllApps_call extends libthrift091.async.TAsyncMethodCall {
public findAllApps_call(libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("findAllApps", libthrift091.protocol.TMessageType.CALL, 0));
findAllApps_args args = new findAllApps_args();
args.write(prot);
prot.writeMessageEnd();
}
public List getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_findAllApps();
}
}
public void findAllTables(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
findAllTables_call method_call = new findAllTables_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class findAllTables_call extends libthrift091.async.TAsyncMethodCall {
public findAllTables_call(libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("findAllTables", libthrift091.protocol.TMessageType.CALL, 0));
findAllTables_args args = new findAllTables_args();
args.write(prot);
prot.writeMessageEnd();
}
public List getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_findAllTables();
}
}
public void cleanAllLazyDroppedTables(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
cleanAllLazyDroppedTables_call method_call = new cleanAllLazyDroppedTables_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class cleanAllLazyDroppedTables_call extends libthrift091.async.TAsyncMethodCall {
public cleanAllLazyDroppedTables_call(libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("cleanAllLazyDroppedTables", libthrift091.protocol.TMessageType.CALL, 0));
cleanAllLazyDroppedTables_args args = new cleanAllLazyDroppedTables_args();
args.write(prot);
prot.writeMessageEnd();
}
public List getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_cleanAllLazyDroppedTables();
}
}
public void createTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
createTable_call method_call = new createTable_call(tableName, tableSpec, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class createTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec;
public createTable_call(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
this.tableSpec = tableSpec;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("createTable", libthrift091.protocol.TMessageType.CALL, 0));
createTable_args args = new createTable_args();
args.setTableName(tableName);
args.setTableSpec(tableSpec);
args.write(prot);
prot.writeMessageEnd();
}
public com.xiaomi.infra.galaxy.sds.thrift.TableInfo getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_createTable();
}
}
public void dropTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
dropTable_call method_call = new dropTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class dropTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public dropTable_call(String tableName, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("dropTable", libthrift091.protocol.TMessageType.CALL, 0));
dropTable_args args = new dropTable_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_dropTable();
}
}
public void restoreTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
restoreTable_call method_call = new restoreTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class restoreTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public restoreTable_call(String tableName, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("restoreTable", libthrift091.protocol.TMessageType.CALL, 0));
restoreTable_args args = new restoreTable_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_restoreTable();
}
}
public void alterTable(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
alterTable_call method_call = new alterTable_call(tableName, tableSpec, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class alterTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec;
public alterTable_call(String tableName, com.xiaomi.infra.galaxy.sds.thrift.TableSpec tableSpec, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
this.tableSpec = tableSpec;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("alterTable", libthrift091.protocol.TMessageType.CALL, 0));
alterTable_args args = new alterTable_args();
args.setTableName(tableName);
args.setTableSpec(tableSpec);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_alterTable();
}
}
public void cloneTable(String srcName, String destTable, boolean flushTable, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
cloneTable_call method_call = new cloneTable_call(srcName, destTable, flushTable, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class cloneTable_call extends libthrift091.async.TAsyncMethodCall {
private String srcName;
private String destTable;
private boolean flushTable;
public cloneTable_call(String srcName, String destTable, boolean flushTable, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.srcName = srcName;
this.destTable = destTable;
this.flushTable = flushTable;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("cloneTable", libthrift091.protocol.TMessageType.CALL, 0));
cloneTable_args args = new cloneTable_args();
args.setSrcName(srcName);
args.setDestTable(destTable);
args.setFlushTable(flushTable);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_cloneTable();
}
}
public void disableTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
disableTable_call method_call = new disableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class disableTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public disableTable_call(String tableName, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("disableTable", libthrift091.protocol.TMessageType.CALL, 0));
disableTable_args args = new disableTable_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_disableTable();
}
}
public void enableTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
enableTable_call method_call = new enableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class enableTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public enableTable_call(String tableName, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("enableTable", libthrift091.protocol.TMessageType.CALL, 0));
enableTable_args args = new enableTable_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public void getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
(new Client(prot)).recv_enableTable();
}
}
public void describeTable(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
describeTable_call method_call = new describeTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class describeTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public describeTable_call(String tableName, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("describeTable", libthrift091.protocol.TMessageType.CALL, 0));
describeTable_args args = new describeTable_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public com.xiaomi.infra.galaxy.sds.thrift.TableSpec getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_describeTable();
}
}
public void getTableStatus(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getTableStatus_call method_call = new getTableStatus_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getTableStatus_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public getTableStatus_call(String tableName, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getTableStatus", libthrift091.protocol.TMessageType.CALL, 0));
getTableStatus_args args = new getTableStatus_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public com.xiaomi.infra.galaxy.sds.thrift.TableStatus getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getTableStatus();
}
}
public void getTableState(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getTableState_call method_call = new getTableState_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getTableState_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public getTableState_call(String tableName, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getTableState", libthrift091.protocol.TMessageType.CALL, 0));
getTableState_args args = new getTableState_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public com.xiaomi.infra.galaxy.sds.thrift.TableState getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getTableState();
}
}
public void getTableSplits(String tableName, Map startKey, Map stopKey, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getTableSplits_call method_call = new getTableSplits_call(tableName, startKey, stopKey, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getTableSplits_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private Map startKey;
private Map stopKey;
public getTableSplits_call(String tableName, Map startKey, Map stopKey, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.tableName = tableName;
this.startKey = startKey;
this.stopKey = stopKey;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getTableSplits", libthrift091.protocol.TMessageType.CALL, 0));
getTableSplits_args args = new getTableSplits_args();
args.setTableName(tableName);
args.setStartKey(startKey);
args.setStopKey(stopKey);
args.write(prot);
prot.writeMessageEnd();
}
public List getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_getTableSplits();
}
}
public void queryMetric(MetricQueryRequest query, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
queryMetric_call method_call = new queryMetric_call(query, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class queryMetric_call extends libthrift091.async.TAsyncMethodCall {
private MetricQueryRequest query;
public queryMetric_call(MetricQueryRequest query, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.query = query;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("queryMetric", libthrift091.protocol.TMessageType.CALL, 0));
queryMetric_args args = new queryMetric_args();
args.setQuery(query);
args.write(prot);
prot.writeMessageEnd();
}
public TimeSeriesData getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_queryMetric();
}
}
public void queryMetrics(List queries, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
queryMetrics_call method_call = new queryMetrics_call(queries, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class queryMetrics_call extends libthrift091.async.TAsyncMethodCall {
private List queries;
public queryMetrics_call(List queries, libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.queries = queries;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("queryMetrics", libthrift091.protocol.TMessageType.CALL, 0));
queryMetrics_args args = new queryMetrics_args();
args.setQueries(queries);
args.write(prot);
prot.writeMessageEnd();
}
public List getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_queryMetrics();
}
}
public void findAllAppInfo(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
findAllAppInfo_call method_call = new findAllAppInfo_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class findAllAppInfo_call extends libthrift091.async.TAsyncMethodCall {
public findAllAppInfo_call(libthrift091.async.AsyncMethodCallback resultHandler, libthrift091.async.TAsyncClient client, libthrift091.protocol.TProtocolFactory protocolFactory, libthrift091.transport.TNonblockingTransport transport) throws libthrift091.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("findAllAppInfo", libthrift091.protocol.TMessageType.CALL, 0));
findAllAppInfo_args args = new findAllAppInfo_args();
args.write(prot);
prot.writeMessageEnd();
}
public List getResult() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException {
if (getState() != libthrift091.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
libthrift091.transport.TMemoryInputTransport memoryTransport = new libthrift091.transport.TMemoryInputTransport(getFrameBuffer().array());
libthrift091.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_findAllAppInfo();
}
}
}
public static class Processor extends com.xiaomi.infra.galaxy.sds.thrift.BaseService.Processor implements libthrift091.TProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new HashMap>()));
}
protected Processor(I iface, Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static Map> getProcessMap(Map> processMap) {
processMap.put("saveAppInfo", new saveAppInfo());
processMap.put("getAppInfo", new getAppInfo());
processMap.put("findAllApps", new findAllApps());
processMap.put("findAllTables", new findAllTables());
processMap.put("cleanAllLazyDroppedTables", new cleanAllLazyDroppedTables());
processMap.put("createTable", new createTable());
processMap.put("dropTable", new dropTable());
processMap.put("restoreTable", new restoreTable());
processMap.put("alterTable", new alterTable());
processMap.put("cloneTable", new cloneTable());
processMap.put("disableTable", new disableTable());
processMap.put("enableTable", new enableTable());
processMap.put("describeTable", new describeTable());
processMap.put("getTableStatus", new getTableStatus());
processMap.put("getTableState", new getTableState());
processMap.put("getTableSplits", new getTableSplits());
processMap.put("queryMetric", new queryMetric());
processMap.put("queryMetrics", new queryMetrics());
processMap.put("findAllAppInfo", new findAllAppInfo());
return processMap;
}
public static class saveAppInfo extends libthrift091.ProcessFunction {
public saveAppInfo() {
super("saveAppInfo");
}
public saveAppInfo_args getEmptyArgsInstance() {
return new saveAppInfo_args();
}
protected boolean isOneway() {
return false;
}
public saveAppInfo_result getResult(I iface, saveAppInfo_args args) throws libthrift091.TException {
saveAppInfo_result result = new saveAppInfo_result();
try {
iface.saveAppInfo(args.appInfo);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class getAppInfo extends libthrift091.ProcessFunction {
public getAppInfo() {
super("getAppInfo");
}
public getAppInfo_args getEmptyArgsInstance() {
return new getAppInfo_args();
}
protected boolean isOneway() {
return false;
}
public getAppInfo_result getResult(I iface, getAppInfo_args args) throws libthrift091.TException {
getAppInfo_result result = new getAppInfo_result();
try {
result.success = iface.getAppInfo(args.appId);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class findAllApps extends libthrift091.ProcessFunction {
public findAllApps() {
super("findAllApps");
}
public findAllApps_args getEmptyArgsInstance() {
return new findAllApps_args();
}
protected boolean isOneway() {
return false;
}
public findAllApps_result getResult(I iface, findAllApps_args args) throws libthrift091.TException {
findAllApps_result result = new findAllApps_result();
try {
result.success = iface.findAllApps();
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class findAllTables extends libthrift091.ProcessFunction {
public findAllTables() {
super("findAllTables");
}
public findAllTables_args getEmptyArgsInstance() {
return new findAllTables_args();
}
protected boolean isOneway() {
return false;
}
public findAllTables_result getResult(I iface, findAllTables_args args) throws libthrift091.TException {
findAllTables_result result = new findAllTables_result();
try {
result.success = iface.findAllTables();
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class cleanAllLazyDroppedTables extends libthrift091.ProcessFunction {
public cleanAllLazyDroppedTables() {
super("cleanAllLazyDroppedTables");
}
public cleanAllLazyDroppedTables_args getEmptyArgsInstance() {
return new cleanAllLazyDroppedTables_args();
}
protected boolean isOneway() {
return false;
}
public cleanAllLazyDroppedTables_result getResult(I iface, cleanAllLazyDroppedTables_args args) throws libthrift091.TException {
cleanAllLazyDroppedTables_result result = new cleanAllLazyDroppedTables_result();
try {
result.success = iface.cleanAllLazyDroppedTables();
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class createTable extends libthrift091.ProcessFunction {
public createTable() {
super("createTable");
}
public createTable_args getEmptyArgsInstance() {
return new createTable_args();
}
protected boolean isOneway() {
return false;
}
public createTable_result getResult(I iface, createTable_args args) throws libthrift091.TException {
createTable_result result = new createTable_result();
try {
result.success = iface.createTable(args.tableName, args.tableSpec);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class dropTable extends libthrift091.ProcessFunction {
public dropTable() {
super("dropTable");
}
public dropTable_args getEmptyArgsInstance() {
return new dropTable_args();
}
protected boolean isOneway() {
return false;
}
public dropTable_result getResult(I iface, dropTable_args args) throws libthrift091.TException {
dropTable_result result = new dropTable_result();
try {
iface.dropTable(args.tableName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class restoreTable extends libthrift091.ProcessFunction {
public restoreTable() {
super("restoreTable");
}
public restoreTable_args getEmptyArgsInstance() {
return new restoreTable_args();
}
protected boolean isOneway() {
return false;
}
public restoreTable_result getResult(I iface, restoreTable_args args) throws libthrift091.TException {
restoreTable_result result = new restoreTable_result();
try {
iface.restoreTable(args.tableName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class alterTable extends libthrift091.ProcessFunction {
public alterTable() {
super("alterTable");
}
public alterTable_args getEmptyArgsInstance() {
return new alterTable_args();
}
protected boolean isOneway() {
return false;
}
public alterTable_result getResult(I iface, alterTable_args args) throws libthrift091.TException {
alterTable_result result = new alterTable_result();
try {
iface.alterTable(args.tableName, args.tableSpec);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class cloneTable extends libthrift091.ProcessFunction {
public cloneTable() {
super("cloneTable");
}
public cloneTable_args getEmptyArgsInstance() {
return new cloneTable_args();
}
protected boolean isOneway() {
return false;
}
public cloneTable_result getResult(I iface, cloneTable_args args) throws libthrift091.TException {
cloneTable_result result = new cloneTable_result();
try {
iface.cloneTable(args.srcName, args.destTable, args.flushTable);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class disableTable extends libthrift091.ProcessFunction {
public disableTable() {
super("disableTable");
}
public disableTable_args getEmptyArgsInstance() {
return new disableTable_args();
}
protected boolean isOneway() {
return false;
}
public disableTable_result getResult(I iface, disableTable_args args) throws libthrift091.TException {
disableTable_result result = new disableTable_result();
try {
iface.disableTable(args.tableName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class enableTable extends libthrift091.ProcessFunction {
public enableTable() {
super("enableTable");
}
public enableTable_args getEmptyArgsInstance() {
return new enableTable_args();
}
protected boolean isOneway() {
return false;
}
public enableTable_result getResult(I iface, enableTable_args args) throws libthrift091.TException {
enableTable_result result = new enableTable_result();
try {
iface.enableTable(args.tableName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class describeTable extends libthrift091.ProcessFunction {
public describeTable() {
super("describeTable");
}
public describeTable_args getEmptyArgsInstance() {
return new describeTable_args();
}
protected boolean isOneway() {
return false;
}
public describeTable_result getResult(I iface, describeTable_args args) throws libthrift091.TException {
describeTable_result result = new describeTable_result();
try {
result.success = iface.describeTable(args.tableName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class getTableStatus extends libthrift091.ProcessFunction {
public getTableStatus() {
super("getTableStatus");
}
public getTableStatus_args getEmptyArgsInstance() {
return new getTableStatus_args();
}
protected boolean isOneway() {
return false;
}
public getTableStatus_result getResult(I iface, getTableStatus_args args) throws libthrift091.TException {
getTableStatus_result result = new getTableStatus_result();
try {
result.success = iface.getTableStatus(args.tableName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class getTableState extends libthrift091.ProcessFunction {
public getTableState() {
super("getTableState");
}
public getTableState_args getEmptyArgsInstance() {
return new getTableState_args();
}
protected boolean isOneway() {
return false;
}
public getTableState_result getResult(I iface, getTableState_args args) throws libthrift091.TException {
getTableState_result result = new getTableState_result();
try {
result.success = iface.getTableState(args.tableName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class getTableSplits extends libthrift091.ProcessFunction {
public getTableSplits() {
super("getTableSplits");
}
public getTableSplits_args getEmptyArgsInstance() {
return new getTableSplits_args();
}
protected boolean isOneway() {
return false;
}
public getTableSplits_result getResult(I iface, getTableSplits_args args) throws libthrift091.TException {
getTableSplits_result result = new getTableSplits_result();
try {
result.success = iface.getTableSplits(args.tableName, args.startKey, args.stopKey);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class queryMetric extends libthrift091.ProcessFunction {
public queryMetric() {
super("queryMetric");
}
public queryMetric_args getEmptyArgsInstance() {
return new queryMetric_args();
}
protected boolean isOneway() {
return false;
}
public queryMetric_result getResult(I iface, queryMetric_args args) throws libthrift091.TException {
queryMetric_result result = new queryMetric_result();
try {
result.success = iface.queryMetric(args.query);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class queryMetrics extends libthrift091.ProcessFunction {
public queryMetrics() {
super("queryMetrics");
}
public queryMetrics_args getEmptyArgsInstance() {
return new queryMetrics_args();
}
protected boolean isOneway() {
return false;
}
public queryMetrics_result getResult(I iface, queryMetrics_args args) throws libthrift091.TException {
queryMetrics_result result = new queryMetrics_result();
try {
result.success = iface.queryMetrics(args.queries);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class findAllAppInfo extends libthrift091.ProcessFunction {
public findAllAppInfo() {
super("findAllAppInfo");
}
public findAllAppInfo_args getEmptyArgsInstance() {
return new findAllAppInfo_args();
}
protected boolean isOneway() {
return false;
}
public findAllAppInfo_result getResult(I iface, findAllAppInfo_args args) throws libthrift091.TException {
findAllAppInfo_result result = new findAllAppInfo_result();
try {
result.success = iface.findAllAppInfo();
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
}
public static class AsyncProcessor extends com.xiaomi.infra.galaxy.sds.thrift.BaseService.AsyncProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
super(iface, getProcessMap(new HashMap>()));
}
protected AsyncProcessor(I iface, Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static Map> getProcessMap(Map> processMap) {
processMap.put("saveAppInfo", new saveAppInfo());
processMap.put("getAppInfo", new getAppInfo());
processMap.put("findAllApps", new findAllApps());
processMap.put("findAllTables", new findAllTables());
processMap.put("cleanAllLazyDroppedTables", new cleanAllLazyDroppedTables());
processMap.put("createTable", new createTable());
processMap.put("dropTable", new dropTable());
processMap.put("restoreTable", new restoreTable());
processMap.put("alterTable", new alterTable());
processMap.put("cloneTable", new cloneTable());
processMap.put("disableTable", new disableTable());
processMap.put("enableTable", new enableTable());
processMap.put("describeTable", new describeTable());
processMap.put("getTableStatus", new getTableStatus());
processMap.put("getTableState", new getTableState());
processMap.put("getTableSplits", new getTableSplits());
processMap.put("queryMetric", new queryMetric());
processMap.put("queryMetrics", new queryMetrics());
processMap.put("findAllAppInfo", new findAllAppInfo());
return processMap;
}
public static class saveAppInfo extends libthrift091.AsyncProcessFunction {
public saveAppInfo() {
super("saveAppInfo");
}
public saveAppInfo_args getEmptyArgsInstance() {
return new saveAppInfo_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
saveAppInfo_result result = new saveAppInfo_result();
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
saveAppInfo_result result = new saveAppInfo_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, saveAppInfo_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.saveAppInfo(args.appInfo,resultHandler);
}
}
public static class getAppInfo extends libthrift091.AsyncProcessFunction {
public getAppInfo() {
super("getAppInfo");
}
public getAppInfo_args getEmptyArgsInstance() {
return new getAppInfo_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(AppInfo o) {
getAppInfo_result result = new getAppInfo_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
getAppInfo_result result = new getAppInfo_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, getAppInfo_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.getAppInfo(args.appId,resultHandler);
}
}
public static class findAllApps extends libthrift091.AsyncProcessFunction> {
public findAllApps() {
super("findAllApps");
}
public findAllApps_args getEmptyArgsInstance() {
return new findAllApps_args();
}
public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback>() {
public void onComplete(List o) {
findAllApps_result result = new findAllApps_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
findAllApps_result result = new findAllApps_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, findAllApps_args args, libthrift091.async.AsyncMethodCallback> resultHandler) throws TException {
iface.findAllApps(resultHandler);
}
}
public static class findAllTables extends libthrift091.AsyncProcessFunction> {
public findAllTables() {
super("findAllTables");
}
public findAllTables_args getEmptyArgsInstance() {
return new findAllTables_args();
}
public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback>() {
public void onComplete(List o) {
findAllTables_result result = new findAllTables_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
findAllTables_result result = new findAllTables_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, findAllTables_args args, libthrift091.async.AsyncMethodCallback> resultHandler) throws TException {
iface.findAllTables(resultHandler);
}
}
public static class cleanAllLazyDroppedTables extends libthrift091.AsyncProcessFunction> {
public cleanAllLazyDroppedTables() {
super("cleanAllLazyDroppedTables");
}
public cleanAllLazyDroppedTables_args getEmptyArgsInstance() {
return new cleanAllLazyDroppedTables_args();
}
public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback>() {
public void onComplete(List o) {
cleanAllLazyDroppedTables_result result = new cleanAllLazyDroppedTables_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
cleanAllLazyDroppedTables_result result = new cleanAllLazyDroppedTables_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, cleanAllLazyDroppedTables_args args, libthrift091.async.AsyncMethodCallback> resultHandler) throws TException {
iface.cleanAllLazyDroppedTables(resultHandler);
}
}
public static class createTable extends libthrift091.AsyncProcessFunction {
public createTable() {
super("createTable");
}
public createTable_args getEmptyArgsInstance() {
return new createTable_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.xiaomi.infra.galaxy.sds.thrift.TableInfo o) {
createTable_result result = new createTable_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
createTable_result result = new createTable_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, createTable_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.createTable(args.tableName, args.tableSpec,resultHandler);
}
}
public static class dropTable extends libthrift091.AsyncProcessFunction {
public dropTable() {
super("dropTable");
}
public dropTable_args getEmptyArgsInstance() {
return new dropTable_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
dropTable_result result = new dropTable_result();
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
dropTable_result result = new dropTable_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, dropTable_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.dropTable(args.tableName,resultHandler);
}
}
public static class restoreTable extends libthrift091.AsyncProcessFunction {
public restoreTable() {
super("restoreTable");
}
public restoreTable_args getEmptyArgsInstance() {
return new restoreTable_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
restoreTable_result result = new restoreTable_result();
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
restoreTable_result result = new restoreTable_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, restoreTable_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.restoreTable(args.tableName,resultHandler);
}
}
public static class alterTable extends libthrift091.AsyncProcessFunction {
public alterTable() {
super("alterTable");
}
public alterTable_args getEmptyArgsInstance() {
return new alterTable_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
alterTable_result result = new alterTable_result();
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
alterTable_result result = new alterTable_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, alterTable_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.alterTable(args.tableName, args.tableSpec,resultHandler);
}
}
public static class cloneTable extends libthrift091.AsyncProcessFunction {
public cloneTable() {
super("cloneTable");
}
public cloneTable_args getEmptyArgsInstance() {
return new cloneTable_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
cloneTable_result result = new cloneTable_result();
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
cloneTable_result result = new cloneTable_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, cloneTable_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.cloneTable(args.srcName, args.destTable, args.flushTable,resultHandler);
}
}
public static class disableTable extends libthrift091.AsyncProcessFunction {
public disableTable() {
super("disableTable");
}
public disableTable_args getEmptyArgsInstance() {
return new disableTable_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
disableTable_result result = new disableTable_result();
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
disableTable_result result = new disableTable_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, disableTable_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.disableTable(args.tableName,resultHandler);
}
}
public static class enableTable extends libthrift091.AsyncProcessFunction {
public enableTable() {
super("enableTable");
}
public enableTable_args getEmptyArgsInstance() {
return new enableTable_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
enableTable_result result = new enableTable_result();
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
enableTable_result result = new enableTable_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, enableTable_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.enableTable(args.tableName,resultHandler);
}
}
public static class describeTable extends libthrift091.AsyncProcessFunction {
public describeTable() {
super("describeTable");
}
public describeTable_args getEmptyArgsInstance() {
return new describeTable_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.xiaomi.infra.galaxy.sds.thrift.TableSpec o) {
describeTable_result result = new describeTable_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
describeTable_result result = new describeTable_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, describeTable_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.describeTable(args.tableName,resultHandler);
}
}
public static class getTableStatus extends libthrift091.AsyncProcessFunction {
public getTableStatus() {
super("getTableStatus");
}
public getTableStatus_args getEmptyArgsInstance() {
return new getTableStatus_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.xiaomi.infra.galaxy.sds.thrift.TableStatus o) {
getTableStatus_result result = new getTableStatus_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
getTableStatus_result result = new getTableStatus_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, getTableStatus_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.getTableStatus(args.tableName,resultHandler);
}
}
public static class getTableState extends libthrift091.AsyncProcessFunction {
public getTableState() {
super("getTableState");
}
public getTableState_args getEmptyArgsInstance() {
return new getTableState_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(com.xiaomi.infra.galaxy.sds.thrift.TableState o) {
getTableState_result result = new getTableState_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
getTableState_result result = new getTableState_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, getTableState_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.getTableState(args.tableName,resultHandler);
}
}
public static class getTableSplits extends libthrift091.AsyncProcessFunction> {
public getTableSplits() {
super("getTableSplits");
}
public getTableSplits_args getEmptyArgsInstance() {
return new getTableSplits_args();
}
public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback>() {
public void onComplete(List o) {
getTableSplits_result result = new getTableSplits_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
getTableSplits_result result = new getTableSplits_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, getTableSplits_args args, libthrift091.async.AsyncMethodCallback> resultHandler) throws TException {
iface.getTableSplits(args.tableName, args.startKey, args.stopKey,resultHandler);
}
}
public static class queryMetric extends libthrift091.AsyncProcessFunction {
public queryMetric() {
super("queryMetric");
}
public queryMetric_args getEmptyArgsInstance() {
return new queryMetric_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(TimeSeriesData o) {
queryMetric_result result = new queryMetric_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
queryMetric_result result = new queryMetric_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, queryMetric_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.queryMetric(args.query,resultHandler);
}
}
public static class queryMetrics extends libthrift091.AsyncProcessFunction> {
public queryMetrics() {
super("queryMetrics");
}
public queryMetrics_args getEmptyArgsInstance() {
return new queryMetrics_args();
}
public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback>() {
public void onComplete(List o) {
queryMetrics_result result = new queryMetrics_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
queryMetrics_result result = new queryMetrics_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, queryMetrics_args args, libthrift091.async.AsyncMethodCallback> resultHandler) throws TException {
iface.queryMetrics(args.queries,resultHandler);
}
}
public static class findAllAppInfo extends libthrift091.AsyncProcessFunction> {
public findAllAppInfo() {
super("findAllAppInfo");
}
public findAllAppInfo_args getEmptyArgsInstance() {
return new findAllAppInfo_args();
}
public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback>() {
public void onComplete(List o) {
findAllAppInfo_result result = new findAllAppInfo_result();
result.success = o;
try {
fcall.sendResponse(fb,result, libthrift091.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = libthrift091.protocol.TMessageType.REPLY;
libthrift091.TBase msg;
findAllAppInfo_result result = new findAllAppInfo_result();
if (e instanceof com.xiaomi.infra.galaxy.sds.thrift.ServiceException) {
result.se = (com.xiaomi.infra.galaxy.sds.thrift.ServiceException) e;
result.setSeIsSet(true);
msg = result;
}
else
{
msgType = libthrift091.protocol.TMessageType.EXCEPTION;
msg = (libthrift091.TBase)new libthrift091.TApplicationException(libthrift091.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, findAllAppInfo_args args, libthrift091.async.AsyncMethodCallback> resultHandler) throws TException {
iface.findAllAppInfo(resultHandler);
}
}
}
public static class saveAppInfo_args implements libthrift091.TBase, java.io.Serializable, Cloneable, Comparable {
private static final libthrift091.protocol.TStruct STRUCT_DESC = new libthrift091.protocol.TStruct("saveAppInfo_args");
private static final libthrift091.protocol.TField APP_INFO_FIELD_DESC = new libthrift091.protocol.TField("appInfo", libthrift091.protocol.TType.STRUCT, (short)1);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new saveAppInfo_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new saveAppInfo_argsTupleSchemeFactory());
}
public AppInfo appInfo; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements libthrift091.TFieldIdEnum {
APP_INFO((short)1, "appInfo");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // APP_INFO
return APP_INFO;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, libthrift091.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, libthrift091.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, libthrift091.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.APP_INFO, new libthrift091.meta_data.FieldMetaData("appInfo", libthrift091.TFieldRequirementType.DEFAULT,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, AppInfo.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
libthrift091.meta_data.FieldMetaData.addStructMetaDataMap(saveAppInfo_args.class, metaDataMap);
}
public saveAppInfo_args() {
}
public saveAppInfo_args(
AppInfo appInfo)
{
this();
this.appInfo = appInfo;
}
/**
* Performs a deep copy on other .
*/
public saveAppInfo_args(saveAppInfo_args other) {
if (other.isSetAppInfo()) {
this.appInfo = new AppInfo(other.appInfo);
}
}
public saveAppInfo_args deepCopy() {
return new saveAppInfo_args(this);
}
@Override
public void clear() {
this.appInfo = null;
}
public AppInfo getAppInfo() {
return this.appInfo;
}
public saveAppInfo_args setAppInfo(AppInfo appInfo) {
this.appInfo = appInfo;
return this;
}
public void unsetAppInfo() {
this.appInfo = null;
}
/** Returns true if field appInfo is set (has been assigned a value) and false otherwise */
public boolean isSetAppInfo() {
return this.appInfo != null;
}
public void setAppInfoIsSet(boolean value) {
if (!value) {
this.appInfo = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case APP_INFO:
if (value == null) {
unsetAppInfo();
} else {
setAppInfo((AppInfo)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case APP_INFO:
return getAppInfo();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case APP_INFO:
return isSetAppInfo();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof saveAppInfo_args)
return this.equals((saveAppInfo_args)that);
return false;
}
public boolean equals(saveAppInfo_args that) {
if (that == null)
return false;
boolean this_present_appInfo = true && this.isSetAppInfo();
boolean that_present_appInfo = true && that.isSetAppInfo();
if (this_present_appInfo || that_present_appInfo) {
if (!(this_present_appInfo && that_present_appInfo))
return false;
if (!this.appInfo.equals(that.appInfo))
return false;
}
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
boolean present_appInfo = true && (isSetAppInfo());
list.add(present_appInfo);
if (present_appInfo)
list.add(appInfo);
return list.hashCode();
}
@Override
public int compareTo(saveAppInfo_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetAppInfo()).compareTo(other.isSetAppInfo());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAppInfo()) {
lastComparison = libthrift091.TBaseHelper.compareTo(this.appInfo, other.appInfo);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(libthrift091.protocol.TProtocol iprot) throws libthrift091.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(libthrift091.protocol.TProtocol oprot) throws libthrift091.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("saveAppInfo_args(");
boolean first = true;
sb.append("appInfo:");
if (this.appInfo == null) {
sb.append("null");
} else {
sb.append(this.appInfo);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws libthrift091.TException {
// check for required fields
// check for sub-struct validity
if (appInfo != null) {
appInfo.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(out)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(in)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private static class saveAppInfo_argsStandardSchemeFactory implements SchemeFactory {
public saveAppInfo_argsStandardScheme getScheme() {
return new saveAppInfo_argsStandardScheme();
}
}
private static class saveAppInfo_argsStandardScheme extends StandardScheme {
public void read(libthrift091.protocol.TProtocol iprot, saveAppInfo_args struct) throws libthrift091.TException {
libthrift091.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == libthrift091.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // APP_INFO
if (schemeField.type == libthrift091.protocol.TType.STRUCT) {
struct.appInfo = new AppInfo();
struct.appInfo.read(iprot);
struct.setAppInfoIsSet(true);
} else {
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(libthrift091.protocol.TProtocol oprot, saveAppInfo_args struct) throws libthrift091.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.appInfo != null) {
oprot.writeFieldBegin(APP_INFO_FIELD_DESC);
struct.appInfo.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class saveAppInfo_argsTupleSchemeFactory implements SchemeFactory {
public saveAppInfo_argsTupleScheme getScheme() {
return new saveAppInfo_argsTupleScheme();
}
}
private static class saveAppInfo_argsTupleScheme extends TupleScheme {
@Override
public void write(libthrift091.protocol.TProtocol prot, saveAppInfo_args struct) throws libthrift091.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetAppInfo()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetAppInfo()) {
struct.appInfo.write(oprot);
}
}
@Override
public void read(libthrift091.protocol.TProtocol prot, saveAppInfo_args struct) throws libthrift091.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.appInfo = new AppInfo();
struct.appInfo.read(iprot);
struct.setAppInfoIsSet(true);
}
}
}
}
public static class saveAppInfo_result implements libthrift091.TBase, java.io.Serializable, Cloneable, Comparable {
private static final libthrift091.protocol.TStruct STRUCT_DESC = new libthrift091.protocol.TStruct("saveAppInfo_result");
private static final libthrift091.protocol.TField SE_FIELD_DESC = new libthrift091.protocol.TField("se", libthrift091.protocol.TType.STRUCT, (short)1);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new saveAppInfo_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new saveAppInfo_resultTupleSchemeFactory());
}
public com.xiaomi.infra.galaxy.sds.thrift.ServiceException se; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements libthrift091.TFieldIdEnum {
SE((short)1, "se");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SE
return SE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, libthrift091.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, libthrift091.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, libthrift091.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SE, new libthrift091.meta_data.FieldMetaData("se", libthrift091.TFieldRequirementType.DEFAULT,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
libthrift091.meta_data.FieldMetaData.addStructMetaDataMap(saveAppInfo_result.class, metaDataMap);
}
public saveAppInfo_result() {
}
public saveAppInfo_result(
com.xiaomi.infra.galaxy.sds.thrift.ServiceException se)
{
this();
this.se = se;
}
/**
* Performs a deep copy on other .
*/
public saveAppInfo_result(saveAppInfo_result other) {
if (other.isSetSe()) {
this.se = new com.xiaomi.infra.galaxy.sds.thrift.ServiceException(other.se);
}
}
public saveAppInfo_result deepCopy() {
return new saveAppInfo_result(this);
}
@Override
public void clear() {
this.se = null;
}
public com.xiaomi.infra.galaxy.sds.thrift.ServiceException getSe() {
return this.se;
}
public saveAppInfo_result setSe(com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
this.se = se;
return this;
}
public void unsetSe() {
this.se = null;
}
/** Returns true if field se is set (has been assigned a value) and false otherwise */
public boolean isSetSe() {
return this.se != null;
}
public void setSeIsSet(boolean value) {
if (!value) {
this.se = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SE:
if (value == null) {
unsetSe();
} else {
setSe((com.xiaomi.infra.galaxy.sds.thrift.ServiceException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SE:
return getSe();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SE:
return isSetSe();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof saveAppInfo_result)
return this.equals((saveAppInfo_result)that);
return false;
}
public boolean equals(saveAppInfo_result that) {
if (that == null)
return false;
boolean this_present_se = true && this.isSetSe();
boolean that_present_se = true && that.isSetSe();
if (this_present_se || that_present_se) {
if (!(this_present_se && that_present_se))
return false;
if (!this.se.equals(that.se))
return false;
}
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
boolean present_se = true && (isSetSe());
list.add(present_se);
if (present_se)
list.add(se);
return list.hashCode();
}
@Override
public int compareTo(saveAppInfo_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetSe()).compareTo(other.isSetSe());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSe()) {
lastComparison = libthrift091.TBaseHelper.compareTo(this.se, other.se);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(libthrift091.protocol.TProtocol iprot) throws libthrift091.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(libthrift091.protocol.TProtocol oprot) throws libthrift091.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("saveAppInfo_result(");
boolean first = true;
sb.append("se:");
if (this.se == null) {
sb.append("null");
} else {
sb.append(this.se);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws libthrift091.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(out)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(in)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private static class saveAppInfo_resultStandardSchemeFactory implements SchemeFactory {
public saveAppInfo_resultStandardScheme getScheme() {
return new saveAppInfo_resultStandardScheme();
}
}
private static class saveAppInfo_resultStandardScheme extends StandardScheme {
public void read(libthrift091.protocol.TProtocol iprot, saveAppInfo_result struct) throws libthrift091.TException {
libthrift091.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == libthrift091.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // SE
if (schemeField.type == libthrift091.protocol.TType.STRUCT) {
struct.se = new com.xiaomi.infra.galaxy.sds.thrift.ServiceException();
struct.se.read(iprot);
struct.setSeIsSet(true);
} else {
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(libthrift091.protocol.TProtocol oprot, saveAppInfo_result struct) throws libthrift091.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.se != null) {
oprot.writeFieldBegin(SE_FIELD_DESC);
struct.se.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class saveAppInfo_resultTupleSchemeFactory implements SchemeFactory {
public saveAppInfo_resultTupleScheme getScheme() {
return new saveAppInfo_resultTupleScheme();
}
}
private static class saveAppInfo_resultTupleScheme extends TupleScheme {
@Override
public void write(libthrift091.protocol.TProtocol prot, saveAppInfo_result struct) throws libthrift091.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSe()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSe()) {
struct.se.write(oprot);
}
}
@Override
public void read(libthrift091.protocol.TProtocol prot, saveAppInfo_result struct) throws libthrift091.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.se = new com.xiaomi.infra.galaxy.sds.thrift.ServiceException();
struct.se.read(iprot);
struct.setSeIsSet(true);
}
}
}
}
public static class getAppInfo_args implements libthrift091.TBase, java.io.Serializable, Cloneable, Comparable {
private static final libthrift091.protocol.TStruct STRUCT_DESC = new libthrift091.protocol.TStruct("getAppInfo_args");
private static final libthrift091.protocol.TField APP_ID_FIELD_DESC = new libthrift091.protocol.TField("appId", libthrift091.protocol.TType.STRING, (short)1);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getAppInfo_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getAppInfo_argsTupleSchemeFactory());
}
public String appId; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements libthrift091.TFieldIdEnum {
APP_ID((short)1, "appId");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // APP_ID
return APP_ID;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, libthrift091.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, libthrift091.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, libthrift091.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.APP_ID, new libthrift091.meta_data.FieldMetaData("appId", libthrift091.TFieldRequirementType.DEFAULT,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
libthrift091.meta_data.FieldMetaData.addStructMetaDataMap(getAppInfo_args.class, metaDataMap);
}
public getAppInfo_args() {
}
public getAppInfo_args(
String appId)
{
this();
this.appId = appId;
}
/**
* Performs a deep copy on other .
*/
public getAppInfo_args(getAppInfo_args other) {
if (other.isSetAppId()) {
this.appId = other.appId;
}
}
public getAppInfo_args deepCopy() {
return new getAppInfo_args(this);
}
@Override
public void clear() {
this.appId = null;
}
public String getAppId() {
return this.appId;
}
public getAppInfo_args setAppId(String appId) {
this.appId = appId;
return this;
}
public void unsetAppId() {
this.appId = null;
}
/** Returns true if field appId is set (has been assigned a value) and false otherwise */
public boolean isSetAppId() {
return this.appId != null;
}
public void setAppIdIsSet(boolean value) {
if (!value) {
this.appId = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case APP_ID:
if (value == null) {
unsetAppId();
} else {
setAppId((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case APP_ID:
return getAppId();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case APP_ID:
return isSetAppId();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getAppInfo_args)
return this.equals((getAppInfo_args)that);
return false;
}
public boolean equals(getAppInfo_args that) {
if (that == null)
return false;
boolean this_present_appId = true && this.isSetAppId();
boolean that_present_appId = true && that.isSetAppId();
if (this_present_appId || that_present_appId) {
if (!(this_present_appId && that_present_appId))
return false;
if (!this.appId.equals(that.appId))
return false;
}
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
boolean present_appId = true && (isSetAppId());
list.add(present_appId);
if (present_appId)
list.add(appId);
return list.hashCode();
}
@Override
public int compareTo(getAppInfo_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetAppId()).compareTo(other.isSetAppId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAppId()) {
lastComparison = libthrift091.TBaseHelper.compareTo(this.appId, other.appId);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(libthrift091.protocol.TProtocol iprot) throws libthrift091.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(libthrift091.protocol.TProtocol oprot) throws libthrift091.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getAppInfo_args(");
boolean first = true;
sb.append("appId:");
if (this.appId == null) {
sb.append("null");
} else {
sb.append(this.appId);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws libthrift091.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(out)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(in)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private static class getAppInfo_argsStandardSchemeFactory implements SchemeFactory {
public getAppInfo_argsStandardScheme getScheme() {
return new getAppInfo_argsStandardScheme();
}
}
private static class getAppInfo_argsStandardScheme extends StandardScheme {
public void read(libthrift091.protocol.TProtocol iprot, getAppInfo_args struct) throws libthrift091.TException {
libthrift091.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == libthrift091.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // APP_ID
if (schemeField.type == libthrift091.protocol.TType.STRING) {
struct.appId = iprot.readString();
struct.setAppIdIsSet(true);
} else {
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(libthrift091.protocol.TProtocol oprot, getAppInfo_args struct) throws libthrift091.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.appId != null) {
oprot.writeFieldBegin(APP_ID_FIELD_DESC);
oprot.writeString(struct.appId);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getAppInfo_argsTupleSchemeFactory implements SchemeFactory {
public getAppInfo_argsTupleScheme getScheme() {
return new getAppInfo_argsTupleScheme();
}
}
private static class getAppInfo_argsTupleScheme extends TupleScheme {
@Override
public void write(libthrift091.protocol.TProtocol prot, getAppInfo_args struct) throws libthrift091.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetAppId()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetAppId()) {
oprot.writeString(struct.appId);
}
}
@Override
public void read(libthrift091.protocol.TProtocol prot, getAppInfo_args struct) throws libthrift091.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.appId = iprot.readString();
struct.setAppIdIsSet(true);
}
}
}
}
public static class getAppInfo_result implements libthrift091.TBase, java.io.Serializable, Cloneable, Comparable {
private static final libthrift091.protocol.TStruct STRUCT_DESC = new libthrift091.protocol.TStruct("getAppInfo_result");
private static final libthrift091.protocol.TField SUCCESS_FIELD_DESC = new libthrift091.protocol.TField("success", libthrift091.protocol.TType.STRUCT, (short)0);
private static final libthrift091.protocol.TField SE_FIELD_DESC = new libthrift091.protocol.TField("se", libthrift091.protocol.TType.STRUCT, (short)1);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getAppInfo_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getAppInfo_resultTupleSchemeFactory());
}
public AppInfo success; // required
public com.xiaomi.infra.galaxy.sds.thrift.ServiceException se; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements libthrift091.TFieldIdEnum {
SUCCESS((short)0, "success"),
SE((short)1, "se");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // SE
return SE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, libthrift091.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, libthrift091.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, libthrift091.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new libthrift091.meta_data.FieldMetaData("success", libthrift091.TFieldRequirementType.DEFAULT,
new libthrift091.meta_data.StructMetaData(libthrift091.protocol.TType.STRUCT, AppInfo.class)));
tmpMap.put(_Fields.SE, new libthrift091.meta_data.FieldMetaData("se", libthrift091.TFieldRequirementType.DEFAULT,
new libthrift091.meta_data.FieldValueMetaData(libthrift091.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
libthrift091.meta_data.FieldMetaData.addStructMetaDataMap(getAppInfo_result.class, metaDataMap);
}
public getAppInfo_result() {
}
public getAppInfo_result(
AppInfo success,
com.xiaomi.infra.galaxy.sds.thrift.ServiceException se)
{
this();
this.success = success;
this.se = se;
}
/**
* Performs a deep copy on other .
*/
public getAppInfo_result(getAppInfo_result other) {
if (other.isSetSuccess()) {
this.success = new AppInfo(other.success);
}
if (other.isSetSe()) {
this.se = new com.xiaomi.infra.galaxy.sds.thrift.ServiceException(other.se);
}
}
public getAppInfo_result deepCopy() {
return new getAppInfo_result(this);
}
@Override
public void clear() {
this.success = null;
this.se = null;
}
public AppInfo getSuccess() {
return this.success;
}
public getAppInfo_result setSuccess(AppInfo success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public com.xiaomi.infra.galaxy.sds.thrift.ServiceException getSe() {
return this.se;
}
public getAppInfo_result setSe(com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
this.se = se;
return this;
}
public void unsetSe() {
this.se = null;
}
/** Returns true if field se is set (has been assigned a value) and false otherwise */
public boolean isSetSe() {
return this.se != null;
}
public void setSeIsSet(boolean value) {
if (!value) {
this.se = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((AppInfo)value);
}
break;
case SE:
if (value == null) {
unsetSe();
} else {
setSe((com.xiaomi.infra.galaxy.sds.thrift.ServiceException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case SE:
return getSe();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case SE:
return isSetSe();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof getAppInfo_result)
return this.equals((getAppInfo_result)that);
return false;
}
public boolean equals(getAppInfo_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
boolean this_present_se = true && this.isSetSe();
boolean that_present_se = true && that.isSetSe();
if (this_present_se || that_present_se) {
if (!(this_present_se && that_present_se))
return false;
if (!this.se.equals(that.se))
return false;
}
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_se = true && (isSetSe());
list.add(present_se);
if (present_se)
list.add(se);
return list.hashCode();
}
@Override
public int compareTo(getAppInfo_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = libthrift091.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetSe()).compareTo(other.isSetSe());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSe()) {
lastComparison = libthrift091.TBaseHelper.compareTo(this.se, other.se);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(libthrift091.protocol.TProtocol iprot) throws libthrift091.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(libthrift091.protocol.TProtocol oprot) throws libthrift091.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("getAppInfo_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("se:");
if (this.se == null) {
sb.append("null");
} else {
sb.append(this.se);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws libthrift091.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(out)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(in)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private static class getAppInfo_resultStandardSchemeFactory implements SchemeFactory {
public getAppInfo_resultStandardScheme getScheme() {
return new getAppInfo_resultStandardScheme();
}
}
private static class getAppInfo_resultStandardScheme extends StandardScheme {
public void read(libthrift091.protocol.TProtocol iprot, getAppInfo_result struct) throws libthrift091.TException {
libthrift091.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == libthrift091.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == libthrift091.protocol.TType.STRUCT) {
struct.success = new AppInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // SE
if (schemeField.type == libthrift091.protocol.TType.STRUCT) {
struct.se = new com.xiaomi.infra.galaxy.sds.thrift.ServiceException();
struct.se.read(iprot);
struct.setSeIsSet(true);
} else {
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(libthrift091.protocol.TProtocol oprot, getAppInfo_result struct) throws libthrift091.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.se != null) {
oprot.writeFieldBegin(SE_FIELD_DESC);
struct.se.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class getAppInfo_resultTupleSchemeFactory implements SchemeFactory {
public getAppInfo_resultTupleScheme getScheme() {
return new getAppInfo_resultTupleScheme();
}
}
private static class getAppInfo_resultTupleScheme extends TupleScheme {
@Override
public void write(libthrift091.protocol.TProtocol prot, getAppInfo_result struct) throws libthrift091.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetSe()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetSe()) {
struct.se.write(oprot);
}
}
@Override
public void read(libthrift091.protocol.TProtocol prot, getAppInfo_result struct) throws libthrift091.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new AppInfo();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.se = new com.xiaomi.infra.galaxy.sds.thrift.ServiceException();
struct.se.read(iprot);
struct.setSeIsSet(true);
}
}
}
}
public static class findAllApps_args implements libthrift091.TBase, java.io.Serializable, Cloneable, Comparable {
private static final libthrift091.protocol.TStruct STRUCT_DESC = new libthrift091.protocol.TStruct("findAllApps_args");
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findAllApps_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new findAllApps_argsTupleSchemeFactory());
}
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements libthrift091.TFieldIdEnum {
;
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
public static final Map<_Fields, libthrift091.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, libthrift091.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, libthrift091.meta_data.FieldMetaData>(_Fields.class);
metaDataMap = Collections.unmodifiableMap(tmpMap);
libthrift091.meta_data.FieldMetaData.addStructMetaDataMap(findAllApps_args.class, metaDataMap);
}
public findAllApps_args() {
}
/**
* Performs a deep copy on other .
*/
public findAllApps_args(findAllApps_args other) {
}
public findAllApps_args deepCopy() {
return new findAllApps_args(this);
}
@Override
public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof findAllApps_args)
return this.equals((findAllApps_args)that);
return false;
}
public boolean equals(findAllApps_args that) {
if (that == null)
return false;
return true;
}
@Override
public int hashCode() {
List list = new ArrayList();
return list.hashCode();
}
@Override
public int compareTo(findAllApps_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(libthrift091.protocol.TProtocol iprot) throws libthrift091.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(libthrift091.protocol.TProtocol oprot) throws libthrift091.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("findAllApps_args(");
boolean first = true;
sb.append(")");
return sb.toString();
}
public void validate() throws libthrift091.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(out)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new libthrift091.protocol.TCompactProtocol(new libthrift091.transport.TIOStreamTransport(in)));
} catch (libthrift091.TException te) {
throw new java.io.IOException(te);
}
}
private static class findAllApps_argsStandardSchemeFactory implements SchemeFactory {
public findAllApps_argsStandardScheme getScheme() {
return new findAllApps_argsStandardScheme();
}
}
private static class findAllApps_argsStandardScheme extends StandardScheme {
public void read(libthrift091.protocol.TProtocol iprot, findAllApps_args struct) throws libthrift091.TException {
libthrift091.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == libthrift091.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
default:
libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(libthrift091.protocol.TProtocol oprot, findAllApps_args struct) throws libthrift091.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class findAllApps_argsTupleSchemeFactory implements SchemeFactory {
public findAllApps_argsTupleScheme getScheme() {
return new findAllApps_argsTupleScheme();
}
}
private static class findAllApps_argsTupleScheme extends TupleScheme {
@Override
public void write(libthrift091.protocol.TProtocol prot, findAllApps_args struct) throws libthrift091.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
}
@Override
public void read(libthrift091.protocol.TProtocol prot, findAllApps_args struct) throws libthrift091.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
}
}
}
public static class findAllApps_result implements libthrift091.TBase, java.io.Serializable, Cloneable, Comparable