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 = "2016-8-10")
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;
/**
* 创建表
*
* @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
* @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;
/**
* 获取表空间大小
*
* @param tableName
*/
public long getTableSize(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 上传客户端metrics
*
* @param clientMetrics
*/
public void putClientMetrics(ClientMetrics clientMetrics) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 添加关注电话
*
* @param phoneNumber
* @param spaceId
*/
public void subscribePhoneAlert(String phoneNumber, String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 取消关注电话
*
* @param phoneNumber
* @param spaceId
*/
public void unsubscribePhoneAlert(String phoneNumber, String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 添加关注邮箱
*
* @param email
* @param spaceId
*/
public void subscribeEmailAlert(String email, String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 取消关注邮箱
*
* @param email
* @param spaceId
*/
public void unsubscribeEmailAlert(String email, String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 查看所有关注电话
*
* @param spaceId
*/
public List listSubscribedPhone(String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 查看所有关注邮箱地址
*
* @param spaceId
*/
public List listSubscribedEmail(String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 获取表空间历史大小
*
* @param tableName
* @param startDate
* @param stopDate
*/
public Map getTableHistorySize(String tableName, long startDate, long stopDate) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 表重命名
*
* @param srcName
* @param destName
*/
public void renameTable(String srcName, String destName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 查询表的所有snapshot
*
* @param tableName
*/
public TableSnapshots listSnapshots(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 生成表快照
*
* @param tableName
* @param snapshotName
*/
public void snapshotTable(String tableName, String snapshotName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 删除某个快照
*
* @param tableName
* @param snapshotName
*/
public void deleteSnapshot(String tableName, String snapshotName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 从快照恢复表
*
* @param tableName
* @param snapshotName
* @param destTableName
* @param isSystem
*/
public void restoreSnapshot(String tableName, String snapshotName, String destTableName, boolean isSystem) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 列出用户的所有表快照
*/
public List listAllSnapshots() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 取消生成快照
*
* @param tableName
* @param snapshotName
*/
public void cancelSnapshotTable(String tableName, String snapshotName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 查询快照状态
*
* @param tableName
* @param snapshotName
*/
public com.xiaomi.infra.galaxy.sds.thrift.SnapshotState getSnapshotState(String tableName, String snapshotName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException;
/**
* 查询用户各种quota的使用情况
*
* @param spaceId
*/
public QuotaInfo getQuotaInfo(String spaceId) 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 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 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 void getTableSize(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void putClientMetrics(ClientMetrics clientMetrics, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void subscribePhoneAlert(String phoneNumber, String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void unsubscribePhoneAlert(String phoneNumber, String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void subscribeEmailAlert(String email, String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void unsubscribeEmailAlert(String email, String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void listSubscribedPhone(String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void listSubscribedEmail(String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getTableHistorySize(String tableName, long startDate, long stopDate, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void renameTable(String srcName, String destName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void listSnapshots(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void snapshotTable(String tableName, String snapshotName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void deleteSnapshot(String tableName, String snapshotName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void restoreSnapshot(String tableName, String snapshotName, String destTableName, boolean isSystem, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void listAllSnapshots(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void cancelSnapshotTable(String tableName, String snapshotName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getSnapshotState(String tableName, String snapshotName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException;
public void getQuotaInfo(String spaceId, 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 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 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 long getTableSize(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_getTableSize(tableName);
return recv_getTableSize();
}
public void send_getTableSize(String tableName) throws libthrift091.TException
{
getTableSize_args args = new getTableSize_args();
args.setTableName(tableName);
sendBase("getTableSize", args);
}
public long recv_getTableSize() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
getTableSize_result result = new getTableSize_result();
receiveBase(result, "getTableSize");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getTableSize failed: unknown result");
}
public void putClientMetrics(ClientMetrics clientMetrics) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_putClientMetrics(clientMetrics);
recv_putClientMetrics();
}
public void send_putClientMetrics(ClientMetrics clientMetrics) throws libthrift091.TException
{
putClientMetrics_args args = new putClientMetrics_args();
args.setClientMetrics(clientMetrics);
sendBase("putClientMetrics", args);
}
public void recv_putClientMetrics() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
putClientMetrics_result result = new putClientMetrics_result();
receiveBase(result, "putClientMetrics");
if (result.se != null) {
throw result.se;
}
return;
}
public void subscribePhoneAlert(String phoneNumber, String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_subscribePhoneAlert(phoneNumber, spaceId);
recv_subscribePhoneAlert();
}
public void send_subscribePhoneAlert(String phoneNumber, String spaceId) throws libthrift091.TException
{
subscribePhoneAlert_args args = new subscribePhoneAlert_args();
args.setPhoneNumber(phoneNumber);
args.setSpaceId(spaceId);
sendBase("subscribePhoneAlert", args);
}
public void recv_subscribePhoneAlert() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
subscribePhoneAlert_result result = new subscribePhoneAlert_result();
receiveBase(result, "subscribePhoneAlert");
if (result.se != null) {
throw result.se;
}
return;
}
public void unsubscribePhoneAlert(String phoneNumber, String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_unsubscribePhoneAlert(phoneNumber, spaceId);
recv_unsubscribePhoneAlert();
}
public void send_unsubscribePhoneAlert(String phoneNumber, String spaceId) throws libthrift091.TException
{
unsubscribePhoneAlert_args args = new unsubscribePhoneAlert_args();
args.setPhoneNumber(phoneNumber);
args.setSpaceId(spaceId);
sendBase("unsubscribePhoneAlert", args);
}
public void recv_unsubscribePhoneAlert() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
unsubscribePhoneAlert_result result = new unsubscribePhoneAlert_result();
receiveBase(result, "unsubscribePhoneAlert");
if (result.se != null) {
throw result.se;
}
return;
}
public void subscribeEmailAlert(String email, String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_subscribeEmailAlert(email, spaceId);
recv_subscribeEmailAlert();
}
public void send_subscribeEmailAlert(String email, String spaceId) throws libthrift091.TException
{
subscribeEmailAlert_args args = new subscribeEmailAlert_args();
args.setEmail(email);
args.setSpaceId(spaceId);
sendBase("subscribeEmailAlert", args);
}
public void recv_subscribeEmailAlert() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
subscribeEmailAlert_result result = new subscribeEmailAlert_result();
receiveBase(result, "subscribeEmailAlert");
if (result.se != null) {
throw result.se;
}
return;
}
public void unsubscribeEmailAlert(String email, String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_unsubscribeEmailAlert(email, spaceId);
recv_unsubscribeEmailAlert();
}
public void send_unsubscribeEmailAlert(String email, String spaceId) throws libthrift091.TException
{
unsubscribeEmailAlert_args args = new unsubscribeEmailAlert_args();
args.setEmail(email);
args.setSpaceId(spaceId);
sendBase("unsubscribeEmailAlert", args);
}
public void recv_unsubscribeEmailAlert() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
unsubscribeEmailAlert_result result = new unsubscribeEmailAlert_result();
receiveBase(result, "unsubscribeEmailAlert");
if (result.se != null) {
throw result.se;
}
return;
}
public List listSubscribedPhone(String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_listSubscribedPhone(spaceId);
return recv_listSubscribedPhone();
}
public void send_listSubscribedPhone(String spaceId) throws libthrift091.TException
{
listSubscribedPhone_args args = new listSubscribedPhone_args();
args.setSpaceId(spaceId);
sendBase("listSubscribedPhone", args);
}
public List recv_listSubscribedPhone() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
listSubscribedPhone_result result = new listSubscribedPhone_result();
receiveBase(result, "listSubscribedPhone");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "listSubscribedPhone failed: unknown result");
}
public List listSubscribedEmail(String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_listSubscribedEmail(spaceId);
return recv_listSubscribedEmail();
}
public void send_listSubscribedEmail(String spaceId) throws libthrift091.TException
{
listSubscribedEmail_args args = new listSubscribedEmail_args();
args.setSpaceId(spaceId);
sendBase("listSubscribedEmail", args);
}
public List recv_listSubscribedEmail() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
listSubscribedEmail_result result = new listSubscribedEmail_result();
receiveBase(result, "listSubscribedEmail");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "listSubscribedEmail failed: unknown result");
}
public Map getTableHistorySize(String tableName, long startDate, long stopDate) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_getTableHistorySize(tableName, startDate, stopDate);
return recv_getTableHistorySize();
}
public void send_getTableHistorySize(String tableName, long startDate, long stopDate) throws libthrift091.TException
{
getTableHistorySize_args args = new getTableHistorySize_args();
args.setTableName(tableName);
args.setStartDate(startDate);
args.setStopDate(stopDate);
sendBase("getTableHistorySize", args);
}
public Map recv_getTableHistorySize() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
getTableHistorySize_result result = new getTableHistorySize_result();
receiveBase(result, "getTableHistorySize");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getTableHistorySize failed: unknown result");
}
public void renameTable(String srcName, String destName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_renameTable(srcName, destName);
recv_renameTable();
}
public void send_renameTable(String srcName, String destName) throws libthrift091.TException
{
renameTable_args args = new renameTable_args();
args.setSrcName(srcName);
args.setDestName(destName);
sendBase("renameTable", args);
}
public void recv_renameTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
renameTable_result result = new renameTable_result();
receiveBase(result, "renameTable");
if (result.se != null) {
throw result.se;
}
return;
}
public TableSnapshots listSnapshots(String tableName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_listSnapshots(tableName);
return recv_listSnapshots();
}
public void send_listSnapshots(String tableName) throws libthrift091.TException
{
listSnapshots_args args = new listSnapshots_args();
args.setTableName(tableName);
sendBase("listSnapshots", args);
}
public TableSnapshots recv_listSnapshots() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
listSnapshots_result result = new listSnapshots_result();
receiveBase(result, "listSnapshots");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "listSnapshots failed: unknown result");
}
public void snapshotTable(String tableName, String snapshotName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_snapshotTable(tableName, snapshotName);
recv_snapshotTable();
}
public void send_snapshotTable(String tableName, String snapshotName) throws libthrift091.TException
{
snapshotTable_args args = new snapshotTable_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
sendBase("snapshotTable", args);
}
public void recv_snapshotTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
snapshotTable_result result = new snapshotTable_result();
receiveBase(result, "snapshotTable");
if (result.se != null) {
throw result.se;
}
return;
}
public void deleteSnapshot(String tableName, String snapshotName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_deleteSnapshot(tableName, snapshotName);
recv_deleteSnapshot();
}
public void send_deleteSnapshot(String tableName, String snapshotName) throws libthrift091.TException
{
deleteSnapshot_args args = new deleteSnapshot_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
sendBase("deleteSnapshot", args);
}
public void recv_deleteSnapshot() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
deleteSnapshot_result result = new deleteSnapshot_result();
receiveBase(result, "deleteSnapshot");
if (result.se != null) {
throw result.se;
}
return;
}
public void restoreSnapshot(String tableName, String snapshotName, String destTableName, boolean isSystem) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_restoreSnapshot(tableName, snapshotName, destTableName, isSystem);
recv_restoreSnapshot();
}
public void send_restoreSnapshot(String tableName, String snapshotName, String destTableName, boolean isSystem) throws libthrift091.TException
{
restoreSnapshot_args args = new restoreSnapshot_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
args.setDestTableName(destTableName);
args.setIsSystem(isSystem);
sendBase("restoreSnapshot", args);
}
public void recv_restoreSnapshot() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
restoreSnapshot_result result = new restoreSnapshot_result();
receiveBase(result, "restoreSnapshot");
if (result.se != null) {
throw result.se;
}
return;
}
public List listAllSnapshots() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_listAllSnapshots();
return recv_listAllSnapshots();
}
public void send_listAllSnapshots() throws libthrift091.TException
{
listAllSnapshots_args args = new listAllSnapshots_args();
sendBase("listAllSnapshots", args);
}
public List recv_listAllSnapshots() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
listAllSnapshots_result result = new listAllSnapshots_result();
receiveBase(result, "listAllSnapshots");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "listAllSnapshots failed: unknown result");
}
public void cancelSnapshotTable(String tableName, String snapshotName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_cancelSnapshotTable(tableName, snapshotName);
recv_cancelSnapshotTable();
}
public void send_cancelSnapshotTable(String tableName, String snapshotName) throws libthrift091.TException
{
cancelSnapshotTable_args args = new cancelSnapshotTable_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
sendBase("cancelSnapshotTable", args);
}
public void recv_cancelSnapshotTable() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
cancelSnapshotTable_result result = new cancelSnapshotTable_result();
receiveBase(result, "cancelSnapshotTable");
if (result.se != null) {
throw result.se;
}
return;
}
public com.xiaomi.infra.galaxy.sds.thrift.SnapshotState getSnapshotState(String tableName, String snapshotName) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_getSnapshotState(tableName, snapshotName);
return recv_getSnapshotState();
}
public void send_getSnapshotState(String tableName, String snapshotName) throws libthrift091.TException
{
getSnapshotState_args args = new getSnapshotState_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
sendBase("getSnapshotState", args);
}
public com.xiaomi.infra.galaxy.sds.thrift.SnapshotState recv_getSnapshotState() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
getSnapshotState_result result = new getSnapshotState_result();
receiveBase(result, "getSnapshotState");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getSnapshotState failed: unknown result");
}
public QuotaInfo getQuotaInfo(String spaceId) throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
send_getQuotaInfo(spaceId);
return recv_getQuotaInfo();
}
public void send_getQuotaInfo(String spaceId) throws libthrift091.TException
{
getQuotaInfo_args args = new getQuotaInfo_args();
args.setSpaceId(spaceId);
sendBase("getQuotaInfo", args);
}
public QuotaInfo recv_getQuotaInfo() throws com.xiaomi.infra.galaxy.sds.thrift.ServiceException, libthrift091.TException
{
getQuotaInfo_result result = new getQuotaInfo_result();
receiveBase(result, "getQuotaInfo");
if (result.isSetSuccess()) {
return result.success;
}
if (result.se != null) {
throw result.se;
}
throw new libthrift091.TApplicationException(libthrift091.TApplicationException.MISSING_RESULT, "getQuotaInfo 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 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 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 void getTableSize(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getTableSize_call method_call = new getTableSize_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getTableSize_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public getTableSize_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("getTableSize", libthrift091.protocol.TMessageType.CALL, 0));
getTableSize_args args = new getTableSize_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public long 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_getTableSize();
}
}
public void putClientMetrics(ClientMetrics clientMetrics, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
putClientMetrics_call method_call = new putClientMetrics_call(clientMetrics, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class putClientMetrics_call extends libthrift091.async.TAsyncMethodCall {
private ClientMetrics clientMetrics;
public putClientMetrics_call(ClientMetrics clientMetrics, 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.clientMetrics = clientMetrics;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("putClientMetrics", libthrift091.protocol.TMessageType.CALL, 0));
putClientMetrics_args args = new putClientMetrics_args();
args.setClientMetrics(clientMetrics);
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_putClientMetrics();
}
}
public void subscribePhoneAlert(String phoneNumber, String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
subscribePhoneAlert_call method_call = new subscribePhoneAlert_call(phoneNumber, spaceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class subscribePhoneAlert_call extends libthrift091.async.TAsyncMethodCall {
private String phoneNumber;
private String spaceId;
public subscribePhoneAlert_call(String phoneNumber, String spaceId, 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.phoneNumber = phoneNumber;
this.spaceId = spaceId;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("subscribePhoneAlert", libthrift091.protocol.TMessageType.CALL, 0));
subscribePhoneAlert_args args = new subscribePhoneAlert_args();
args.setPhoneNumber(phoneNumber);
args.setSpaceId(spaceId);
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_subscribePhoneAlert();
}
}
public void unsubscribePhoneAlert(String phoneNumber, String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
unsubscribePhoneAlert_call method_call = new unsubscribePhoneAlert_call(phoneNumber, spaceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class unsubscribePhoneAlert_call extends libthrift091.async.TAsyncMethodCall {
private String phoneNumber;
private String spaceId;
public unsubscribePhoneAlert_call(String phoneNumber, String spaceId, 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.phoneNumber = phoneNumber;
this.spaceId = spaceId;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("unsubscribePhoneAlert", libthrift091.protocol.TMessageType.CALL, 0));
unsubscribePhoneAlert_args args = new unsubscribePhoneAlert_args();
args.setPhoneNumber(phoneNumber);
args.setSpaceId(spaceId);
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_unsubscribePhoneAlert();
}
}
public void subscribeEmailAlert(String email, String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
subscribeEmailAlert_call method_call = new subscribeEmailAlert_call(email, spaceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class subscribeEmailAlert_call extends libthrift091.async.TAsyncMethodCall {
private String email;
private String spaceId;
public subscribeEmailAlert_call(String email, String spaceId, 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.email = email;
this.spaceId = spaceId;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("subscribeEmailAlert", libthrift091.protocol.TMessageType.CALL, 0));
subscribeEmailAlert_args args = new subscribeEmailAlert_args();
args.setEmail(email);
args.setSpaceId(spaceId);
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_subscribeEmailAlert();
}
}
public void unsubscribeEmailAlert(String email, String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
unsubscribeEmailAlert_call method_call = new unsubscribeEmailAlert_call(email, spaceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class unsubscribeEmailAlert_call extends libthrift091.async.TAsyncMethodCall {
private String email;
private String spaceId;
public unsubscribeEmailAlert_call(String email, String spaceId, 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.email = email;
this.spaceId = spaceId;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("unsubscribeEmailAlert", libthrift091.protocol.TMessageType.CALL, 0));
unsubscribeEmailAlert_args args = new unsubscribeEmailAlert_args();
args.setEmail(email);
args.setSpaceId(spaceId);
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_unsubscribeEmailAlert();
}
}
public void listSubscribedPhone(String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
listSubscribedPhone_call method_call = new listSubscribedPhone_call(spaceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class listSubscribedPhone_call extends libthrift091.async.TAsyncMethodCall {
private String spaceId;
public listSubscribedPhone_call(String spaceId, 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.spaceId = spaceId;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("listSubscribedPhone", libthrift091.protocol.TMessageType.CALL, 0));
listSubscribedPhone_args args = new listSubscribedPhone_args();
args.setSpaceId(spaceId);
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_listSubscribedPhone();
}
}
public void listSubscribedEmail(String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
listSubscribedEmail_call method_call = new listSubscribedEmail_call(spaceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class listSubscribedEmail_call extends libthrift091.async.TAsyncMethodCall {
private String spaceId;
public listSubscribedEmail_call(String spaceId, 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.spaceId = spaceId;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("listSubscribedEmail", libthrift091.protocol.TMessageType.CALL, 0));
listSubscribedEmail_args args = new listSubscribedEmail_args();
args.setSpaceId(spaceId);
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_listSubscribedEmail();
}
}
public void getTableHistorySize(String tableName, long startDate, long stopDate, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getTableHistorySize_call method_call = new getTableHistorySize_call(tableName, startDate, stopDate, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getTableHistorySize_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private long startDate;
private long stopDate;
public getTableHistorySize_call(String tableName, long startDate, long stopDate, 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.startDate = startDate;
this.stopDate = stopDate;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getTableHistorySize", libthrift091.protocol.TMessageType.CALL, 0));
getTableHistorySize_args args = new getTableHistorySize_args();
args.setTableName(tableName);
args.setStartDate(startDate);
args.setStopDate(stopDate);
args.write(prot);
prot.writeMessageEnd();
}
public Map 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_getTableHistorySize();
}
}
public void renameTable(String srcName, String destName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
renameTable_call method_call = new renameTable_call(srcName, destName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class renameTable_call extends libthrift091.async.TAsyncMethodCall {
private String srcName;
private String destName;
public renameTable_call(String srcName, String destName, 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.destName = destName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("renameTable", libthrift091.protocol.TMessageType.CALL, 0));
renameTable_args args = new renameTable_args();
args.setSrcName(srcName);
args.setDestName(destName);
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_renameTable();
}
}
public void listSnapshots(String tableName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
listSnapshots_call method_call = new listSnapshots_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class listSnapshots_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
public listSnapshots_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("listSnapshots", libthrift091.protocol.TMessageType.CALL, 0));
listSnapshots_args args = new listSnapshots_args();
args.setTableName(tableName);
args.write(prot);
prot.writeMessageEnd();
}
public TableSnapshots 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_listSnapshots();
}
}
public void snapshotTable(String tableName, String snapshotName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
snapshotTable_call method_call = new snapshotTable_call(tableName, snapshotName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class snapshotTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private String snapshotName;
public snapshotTable_call(String tableName, String snapshotName, 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.snapshotName = snapshotName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("snapshotTable", libthrift091.protocol.TMessageType.CALL, 0));
snapshotTable_args args = new snapshotTable_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
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_snapshotTable();
}
}
public void deleteSnapshot(String tableName, String snapshotName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
deleteSnapshot_call method_call = new deleteSnapshot_call(tableName, snapshotName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class deleteSnapshot_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private String snapshotName;
public deleteSnapshot_call(String tableName, String snapshotName, 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.snapshotName = snapshotName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("deleteSnapshot", libthrift091.protocol.TMessageType.CALL, 0));
deleteSnapshot_args args = new deleteSnapshot_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
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_deleteSnapshot();
}
}
public void restoreSnapshot(String tableName, String snapshotName, String destTableName, boolean isSystem, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
restoreSnapshot_call method_call = new restoreSnapshot_call(tableName, snapshotName, destTableName, isSystem, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class restoreSnapshot_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private String snapshotName;
private String destTableName;
private boolean isSystem;
public restoreSnapshot_call(String tableName, String snapshotName, String destTableName, boolean isSystem, 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.snapshotName = snapshotName;
this.destTableName = destTableName;
this.isSystem = isSystem;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("restoreSnapshot", libthrift091.protocol.TMessageType.CALL, 0));
restoreSnapshot_args args = new restoreSnapshot_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
args.setDestTableName(destTableName);
args.setIsSystem(isSystem);
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_restoreSnapshot();
}
}
public void listAllSnapshots(libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
listAllSnapshots_call method_call = new listAllSnapshots_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class listAllSnapshots_call extends libthrift091.async.TAsyncMethodCall {
public listAllSnapshots_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("listAllSnapshots", libthrift091.protocol.TMessageType.CALL, 0));
listAllSnapshots_args args = new listAllSnapshots_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_listAllSnapshots();
}
}
public void cancelSnapshotTable(String tableName, String snapshotName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
cancelSnapshotTable_call method_call = new cancelSnapshotTable_call(tableName, snapshotName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class cancelSnapshotTable_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private String snapshotName;
public cancelSnapshotTable_call(String tableName, String snapshotName, 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.snapshotName = snapshotName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("cancelSnapshotTable", libthrift091.protocol.TMessageType.CALL, 0));
cancelSnapshotTable_args args = new cancelSnapshotTable_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
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_cancelSnapshotTable();
}
}
public void getSnapshotState(String tableName, String snapshotName, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getSnapshotState_call method_call = new getSnapshotState_call(tableName, snapshotName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getSnapshotState_call extends libthrift091.async.TAsyncMethodCall {
private String tableName;
private String snapshotName;
public getSnapshotState_call(String tableName, String snapshotName, 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.snapshotName = snapshotName;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getSnapshotState", libthrift091.protocol.TMessageType.CALL, 0));
getSnapshotState_args args = new getSnapshotState_args();
args.setTableName(tableName);
args.setSnapshotName(snapshotName);
args.write(prot);
prot.writeMessageEnd();
}
public com.xiaomi.infra.galaxy.sds.thrift.SnapshotState 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_getSnapshotState();
}
}
public void getQuotaInfo(String spaceId, libthrift091.async.AsyncMethodCallback resultHandler) throws libthrift091.TException {
checkReady();
getQuotaInfo_call method_call = new getQuotaInfo_call(spaceId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class getQuotaInfo_call extends libthrift091.async.TAsyncMethodCall {
private String spaceId;
public getQuotaInfo_call(String spaceId, 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.spaceId = spaceId;
}
public void write_args(libthrift091.protocol.TProtocol prot) throws libthrift091.TException {
prot.writeMessageBegin(new libthrift091.protocol.TMessage("getQuotaInfo", libthrift091.protocol.TMessageType.CALL, 0));
getQuotaInfo_args args = new getQuotaInfo_args();
args.setSpaceId(spaceId);
args.write(prot);
prot.writeMessageEnd();
}
public QuotaInfo 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_getQuotaInfo();
}
}
}
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("createTable", new createTable());
processMap.put("dropTable", new dropTable());
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());
processMap.put("getTableSize", new getTableSize());
processMap.put("putClientMetrics", new putClientMetrics());
processMap.put("subscribePhoneAlert", new subscribePhoneAlert());
processMap.put("unsubscribePhoneAlert", new unsubscribePhoneAlert());
processMap.put("subscribeEmailAlert", new subscribeEmailAlert());
processMap.put("unsubscribeEmailAlert", new unsubscribeEmailAlert());
processMap.put("listSubscribedPhone", new listSubscribedPhone());
processMap.put("listSubscribedEmail", new listSubscribedEmail());
processMap.put("getTableHistorySize", new getTableHistorySize());
processMap.put("renameTable", new renameTable());
processMap.put("listSnapshots", new listSnapshots());
processMap.put("snapshotTable", new snapshotTable());
processMap.put("deleteSnapshot", new deleteSnapshot());
processMap.put("restoreSnapshot", new restoreSnapshot());
processMap.put("listAllSnapshots", new listAllSnapshots());
processMap.put("cancelSnapshotTable", new cancelSnapshotTable());
processMap.put("getSnapshotState", new getSnapshotState());
processMap.put("getQuotaInfo", new getQuotaInfo());
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 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 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 getTableSize extends libthrift091.ProcessFunction {
public getTableSize() {
super("getTableSize");
}
public getTableSize_args getEmptyArgsInstance() {
return new getTableSize_args();
}
protected boolean isOneway() {
return false;
}
public getTableSize_result getResult(I iface, getTableSize_args args) throws libthrift091.TException {
getTableSize_result result = new getTableSize_result();
try {
result.success = iface.getTableSize(args.tableName);
result.setSuccessIsSet(true);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class putClientMetrics extends libthrift091.ProcessFunction {
public putClientMetrics() {
super("putClientMetrics");
}
public putClientMetrics_args getEmptyArgsInstance() {
return new putClientMetrics_args();
}
protected boolean isOneway() {
return false;
}
public putClientMetrics_result getResult(I iface, putClientMetrics_args args) throws libthrift091.TException {
putClientMetrics_result result = new putClientMetrics_result();
try {
iface.putClientMetrics(args.clientMetrics);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class subscribePhoneAlert extends libthrift091.ProcessFunction {
public subscribePhoneAlert() {
super("subscribePhoneAlert");
}
public subscribePhoneAlert_args getEmptyArgsInstance() {
return new subscribePhoneAlert_args();
}
protected boolean isOneway() {
return false;
}
public subscribePhoneAlert_result getResult(I iface, subscribePhoneAlert_args args) throws libthrift091.TException {
subscribePhoneAlert_result result = new subscribePhoneAlert_result();
try {
iface.subscribePhoneAlert(args.phoneNumber, args.spaceId);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class unsubscribePhoneAlert extends libthrift091.ProcessFunction {
public unsubscribePhoneAlert() {
super("unsubscribePhoneAlert");
}
public unsubscribePhoneAlert_args getEmptyArgsInstance() {
return new unsubscribePhoneAlert_args();
}
protected boolean isOneway() {
return false;
}
public unsubscribePhoneAlert_result getResult(I iface, unsubscribePhoneAlert_args args) throws libthrift091.TException {
unsubscribePhoneAlert_result result = new unsubscribePhoneAlert_result();
try {
iface.unsubscribePhoneAlert(args.phoneNumber, args.spaceId);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class subscribeEmailAlert extends libthrift091.ProcessFunction {
public subscribeEmailAlert() {
super("subscribeEmailAlert");
}
public subscribeEmailAlert_args getEmptyArgsInstance() {
return new subscribeEmailAlert_args();
}
protected boolean isOneway() {
return false;
}
public subscribeEmailAlert_result getResult(I iface, subscribeEmailAlert_args args) throws libthrift091.TException {
subscribeEmailAlert_result result = new subscribeEmailAlert_result();
try {
iface.subscribeEmailAlert(args.email, args.spaceId);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class unsubscribeEmailAlert extends libthrift091.ProcessFunction {
public unsubscribeEmailAlert() {
super("unsubscribeEmailAlert");
}
public unsubscribeEmailAlert_args getEmptyArgsInstance() {
return new unsubscribeEmailAlert_args();
}
protected boolean isOneway() {
return false;
}
public unsubscribeEmailAlert_result getResult(I iface, unsubscribeEmailAlert_args args) throws libthrift091.TException {
unsubscribeEmailAlert_result result = new unsubscribeEmailAlert_result();
try {
iface.unsubscribeEmailAlert(args.email, args.spaceId);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class listSubscribedPhone extends libthrift091.ProcessFunction {
public listSubscribedPhone() {
super("listSubscribedPhone");
}
public listSubscribedPhone_args getEmptyArgsInstance() {
return new listSubscribedPhone_args();
}
protected boolean isOneway() {
return false;
}
public listSubscribedPhone_result getResult(I iface, listSubscribedPhone_args args) throws libthrift091.TException {
listSubscribedPhone_result result = new listSubscribedPhone_result();
try {
result.success = iface.listSubscribedPhone(args.spaceId);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class listSubscribedEmail extends libthrift091.ProcessFunction {
public listSubscribedEmail() {
super("listSubscribedEmail");
}
public listSubscribedEmail_args getEmptyArgsInstance() {
return new listSubscribedEmail_args();
}
protected boolean isOneway() {
return false;
}
public listSubscribedEmail_result getResult(I iface, listSubscribedEmail_args args) throws libthrift091.TException {
listSubscribedEmail_result result = new listSubscribedEmail_result();
try {
result.success = iface.listSubscribedEmail(args.spaceId);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class getTableHistorySize extends libthrift091.ProcessFunction {
public getTableHistorySize() {
super("getTableHistorySize");
}
public getTableHistorySize_args getEmptyArgsInstance() {
return new getTableHistorySize_args();
}
protected boolean isOneway() {
return false;
}
public getTableHistorySize_result getResult(I iface, getTableHistorySize_args args) throws libthrift091.TException {
getTableHistorySize_result result = new getTableHistorySize_result();
try {
result.success = iface.getTableHistorySize(args.tableName, args.startDate, args.stopDate);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class renameTable extends libthrift091.ProcessFunction {
public renameTable() {
super("renameTable");
}
public renameTable_args getEmptyArgsInstance() {
return new renameTable_args();
}
protected boolean isOneway() {
return false;
}
public renameTable_result getResult(I iface, renameTable_args args) throws libthrift091.TException {
renameTable_result result = new renameTable_result();
try {
iface.renameTable(args.srcName, args.destName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class listSnapshots extends libthrift091.ProcessFunction {
public listSnapshots() {
super("listSnapshots");
}
public listSnapshots_args getEmptyArgsInstance() {
return new listSnapshots_args();
}
protected boolean isOneway() {
return false;
}
public listSnapshots_result getResult(I iface, listSnapshots_args args) throws libthrift091.TException {
listSnapshots_result result = new listSnapshots_result();
try {
result.success = iface.listSnapshots(args.tableName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class snapshotTable extends libthrift091.ProcessFunction {
public snapshotTable() {
super("snapshotTable");
}
public snapshotTable_args getEmptyArgsInstance() {
return new snapshotTable_args();
}
protected boolean isOneway() {
return false;
}
public snapshotTable_result getResult(I iface, snapshotTable_args args) throws libthrift091.TException {
snapshotTable_result result = new snapshotTable_result();
try {
iface.snapshotTable(args.tableName, args.snapshotName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class deleteSnapshot extends libthrift091.ProcessFunction {
public deleteSnapshot() {
super("deleteSnapshot");
}
public deleteSnapshot_args getEmptyArgsInstance() {
return new deleteSnapshot_args();
}
protected boolean isOneway() {
return false;
}
public deleteSnapshot_result getResult(I iface, deleteSnapshot_args args) throws libthrift091.TException {
deleteSnapshot_result result = new deleteSnapshot_result();
try {
iface.deleteSnapshot(args.tableName, args.snapshotName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class restoreSnapshot extends libthrift091.ProcessFunction {
public restoreSnapshot() {
super("restoreSnapshot");
}
public restoreSnapshot_args getEmptyArgsInstance() {
return new restoreSnapshot_args();
}
protected boolean isOneway() {
return false;
}
public restoreSnapshot_result getResult(I iface, restoreSnapshot_args args) throws libthrift091.TException {
restoreSnapshot_result result = new restoreSnapshot_result();
try {
iface.restoreSnapshot(args.tableName, args.snapshotName, args.destTableName, args.isSystem);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class listAllSnapshots extends libthrift091.ProcessFunction {
public listAllSnapshots() {
super("listAllSnapshots");
}
public listAllSnapshots_args getEmptyArgsInstance() {
return new listAllSnapshots_args();
}
protected boolean isOneway() {
return false;
}
public listAllSnapshots_result getResult(I iface, listAllSnapshots_args args) throws libthrift091.TException {
listAllSnapshots_result result = new listAllSnapshots_result();
try {
result.success = iface.listAllSnapshots();
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class cancelSnapshotTable extends libthrift091.ProcessFunction {
public cancelSnapshotTable() {
super("cancelSnapshotTable");
}
public cancelSnapshotTable_args getEmptyArgsInstance() {
return new cancelSnapshotTable_args();
}
protected boolean isOneway() {
return false;
}
public cancelSnapshotTable_result getResult(I iface, cancelSnapshotTable_args args) throws libthrift091.TException {
cancelSnapshotTable_result result = new cancelSnapshotTable_result();
try {
iface.cancelSnapshotTable(args.tableName, args.snapshotName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class getSnapshotState extends libthrift091.ProcessFunction {
public getSnapshotState() {
super("getSnapshotState");
}
public getSnapshotState_args getEmptyArgsInstance() {
return new getSnapshotState_args();
}
protected boolean isOneway() {
return false;
}
public getSnapshotState_result getResult(I iface, getSnapshotState_args args) throws libthrift091.TException {
getSnapshotState_result result = new getSnapshotState_result();
try {
result.success = iface.getSnapshotState(args.tableName, args.snapshotName);
} catch (com.xiaomi.infra.galaxy.sds.thrift.ServiceException se) {
result.se = se;
}
return result;
}
}
public static class getQuotaInfo extends libthrift091.ProcessFunction {
public getQuotaInfo() {
super("getQuotaInfo");
}
public getQuotaInfo_args getEmptyArgsInstance() {
return new getQuotaInfo_args();
}
protected boolean isOneway() {
return false;
}
public getQuotaInfo_result getResult(I iface, getQuotaInfo_args args) throws libthrift091.TException {
getQuotaInfo_result result = new getQuotaInfo_result();
try {
result.success = iface.getQuotaInfo(args.spaceId);
} 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("createTable", new createTable());
processMap.put("dropTable", new dropTable());
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());
processMap.put("getTableSize", new getTableSize());
processMap.put("putClientMetrics", new putClientMetrics());
processMap.put("subscribePhoneAlert", new subscribePhoneAlert());
processMap.put("unsubscribePhoneAlert", new unsubscribePhoneAlert());
processMap.put("subscribeEmailAlert", new subscribeEmailAlert());
processMap.put("unsubscribeEmailAlert", new unsubscribeEmailAlert());
processMap.put("listSubscribedPhone", new listSubscribedPhone());
processMap.put("listSubscribedEmail", new listSubscribedEmail());
processMap.put("getTableHistorySize", new getTableHistorySize());
processMap.put("renameTable", new renameTable());
processMap.put("listSnapshots", new listSnapshots());
processMap.put("snapshotTable", new snapshotTable());
processMap.put("deleteSnapshot", new deleteSnapshot());
processMap.put("restoreSnapshot", new restoreSnapshot());
processMap.put("listAllSnapshots", new listAllSnapshots());
processMap.put("cancelSnapshotTable", new cancelSnapshotTable());
processMap.put("getSnapshotState", new getSnapshotState());
processMap.put("getQuotaInfo", new getQuotaInfo());
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 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 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 getTableSize extends libthrift091.AsyncProcessFunction {
public getTableSize() {
super("getTableSize");
}
public getTableSize_args getEmptyArgsInstance() {
return new getTableSize_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Long o) {
getTableSize_result result = new getTableSize_result();
result.success = o;
result.setSuccessIsSet(true);
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;
getTableSize_result result = new getTableSize_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, getTableSize_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.getTableSize(args.tableName,resultHandler);
}
}
public static class putClientMetrics extends libthrift091.AsyncProcessFunction {
public putClientMetrics() {
super("putClientMetrics");
}
public putClientMetrics_args getEmptyArgsInstance() {
return new putClientMetrics_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
putClientMetrics_result result = new putClientMetrics_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;
putClientMetrics_result result = new putClientMetrics_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, putClientMetrics_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.putClientMetrics(args.clientMetrics,resultHandler);
}
}
public static class subscribePhoneAlert extends libthrift091.AsyncProcessFunction {
public subscribePhoneAlert() {
super("subscribePhoneAlert");
}
public subscribePhoneAlert_args getEmptyArgsInstance() {
return new subscribePhoneAlert_args();
}
public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final libthrift091.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback() {
public void onComplete(Void o) {
subscribePhoneAlert_result result = new subscribePhoneAlert_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;
subscribePhoneAlert_result result = new subscribePhoneAlert_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, subscribePhoneAlert_args args, libthrift091.async.AsyncMethodCallback resultHandler) throws TException {
iface.subscribePhoneAlert(args.phoneNumber, args.spaceId,resultHandler);
}
}
public static class unsubscribePhoneAlert extends libthrift091.AsyncProcessFunction {
public unsubscribePhoneAlert() {
super("unsubscribePhoneAlert");
}
public unsubscribePhoneAlert_args getEmptyArgsInstance() {
return new unsubscribePhoneAlert_args();
}
public AsyncMethodCallback