From a5dff98bca587fa86db26344dcd8eff7fdee4f5f Mon Sep 17 00:00:00 2001 From: Tangyanzhao Date: Wed, 23 Dec 2020 00:44:41 +0800 Subject: [PATCH 1/2] update rpc --- .../serialization_helper/dsn.layer2_types.h | 854 +- include/dsn/dist/failure_detector/fd_types.h | 323 +- .../dsn/dist/replication/replication_types.h | 11224 +++--- src/common/replication_types.cpp | 32964 ++++++++-------- src/remote_cmd/command_types.cpp | 221 +- src/remote_cmd/command_types.h | 82 +- src/replica/replica_stub.cpp | 111 +- src/replication.thrift | 4 +- src/runtime/dsn.layer2_types.cpp | 2237 +- src/runtime/security/security_types.cpp | 443 +- src/runtime/security/security_types.h | 184 +- 11 files changed, 23855 insertions(+), 24792 deletions(-) diff --git a/include/dsn/cpp/serialization_helper/dsn.layer2_types.h b/include/dsn/cpp/serialization_helper/dsn.layer2_types.h index 6ba23da9a1..d6b581816c 100644 --- a/include/dsn/cpp/serialization_helper/dsn.layer2_types.h +++ b/include/dsn/cpp/serialization_helper/dsn.layer2_types.h @@ -17,24 +17,23 @@ #include + namespace dsn { -struct app_status -{ - enum type - { - AS_INVALID = 0, - AS_AVAILABLE = 1, - AS_CREATING = 2, - AS_CREATE_FAILED = 3, - AS_DROPPING = 4, - AS_DROP_FAILED = 5, - AS_DROPPED = 6, - AS_RECALLING = 7 - }; +struct app_status { + enum type { + AS_INVALID = 0, + AS_AVAILABLE = 1, + AS_CREATING = 2, + AS_CREATE_FAILED = 3, + AS_DROPPING = 4, + AS_DROP_FAILED = 5, + AS_DROPPED = 6, + AS_RECALLING = 7 + }; }; -extern const std::map _app_status_VALUES_TO_NAMES; +extern const std::map _app_status_VALUES_TO_NAMES; class partition_configuration; @@ -46,491 +45,434 @@ class app_info; class thrift_request_meta_v1; -typedef struct _partition_configuration__isset -{ - _partition_configuration__isset() - : pid(false), - ballot(false), - max_replica_count(false), - primary(false), - secondaries(false), - last_drops(false), - last_committed_decree(false), - partition_flags(false) - { - } - bool pid : 1; - bool ballot : 1; - bool max_replica_count : 1; - bool primary : 1; - bool secondaries : 1; - bool last_drops : 1; - bool last_committed_decree : 1; - bool partition_flags : 1; +typedef struct _partition_configuration__isset { + _partition_configuration__isset() : pid(false), ballot(false), max_replica_count(false), primary(false), secondaries(false), last_drops(false), last_committed_decree(false), partition_flags(false) {} + bool pid :1; + bool ballot :1; + bool max_replica_count :1; + bool primary :1; + bool secondaries :1; + bool last_drops :1; + bool last_committed_decree :1; + bool partition_flags :1; } _partition_configuration__isset; -class partition_configuration -{ -public: - partition_configuration(const partition_configuration &); - partition_configuration(partition_configuration &&); - partition_configuration &operator=(const partition_configuration &); - partition_configuration &operator=(partition_configuration &&); - partition_configuration() - : ballot(0), max_replica_count(0), last_committed_decree(0), partition_flags(0) - { - } - - virtual ~partition_configuration() throw(); - ::dsn::gpid pid; - int64_t ballot; - int32_t max_replica_count; - ::dsn::rpc_address primary; - std::vector<::dsn::rpc_address> secondaries; - std::vector<::dsn::rpc_address> last_drops; - int64_t last_committed_decree; - int32_t partition_flags; - - _partition_configuration__isset __isset; - - void __set_pid(const ::dsn::gpid &val); - - void __set_ballot(const int64_t val); - - void __set_max_replica_count(const int32_t val); - - void __set_primary(const ::dsn::rpc_address &val); - - void __set_secondaries(const std::vector<::dsn::rpc_address> &val); - - void __set_last_drops(const std::vector<::dsn::rpc_address> &val); - - void __set_last_committed_decree(const int64_t val); - - void __set_partition_flags(const int32_t val); - - bool operator==(const partition_configuration &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(max_replica_count == rhs.max_replica_count)) - return false; - if (!(primary == rhs.primary)) - return false; - if (!(secondaries == rhs.secondaries)) - return false; - if (!(last_drops == rhs.last_drops)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(partition_flags == rhs.partition_flags)) - return false; - return true; - } - bool operator!=(const partition_configuration &rhs) const { return !(*this == rhs); } - - bool operator<(const partition_configuration &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class partition_configuration { + public: + + partition_configuration(const partition_configuration&); + partition_configuration(partition_configuration&&); + partition_configuration& operator=(const partition_configuration&); + partition_configuration& operator=(partition_configuration&&); + partition_configuration() : ballot(0), max_replica_count(0), last_committed_decree(0), partition_flags(0) { + } + + virtual ~partition_configuration() throw(); + ::dsn::gpid pid; + int64_t ballot; + int32_t max_replica_count; + ::dsn::rpc_address primary; + std::vector< ::dsn::rpc_address> secondaries; + std::vector< ::dsn::rpc_address> last_drops; + int64_t last_committed_decree; + int32_t partition_flags; + + _partition_configuration__isset __isset; + + void __set_pid(const ::dsn::gpid& val); + + void __set_ballot(const int64_t val); + + void __set_max_replica_count(const int32_t val); + + void __set_primary(const ::dsn::rpc_address& val); + + void __set_secondaries(const std::vector< ::dsn::rpc_address> & val); + + void __set_last_drops(const std::vector< ::dsn::rpc_address> & val); + + void __set_last_committed_decree(const int64_t val); + + void __set_partition_flags(const int32_t val); + + bool operator == (const partition_configuration & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(max_replica_count == rhs.max_replica_count)) + return false; + if (!(primary == rhs.primary)) + return false; + if (!(secondaries == rhs.secondaries)) + return false; + if (!(last_drops == rhs.last_drops)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(partition_flags == rhs.partition_flags)) + return false; + return true; + } + bool operator != (const partition_configuration &rhs) const { + return !(*this == rhs); + } + + bool operator < (const partition_configuration & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(partition_configuration &a, partition_configuration &b); -inline std::ostream &operator<<(std::ostream &out, const partition_configuration &obj) +inline std::ostream& operator<<(std::ostream& out, const partition_configuration& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_by_index_request__isset -{ - _configuration_query_by_index_request__isset() : app_name(false), partition_indices(false) {} - bool app_name : 1; - bool partition_indices : 1; +typedef struct _configuration_query_by_index_request__isset { + _configuration_query_by_index_request__isset() : app_name(false), partition_indices(false) {} + bool app_name :1; + bool partition_indices :1; } _configuration_query_by_index_request__isset; -class configuration_query_by_index_request -{ -public: - configuration_query_by_index_request(const configuration_query_by_index_request &); - configuration_query_by_index_request(configuration_query_by_index_request &&); - configuration_query_by_index_request &operator=(const configuration_query_by_index_request &); - configuration_query_by_index_request &operator=(configuration_query_by_index_request &&); - configuration_query_by_index_request() : app_name() {} - - virtual ~configuration_query_by_index_request() throw(); - std::string app_name; - std::vector partition_indices; - - _configuration_query_by_index_request__isset __isset; - - void __set_app_name(const std::string &val); - - void __set_partition_indices(const std::vector &val); - - bool operator==(const configuration_query_by_index_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(partition_indices == rhs.partition_indices)) - return false; - return true; - } - bool operator!=(const configuration_query_by_index_request &rhs) const - { - return !(*this == rhs); - } - - bool operator<(const configuration_query_by_index_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class configuration_query_by_index_request { + public: + + configuration_query_by_index_request(const configuration_query_by_index_request&); + configuration_query_by_index_request(configuration_query_by_index_request&&); + configuration_query_by_index_request& operator=(const configuration_query_by_index_request&); + configuration_query_by_index_request& operator=(configuration_query_by_index_request&&); + configuration_query_by_index_request() : app_name() { + } + + virtual ~configuration_query_by_index_request() throw(); + std::string app_name; + std::vector partition_indices; + + _configuration_query_by_index_request__isset __isset; + + void __set_app_name(const std::string& val); + + void __set_partition_indices(const std::vector & val); + + bool operator == (const configuration_query_by_index_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(partition_indices == rhs.partition_indices)) + return false; + return true; + } + bool operator != (const configuration_query_by_index_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_query_by_index_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_query_by_index_request &a, configuration_query_by_index_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_query_by_index_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_query_by_index_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_by_index_response__isset -{ - _configuration_query_by_index_response__isset() - : err(false), app_id(false), partition_count(false), is_stateful(false), partitions(false) - { - } - bool err : 1; - bool app_id : 1; - bool partition_count : 1; - bool is_stateful : 1; - bool partitions : 1; +typedef struct _configuration_query_by_index_response__isset { + _configuration_query_by_index_response__isset() : err(false), app_id(false), partition_count(false), is_stateful(false), partitions(false) {} + bool err :1; + bool app_id :1; + bool partition_count :1; + bool is_stateful :1; + bool partitions :1; } _configuration_query_by_index_response__isset; -class configuration_query_by_index_response -{ -public: - configuration_query_by_index_response(const configuration_query_by_index_response &); - configuration_query_by_index_response(configuration_query_by_index_response &&); - configuration_query_by_index_response &operator=(const configuration_query_by_index_response &); - configuration_query_by_index_response &operator=(configuration_query_by_index_response &&); - configuration_query_by_index_response() : app_id(0), partition_count(0), is_stateful(0) {} - - virtual ~configuration_query_by_index_response() throw(); - ::dsn::error_code err; - int32_t app_id; - int32_t partition_count; - bool is_stateful; - std::vector partitions; - - _configuration_query_by_index_response__isset __isset; - - void __set_err(const ::dsn::error_code &val); - - void __set_app_id(const int32_t val); - - void __set_partition_count(const int32_t val); - - void __set_is_stateful(const bool val); - - void __set_partitions(const std::vector &val); - - bool operator==(const configuration_query_by_index_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(app_id == rhs.app_id)) - return false; - if (!(partition_count == rhs.partition_count)) - return false; - if (!(is_stateful == rhs.is_stateful)) - return false; - if (!(partitions == rhs.partitions)) - return false; - return true; - } - bool operator!=(const configuration_query_by_index_response &rhs) const - { - return !(*this == rhs); - } - - bool operator<(const configuration_query_by_index_response &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class configuration_query_by_index_response { + public: + + configuration_query_by_index_response(const configuration_query_by_index_response&); + configuration_query_by_index_response(configuration_query_by_index_response&&); + configuration_query_by_index_response& operator=(const configuration_query_by_index_response&); + configuration_query_by_index_response& operator=(configuration_query_by_index_response&&); + configuration_query_by_index_response() : app_id(0), partition_count(0), is_stateful(0) { + } + + virtual ~configuration_query_by_index_response() throw(); + ::dsn::error_code err; + int32_t app_id; + int32_t partition_count; + bool is_stateful; + std::vector partitions; + + _configuration_query_by_index_response__isset __isset; + + void __set_err(const ::dsn::error_code& val); + + void __set_app_id(const int32_t val); + + void __set_partition_count(const int32_t val); + + void __set_is_stateful(const bool val); + + void __set_partitions(const std::vector & val); + + bool operator == (const configuration_query_by_index_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(app_id == rhs.app_id)) + return false; + if (!(partition_count == rhs.partition_count)) + return false; + if (!(is_stateful == rhs.is_stateful)) + return false; + if (!(partitions == rhs.partitions)) + return false; + return true; + } + bool operator != (const configuration_query_by_index_response &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_query_by_index_response & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_query_by_index_response &a, configuration_query_by_index_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_query_by_index_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_query_by_index_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _app_info__isset -{ - _app_info__isset() - : status(true), - app_type(false), - app_name(false), - app_id(false), - partition_count(false), - envs(false), - is_stateful(false), - max_replica_count(false), - expire_second(false), - create_second(false), - drop_second(false), - duplicating(false), - init_partition_count(true), - is_bulk_loading(true) - { - } - bool status : 1; - bool app_type : 1; - bool app_name : 1; - bool app_id : 1; - bool partition_count : 1; - bool envs : 1; - bool is_stateful : 1; - bool max_replica_count : 1; - bool expire_second : 1; - bool create_second : 1; - bool drop_second : 1; - bool duplicating : 1; - bool init_partition_count : 1; - bool is_bulk_loading : 1; +typedef struct _app_info__isset { + _app_info__isset() : status(true), app_type(false), app_name(false), app_id(false), partition_count(false), envs(false), is_stateful(false), max_replica_count(false), expire_second(false), create_second(false), drop_second(false), duplicating(false), init_partition_count(true), is_bulk_loading(true) {} + bool status :1; + bool app_type :1; + bool app_name :1; + bool app_id :1; + bool partition_count :1; + bool envs :1; + bool is_stateful :1; + bool max_replica_count :1; + bool expire_second :1; + bool create_second :1; + bool drop_second :1; + bool duplicating :1; + bool init_partition_count :1; + bool is_bulk_loading :1; } _app_info__isset; -class app_info -{ -public: - app_info(const app_info &); - app_info(app_info &&); - app_info &operator=(const app_info &); - app_info &operator=(app_info &&); - app_info() - : status((app_status::type)0), - app_type(), - app_name(), - app_id(0), - partition_count(0), - is_stateful(0), - max_replica_count(0), - expire_second(0), - create_second(0), - drop_second(0), - duplicating(0), - init_partition_count(-1), - is_bulk_loading(false) - { - status = (app_status::type)0; - } - - virtual ~app_info() throw(); - app_status::type status; - std::string app_type; - std::string app_name; - int32_t app_id; - int32_t partition_count; - std::map envs; - bool is_stateful; - int32_t max_replica_count; - int64_t expire_second; - int64_t create_second; - int64_t drop_second; - bool duplicating; - int32_t init_partition_count; - bool is_bulk_loading; - - _app_info__isset __isset; - - void __set_status(const app_status::type val); - - void __set_app_type(const std::string &val); - - void __set_app_name(const std::string &val); - - void __set_app_id(const int32_t val); - - void __set_partition_count(const int32_t val); - - void __set_envs(const std::map &val); - - void __set_is_stateful(const bool val); - - void __set_max_replica_count(const int32_t val); - - void __set_expire_second(const int64_t val); - - void __set_create_second(const int64_t val); - - void __set_drop_second(const int64_t val); - - void __set_duplicating(const bool val); - - void __set_init_partition_count(const int32_t val); - - void __set_is_bulk_loading(const bool val); - - bool operator==(const app_info &rhs) const - { - if (!(status == rhs.status)) - return false; - if (!(app_type == rhs.app_type)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(app_id == rhs.app_id)) - return false; - if (!(partition_count == rhs.partition_count)) - return false; - if (!(envs == rhs.envs)) - return false; - if (!(is_stateful == rhs.is_stateful)) - return false; - if (!(max_replica_count == rhs.max_replica_count)) - return false; - if (!(expire_second == rhs.expire_second)) - return false; - if (!(create_second == rhs.create_second)) - return false; - if (!(drop_second == rhs.drop_second)) - return false; - if (__isset.duplicating != rhs.__isset.duplicating) - return false; - else if (__isset.duplicating && !(duplicating == rhs.duplicating)) - return false; - if (!(init_partition_count == rhs.init_partition_count)) - return false; - if (__isset.is_bulk_loading != rhs.__isset.is_bulk_loading) - return false; - else if (__isset.is_bulk_loading && !(is_bulk_loading == rhs.is_bulk_loading)) - return false; - return true; - } - bool operator!=(const app_info &rhs) const { return !(*this == rhs); } - - bool operator<(const app_info &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class app_info { + public: + + app_info(const app_info&); + app_info(app_info&&); + app_info& operator=(const app_info&); + app_info& operator=(app_info&&); + app_info() : status((app_status::type)0), app_type(), app_name(), app_id(0), partition_count(0), is_stateful(0), max_replica_count(0), expire_second(0), create_second(0), drop_second(0), duplicating(0), init_partition_count(-1), is_bulk_loading(false) { + status = (app_status::type)0; + + } + + virtual ~app_info() throw(); + app_status::type status; + std::string app_type; + std::string app_name; + int32_t app_id; + int32_t partition_count; + std::map envs; + bool is_stateful; + int32_t max_replica_count; + int64_t expire_second; + int64_t create_second; + int64_t drop_second; + bool duplicating; + int32_t init_partition_count; + bool is_bulk_loading; + + _app_info__isset __isset; + + void __set_status(const app_status::type val); + + void __set_app_type(const std::string& val); + + void __set_app_name(const std::string& val); + + void __set_app_id(const int32_t val); + + void __set_partition_count(const int32_t val); + + void __set_envs(const std::map & val); + + void __set_is_stateful(const bool val); + + void __set_max_replica_count(const int32_t val); + + void __set_expire_second(const int64_t val); + + void __set_create_second(const int64_t val); + + void __set_drop_second(const int64_t val); + + void __set_duplicating(const bool val); + + void __set_init_partition_count(const int32_t val); + + void __set_is_bulk_loading(const bool val); + + bool operator == (const app_info & rhs) const + { + if (!(status == rhs.status)) + return false; + if (!(app_type == rhs.app_type)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(app_id == rhs.app_id)) + return false; + if (!(partition_count == rhs.partition_count)) + return false; + if (!(envs == rhs.envs)) + return false; + if (!(is_stateful == rhs.is_stateful)) + return false; + if (!(max_replica_count == rhs.max_replica_count)) + return false; + if (!(expire_second == rhs.expire_second)) + return false; + if (!(create_second == rhs.create_second)) + return false; + if (!(drop_second == rhs.drop_second)) + return false; + if (__isset.duplicating != rhs.__isset.duplicating) + return false; + else if (__isset.duplicating && !(duplicating == rhs.duplicating)) + return false; + if (!(init_partition_count == rhs.init_partition_count)) + return false; + if (__isset.is_bulk_loading != rhs.__isset.is_bulk_loading) + return false; + else if (__isset.is_bulk_loading && !(is_bulk_loading == rhs.is_bulk_loading)) + return false; + return true; + } + bool operator != (const app_info &rhs) const { + return !(*this == rhs); + } + + bool operator < (const app_info & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(app_info &a, app_info &b); -inline std::ostream &operator<<(std::ostream &out, const app_info &obj) +inline std::ostream& operator<<(std::ostream& out, const app_info& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _thrift_request_meta_v1__isset -{ - _thrift_request_meta_v1__isset() - : app_id(false), - partition_index(false), - client_timeout(false), - client_partition_hash(false), - is_backup_request(false) - { - } - bool app_id : 1; - bool partition_index : 1; - bool client_timeout : 1; - bool client_partition_hash : 1; - bool is_backup_request : 1; +typedef struct _thrift_request_meta_v1__isset { + _thrift_request_meta_v1__isset() : app_id(false), partition_index(false), client_timeout(false), client_partition_hash(false), is_backup_request(false) {} + bool app_id :1; + bool partition_index :1; + bool client_timeout :1; + bool client_partition_hash :1; + bool is_backup_request :1; } _thrift_request_meta_v1__isset; -class thrift_request_meta_v1 -{ -public: - thrift_request_meta_v1(const thrift_request_meta_v1 &); - thrift_request_meta_v1(thrift_request_meta_v1 &&); - thrift_request_meta_v1 &operator=(const thrift_request_meta_v1 &); - thrift_request_meta_v1 &operator=(thrift_request_meta_v1 &&); - thrift_request_meta_v1() - : app_id(0), - partition_index(0), - client_timeout(0), - client_partition_hash(0), - is_backup_request(0) - { - } - - virtual ~thrift_request_meta_v1() throw(); - int32_t app_id; - int32_t partition_index; - int32_t client_timeout; - int64_t client_partition_hash; - bool is_backup_request; - - _thrift_request_meta_v1__isset __isset; - - void __set_app_id(const int32_t val); - - void __set_partition_index(const int32_t val); - - void __set_client_timeout(const int32_t val); - - void __set_client_partition_hash(const int64_t val); - - void __set_is_backup_request(const bool val); - - bool operator==(const thrift_request_meta_v1 &rhs) const - { - if (__isset.app_id != rhs.__isset.app_id) - return false; - else if (__isset.app_id && !(app_id == rhs.app_id)) - return false; - if (__isset.partition_index != rhs.__isset.partition_index) - return false; - else if (__isset.partition_index && !(partition_index == rhs.partition_index)) - return false; - if (__isset.client_timeout != rhs.__isset.client_timeout) - return false; - else if (__isset.client_timeout && !(client_timeout == rhs.client_timeout)) - return false; - if (__isset.client_partition_hash != rhs.__isset.client_partition_hash) - return false; - else if (__isset.client_partition_hash && - !(client_partition_hash == rhs.client_partition_hash)) - return false; - if (__isset.is_backup_request != rhs.__isset.is_backup_request) - return false; - else if (__isset.is_backup_request && !(is_backup_request == rhs.is_backup_request)) - return false; - return true; - } - bool operator!=(const thrift_request_meta_v1 &rhs) const { return !(*this == rhs); } - - bool operator<(const thrift_request_meta_v1 &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class thrift_request_meta_v1 { + public: + + thrift_request_meta_v1(const thrift_request_meta_v1&); + thrift_request_meta_v1(thrift_request_meta_v1&&); + thrift_request_meta_v1& operator=(const thrift_request_meta_v1&); + thrift_request_meta_v1& operator=(thrift_request_meta_v1&&); + thrift_request_meta_v1() : app_id(0), partition_index(0), client_timeout(0), client_partition_hash(0), is_backup_request(0) { + } + + virtual ~thrift_request_meta_v1() throw(); + int32_t app_id; + int32_t partition_index; + int32_t client_timeout; + int64_t client_partition_hash; + bool is_backup_request; + + _thrift_request_meta_v1__isset __isset; + + void __set_app_id(const int32_t val); + + void __set_partition_index(const int32_t val); + + void __set_client_timeout(const int32_t val); + + void __set_client_partition_hash(const int64_t val); + + void __set_is_backup_request(const bool val); + + bool operator == (const thrift_request_meta_v1 & rhs) const + { + if (__isset.app_id != rhs.__isset.app_id) + return false; + else if (__isset.app_id && !(app_id == rhs.app_id)) + return false; + if (__isset.partition_index != rhs.__isset.partition_index) + return false; + else if (__isset.partition_index && !(partition_index == rhs.partition_index)) + return false; + if (__isset.client_timeout != rhs.__isset.client_timeout) + return false; + else if (__isset.client_timeout && !(client_timeout == rhs.client_timeout)) + return false; + if (__isset.client_partition_hash != rhs.__isset.client_partition_hash) + return false; + else if (__isset.client_partition_hash && !(client_partition_hash == rhs.client_partition_hash)) + return false; + if (__isset.is_backup_request != rhs.__isset.is_backup_request) + return false; + else if (__isset.is_backup_request && !(is_backup_request == rhs.is_backup_request)) + return false; + return true; + } + bool operator != (const thrift_request_meta_v1 &rhs) const { + return !(*this == rhs); + } + + bool operator < (const thrift_request_meta_v1 & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(thrift_request_meta_v1 &a, thrift_request_meta_v1 &b); -inline std::ostream &operator<<(std::ostream &out, const thrift_request_meta_v1 &obj) +inline std::ostream& operator<<(std::ostream& out, const thrift_request_meta_v1& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } } // namespace diff --git a/include/dsn/dist/failure_detector/fd_types.h b/include/dsn/dist/failure_detector/fd_types.h index 28625de849..23031a82de 100644 --- a/include/dsn/dist/failure_detector/fd_types.h +++ b/include/dsn/dist/failure_detector/fd_types.h @@ -17,8 +17,8 @@ #include -namespace dsn { -namespace fd { + +namespace dsn { namespace fd { class beacon_msg; @@ -26,197 +26,200 @@ class beacon_ack; class config_master_message; -typedef struct _beacon_msg__isset -{ - _beacon_msg__isset() : time(false), from_addr(false), to_addr(false), start_time(false) {} - bool time : 1; - bool from_addr : 1; - bool to_addr : 1; - bool start_time : 1; +typedef struct _beacon_msg__isset { + _beacon_msg__isset() : time(false), from_addr(false), to_addr(false), start_time(false) {} + bool time :1; + bool from_addr :1; + bool to_addr :1; + bool start_time :1; } _beacon_msg__isset; -class beacon_msg -{ -public: - beacon_msg(const beacon_msg &); - beacon_msg(beacon_msg &&); - beacon_msg &operator=(const beacon_msg &); - beacon_msg &operator=(beacon_msg &&); - beacon_msg() : time(0), start_time(0) {} - - virtual ~beacon_msg() throw(); - int64_t time; - ::dsn::rpc_address from_addr; - ::dsn::rpc_address to_addr; - int64_t start_time; - - _beacon_msg__isset __isset; - - void __set_time(const int64_t val); - - void __set_from_addr(const ::dsn::rpc_address &val); - - void __set_to_addr(const ::dsn::rpc_address &val); - - void __set_start_time(const int64_t val); - - bool operator==(const beacon_msg &rhs) const - { - if (!(time == rhs.time)) - return false; - if (!(from_addr == rhs.from_addr)) - return false; - if (!(to_addr == rhs.to_addr)) - return false; - if (__isset.start_time != rhs.__isset.start_time) - return false; - else if (__isset.start_time && !(start_time == rhs.start_time)) - return false; - return true; - } - bool operator!=(const beacon_msg &rhs) const { return !(*this == rhs); } - - bool operator<(const beacon_msg &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class beacon_msg { + public: + + beacon_msg(const beacon_msg&); + beacon_msg(beacon_msg&&); + beacon_msg& operator=(const beacon_msg&); + beacon_msg& operator=(beacon_msg&&); + beacon_msg() : time(0), start_time(0) { + } + + virtual ~beacon_msg() throw(); + int64_t time; + ::dsn::rpc_address from_addr; + ::dsn::rpc_address to_addr; + int64_t start_time; + + _beacon_msg__isset __isset; + + void __set_time(const int64_t val); + + void __set_from_addr(const ::dsn::rpc_address& val); + + void __set_to_addr(const ::dsn::rpc_address& val); + + void __set_start_time(const int64_t val); + + bool operator == (const beacon_msg & rhs) const + { + if (!(time == rhs.time)) + return false; + if (!(from_addr == rhs.from_addr)) + return false; + if (!(to_addr == rhs.to_addr)) + return false; + if (__isset.start_time != rhs.__isset.start_time) + return false; + else if (__isset.start_time && !(start_time == rhs.start_time)) + return false; + return true; + } + bool operator != (const beacon_msg &rhs) const { + return !(*this == rhs); + } + + bool operator < (const beacon_msg & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(beacon_msg &a, beacon_msg &b); -inline std::ostream &operator<<(std::ostream &out, const beacon_msg &obj) +inline std::ostream& operator<<(std::ostream& out, const beacon_msg& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _beacon_ack__isset -{ - _beacon_ack__isset() - : time(false), this_node(false), primary_node(false), is_master(false), allowed(false) - { - } - bool time : 1; - bool this_node : 1; - bool primary_node : 1; - bool is_master : 1; - bool allowed : 1; +typedef struct _beacon_ack__isset { + _beacon_ack__isset() : time(false), this_node(false), primary_node(false), is_master(false), allowed(false) {} + bool time :1; + bool this_node :1; + bool primary_node :1; + bool is_master :1; + bool allowed :1; } _beacon_ack__isset; -class beacon_ack -{ -public: - beacon_ack(const beacon_ack &); - beacon_ack(beacon_ack &&); - beacon_ack &operator=(const beacon_ack &); - beacon_ack &operator=(beacon_ack &&); - beacon_ack() : time(0), is_master(0), allowed(0) {} - - virtual ~beacon_ack() throw(); - int64_t time; - ::dsn::rpc_address this_node; - ::dsn::rpc_address primary_node; - bool is_master; - bool allowed; - - _beacon_ack__isset __isset; - - void __set_time(const int64_t val); - - void __set_this_node(const ::dsn::rpc_address &val); - - void __set_primary_node(const ::dsn::rpc_address &val); - - void __set_is_master(const bool val); - - void __set_allowed(const bool val); - - bool operator==(const beacon_ack &rhs) const - { - if (!(time == rhs.time)) - return false; - if (!(this_node == rhs.this_node)) - return false; - if (!(primary_node == rhs.primary_node)) - return false; - if (!(is_master == rhs.is_master)) - return false; - if (!(allowed == rhs.allowed)) - return false; - return true; - } - bool operator!=(const beacon_ack &rhs) const { return !(*this == rhs); } - - bool operator<(const beacon_ack &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class beacon_ack { + public: + + beacon_ack(const beacon_ack&); + beacon_ack(beacon_ack&&); + beacon_ack& operator=(const beacon_ack&); + beacon_ack& operator=(beacon_ack&&); + beacon_ack() : time(0), is_master(0), allowed(0) { + } + + virtual ~beacon_ack() throw(); + int64_t time; + ::dsn::rpc_address this_node; + ::dsn::rpc_address primary_node; + bool is_master; + bool allowed; + + _beacon_ack__isset __isset; + + void __set_time(const int64_t val); + + void __set_this_node(const ::dsn::rpc_address& val); + + void __set_primary_node(const ::dsn::rpc_address& val); + + void __set_is_master(const bool val); + + void __set_allowed(const bool val); + + bool operator == (const beacon_ack & rhs) const + { + if (!(time == rhs.time)) + return false; + if (!(this_node == rhs.this_node)) + return false; + if (!(primary_node == rhs.primary_node)) + return false; + if (!(is_master == rhs.is_master)) + return false; + if (!(allowed == rhs.allowed)) + return false; + return true; + } + bool operator != (const beacon_ack &rhs) const { + return !(*this == rhs); + } + + bool operator < (const beacon_ack & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(beacon_ack &a, beacon_ack &b); -inline std::ostream &operator<<(std::ostream &out, const beacon_ack &obj) +inline std::ostream& operator<<(std::ostream& out, const beacon_ack& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _config_master_message__isset -{ - _config_master_message__isset() : master(false), is_register(false) {} - bool master : 1; - bool is_register : 1; +typedef struct _config_master_message__isset { + _config_master_message__isset() : master(false), is_register(false) {} + bool master :1; + bool is_register :1; } _config_master_message__isset; -class config_master_message -{ -public: - config_master_message(const config_master_message &); - config_master_message(config_master_message &&); - config_master_message &operator=(const config_master_message &); - config_master_message &operator=(config_master_message &&); - config_master_message() : is_register(0) {} +class config_master_message { + public: + + config_master_message(const config_master_message&); + config_master_message(config_master_message&&); + config_master_message& operator=(const config_master_message&); + config_master_message& operator=(config_master_message&&); + config_master_message() : is_register(0) { + } - virtual ~config_master_message() throw(); - ::dsn::rpc_address master; - bool is_register; + virtual ~config_master_message() throw(); + ::dsn::rpc_address master; + bool is_register; - _config_master_message__isset __isset; + _config_master_message__isset __isset; - void __set_master(const ::dsn::rpc_address &val); + void __set_master(const ::dsn::rpc_address& val); - void __set_is_register(const bool val); + void __set_is_register(const bool val); - bool operator==(const config_master_message &rhs) const - { - if (!(master == rhs.master)) - return false; - if (!(is_register == rhs.is_register)) - return false; - return true; - } - bool operator!=(const config_master_message &rhs) const { return !(*this == rhs); } + bool operator == (const config_master_message & rhs) const + { + if (!(master == rhs.master)) + return false; + if (!(is_register == rhs.is_register)) + return false; + return true; + } + bool operator != (const config_master_message &rhs) const { + return !(*this == rhs); + } - bool operator<(const config_master_message &) const; + bool operator < (const config_master_message & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(config_master_message &a, config_master_message &b); -inline std::ostream &operator<<(std::ostream &out, const config_master_message &obj) +inline std::ostream& operator<<(std::ostream& out, const config_master_message& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -} -} // namespace + +}} // namespace #endif diff --git a/include/dsn/dist/replication/replication_types.h b/include/dsn/dist/replication/replication_types.h index eece6262a6..cb62be64dc 100644 --- a/include/dsn/dist/replication/replication_types.h +++ b/include/dsn/dist/replication/replication_types.h @@ -17,256 +17,221 @@ #include -namespace dsn { -namespace replication { -struct partition_status -{ - enum type - { - PS_INVALID = 0, - PS_INACTIVE = 1, - PS_ERROR = 2, - PS_PRIMARY = 3, - PS_SECONDARY = 4, - PS_POTENTIAL_SECONDARY = 5, - PS_PARTITION_SPLIT = 6 - }; +namespace dsn { namespace replication { + +struct partition_status { + enum type { + PS_INVALID = 0, + PS_INACTIVE = 1, + PS_ERROR = 2, + PS_PRIMARY = 3, + PS_SECONDARY = 4, + PS_POTENTIAL_SECONDARY = 5, + PS_PARTITION_SPLIT = 6 + }; }; -extern const std::map _partition_status_VALUES_TO_NAMES; +extern const std::map _partition_status_VALUES_TO_NAMES; -struct read_semantic -{ - enum type - { - ReadInvalid = 0, - ReadLastUpdate = 1, - ReadOutdated = 2, - ReadSnapshot = 3 - }; +struct read_semantic { + enum type { + ReadInvalid = 0, + ReadLastUpdate = 1, + ReadOutdated = 2, + ReadSnapshot = 3 + }; }; -extern const std::map _read_semantic_VALUES_TO_NAMES; +extern const std::map _read_semantic_VALUES_TO_NAMES; -struct learn_type -{ - enum type - { - LT_INVALID = 0, - LT_CACHE = 1, - LT_APP = 2, - LT_LOG = 3 - }; +struct learn_type { + enum type { + LT_INVALID = 0, + LT_CACHE = 1, + LT_APP = 2, + LT_LOG = 3 + }; }; -extern const std::map _learn_type_VALUES_TO_NAMES; +extern const std::map _learn_type_VALUES_TO_NAMES; -struct learner_status -{ - enum type - { - LearningInvalid = 0, - LearningWithoutPrepare = 1, - LearningWithPrepareTransient = 2, - LearningWithPrepare = 3, - LearningSucceeded = 4, - LearningFailed = 5 - }; +struct learner_status { + enum type { + LearningInvalid = 0, + LearningWithoutPrepare = 1, + LearningWithPrepareTransient = 2, + LearningWithPrepare = 3, + LearningSucceeded = 4, + LearningFailed = 5 + }; }; -extern const std::map _learner_status_VALUES_TO_NAMES; +extern const std::map _learner_status_VALUES_TO_NAMES; -struct split_status -{ - enum type - { - NOT_SPLIT = 0, - SPLITTING = 1, - PAUSING = 2, - PAUSED = 3, - CANCELING = 4 - }; +struct split_status { + enum type { + NOT_SPLIT = 0, + SPLITTING = 1, + PAUSING = 2, + PAUSED = 3, + CANCELING = 4 + }; +}; + +extern const std::map _split_status_VALUES_TO_NAMES; + +struct config_type { + enum type { + CT_INVALID = 0, + CT_ASSIGN_PRIMARY = 1, + CT_UPGRADE_TO_PRIMARY = 2, + CT_ADD_SECONDARY = 3, + CT_UPGRADE_TO_SECONDARY = 4, + CT_DOWNGRADE_TO_SECONDARY = 5, + CT_DOWNGRADE_TO_INACTIVE = 6, + CT_REMOVE = 7, + CT_ADD_SECONDARY_FOR_LB = 8, + CT_PRIMARY_FORCE_UPDATE_BALLOT = 9, + CT_DROP_PARTITION = 10, + CT_REGISTER_CHILD = 11 + }; +}; + +extern const std::map _config_type_VALUES_TO_NAMES; + +struct node_status { + enum type { + NS_INVALID = 0, + NS_ALIVE = 1, + NS_UNALIVE = 2 + }; }; -extern const std::map _split_status_VALUES_TO_NAMES; +extern const std::map _node_status_VALUES_TO_NAMES; -struct config_type -{ - enum type - { - CT_INVALID = 0, - CT_ASSIGN_PRIMARY = 1, - CT_UPGRADE_TO_PRIMARY = 2, - CT_ADD_SECONDARY = 3, - CT_UPGRADE_TO_SECONDARY = 4, - CT_DOWNGRADE_TO_SECONDARY = 5, - CT_DOWNGRADE_TO_INACTIVE = 6, - CT_REMOVE = 7, - CT_ADD_SECONDARY_FOR_LB = 8, - CT_PRIMARY_FORCE_UPDATE_BALLOT = 9, - CT_DROP_PARTITION = 10, - CT_REGISTER_CHILD = 11 - }; -}; - -extern const std::map _config_type_VALUES_TO_NAMES; - -struct node_status -{ - enum type - { - NS_INVALID = 0, - NS_ALIVE = 1, - NS_UNALIVE = 2 - }; +struct meta_function_level { + enum type { + fl_stopped = 100, + fl_blind = 200, + fl_freezed = 300, + fl_steady = 400, + fl_lively = 500, + fl_invalid = 10000 + }; }; -extern const std::map _node_status_VALUES_TO_NAMES; +extern const std::map _meta_function_level_VALUES_TO_NAMES; -struct meta_function_level -{ - enum type - { - fl_stopped = 100, - fl_blind = 200, - fl_freezed = 300, - fl_steady = 400, - fl_lively = 500, - fl_invalid = 10000 - }; +struct balancer_request_type { + enum type { + move_primary = 0, + copy_primary = 1, + copy_secondary = 2 + }; }; -extern const std::map _meta_function_level_VALUES_TO_NAMES; +extern const std::map _balancer_request_type_VALUES_TO_NAMES; -struct balancer_request_type -{ - enum type - { - move_primary = 0, - copy_primary = 1, - copy_secondary = 2 - }; +struct app_env_operation { + enum type { + APP_ENV_OP_INVALID = 0, + APP_ENV_OP_SET = 1, + APP_ENV_OP_DEL = 2, + APP_ENV_OP_CLEAR = 3 + }; }; -extern const std::map _balancer_request_type_VALUES_TO_NAMES; +extern const std::map _app_env_operation_VALUES_TO_NAMES; -struct app_env_operation -{ - enum type - { - APP_ENV_OP_INVALID = 0, - APP_ENV_OP_SET = 1, - APP_ENV_OP_DEL = 2, - APP_ENV_OP_CLEAR = 3 - }; +struct duplication_status { + enum type { + DS_INIT = 0, + DS_START = 1, + DS_PAUSE = 2, + DS_REMOVED = 3 + }; }; -extern const std::map _app_env_operation_VALUES_TO_NAMES; +extern const std::map _duplication_status_VALUES_TO_NAMES; -struct duplication_status -{ - enum type - { - DS_INIT = 0, - DS_START = 1, - DS_PAUSE = 2, - DS_REMOVED = 3 - }; +struct duplication_fail_mode { + enum type { + FAIL_SLOW = 0, + FAIL_SKIP = 1, + FAIL_FAST = 2 + }; }; -extern const std::map _duplication_status_VALUES_TO_NAMES; +extern const std::map _duplication_fail_mode_VALUES_TO_NAMES; -struct duplication_fail_mode -{ - enum type - { - FAIL_SLOW = 0, - FAIL_SKIP = 1, - FAIL_FAST = 2 - }; +struct bulk_load_status { + enum type { + BLS_INVALID = 0, + BLS_DOWNLOADING = 1, + BLS_DOWNLOADED = 2, + BLS_INGESTING = 3, + BLS_SUCCEED = 4, + BLS_FAILED = 5, + BLS_PAUSING = 6, + BLS_PAUSED = 7, + BLS_CANCELED = 8 + }; }; -extern const std::map _duplication_fail_mode_VALUES_TO_NAMES; +extern const std::map _bulk_load_status_VALUES_TO_NAMES; -struct bulk_load_status -{ - enum type - { - BLS_INVALID = 0, - BLS_DOWNLOADING = 1, - BLS_DOWNLOADED = 2, - BLS_INGESTING = 3, - BLS_SUCCEED = 4, - BLS_FAILED = 5, - BLS_PAUSING = 6, - BLS_PAUSED = 7, - BLS_CANCELED = 8 - }; -}; - -extern const std::map _bulk_load_status_VALUES_TO_NAMES; - -struct ingestion_status -{ - enum type - { - IS_INVALID = 0, - IS_RUNNING = 1, - IS_SUCCEED = 2, - IS_FAILED = 3 - }; +struct ingestion_status { + enum type { + IS_INVALID = 0, + IS_RUNNING = 1, + IS_SUCCEED = 2, + IS_FAILED = 3 + }; }; -extern const std::map _ingestion_status_VALUES_TO_NAMES; +extern const std::map _ingestion_status_VALUES_TO_NAMES; -struct bulk_load_control_type -{ - enum type - { - BLC_PAUSE = 0, - BLC_RESTART = 1, - BLC_CANCEL = 2, - BLC_FORCE_CANCEL = 3 - }; +struct bulk_load_control_type { + enum type { + BLC_PAUSE = 0, + BLC_RESTART = 1, + BLC_CANCEL = 2, + BLC_FORCE_CANCEL = 3 + }; }; -extern const std::map _bulk_load_control_type_VALUES_TO_NAMES; +extern const std::map _bulk_load_control_type_VALUES_TO_NAMES; -struct hotkey_type -{ - enum type - { - READ = 0, - WRITE = 1 - }; +struct hotkey_type { + enum type { + READ = 0, + WRITE = 1 + }; }; -extern const std::map _hotkey_type_VALUES_TO_NAMES; +extern const std::map _hotkey_type_VALUES_TO_NAMES; -struct detect_action -{ - enum type - { - START = 0, - STOP = 1 - }; +struct detect_action { + enum type { + START = 0, + STOP = 1, + QUERY = 2 + }; }; -extern const std::map _detect_action_VALUES_TO_NAMES; +extern const std::map _detect_action_VALUES_TO_NAMES; -struct disk_migration_status -{ - enum type - { - IDLE = 0, - MOVING = 1, - MOVED = 2, - CLOSED = 3 - }; +struct disk_migration_status { + enum type { + IDLE = 0, + MOVING = 1, + MOVED = 2, + CLOSED = 3 + }; }; -extern const std::map _disk_migration_status_VALUES_TO_NAMES; +extern const std::map _disk_migration_status_VALUES_TO_NAMES; class mutation_header; @@ -492,7306 +457,7035 @@ class detect_hotkey_request; class detect_hotkey_response; -typedef struct _mutation_header__isset -{ - _mutation_header__isset() - : pid(false), - ballot(false), - decree(false), - log_offset(false), - last_committed_decree(false), - timestamp(false) - { - } - bool pid : 1; - bool ballot : 1; - bool decree : 1; - bool log_offset : 1; - bool last_committed_decree : 1; - bool timestamp : 1; +typedef struct _mutation_header__isset { + _mutation_header__isset() : pid(false), ballot(false), decree(false), log_offset(false), last_committed_decree(false), timestamp(false) {} + bool pid :1; + bool ballot :1; + bool decree :1; + bool log_offset :1; + bool last_committed_decree :1; + bool timestamp :1; } _mutation_header__isset; -class mutation_header -{ -public: - mutation_header(const mutation_header &); - mutation_header(mutation_header &&); - mutation_header &operator=(const mutation_header &); - mutation_header &operator=(mutation_header &&); - mutation_header() : ballot(0), decree(0), log_offset(0), last_committed_decree(0), timestamp(0) - { - } +class mutation_header { + public: + + mutation_header(const mutation_header&); + mutation_header(mutation_header&&); + mutation_header& operator=(const mutation_header&); + mutation_header& operator=(mutation_header&&); + mutation_header() : ballot(0), decree(0), log_offset(0), last_committed_decree(0), timestamp(0) { + } - virtual ~mutation_header() throw(); - ::dsn::gpid pid; - int64_t ballot; - int64_t decree; - int64_t log_offset; - int64_t last_committed_decree; - int64_t timestamp; + virtual ~mutation_header() throw(); + ::dsn::gpid pid; + int64_t ballot; + int64_t decree; + int64_t log_offset; + int64_t last_committed_decree; + int64_t timestamp; - _mutation_header__isset __isset; + _mutation_header__isset __isset; - void __set_pid(const ::dsn::gpid &val); + void __set_pid(const ::dsn::gpid& val); - void __set_ballot(const int64_t val); + void __set_ballot(const int64_t val); - void __set_decree(const int64_t val); + void __set_decree(const int64_t val); - void __set_log_offset(const int64_t val); + void __set_log_offset(const int64_t val); - void __set_last_committed_decree(const int64_t val); + void __set_last_committed_decree(const int64_t val); - void __set_timestamp(const int64_t val); + void __set_timestamp(const int64_t val); - bool operator==(const mutation_header &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(decree == rhs.decree)) - return false; - if (!(log_offset == rhs.log_offset)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(timestamp == rhs.timestamp)) - return false; - return true; - } - bool operator!=(const mutation_header &rhs) const { return !(*this == rhs); } + bool operator == (const mutation_header & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(decree == rhs.decree)) + return false; + if (!(log_offset == rhs.log_offset)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(timestamp == rhs.timestamp)) + return false; + return true; + } + bool operator != (const mutation_header &rhs) const { + return !(*this == rhs); + } - bool operator<(const mutation_header &) const; + bool operator < (const mutation_header & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(mutation_header &a, mutation_header &b); -inline std::ostream &operator<<(std::ostream &out, const mutation_header &obj) +inline std::ostream& operator<<(std::ostream& out, const mutation_header& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _mutation_update__isset -{ - _mutation_update__isset() - : code(false), serialization_type(false), data(false), start_time_ns(false) - { - } - bool code : 1; - bool serialization_type : 1; - bool data : 1; - bool start_time_ns : 1; +typedef struct _mutation_update__isset { + _mutation_update__isset() : code(false), serialization_type(false), data(false), start_time_ns(false) {} + bool code :1; + bool serialization_type :1; + bool data :1; + bool start_time_ns :1; } _mutation_update__isset; -class mutation_update -{ -public: - mutation_update(const mutation_update &); - mutation_update(mutation_update &&); - mutation_update &operator=(const mutation_update &); - mutation_update &operator=(mutation_update &&); - mutation_update() : serialization_type(0), start_time_ns(0) {} +class mutation_update { + public: - virtual ~mutation_update() throw(); - ::dsn::task_code code; - int32_t serialization_type; - ::dsn::blob data; - int64_t start_time_ns; + mutation_update(const mutation_update&); + mutation_update(mutation_update&&); + mutation_update& operator=(const mutation_update&); + mutation_update& operator=(mutation_update&&); + mutation_update() : serialization_type(0), start_time_ns(0) { + } - _mutation_update__isset __isset; + virtual ~mutation_update() throw(); + ::dsn::task_code code; + int32_t serialization_type; + ::dsn::blob data; + int64_t start_time_ns; - void __set_code(const ::dsn::task_code &val); + _mutation_update__isset __isset; - void __set_serialization_type(const int32_t val); + void __set_code(const ::dsn::task_code& val); - void __set_data(const ::dsn::blob &val); + void __set_serialization_type(const int32_t val); - void __set_start_time_ns(const int64_t val); + void __set_data(const ::dsn::blob& val); - bool operator==(const mutation_update &rhs) const - { - if (!(code == rhs.code)) - return false; - if (!(serialization_type == rhs.serialization_type)) - return false; - if (!(data == rhs.data)) - return false; - if (__isset.start_time_ns != rhs.__isset.start_time_ns) - return false; - else if (__isset.start_time_ns && !(start_time_ns == rhs.start_time_ns)) - return false; - return true; - } - bool operator!=(const mutation_update &rhs) const { return !(*this == rhs); } + void __set_start_time_ns(const int64_t val); - bool operator<(const mutation_update &) const; + bool operator == (const mutation_update & rhs) const + { + if (!(code == rhs.code)) + return false; + if (!(serialization_type == rhs.serialization_type)) + return false; + if (!(data == rhs.data)) + return false; + if (__isset.start_time_ns != rhs.__isset.start_time_ns) + return false; + else if (__isset.start_time_ns && !(start_time_ns == rhs.start_time_ns)) + return false; + return true; + } + bool operator != (const mutation_update &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const mutation_update & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(mutation_update &a, mutation_update &b); -inline std::ostream &operator<<(std::ostream &out, const mutation_update &obj) +inline std::ostream& operator<<(std::ostream& out, const mutation_update& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _mutation_data__isset -{ - _mutation_data__isset() : header(false), updates(false) {} - bool header : 1; - bool updates : 1; +typedef struct _mutation_data__isset { + _mutation_data__isset() : header(false), updates(false) {} + bool header :1; + bool updates :1; } _mutation_data__isset; -class mutation_data -{ -public: - mutation_data(const mutation_data &); - mutation_data(mutation_data &&); - mutation_data &operator=(const mutation_data &); - mutation_data &operator=(mutation_data &&); - mutation_data() {} +class mutation_data { + public: + + mutation_data(const mutation_data&); + mutation_data(mutation_data&&); + mutation_data& operator=(const mutation_data&); + mutation_data& operator=(mutation_data&&); + mutation_data() { + } - virtual ~mutation_data() throw(); - mutation_header header; - std::vector updates; + virtual ~mutation_data() throw(); + mutation_header header; + std::vector updates; - _mutation_data__isset __isset; + _mutation_data__isset __isset; - void __set_header(const mutation_header &val); + void __set_header(const mutation_header& val); - void __set_updates(const std::vector &val); + void __set_updates(const std::vector & val); - bool operator==(const mutation_data &rhs) const - { - if (!(header == rhs.header)) - return false; - if (!(updates == rhs.updates)) - return false; - return true; - } - bool operator!=(const mutation_data &rhs) const { return !(*this == rhs); } + bool operator == (const mutation_data & rhs) const + { + if (!(header == rhs.header)) + return false; + if (!(updates == rhs.updates)) + return false; + return true; + } + bool operator != (const mutation_data &rhs) const { + return !(*this == rhs); + } - bool operator<(const mutation_data &) const; + bool operator < (const mutation_data & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(mutation_data &a, mutation_data &b); -inline std::ostream &operator<<(std::ostream &out, const mutation_data &obj) +inline std::ostream& operator<<(std::ostream& out, const mutation_data& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_configuration__isset -{ - _replica_configuration__isset() - : pid(false), - ballot(false), - primary(false), - status(true), - learner_signature(false), - pop_all(true) - { - } - bool pid : 1; - bool ballot : 1; - bool primary : 1; - bool status : 1; - bool learner_signature : 1; - bool pop_all : 1; +typedef struct _replica_configuration__isset { + _replica_configuration__isset() : pid(false), ballot(false), primary(false), status(true), learner_signature(false), pop_all(true) {} + bool pid :1; + bool ballot :1; + bool primary :1; + bool status :1; + bool learner_signature :1; + bool pop_all :1; } _replica_configuration__isset; -class replica_configuration -{ -public: - replica_configuration(const replica_configuration &); - replica_configuration(replica_configuration &&); - replica_configuration &operator=(const replica_configuration &); - replica_configuration &operator=(replica_configuration &&); - replica_configuration() - : ballot(0), status((partition_status::type)0), learner_signature(0), pop_all(false) - { - status = (partition_status::type)0; - } - - virtual ~replica_configuration() throw(); - ::dsn::gpid pid; - int64_t ballot; - ::dsn::rpc_address primary; - partition_status::type status; - int64_t learner_signature; - bool pop_all; - - _replica_configuration__isset __isset; - - void __set_pid(const ::dsn::gpid &val); - - void __set_ballot(const int64_t val); - - void __set_primary(const ::dsn::rpc_address &val); - - void __set_status(const partition_status::type val); - - void __set_learner_signature(const int64_t val); - - void __set_pop_all(const bool val); - - bool operator==(const replica_configuration &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(primary == rhs.primary)) - return false; - if (!(status == rhs.status)) - return false; - if (!(learner_signature == rhs.learner_signature)) - return false; - if (__isset.pop_all != rhs.__isset.pop_all) - return false; - else if (__isset.pop_all && !(pop_all == rhs.pop_all)) - return false; - return true; - } - bool operator!=(const replica_configuration &rhs) const { return !(*this == rhs); } - - bool operator<(const replica_configuration &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class replica_configuration { + public: + + replica_configuration(const replica_configuration&); + replica_configuration(replica_configuration&&); + replica_configuration& operator=(const replica_configuration&); + replica_configuration& operator=(replica_configuration&&); + replica_configuration() : ballot(0), status((partition_status::type)0), learner_signature(0), pop_all(false) { + status = (partition_status::type)0; + + } + + virtual ~replica_configuration() throw(); + ::dsn::gpid pid; + int64_t ballot; + ::dsn::rpc_address primary; + partition_status::type status; + int64_t learner_signature; + bool pop_all; + + _replica_configuration__isset __isset; + + void __set_pid(const ::dsn::gpid& val); + + void __set_ballot(const int64_t val); + + void __set_primary(const ::dsn::rpc_address& val); + + void __set_status(const partition_status::type val); + + void __set_learner_signature(const int64_t val); + + void __set_pop_all(const bool val); + + bool operator == (const replica_configuration & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(primary == rhs.primary)) + return false; + if (!(status == rhs.status)) + return false; + if (!(learner_signature == rhs.learner_signature)) + return false; + if (__isset.pop_all != rhs.__isset.pop_all) + return false; + else if (__isset.pop_all && !(pop_all == rhs.pop_all)) + return false; + return true; + } + bool operator != (const replica_configuration &rhs) const { + return !(*this == rhs); + } + + bool operator < (const replica_configuration & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(replica_configuration &a, replica_configuration &b); -inline std::ostream &operator<<(std::ostream &out, const replica_configuration &obj) +inline std::ostream& operator<<(std::ostream& out, const replica_configuration& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _prepare_msg__isset -{ - _prepare_msg__isset() : config(false), mu(false) {} - bool config : 1; - bool mu : 1; +typedef struct _prepare_msg__isset { + _prepare_msg__isset() : config(false), mu(false) {} + bool config :1; + bool mu :1; } _prepare_msg__isset; -class prepare_msg -{ -public: - prepare_msg(const prepare_msg &); - prepare_msg(prepare_msg &&); - prepare_msg &operator=(const prepare_msg &); - prepare_msg &operator=(prepare_msg &&); - prepare_msg() {} +class prepare_msg { + public: - virtual ~prepare_msg() throw(); - replica_configuration config; - mutation_data mu; + prepare_msg(const prepare_msg&); + prepare_msg(prepare_msg&&); + prepare_msg& operator=(const prepare_msg&); + prepare_msg& operator=(prepare_msg&&); + prepare_msg() { + } - _prepare_msg__isset __isset; + virtual ~prepare_msg() throw(); + replica_configuration config; + mutation_data mu; - void __set_config(const replica_configuration &val); + _prepare_msg__isset __isset; - void __set_mu(const mutation_data &val); + void __set_config(const replica_configuration& val); - bool operator==(const prepare_msg &rhs) const - { - if (!(config == rhs.config)) - return false; - if (!(mu == rhs.mu)) - return false; - return true; - } - bool operator!=(const prepare_msg &rhs) const { return !(*this == rhs); } + void __set_mu(const mutation_data& val); - bool operator<(const prepare_msg &) const; + bool operator == (const prepare_msg & rhs) const + { + if (!(config == rhs.config)) + return false; + if (!(mu == rhs.mu)) + return false; + return true; + } + bool operator != (const prepare_msg &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const prepare_msg & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(prepare_msg &a, prepare_msg &b); -inline std::ostream &operator<<(std::ostream &out, const prepare_msg &obj) +inline std::ostream& operator<<(std::ostream& out, const prepare_msg& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _read_request_header__isset -{ - _read_request_header__isset() : pid(false), code(false), semantic(true), version_decree(true) {} - bool pid : 1; - bool code : 1; - bool semantic : 1; - bool version_decree : 1; +typedef struct _read_request_header__isset { + _read_request_header__isset() : pid(false), code(false), semantic(true), version_decree(true) {} + bool pid :1; + bool code :1; + bool semantic :1; + bool version_decree :1; } _read_request_header__isset; -class read_request_header -{ -public: - read_request_header(const read_request_header &); - read_request_header(read_request_header &&); - read_request_header &operator=(const read_request_header &); - read_request_header &operator=(read_request_header &&); - read_request_header() : semantic((read_semantic::type)1), version_decree(-1LL) - { - semantic = (read_semantic::type)1; - } +class read_request_header { + public: + + read_request_header(const read_request_header&); + read_request_header(read_request_header&&); + read_request_header& operator=(const read_request_header&); + read_request_header& operator=(read_request_header&&); + read_request_header() : semantic((read_semantic::type)1), version_decree(-1LL) { + semantic = (read_semantic::type)1; - virtual ~read_request_header() throw(); - ::dsn::gpid pid; - ::dsn::task_code code; - read_semantic::type semantic; - int64_t version_decree; + } - _read_request_header__isset __isset; + virtual ~read_request_header() throw(); + ::dsn::gpid pid; + ::dsn::task_code code; + read_semantic::type semantic; + int64_t version_decree; - void __set_pid(const ::dsn::gpid &val); + _read_request_header__isset __isset; - void __set_code(const ::dsn::task_code &val); + void __set_pid(const ::dsn::gpid& val); - void __set_semantic(const read_semantic::type val); + void __set_code(const ::dsn::task_code& val); - void __set_version_decree(const int64_t val); + void __set_semantic(const read_semantic::type val); - bool operator==(const read_request_header &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(code == rhs.code)) - return false; - if (!(semantic == rhs.semantic)) - return false; - if (!(version_decree == rhs.version_decree)) - return false; - return true; - } - bool operator!=(const read_request_header &rhs) const { return !(*this == rhs); } + void __set_version_decree(const int64_t val); - bool operator<(const read_request_header &) const; + bool operator == (const read_request_header & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(code == rhs.code)) + return false; + if (!(semantic == rhs.semantic)) + return false; + if (!(version_decree == rhs.version_decree)) + return false; + return true; + } + bool operator != (const read_request_header &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const read_request_header & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(read_request_header &a, read_request_header &b); -inline std::ostream &operator<<(std::ostream &out, const read_request_header &obj) +inline std::ostream& operator<<(std::ostream& out, const read_request_header& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _write_request_header__isset -{ - _write_request_header__isset() : pid(false), code(false) {} - bool pid : 1; - bool code : 1; +typedef struct _write_request_header__isset { + _write_request_header__isset() : pid(false), code(false) {} + bool pid :1; + bool code :1; } _write_request_header__isset; -class write_request_header -{ -public: - write_request_header(const write_request_header &); - write_request_header(write_request_header &&); - write_request_header &operator=(const write_request_header &); - write_request_header &operator=(write_request_header &&); - write_request_header() {} +class write_request_header { + public: + + write_request_header(const write_request_header&); + write_request_header(write_request_header&&); + write_request_header& operator=(const write_request_header&); + write_request_header& operator=(write_request_header&&); + write_request_header() { + } - virtual ~write_request_header() throw(); - ::dsn::gpid pid; - ::dsn::task_code code; + virtual ~write_request_header() throw(); + ::dsn::gpid pid; + ::dsn::task_code code; - _write_request_header__isset __isset; + _write_request_header__isset __isset; - void __set_pid(const ::dsn::gpid &val); + void __set_pid(const ::dsn::gpid& val); - void __set_code(const ::dsn::task_code &val); + void __set_code(const ::dsn::task_code& val); - bool operator==(const write_request_header &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(code == rhs.code)) - return false; - return true; - } - bool operator!=(const write_request_header &rhs) const { return !(*this == rhs); } + bool operator == (const write_request_header & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(code == rhs.code)) + return false; + return true; + } + bool operator != (const write_request_header &rhs) const { + return !(*this == rhs); + } - bool operator<(const write_request_header &) const; + bool operator < (const write_request_header & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(write_request_header &a, write_request_header &b); -inline std::ostream &operator<<(std::ostream &out, const write_request_header &obj) +inline std::ostream& operator<<(std::ostream& out, const write_request_header& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _rw_response_header__isset -{ - _rw_response_header__isset() : err(false) {} - bool err : 1; +typedef struct _rw_response_header__isset { + _rw_response_header__isset() : err(false) {} + bool err :1; } _rw_response_header__isset; -class rw_response_header -{ -public: - rw_response_header(const rw_response_header &); - rw_response_header(rw_response_header &&); - rw_response_header &operator=(const rw_response_header &); - rw_response_header &operator=(rw_response_header &&); - rw_response_header() {} +class rw_response_header { + public: - virtual ~rw_response_header() throw(); - ::dsn::error_code err; + rw_response_header(const rw_response_header&); + rw_response_header(rw_response_header&&); + rw_response_header& operator=(const rw_response_header&); + rw_response_header& operator=(rw_response_header&&); + rw_response_header() { + } - _rw_response_header__isset __isset; + virtual ~rw_response_header() throw(); + ::dsn::error_code err; - void __set_err(const ::dsn::error_code &val); + _rw_response_header__isset __isset; - bool operator==(const rw_response_header &rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator!=(const rw_response_header &rhs) const { return !(*this == rhs); } + void __set_err(const ::dsn::error_code& val); - bool operator<(const rw_response_header &) const; + bool operator == (const rw_response_header & rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator != (const rw_response_header &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const rw_response_header & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(rw_response_header &a, rw_response_header &b); -inline std::ostream &operator<<(std::ostream &out, const rw_response_header &obj) +inline std::ostream& operator<<(std::ostream& out, const rw_response_header& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _prepare_ack__isset -{ - _prepare_ack__isset() - : pid(false), - err(false), - ballot(false), - decree(false), - last_committed_decree_in_app(false), - last_committed_decree_in_prepare_list(false) - { - } - bool pid : 1; - bool err : 1; - bool ballot : 1; - bool decree : 1; - bool last_committed_decree_in_app : 1; - bool last_committed_decree_in_prepare_list : 1; +typedef struct _prepare_ack__isset { + _prepare_ack__isset() : pid(false), err(false), ballot(false), decree(false), last_committed_decree_in_app(false), last_committed_decree_in_prepare_list(false) {} + bool pid :1; + bool err :1; + bool ballot :1; + bool decree :1; + bool last_committed_decree_in_app :1; + bool last_committed_decree_in_prepare_list :1; } _prepare_ack__isset; -class prepare_ack -{ -public: - prepare_ack(const prepare_ack &); - prepare_ack(prepare_ack &&); - prepare_ack &operator=(const prepare_ack &); - prepare_ack &operator=(prepare_ack &&); - prepare_ack() - : ballot(0), - decree(0), - last_committed_decree_in_app(0), - last_committed_decree_in_prepare_list(0) - { - } - - virtual ~prepare_ack() throw(); - ::dsn::gpid pid; - ::dsn::error_code err; - int64_t ballot; - int64_t decree; - int64_t last_committed_decree_in_app; - int64_t last_committed_decree_in_prepare_list; - - _prepare_ack__isset __isset; - - void __set_pid(const ::dsn::gpid &val); - - void __set_err(const ::dsn::error_code &val); - - void __set_ballot(const int64_t val); - - void __set_decree(const int64_t val); - - void __set_last_committed_decree_in_app(const int64_t val); - - void __set_last_committed_decree_in_prepare_list(const int64_t val); - - bool operator==(const prepare_ack &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(err == rhs.err)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(decree == rhs.decree)) - return false; - if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) - return false; - if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) - return false; - return true; - } - bool operator!=(const prepare_ack &rhs) const { return !(*this == rhs); } - - bool operator<(const prepare_ack &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class prepare_ack { + public: + + prepare_ack(const prepare_ack&); + prepare_ack(prepare_ack&&); + prepare_ack& operator=(const prepare_ack&); + prepare_ack& operator=(prepare_ack&&); + prepare_ack() : ballot(0), decree(0), last_committed_decree_in_app(0), last_committed_decree_in_prepare_list(0) { + } + + virtual ~prepare_ack() throw(); + ::dsn::gpid pid; + ::dsn::error_code err; + int64_t ballot; + int64_t decree; + int64_t last_committed_decree_in_app; + int64_t last_committed_decree_in_prepare_list; + + _prepare_ack__isset __isset; + + void __set_pid(const ::dsn::gpid& val); + + void __set_err(const ::dsn::error_code& val); + + void __set_ballot(const int64_t val); + + void __set_decree(const int64_t val); + + void __set_last_committed_decree_in_app(const int64_t val); + + void __set_last_committed_decree_in_prepare_list(const int64_t val); + + bool operator == (const prepare_ack & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(err == rhs.err)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(decree == rhs.decree)) + return false; + if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) + return false; + if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) + return false; + return true; + } + bool operator != (const prepare_ack &rhs) const { + return !(*this == rhs); + } + + bool operator < (const prepare_ack & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(prepare_ack &a, prepare_ack &b); -inline std::ostream &operator<<(std::ostream &out, const prepare_ack &obj) +inline std::ostream& operator<<(std::ostream& out, const prepare_ack& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _learn_state__isset -{ - _learn_state__isset() - : from_decree_excluded(false), - to_decree_included(false), - meta(false), - files(false), - learn_start_decree(false) - { - } - bool from_decree_excluded : 1; - bool to_decree_included : 1; - bool meta : 1; - bool files : 1; - bool learn_start_decree : 1; +typedef struct _learn_state__isset { + _learn_state__isset() : from_decree_excluded(false), to_decree_included(false), meta(false), files(false), learn_start_decree(false) {} + bool from_decree_excluded :1; + bool to_decree_included :1; + bool meta :1; + bool files :1; + bool learn_start_decree :1; } _learn_state__isset; -class learn_state -{ -public: - learn_state(const learn_state &); - learn_state(learn_state &&); - learn_state &operator=(const learn_state &); - learn_state &operator=(learn_state &&); - learn_state() : from_decree_excluded(0), to_decree_included(0), learn_start_decree(0) {} +class learn_state { + public: - virtual ~learn_state() throw(); - int64_t from_decree_excluded; - int64_t to_decree_included; - ::dsn::blob meta; - std::vector files; - int64_t learn_start_decree; + learn_state(const learn_state&); + learn_state(learn_state&&); + learn_state& operator=(const learn_state&); + learn_state& operator=(learn_state&&); + learn_state() : from_decree_excluded(0), to_decree_included(0), learn_start_decree(0) { + } - _learn_state__isset __isset; + virtual ~learn_state() throw(); + int64_t from_decree_excluded; + int64_t to_decree_included; + ::dsn::blob meta; + std::vector files; + int64_t learn_start_decree; - void __set_from_decree_excluded(const int64_t val); + _learn_state__isset __isset; - void __set_to_decree_included(const int64_t val); + void __set_from_decree_excluded(const int64_t val); - void __set_meta(const ::dsn::blob &val); + void __set_to_decree_included(const int64_t val); - void __set_files(const std::vector &val); + void __set_meta(const ::dsn::blob& val); - void __set_learn_start_decree(const int64_t val); + void __set_files(const std::vector & val); - bool operator==(const learn_state &rhs) const - { - if (!(from_decree_excluded == rhs.from_decree_excluded)) - return false; - if (!(to_decree_included == rhs.to_decree_included)) - return false; - if (!(meta == rhs.meta)) - return false; - if (!(files == rhs.files)) - return false; - if (__isset.learn_start_decree != rhs.__isset.learn_start_decree) - return false; - else if (__isset.learn_start_decree && !(learn_start_decree == rhs.learn_start_decree)) - return false; - return true; - } - bool operator!=(const learn_state &rhs) const { return !(*this == rhs); } + void __set_learn_start_decree(const int64_t val); - bool operator<(const learn_state &) const; + bool operator == (const learn_state & rhs) const + { + if (!(from_decree_excluded == rhs.from_decree_excluded)) + return false; + if (!(to_decree_included == rhs.to_decree_included)) + return false; + if (!(meta == rhs.meta)) + return false; + if (!(files == rhs.files)) + return false; + if (__isset.learn_start_decree != rhs.__isset.learn_start_decree) + return false; + else if (__isset.learn_start_decree && !(learn_start_decree == rhs.learn_start_decree)) + return false; + return true; + } + bool operator != (const learn_state &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const learn_state & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(learn_state &a, learn_state &b); -inline std::ostream &operator<<(std::ostream &out, const learn_state &obj) +inline std::ostream& operator<<(std::ostream& out, const learn_state& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _learn_request__isset -{ - _learn_request__isset() - : pid(false), - learner(false), - signature(false), - last_committed_decree_in_app(false), - last_committed_decree_in_prepare_list(false), - app_specific_learn_request(false), - max_gced_decree(false) - { - } - bool pid : 1; - bool learner : 1; - bool signature : 1; - bool last_committed_decree_in_app : 1; - bool last_committed_decree_in_prepare_list : 1; - bool app_specific_learn_request : 1; - bool max_gced_decree : 1; +typedef struct _learn_request__isset { + _learn_request__isset() : pid(false), learner(false), signature(false), last_committed_decree_in_app(false), last_committed_decree_in_prepare_list(false), app_specific_learn_request(false), max_gced_decree(false) {} + bool pid :1; + bool learner :1; + bool signature :1; + bool last_committed_decree_in_app :1; + bool last_committed_decree_in_prepare_list :1; + bool app_specific_learn_request :1; + bool max_gced_decree :1; } _learn_request__isset; -class learn_request -{ -public: - learn_request(const learn_request &); - learn_request(learn_request &&); - learn_request &operator=(const learn_request &); - learn_request &operator=(learn_request &&); - learn_request() - : signature(0), - last_committed_decree_in_app(0), - last_committed_decree_in_prepare_list(0), - max_gced_decree(0) - { - } - - virtual ~learn_request() throw(); - ::dsn::gpid pid; - ::dsn::rpc_address learner; - int64_t signature; - int64_t last_committed_decree_in_app; - int64_t last_committed_decree_in_prepare_list; - ::dsn::blob app_specific_learn_request; - int64_t max_gced_decree; - - _learn_request__isset __isset; - - void __set_pid(const ::dsn::gpid &val); - - void __set_learner(const ::dsn::rpc_address &val); - - void __set_signature(const int64_t val); - - void __set_last_committed_decree_in_app(const int64_t val); - - void __set_last_committed_decree_in_prepare_list(const int64_t val); - - void __set_app_specific_learn_request(const ::dsn::blob &val); - - void __set_max_gced_decree(const int64_t val); - - bool operator==(const learn_request &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(learner == rhs.learner)) - return false; - if (!(signature == rhs.signature)) - return false; - if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) - return false; - if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) - return false; - if (!(app_specific_learn_request == rhs.app_specific_learn_request)) - return false; - if (__isset.max_gced_decree != rhs.__isset.max_gced_decree) - return false; - else if (__isset.max_gced_decree && !(max_gced_decree == rhs.max_gced_decree)) - return false; - return true; - } - bool operator!=(const learn_request &rhs) const { return !(*this == rhs); } - - bool operator<(const learn_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class learn_request { + public: + + learn_request(const learn_request&); + learn_request(learn_request&&); + learn_request& operator=(const learn_request&); + learn_request& operator=(learn_request&&); + learn_request() : signature(0), last_committed_decree_in_app(0), last_committed_decree_in_prepare_list(0), max_gced_decree(0) { + } + + virtual ~learn_request() throw(); + ::dsn::gpid pid; + ::dsn::rpc_address learner; + int64_t signature; + int64_t last_committed_decree_in_app; + int64_t last_committed_decree_in_prepare_list; + ::dsn::blob app_specific_learn_request; + int64_t max_gced_decree; + + _learn_request__isset __isset; + + void __set_pid(const ::dsn::gpid& val); + + void __set_learner(const ::dsn::rpc_address& val); + + void __set_signature(const int64_t val); + + void __set_last_committed_decree_in_app(const int64_t val); + + void __set_last_committed_decree_in_prepare_list(const int64_t val); + + void __set_app_specific_learn_request(const ::dsn::blob& val); + + void __set_max_gced_decree(const int64_t val); + + bool operator == (const learn_request & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(learner == rhs.learner)) + return false; + if (!(signature == rhs.signature)) + return false; + if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) + return false; + if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) + return false; + if (!(app_specific_learn_request == rhs.app_specific_learn_request)) + return false; + if (__isset.max_gced_decree != rhs.__isset.max_gced_decree) + return false; + else if (__isset.max_gced_decree && !(max_gced_decree == rhs.max_gced_decree)) + return false; + return true; + } + bool operator != (const learn_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const learn_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(learn_request &a, learn_request &b); -inline std::ostream &operator<<(std::ostream &out, const learn_request &obj) +inline std::ostream& operator<<(std::ostream& out, const learn_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _learn_response__isset -{ - _learn_response__isset() - : err(false), - config(false), - last_committed_decree(false), - prepare_start_decree(false), - type(true), - state(false), - address(false), - base_local_dir(false) - { - } - bool err : 1; - bool config : 1; - bool last_committed_decree : 1; - bool prepare_start_decree : 1; - bool type : 1; - bool state : 1; - bool address : 1; - bool base_local_dir : 1; +typedef struct _learn_response__isset { + _learn_response__isset() : err(false), config(false), last_committed_decree(false), prepare_start_decree(false), type(true), state(false), address(false), base_local_dir(false) {} + bool err :1; + bool config :1; + bool last_committed_decree :1; + bool prepare_start_decree :1; + bool type :1; + bool state :1; + bool address :1; + bool base_local_dir :1; } _learn_response__isset; -class learn_response -{ -public: - learn_response(const learn_response &); - learn_response(learn_response &&); - learn_response &operator=(const learn_response &); - learn_response &operator=(learn_response &&); - learn_response() - : last_committed_decree(0), - prepare_start_decree(0), - type((learn_type::type)0), - base_local_dir() - { - type = (learn_type::type)0; - } - - virtual ~learn_response() throw(); - ::dsn::error_code err; - replica_configuration config; - int64_t last_committed_decree; - int64_t prepare_start_decree; - learn_type::type type; - learn_state state; - ::dsn::rpc_address address; - std::string base_local_dir; - - _learn_response__isset __isset; - - void __set_err(const ::dsn::error_code &val); - - void __set_config(const replica_configuration &val); - - void __set_last_committed_decree(const int64_t val); - - void __set_prepare_start_decree(const int64_t val); - - void __set_type(const learn_type::type val); - - void __set_state(const learn_state &val); - - void __set_address(const ::dsn::rpc_address &val); - - void __set_base_local_dir(const std::string &val); - - bool operator==(const learn_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(config == rhs.config)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(prepare_start_decree == rhs.prepare_start_decree)) - return false; - if (!(type == rhs.type)) - return false; - if (!(state == rhs.state)) - return false; - if (!(address == rhs.address)) - return false; - if (!(base_local_dir == rhs.base_local_dir)) - return false; - return true; - } - bool operator!=(const learn_response &rhs) const { return !(*this == rhs); } - - bool operator<(const learn_response &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class learn_response { + public: + + learn_response(const learn_response&); + learn_response(learn_response&&); + learn_response& operator=(const learn_response&); + learn_response& operator=(learn_response&&); + learn_response() : last_committed_decree(0), prepare_start_decree(0), type((learn_type::type)0), base_local_dir() { + type = (learn_type::type)0; + + } + + virtual ~learn_response() throw(); + ::dsn::error_code err; + replica_configuration config; + int64_t last_committed_decree; + int64_t prepare_start_decree; + learn_type::type type; + learn_state state; + ::dsn::rpc_address address; + std::string base_local_dir; + + _learn_response__isset __isset; + + void __set_err(const ::dsn::error_code& val); + + void __set_config(const replica_configuration& val); + + void __set_last_committed_decree(const int64_t val); + + void __set_prepare_start_decree(const int64_t val); + + void __set_type(const learn_type::type val); + + void __set_state(const learn_state& val); + + void __set_address(const ::dsn::rpc_address& val); + + void __set_base_local_dir(const std::string& val); + + bool operator == (const learn_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(config == rhs.config)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(prepare_start_decree == rhs.prepare_start_decree)) + return false; + if (!(type == rhs.type)) + return false; + if (!(state == rhs.state)) + return false; + if (!(address == rhs.address)) + return false; + if (!(base_local_dir == rhs.base_local_dir)) + return false; + return true; + } + bool operator != (const learn_response &rhs) const { + return !(*this == rhs); + } + + bool operator < (const learn_response & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(learn_response &a, learn_response &b); -inline std::ostream &operator<<(std::ostream &out, const learn_response &obj) +inline std::ostream& operator<<(std::ostream& out, const learn_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _learn_notify_response__isset -{ - _learn_notify_response__isset() : pid(false), err(false), signature(false) {} - bool pid : 1; - bool err : 1; - bool signature : 1; +typedef struct _learn_notify_response__isset { + _learn_notify_response__isset() : pid(false), err(false), signature(false) {} + bool pid :1; + bool err :1; + bool signature :1; } _learn_notify_response__isset; -class learn_notify_response -{ -public: - learn_notify_response(const learn_notify_response &); - learn_notify_response(learn_notify_response &&); - learn_notify_response &operator=(const learn_notify_response &); - learn_notify_response &operator=(learn_notify_response &&); - learn_notify_response() : signature(0) {} +class learn_notify_response { + public: + + learn_notify_response(const learn_notify_response&); + learn_notify_response(learn_notify_response&&); + learn_notify_response& operator=(const learn_notify_response&); + learn_notify_response& operator=(learn_notify_response&&); + learn_notify_response() : signature(0) { + } - virtual ~learn_notify_response() throw(); - ::dsn::gpid pid; - ::dsn::error_code err; - int64_t signature; + virtual ~learn_notify_response() throw(); + ::dsn::gpid pid; + ::dsn::error_code err; + int64_t signature; - _learn_notify_response__isset __isset; + _learn_notify_response__isset __isset; - void __set_pid(const ::dsn::gpid &val); + void __set_pid(const ::dsn::gpid& val); - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_signature(const int64_t val); + void __set_signature(const int64_t val); - bool operator==(const learn_notify_response &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(err == rhs.err)) - return false; - if (!(signature == rhs.signature)) - return false; - return true; - } - bool operator!=(const learn_notify_response &rhs) const { return !(*this == rhs); } + bool operator == (const learn_notify_response & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(err == rhs.err)) + return false; + if (!(signature == rhs.signature)) + return false; + return true; + } + bool operator != (const learn_notify_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const learn_notify_response &) const; + bool operator < (const learn_notify_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(learn_notify_response &a, learn_notify_response &b); -inline std::ostream &operator<<(std::ostream &out, const learn_notify_response &obj) +inline std::ostream& operator<<(std::ostream& out, const learn_notify_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _group_check_request__isset -{ - _group_check_request__isset() - : app(false), - node(false), - config(false), - last_committed_decree(false), - confirmed_decree(false), - child_gpid(false), - meta_split_status(false) - { - } - bool app : 1; - bool node : 1; - bool config : 1; - bool last_committed_decree : 1; - bool confirmed_decree : 1; - bool child_gpid : 1; - bool meta_split_status : 1; +typedef struct _group_check_request__isset { + _group_check_request__isset() : app(false), node(false), config(false), last_committed_decree(false), confirmed_decree(false), child_gpid(false), meta_split_status(false) {} + bool app :1; + bool node :1; + bool config :1; + bool last_committed_decree :1; + bool confirmed_decree :1; + bool child_gpid :1; + bool meta_split_status :1; } _group_check_request__isset; -class group_check_request -{ -public: - group_check_request(const group_check_request &); - group_check_request(group_check_request &&); - group_check_request &operator=(const group_check_request &); - group_check_request &operator=(group_check_request &&); - group_check_request() - : last_committed_decree(0), confirmed_decree(0), meta_split_status((split_status::type)0) - { - } - - virtual ~group_check_request() throw(); - ::dsn::app_info app; - ::dsn::rpc_address node; - replica_configuration config; - int64_t last_committed_decree; - int64_t confirmed_decree; - ::dsn::gpid child_gpid; - split_status::type meta_split_status; - - _group_check_request__isset __isset; - - void __set_app(const ::dsn::app_info &val); - - void __set_node(const ::dsn::rpc_address &val); - - void __set_config(const replica_configuration &val); - - void __set_last_committed_decree(const int64_t val); - - void __set_confirmed_decree(const int64_t val); - - void __set_child_gpid(const ::dsn::gpid &val); - - void __set_meta_split_status(const split_status::type val); - - bool operator==(const group_check_request &rhs) const - { - if (!(app == rhs.app)) - return false; - if (!(node == rhs.node)) - return false; - if (!(config == rhs.config)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (__isset.confirmed_decree != rhs.__isset.confirmed_decree) - return false; - else if (__isset.confirmed_decree && !(confirmed_decree == rhs.confirmed_decree)) - return false; - if (__isset.child_gpid != rhs.__isset.child_gpid) - return false; - else if (__isset.child_gpid && !(child_gpid == rhs.child_gpid)) - return false; - if (__isset.meta_split_status != rhs.__isset.meta_split_status) - return false; - else if (__isset.meta_split_status && !(meta_split_status == rhs.meta_split_status)) - return false; - return true; - } - bool operator!=(const group_check_request &rhs) const { return !(*this == rhs); } - - bool operator<(const group_check_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class group_check_request { + public: + + group_check_request(const group_check_request&); + group_check_request(group_check_request&&); + group_check_request& operator=(const group_check_request&); + group_check_request& operator=(group_check_request&&); + group_check_request() : last_committed_decree(0), confirmed_decree(0), meta_split_status((split_status::type)0) { + } + + virtual ~group_check_request() throw(); + ::dsn::app_info app; + ::dsn::rpc_address node; + replica_configuration config; + int64_t last_committed_decree; + int64_t confirmed_decree; + ::dsn::gpid child_gpid; + split_status::type meta_split_status; + + _group_check_request__isset __isset; + + void __set_app(const ::dsn::app_info& val); + + void __set_node(const ::dsn::rpc_address& val); + + void __set_config(const replica_configuration& val); + + void __set_last_committed_decree(const int64_t val); + + void __set_confirmed_decree(const int64_t val); + + void __set_child_gpid(const ::dsn::gpid& val); + + void __set_meta_split_status(const split_status::type val); + + bool operator == (const group_check_request & rhs) const + { + if (!(app == rhs.app)) + return false; + if (!(node == rhs.node)) + return false; + if (!(config == rhs.config)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (__isset.confirmed_decree != rhs.__isset.confirmed_decree) + return false; + else if (__isset.confirmed_decree && !(confirmed_decree == rhs.confirmed_decree)) + return false; + if (__isset.child_gpid != rhs.__isset.child_gpid) + return false; + else if (__isset.child_gpid && !(child_gpid == rhs.child_gpid)) + return false; + if (__isset.meta_split_status != rhs.__isset.meta_split_status) + return false; + else if (__isset.meta_split_status && !(meta_split_status == rhs.meta_split_status)) + return false; + return true; + } + bool operator != (const group_check_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const group_check_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(group_check_request &a, group_check_request &b); -inline std::ostream &operator<<(std::ostream &out, const group_check_request &obj) +inline std::ostream& operator<<(std::ostream& out, const group_check_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _group_check_response__isset -{ - _group_check_response__isset() - : pid(false), - err(false), - last_committed_decree_in_app(false), - last_committed_decree_in_prepare_list(false), - learner_status_(true), - learner_signature(false), - node(false) - { - } - bool pid : 1; - bool err : 1; - bool last_committed_decree_in_app : 1; - bool last_committed_decree_in_prepare_list : 1; - bool learner_status_ : 1; - bool learner_signature : 1; - bool node : 1; +typedef struct _group_check_response__isset { + _group_check_response__isset() : pid(false), err(false), last_committed_decree_in_app(false), last_committed_decree_in_prepare_list(false), learner_status_(true), learner_signature(false), node(false) {} + bool pid :1; + bool err :1; + bool last_committed_decree_in_app :1; + bool last_committed_decree_in_prepare_list :1; + bool learner_status_ :1; + bool learner_signature :1; + bool node :1; } _group_check_response__isset; -class group_check_response -{ -public: - group_check_response(const group_check_response &); - group_check_response(group_check_response &&); - group_check_response &operator=(const group_check_response &); - group_check_response &operator=(group_check_response &&); - group_check_response() - : last_committed_decree_in_app(0), - last_committed_decree_in_prepare_list(0), - learner_status_((learner_status::type)0), - learner_signature(0) - { - learner_status_ = (learner_status::type)0; - } - - virtual ~group_check_response() throw(); - ::dsn::gpid pid; - ::dsn::error_code err; - int64_t last_committed_decree_in_app; - int64_t last_committed_decree_in_prepare_list; - learner_status::type learner_status_; - int64_t learner_signature; - ::dsn::rpc_address node; - - _group_check_response__isset __isset; - - void __set_pid(const ::dsn::gpid &val); - - void __set_err(const ::dsn::error_code &val); - - void __set_last_committed_decree_in_app(const int64_t val); - - void __set_last_committed_decree_in_prepare_list(const int64_t val); - - void __set_learner_status_(const learner_status::type val); - - void __set_learner_signature(const int64_t val); - - void __set_node(const ::dsn::rpc_address &val); - - bool operator==(const group_check_response &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(err == rhs.err)) - return false; - if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) - return false; - if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) - return false; - if (!(learner_status_ == rhs.learner_status_)) - return false; - if (!(learner_signature == rhs.learner_signature)) - return false; - if (!(node == rhs.node)) - return false; - return true; - } - bool operator!=(const group_check_response &rhs) const { return !(*this == rhs); } - - bool operator<(const group_check_response &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class group_check_response { + public: + + group_check_response(const group_check_response&); + group_check_response(group_check_response&&); + group_check_response& operator=(const group_check_response&); + group_check_response& operator=(group_check_response&&); + group_check_response() : last_committed_decree_in_app(0), last_committed_decree_in_prepare_list(0), learner_status_((learner_status::type)0), learner_signature(0) { + learner_status_ = (learner_status::type)0; + + } + + virtual ~group_check_response() throw(); + ::dsn::gpid pid; + ::dsn::error_code err; + int64_t last_committed_decree_in_app; + int64_t last_committed_decree_in_prepare_list; + learner_status::type learner_status_; + int64_t learner_signature; + ::dsn::rpc_address node; + + _group_check_response__isset __isset; + + void __set_pid(const ::dsn::gpid& val); + + void __set_err(const ::dsn::error_code& val); + + void __set_last_committed_decree_in_app(const int64_t val); + + void __set_last_committed_decree_in_prepare_list(const int64_t val); + + void __set_learner_status_(const learner_status::type val); + + void __set_learner_signature(const int64_t val); + + void __set_node(const ::dsn::rpc_address& val); + + bool operator == (const group_check_response & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(err == rhs.err)) + return false; + if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) + return false; + if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) + return false; + if (!(learner_status_ == rhs.learner_status_)) + return false; + if (!(learner_signature == rhs.learner_signature)) + return false; + if (!(node == rhs.node)) + return false; + return true; + } + bool operator != (const group_check_response &rhs) const { + return !(*this == rhs); + } + + bool operator < (const group_check_response & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(group_check_response &a, group_check_response &b); -inline std::ostream &operator<<(std::ostream &out, const group_check_response &obj) +inline std::ostream& operator<<(std::ostream& out, const group_check_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _node_info__isset -{ - _node_info__isset() : status(true), address(false) {} - bool status : 1; - bool address : 1; +typedef struct _node_info__isset { + _node_info__isset() : status(true), address(false) {} + bool status :1; + bool address :1; } _node_info__isset; -class node_info -{ -public: - node_info(const node_info &); - node_info(node_info &&); - node_info &operator=(const node_info &); - node_info &operator=(node_info &&); - node_info() : status((node_status::type)0) { status = (node_status::type)0; } +class node_info { + public: + + node_info(const node_info&); + node_info(node_info&&); + node_info& operator=(const node_info&); + node_info& operator=(node_info&&); + node_info() : status((node_status::type)0) { + status = (node_status::type)0; - virtual ~node_info() throw(); - node_status::type status; - ::dsn::rpc_address address; + } - _node_info__isset __isset; + virtual ~node_info() throw(); + node_status::type status; + ::dsn::rpc_address address; - void __set_status(const node_status::type val); + _node_info__isset __isset; - void __set_address(const ::dsn::rpc_address &val); + void __set_status(const node_status::type val); - bool operator==(const node_info &rhs) const - { - if (!(status == rhs.status)) - return false; - if (!(address == rhs.address)) - return false; - return true; - } - bool operator!=(const node_info &rhs) const { return !(*this == rhs); } + void __set_address(const ::dsn::rpc_address& val); - bool operator<(const node_info &) const; + bool operator == (const node_info & rhs) const + { + if (!(status == rhs.status)) + return false; + if (!(address == rhs.address)) + return false; + return true; + } + bool operator != (const node_info &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const node_info & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(node_info &a, node_info &b); -inline std::ostream &operator<<(std::ostream &out, const node_info &obj) +inline std::ostream& operator<<(std::ostream& out, const node_info& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_update_request__isset -{ - _configuration_update_request__isset() - : info(false), - config(false), - type(true), - node(false), - host_node(false), - meta_split_status(false) - { - } - bool info : 1; - bool config : 1; - bool type : 1; - bool node : 1; - bool host_node : 1; - bool meta_split_status : 1; +typedef struct _configuration_update_request__isset { + _configuration_update_request__isset() : info(false), config(false), type(true), node(false), host_node(false), meta_split_status(false) {} + bool info :1; + bool config :1; + bool type :1; + bool node :1; + bool host_node :1; + bool meta_split_status :1; } _configuration_update_request__isset; -class configuration_update_request -{ -public: - configuration_update_request(const configuration_update_request &); - configuration_update_request(configuration_update_request &&); - configuration_update_request &operator=(const configuration_update_request &); - configuration_update_request &operator=(configuration_update_request &&); - configuration_update_request() - : type((config_type::type)0), meta_split_status((split_status::type)0) - { - type = (config_type::type)0; - } - - virtual ~configuration_update_request() throw(); - ::dsn::app_info info; - ::dsn::partition_configuration config; - config_type::type type; - ::dsn::rpc_address node; - ::dsn::rpc_address host_node; - split_status::type meta_split_status; - - _configuration_update_request__isset __isset; - - void __set_info(const ::dsn::app_info &val); - - void __set_config(const ::dsn::partition_configuration &val); - - void __set_type(const config_type::type val); - - void __set_node(const ::dsn::rpc_address &val); - - void __set_host_node(const ::dsn::rpc_address &val); - - void __set_meta_split_status(const split_status::type val); - - bool operator==(const configuration_update_request &rhs) const - { - if (!(info == rhs.info)) - return false; - if (!(config == rhs.config)) - return false; - if (!(type == rhs.type)) - return false; - if (!(node == rhs.node)) - return false; - if (!(host_node == rhs.host_node)) - return false; - if (__isset.meta_split_status != rhs.__isset.meta_split_status) - return false; - else if (__isset.meta_split_status && !(meta_split_status == rhs.meta_split_status)) - return false; - return true; - } - bool operator!=(const configuration_update_request &rhs) const { return !(*this == rhs); } - - bool operator<(const configuration_update_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class configuration_update_request { + public: + + configuration_update_request(const configuration_update_request&); + configuration_update_request(configuration_update_request&&); + configuration_update_request& operator=(const configuration_update_request&); + configuration_update_request& operator=(configuration_update_request&&); + configuration_update_request() : type((config_type::type)0), meta_split_status((split_status::type)0) { + type = (config_type::type)0; + + } + + virtual ~configuration_update_request() throw(); + ::dsn::app_info info; + ::dsn::partition_configuration config; + config_type::type type; + ::dsn::rpc_address node; + ::dsn::rpc_address host_node; + split_status::type meta_split_status; + + _configuration_update_request__isset __isset; + + void __set_info(const ::dsn::app_info& val); + + void __set_config(const ::dsn::partition_configuration& val); + + void __set_type(const config_type::type val); + + void __set_node(const ::dsn::rpc_address& val); + + void __set_host_node(const ::dsn::rpc_address& val); + + void __set_meta_split_status(const split_status::type val); + + bool operator == (const configuration_update_request & rhs) const + { + if (!(info == rhs.info)) + return false; + if (!(config == rhs.config)) + return false; + if (!(type == rhs.type)) + return false; + if (!(node == rhs.node)) + return false; + if (!(host_node == rhs.host_node)) + return false; + if (__isset.meta_split_status != rhs.__isset.meta_split_status) + return false; + else if (__isset.meta_split_status && !(meta_split_status == rhs.meta_split_status)) + return false; + return true; + } + bool operator != (const configuration_update_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_update_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_update_request &a, configuration_update_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_update_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_update_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_update_response__isset -{ - _configuration_update_response__isset() : err(false), config(false) {} - bool err : 1; - bool config : 1; +typedef struct _configuration_update_response__isset { + _configuration_update_response__isset() : err(false), config(false) {} + bool err :1; + bool config :1; } _configuration_update_response__isset; -class configuration_update_response -{ -public: - configuration_update_response(const configuration_update_response &); - configuration_update_response(configuration_update_response &&); - configuration_update_response &operator=(const configuration_update_response &); - configuration_update_response &operator=(configuration_update_response &&); - configuration_update_response() {} +class configuration_update_response { + public: + + configuration_update_response(const configuration_update_response&); + configuration_update_response(configuration_update_response&&); + configuration_update_response& operator=(const configuration_update_response&); + configuration_update_response& operator=(configuration_update_response&&); + configuration_update_response() { + } - virtual ~configuration_update_response() throw(); - ::dsn::error_code err; - ::dsn::partition_configuration config; + virtual ~configuration_update_response() throw(); + ::dsn::error_code err; + ::dsn::partition_configuration config; - _configuration_update_response__isset __isset; + _configuration_update_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_config(const ::dsn::partition_configuration &val); + void __set_config(const ::dsn::partition_configuration& val); - bool operator==(const configuration_update_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(config == rhs.config)) - return false; - return true; - } - bool operator!=(const configuration_update_response &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_update_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(config == rhs.config)) + return false; + return true; + } + bool operator != (const configuration_update_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_update_response &) const; + bool operator < (const configuration_update_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_update_response &a, configuration_update_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_update_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_update_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_server_info__isset -{ - _replica_server_info__isset() : geo_tags(false), total_capacity_mb(false) {} - bool geo_tags : 1; - bool total_capacity_mb : 1; +typedef struct _replica_server_info__isset { + _replica_server_info__isset() : geo_tags(false), total_capacity_mb(false) {} + bool geo_tags :1; + bool total_capacity_mb :1; } _replica_server_info__isset; -class replica_server_info -{ -public: - replica_server_info(const replica_server_info &); - replica_server_info(replica_server_info &&); - replica_server_info &operator=(const replica_server_info &); - replica_server_info &operator=(replica_server_info &&); - replica_server_info() : total_capacity_mb(0) {} +class replica_server_info { + public: - virtual ~replica_server_info() throw(); - std::map geo_tags; - int64_t total_capacity_mb; + replica_server_info(const replica_server_info&); + replica_server_info(replica_server_info&&); + replica_server_info& operator=(const replica_server_info&); + replica_server_info& operator=(replica_server_info&&); + replica_server_info() : total_capacity_mb(0) { + } - _replica_server_info__isset __isset; + virtual ~replica_server_info() throw(); + std::map geo_tags; + int64_t total_capacity_mb; - void __set_geo_tags(const std::map &val); + _replica_server_info__isset __isset; - void __set_total_capacity_mb(const int64_t val); + void __set_geo_tags(const std::map & val); - bool operator==(const replica_server_info &rhs) const - { - if (!(geo_tags == rhs.geo_tags)) - return false; - if (!(total_capacity_mb == rhs.total_capacity_mb)) - return false; - return true; - } - bool operator!=(const replica_server_info &rhs) const { return !(*this == rhs); } + void __set_total_capacity_mb(const int64_t val); - bool operator<(const replica_server_info &) const; + bool operator == (const replica_server_info & rhs) const + { + if (!(geo_tags == rhs.geo_tags)) + return false; + if (!(total_capacity_mb == rhs.total_capacity_mb)) + return false; + return true; + } + bool operator != (const replica_server_info &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const replica_server_info & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(replica_server_info &a, replica_server_info &b); -inline std::ostream &operator<<(std::ostream &out, const replica_server_info &obj) +inline std::ostream& operator<<(std::ostream& out, const replica_server_info& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_by_node_request__isset -{ - _configuration_query_by_node_request__isset() : node(false), stored_replicas(false), info(false) - { - } - bool node : 1; - bool stored_replicas : 1; - bool info : 1; +typedef struct _configuration_query_by_node_request__isset { + _configuration_query_by_node_request__isset() : node(false), stored_replicas(false), info(false) {} + bool node :1; + bool stored_replicas :1; + bool info :1; } _configuration_query_by_node_request__isset; -class configuration_query_by_node_request -{ -public: - configuration_query_by_node_request(const configuration_query_by_node_request &); - configuration_query_by_node_request(configuration_query_by_node_request &&); - configuration_query_by_node_request &operator=(const configuration_query_by_node_request &); - configuration_query_by_node_request &operator=(configuration_query_by_node_request &&); - configuration_query_by_node_request() {} +class configuration_query_by_node_request { + public: + + configuration_query_by_node_request(const configuration_query_by_node_request&); + configuration_query_by_node_request(configuration_query_by_node_request&&); + configuration_query_by_node_request& operator=(const configuration_query_by_node_request&); + configuration_query_by_node_request& operator=(configuration_query_by_node_request&&); + configuration_query_by_node_request() { + } - virtual ~configuration_query_by_node_request() throw(); - ::dsn::rpc_address node; - std::vector stored_replicas; - replica_server_info info; + virtual ~configuration_query_by_node_request() throw(); + ::dsn::rpc_address node; + std::vector stored_replicas; + replica_server_info info; - _configuration_query_by_node_request__isset __isset; + _configuration_query_by_node_request__isset __isset; - void __set_node(const ::dsn::rpc_address &val); + void __set_node(const ::dsn::rpc_address& val); - void __set_stored_replicas(const std::vector &val); + void __set_stored_replicas(const std::vector & val); - void __set_info(const replica_server_info &val); + void __set_info(const replica_server_info& val); - bool operator==(const configuration_query_by_node_request &rhs) const - { - if (!(node == rhs.node)) - return false; - if (__isset.stored_replicas != rhs.__isset.stored_replicas) - return false; - else if (__isset.stored_replicas && !(stored_replicas == rhs.stored_replicas)) - return false; - if (__isset.info != rhs.__isset.info) - return false; - else if (__isset.info && !(info == rhs.info)) - return false; - return true; - } - bool operator!=(const configuration_query_by_node_request &rhs) const - { - return !(*this == rhs); - } + bool operator == (const configuration_query_by_node_request & rhs) const + { + if (!(node == rhs.node)) + return false; + if (__isset.stored_replicas != rhs.__isset.stored_replicas) + return false; + else if (__isset.stored_replicas && !(stored_replicas == rhs.stored_replicas)) + return false; + if (__isset.info != rhs.__isset.info) + return false; + else if (__isset.info && !(info == rhs.info)) + return false; + return true; + } + bool operator != (const configuration_query_by_node_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_query_by_node_request &) const; + bool operator < (const configuration_query_by_node_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_query_by_node_request &a, configuration_query_by_node_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_query_by_node_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_query_by_node_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_by_node_response__isset -{ - _configuration_query_by_node_response__isset() - : err(false), partitions(false), gc_replicas(false) - { - } - bool err : 1; - bool partitions : 1; - bool gc_replicas : 1; +typedef struct _configuration_query_by_node_response__isset { + _configuration_query_by_node_response__isset() : err(false), partitions(false), gc_replicas(false) {} + bool err :1; + bool partitions :1; + bool gc_replicas :1; } _configuration_query_by_node_response__isset; -class configuration_query_by_node_response -{ -public: - configuration_query_by_node_response(const configuration_query_by_node_response &); - configuration_query_by_node_response(configuration_query_by_node_response &&); - configuration_query_by_node_response &operator=(const configuration_query_by_node_response &); - configuration_query_by_node_response &operator=(configuration_query_by_node_response &&); - configuration_query_by_node_response() {} +class configuration_query_by_node_response { + public: - virtual ~configuration_query_by_node_response() throw(); - ::dsn::error_code err; - std::vector partitions; - std::vector gc_replicas; + configuration_query_by_node_response(const configuration_query_by_node_response&); + configuration_query_by_node_response(configuration_query_by_node_response&&); + configuration_query_by_node_response& operator=(const configuration_query_by_node_response&); + configuration_query_by_node_response& operator=(configuration_query_by_node_response&&); + configuration_query_by_node_response() { + } - _configuration_query_by_node_response__isset __isset; + virtual ~configuration_query_by_node_response() throw(); + ::dsn::error_code err; + std::vector partitions; + std::vector gc_replicas; - void __set_err(const ::dsn::error_code &val); + _configuration_query_by_node_response__isset __isset; - void __set_partitions(const std::vector &val); + void __set_err(const ::dsn::error_code& val); - void __set_gc_replicas(const std::vector &val); + void __set_partitions(const std::vector & val); - bool operator==(const configuration_query_by_node_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(partitions == rhs.partitions)) - return false; - if (__isset.gc_replicas != rhs.__isset.gc_replicas) - return false; - else if (__isset.gc_replicas && !(gc_replicas == rhs.gc_replicas)) - return false; - return true; - } - bool operator!=(const configuration_query_by_node_response &rhs) const - { - return !(*this == rhs); - } + void __set_gc_replicas(const std::vector & val); - bool operator<(const configuration_query_by_node_response &) const; + bool operator == (const configuration_query_by_node_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(partitions == rhs.partitions)) + return false; + if (__isset.gc_replicas != rhs.__isset.gc_replicas) + return false; + else if (__isset.gc_replicas && !(gc_replicas == rhs.gc_replicas)) + return false; + return true; + } + bool operator != (const configuration_query_by_node_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_query_by_node_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_query_by_node_response &a, configuration_query_by_node_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_query_by_node_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_query_by_node_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _create_app_options__isset -{ - _create_app_options__isset() - : partition_count(false), - replica_count(false), - success_if_exist(false), - app_type(false), - is_stateful(false), - envs(false) - { - } - bool partition_count : 1; - bool replica_count : 1; - bool success_if_exist : 1; - bool app_type : 1; - bool is_stateful : 1; - bool envs : 1; +typedef struct _create_app_options__isset { + _create_app_options__isset() : partition_count(false), replica_count(false), success_if_exist(false), app_type(false), is_stateful(false), envs(false) {} + bool partition_count :1; + bool replica_count :1; + bool success_if_exist :1; + bool app_type :1; + bool is_stateful :1; + bool envs :1; } _create_app_options__isset; -class create_app_options -{ -public: - create_app_options(const create_app_options &); - create_app_options(create_app_options &&); - create_app_options &operator=(const create_app_options &); - create_app_options &operator=(create_app_options &&); - create_app_options() - : partition_count(0), replica_count(0), success_if_exist(0), app_type(), is_stateful(0) - { - } +class create_app_options { + public: + + create_app_options(const create_app_options&); + create_app_options(create_app_options&&); + create_app_options& operator=(const create_app_options&); + create_app_options& operator=(create_app_options&&); + create_app_options() : partition_count(0), replica_count(0), success_if_exist(0), app_type(), is_stateful(0) { + } - virtual ~create_app_options() throw(); - int32_t partition_count; - int32_t replica_count; - bool success_if_exist; - std::string app_type; - bool is_stateful; - std::map envs; + virtual ~create_app_options() throw(); + int32_t partition_count; + int32_t replica_count; + bool success_if_exist; + std::string app_type; + bool is_stateful; + std::map envs; - _create_app_options__isset __isset; + _create_app_options__isset __isset; - void __set_partition_count(const int32_t val); + void __set_partition_count(const int32_t val); - void __set_replica_count(const int32_t val); + void __set_replica_count(const int32_t val); - void __set_success_if_exist(const bool val); + void __set_success_if_exist(const bool val); - void __set_app_type(const std::string &val); + void __set_app_type(const std::string& val); - void __set_is_stateful(const bool val); + void __set_is_stateful(const bool val); - void __set_envs(const std::map &val); + void __set_envs(const std::map & val); - bool operator==(const create_app_options &rhs) const - { - if (!(partition_count == rhs.partition_count)) - return false; - if (!(replica_count == rhs.replica_count)) - return false; - if (!(success_if_exist == rhs.success_if_exist)) - return false; - if (!(app_type == rhs.app_type)) - return false; - if (!(is_stateful == rhs.is_stateful)) - return false; - if (!(envs == rhs.envs)) - return false; - return true; - } - bool operator!=(const create_app_options &rhs) const { return !(*this == rhs); } + bool operator == (const create_app_options & rhs) const + { + if (!(partition_count == rhs.partition_count)) + return false; + if (!(replica_count == rhs.replica_count)) + return false; + if (!(success_if_exist == rhs.success_if_exist)) + return false; + if (!(app_type == rhs.app_type)) + return false; + if (!(is_stateful == rhs.is_stateful)) + return false; + if (!(envs == rhs.envs)) + return false; + return true; + } + bool operator != (const create_app_options &rhs) const { + return !(*this == rhs); + } - bool operator<(const create_app_options &) const; + bool operator < (const create_app_options & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(create_app_options &a, create_app_options &b); -inline std::ostream &operator<<(std::ostream &out, const create_app_options &obj) +inline std::ostream& operator<<(std::ostream& out, const create_app_options& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_create_app_request__isset -{ - _configuration_create_app_request__isset() : app_name(false), options(false) {} - bool app_name : 1; - bool options : 1; +typedef struct _configuration_create_app_request__isset { + _configuration_create_app_request__isset() : app_name(false), options(false) {} + bool app_name :1; + bool options :1; } _configuration_create_app_request__isset; -class configuration_create_app_request -{ -public: - configuration_create_app_request(const configuration_create_app_request &); - configuration_create_app_request(configuration_create_app_request &&); - configuration_create_app_request &operator=(const configuration_create_app_request &); - configuration_create_app_request &operator=(configuration_create_app_request &&); - configuration_create_app_request() : app_name() {} +class configuration_create_app_request { + public: - virtual ~configuration_create_app_request() throw(); - std::string app_name; - create_app_options options; + configuration_create_app_request(const configuration_create_app_request&); + configuration_create_app_request(configuration_create_app_request&&); + configuration_create_app_request& operator=(const configuration_create_app_request&); + configuration_create_app_request& operator=(configuration_create_app_request&&); + configuration_create_app_request() : app_name() { + } - _configuration_create_app_request__isset __isset; + virtual ~configuration_create_app_request() throw(); + std::string app_name; + create_app_options options; - void __set_app_name(const std::string &val); + _configuration_create_app_request__isset __isset; - void __set_options(const create_app_options &val); + void __set_app_name(const std::string& val); - bool operator==(const configuration_create_app_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(options == rhs.options)) - return false; - return true; - } - bool operator!=(const configuration_create_app_request &rhs) const { return !(*this == rhs); } + void __set_options(const create_app_options& val); - bool operator<(const configuration_create_app_request &) const; + bool operator == (const configuration_create_app_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(options == rhs.options)) + return false; + return true; + } + bool operator != (const configuration_create_app_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_create_app_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_create_app_request &a, configuration_create_app_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_create_app_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_create_app_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _drop_app_options__isset -{ - _drop_app_options__isset() : success_if_not_exist(false), reserve_seconds(false) {} - bool success_if_not_exist : 1; - bool reserve_seconds : 1; +typedef struct _drop_app_options__isset { + _drop_app_options__isset() : success_if_not_exist(false), reserve_seconds(false) {} + bool success_if_not_exist :1; + bool reserve_seconds :1; } _drop_app_options__isset; -class drop_app_options -{ -public: - drop_app_options(const drop_app_options &); - drop_app_options(drop_app_options &&); - drop_app_options &operator=(const drop_app_options &); - drop_app_options &operator=(drop_app_options &&); - drop_app_options() : success_if_not_exist(0), reserve_seconds(0) {} +class drop_app_options { + public: + + drop_app_options(const drop_app_options&); + drop_app_options(drop_app_options&&); + drop_app_options& operator=(const drop_app_options&); + drop_app_options& operator=(drop_app_options&&); + drop_app_options() : success_if_not_exist(0), reserve_seconds(0) { + } - virtual ~drop_app_options() throw(); - bool success_if_not_exist; - int64_t reserve_seconds; + virtual ~drop_app_options() throw(); + bool success_if_not_exist; + int64_t reserve_seconds; - _drop_app_options__isset __isset; + _drop_app_options__isset __isset; - void __set_success_if_not_exist(const bool val); + void __set_success_if_not_exist(const bool val); - void __set_reserve_seconds(const int64_t val); + void __set_reserve_seconds(const int64_t val); - bool operator==(const drop_app_options &rhs) const - { - if (!(success_if_not_exist == rhs.success_if_not_exist)) - return false; - if (__isset.reserve_seconds != rhs.__isset.reserve_seconds) - return false; - else if (__isset.reserve_seconds && !(reserve_seconds == rhs.reserve_seconds)) - return false; - return true; - } - bool operator!=(const drop_app_options &rhs) const { return !(*this == rhs); } + bool operator == (const drop_app_options & rhs) const + { + if (!(success_if_not_exist == rhs.success_if_not_exist)) + return false; + if (__isset.reserve_seconds != rhs.__isset.reserve_seconds) + return false; + else if (__isset.reserve_seconds && !(reserve_seconds == rhs.reserve_seconds)) + return false; + return true; + } + bool operator != (const drop_app_options &rhs) const { + return !(*this == rhs); + } - bool operator<(const drop_app_options &) const; + bool operator < (const drop_app_options & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(drop_app_options &a, drop_app_options &b); -inline std::ostream &operator<<(std::ostream &out, const drop_app_options &obj) +inline std::ostream& operator<<(std::ostream& out, const drop_app_options& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_drop_app_request__isset -{ - _configuration_drop_app_request__isset() : app_name(false), options(false) {} - bool app_name : 1; - bool options : 1; +typedef struct _configuration_drop_app_request__isset { + _configuration_drop_app_request__isset() : app_name(false), options(false) {} + bool app_name :1; + bool options :1; } _configuration_drop_app_request__isset; -class configuration_drop_app_request -{ -public: - configuration_drop_app_request(const configuration_drop_app_request &); - configuration_drop_app_request(configuration_drop_app_request &&); - configuration_drop_app_request &operator=(const configuration_drop_app_request &); - configuration_drop_app_request &operator=(configuration_drop_app_request &&); - configuration_drop_app_request() : app_name() {} +class configuration_drop_app_request { + public: - virtual ~configuration_drop_app_request() throw(); - std::string app_name; - drop_app_options options; + configuration_drop_app_request(const configuration_drop_app_request&); + configuration_drop_app_request(configuration_drop_app_request&&); + configuration_drop_app_request& operator=(const configuration_drop_app_request&); + configuration_drop_app_request& operator=(configuration_drop_app_request&&); + configuration_drop_app_request() : app_name() { + } - _configuration_drop_app_request__isset __isset; + virtual ~configuration_drop_app_request() throw(); + std::string app_name; + drop_app_options options; - void __set_app_name(const std::string &val); + _configuration_drop_app_request__isset __isset; - void __set_options(const drop_app_options &val); + void __set_app_name(const std::string& val); - bool operator==(const configuration_drop_app_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(options == rhs.options)) - return false; - return true; - } - bool operator!=(const configuration_drop_app_request &rhs) const { return !(*this == rhs); } + void __set_options(const drop_app_options& val); - bool operator<(const configuration_drop_app_request &) const; + bool operator == (const configuration_drop_app_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(options == rhs.options)) + return false; + return true; + } + bool operator != (const configuration_drop_app_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_drop_app_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_drop_app_request &a, configuration_drop_app_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_drop_app_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_drop_app_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_list_apps_request__isset -{ - _configuration_list_apps_request__isset() : status(true) {} - bool status : 1; +typedef struct _configuration_list_apps_request__isset { + _configuration_list_apps_request__isset() : status(true) {} + bool status :1; } _configuration_list_apps_request__isset; -class configuration_list_apps_request -{ -public: - configuration_list_apps_request(const configuration_list_apps_request &); - configuration_list_apps_request(configuration_list_apps_request &&); - configuration_list_apps_request &operator=(const configuration_list_apps_request &); - configuration_list_apps_request &operator=(configuration_list_apps_request &&); - configuration_list_apps_request() : status((::dsn::app_status::type)0) - { - status = (::dsn::app_status::type)0; - } +class configuration_list_apps_request { + public: + + configuration_list_apps_request(const configuration_list_apps_request&); + configuration_list_apps_request(configuration_list_apps_request&&); + configuration_list_apps_request& operator=(const configuration_list_apps_request&); + configuration_list_apps_request& operator=(configuration_list_apps_request&&); + configuration_list_apps_request() : status(( ::dsn::app_status::type)0) { + status = ( ::dsn::app_status::type)0; - virtual ~configuration_list_apps_request() throw(); - ::dsn::app_status::type status; + } - _configuration_list_apps_request__isset __isset; + virtual ~configuration_list_apps_request() throw(); + ::dsn::app_status::type status; - void __set_status(const ::dsn::app_status::type val); + _configuration_list_apps_request__isset __isset; - bool operator==(const configuration_list_apps_request &rhs) const - { - if (!(status == rhs.status)) - return false; - return true; - } - bool operator!=(const configuration_list_apps_request &rhs) const { return !(*this == rhs); } + void __set_status(const ::dsn::app_status::type val); - bool operator<(const configuration_list_apps_request &) const; + bool operator == (const configuration_list_apps_request & rhs) const + { + if (!(status == rhs.status)) + return false; + return true; + } + bool operator != (const configuration_list_apps_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_list_apps_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_list_apps_request &a, configuration_list_apps_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_list_apps_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_list_apps_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_list_nodes_request__isset -{ - _configuration_list_nodes_request__isset() : status(true) {} - bool status : 1; +typedef struct _configuration_list_nodes_request__isset { + _configuration_list_nodes_request__isset() : status(true) {} + bool status :1; } _configuration_list_nodes_request__isset; -class configuration_list_nodes_request -{ -public: - configuration_list_nodes_request(const configuration_list_nodes_request &); - configuration_list_nodes_request(configuration_list_nodes_request &&); - configuration_list_nodes_request &operator=(const configuration_list_nodes_request &); - configuration_list_nodes_request &operator=(configuration_list_nodes_request &&); - configuration_list_nodes_request() : status((node_status::type)0) - { - status = (node_status::type)0; - } +class configuration_list_nodes_request { + public: + + configuration_list_nodes_request(const configuration_list_nodes_request&); + configuration_list_nodes_request(configuration_list_nodes_request&&); + configuration_list_nodes_request& operator=(const configuration_list_nodes_request&); + configuration_list_nodes_request& operator=(configuration_list_nodes_request&&); + configuration_list_nodes_request() : status((node_status::type)0) { + status = (node_status::type)0; - virtual ~configuration_list_nodes_request() throw(); - node_status::type status; + } - _configuration_list_nodes_request__isset __isset; + virtual ~configuration_list_nodes_request() throw(); + node_status::type status; - void __set_status(const node_status::type val); + _configuration_list_nodes_request__isset __isset; - bool operator==(const configuration_list_nodes_request &rhs) const - { - if (!(status == rhs.status)) - return false; - return true; - } - bool operator!=(const configuration_list_nodes_request &rhs) const { return !(*this == rhs); } + void __set_status(const node_status::type val); - bool operator<(const configuration_list_nodes_request &) const; + bool operator == (const configuration_list_nodes_request & rhs) const + { + if (!(status == rhs.status)) + return false; + return true; + } + bool operator != (const configuration_list_nodes_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_list_nodes_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_list_nodes_request &a, configuration_list_nodes_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_list_nodes_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_list_nodes_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -class configuration_cluster_info_request -{ -public: - configuration_cluster_info_request(const configuration_cluster_info_request &); - configuration_cluster_info_request(configuration_cluster_info_request &&); - configuration_cluster_info_request &operator=(const configuration_cluster_info_request &); - configuration_cluster_info_request &operator=(configuration_cluster_info_request &&); - configuration_cluster_info_request() {} - virtual ~configuration_cluster_info_request() throw(); +class configuration_cluster_info_request { + public: + + configuration_cluster_info_request(const configuration_cluster_info_request&); + configuration_cluster_info_request(configuration_cluster_info_request&&); + configuration_cluster_info_request& operator=(const configuration_cluster_info_request&); + configuration_cluster_info_request& operator=(configuration_cluster_info_request&&); + configuration_cluster_info_request() { + } + + virtual ~configuration_cluster_info_request() throw(); - bool operator==(const configuration_cluster_info_request & /* rhs */) const { return true; } - bool operator!=(const configuration_cluster_info_request &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_cluster_info_request & /* rhs */) const + { + return true; + } + bool operator != (const configuration_cluster_info_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_cluster_info_request &) const; + bool operator < (const configuration_cluster_info_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_cluster_info_request &a, configuration_cluster_info_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_cluster_info_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_cluster_info_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_recall_app_request__isset -{ - _configuration_recall_app_request__isset() : app_id(false), new_app_name(false) {} - bool app_id : 1; - bool new_app_name : 1; +typedef struct _configuration_recall_app_request__isset { + _configuration_recall_app_request__isset() : app_id(false), new_app_name(false) {} + bool app_id :1; + bool new_app_name :1; } _configuration_recall_app_request__isset; -class configuration_recall_app_request -{ -public: - configuration_recall_app_request(const configuration_recall_app_request &); - configuration_recall_app_request(configuration_recall_app_request &&); - configuration_recall_app_request &operator=(const configuration_recall_app_request &); - configuration_recall_app_request &operator=(configuration_recall_app_request &&); - configuration_recall_app_request() : app_id(0), new_app_name() {} +class configuration_recall_app_request { + public: - virtual ~configuration_recall_app_request() throw(); - int32_t app_id; - std::string new_app_name; + configuration_recall_app_request(const configuration_recall_app_request&); + configuration_recall_app_request(configuration_recall_app_request&&); + configuration_recall_app_request& operator=(const configuration_recall_app_request&); + configuration_recall_app_request& operator=(configuration_recall_app_request&&); + configuration_recall_app_request() : app_id(0), new_app_name() { + } - _configuration_recall_app_request__isset __isset; + virtual ~configuration_recall_app_request() throw(); + int32_t app_id; + std::string new_app_name; - void __set_app_id(const int32_t val); + _configuration_recall_app_request__isset __isset; - void __set_new_app_name(const std::string &val); + void __set_app_id(const int32_t val); - bool operator==(const configuration_recall_app_request &rhs) const - { - if (!(app_id == rhs.app_id)) - return false; - if (!(new_app_name == rhs.new_app_name)) - return false; - return true; - } - bool operator!=(const configuration_recall_app_request &rhs) const { return !(*this == rhs); } + void __set_new_app_name(const std::string& val); - bool operator<(const configuration_recall_app_request &) const; + bool operator == (const configuration_recall_app_request & rhs) const + { + if (!(app_id == rhs.app_id)) + return false; + if (!(new_app_name == rhs.new_app_name)) + return false; + return true; + } + bool operator != (const configuration_recall_app_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_recall_app_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_recall_app_request &a, configuration_recall_app_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_recall_app_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_recall_app_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_create_app_response__isset -{ - _configuration_create_app_response__isset() : err(false), appid(false) {} - bool err : 1; - bool appid : 1; +typedef struct _configuration_create_app_response__isset { + _configuration_create_app_response__isset() : err(false), appid(false) {} + bool err :1; + bool appid :1; } _configuration_create_app_response__isset; -class configuration_create_app_response -{ -public: - configuration_create_app_response(const configuration_create_app_response &); - configuration_create_app_response(configuration_create_app_response &&); - configuration_create_app_response &operator=(const configuration_create_app_response &); - configuration_create_app_response &operator=(configuration_create_app_response &&); - configuration_create_app_response() : appid(0) {} +class configuration_create_app_response { + public: + + configuration_create_app_response(const configuration_create_app_response&); + configuration_create_app_response(configuration_create_app_response&&); + configuration_create_app_response& operator=(const configuration_create_app_response&); + configuration_create_app_response& operator=(configuration_create_app_response&&); + configuration_create_app_response() : appid(0) { + } - virtual ~configuration_create_app_response() throw(); - ::dsn::error_code err; - int32_t appid; + virtual ~configuration_create_app_response() throw(); + ::dsn::error_code err; + int32_t appid; - _configuration_create_app_response__isset __isset; + _configuration_create_app_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_appid(const int32_t val); + void __set_appid(const int32_t val); - bool operator==(const configuration_create_app_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(appid == rhs.appid)) - return false; - return true; - } - bool operator!=(const configuration_create_app_response &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_create_app_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(appid == rhs.appid)) + return false; + return true; + } + bool operator != (const configuration_create_app_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_create_app_response &) const; + bool operator < (const configuration_create_app_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_create_app_response &a, configuration_create_app_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_create_app_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_create_app_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_meta_control_request__isset -{ - _configuration_meta_control_request__isset() : level(false) {} - bool level : 1; +typedef struct _configuration_meta_control_request__isset { + _configuration_meta_control_request__isset() : level(false) {} + bool level :1; } _configuration_meta_control_request__isset; -class configuration_meta_control_request -{ -public: - configuration_meta_control_request(const configuration_meta_control_request &); - configuration_meta_control_request(configuration_meta_control_request &&); - configuration_meta_control_request &operator=(const configuration_meta_control_request &); - configuration_meta_control_request &operator=(configuration_meta_control_request &&); - configuration_meta_control_request() : level((meta_function_level::type)0) {} +class configuration_meta_control_request { + public: - virtual ~configuration_meta_control_request() throw(); - meta_function_level::type level; + configuration_meta_control_request(const configuration_meta_control_request&); + configuration_meta_control_request(configuration_meta_control_request&&); + configuration_meta_control_request& operator=(const configuration_meta_control_request&); + configuration_meta_control_request& operator=(configuration_meta_control_request&&); + configuration_meta_control_request() : level((meta_function_level::type)0) { + } - _configuration_meta_control_request__isset __isset; + virtual ~configuration_meta_control_request() throw(); + meta_function_level::type level; - void __set_level(const meta_function_level::type val); + _configuration_meta_control_request__isset __isset; - bool operator==(const configuration_meta_control_request &rhs) const - { - if (!(level == rhs.level)) - return false; - return true; - } - bool operator!=(const configuration_meta_control_request &rhs) const { return !(*this == rhs); } + void __set_level(const meta_function_level::type val); - bool operator<(const configuration_meta_control_request &) const; + bool operator == (const configuration_meta_control_request & rhs) const + { + if (!(level == rhs.level)) + return false; + return true; + } + bool operator != (const configuration_meta_control_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_meta_control_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_meta_control_request &a, configuration_meta_control_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_meta_control_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_meta_control_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_meta_control_response__isset -{ - _configuration_meta_control_response__isset() : err(false), old_level(false) {} - bool err : 1; - bool old_level : 1; +typedef struct _configuration_meta_control_response__isset { + _configuration_meta_control_response__isset() : err(false), old_level(false) {} + bool err :1; + bool old_level :1; } _configuration_meta_control_response__isset; -class configuration_meta_control_response -{ -public: - configuration_meta_control_response(const configuration_meta_control_response &); - configuration_meta_control_response(configuration_meta_control_response &&); - configuration_meta_control_response &operator=(const configuration_meta_control_response &); - configuration_meta_control_response &operator=(configuration_meta_control_response &&); - configuration_meta_control_response() : old_level((meta_function_level::type)0) {} +class configuration_meta_control_response { + public: + + configuration_meta_control_response(const configuration_meta_control_response&); + configuration_meta_control_response(configuration_meta_control_response&&); + configuration_meta_control_response& operator=(const configuration_meta_control_response&); + configuration_meta_control_response& operator=(configuration_meta_control_response&&); + configuration_meta_control_response() : old_level((meta_function_level::type)0) { + } - virtual ~configuration_meta_control_response() throw(); - ::dsn::error_code err; - meta_function_level::type old_level; + virtual ~configuration_meta_control_response() throw(); + ::dsn::error_code err; + meta_function_level::type old_level; - _configuration_meta_control_response__isset __isset; + _configuration_meta_control_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_old_level(const meta_function_level::type val); + void __set_old_level(const meta_function_level::type val); - bool operator==(const configuration_meta_control_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(old_level == rhs.old_level)) - return false; - return true; - } - bool operator!=(const configuration_meta_control_response &rhs) const - { - return !(*this == rhs); - } + bool operator == (const configuration_meta_control_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(old_level == rhs.old_level)) + return false; + return true; + } + bool operator != (const configuration_meta_control_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_meta_control_response &) const; + bool operator < (const configuration_meta_control_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_meta_control_response &a, configuration_meta_control_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_meta_control_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_meta_control_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_proposal_action__isset -{ - _configuration_proposal_action__isset() : target(false), node(false), type(false) {} - bool target : 1; - bool node : 1; - bool type : 1; +typedef struct _configuration_proposal_action__isset { + _configuration_proposal_action__isset() : target(false), node(false), type(false) {} + bool target :1; + bool node :1; + bool type :1; } _configuration_proposal_action__isset; -class configuration_proposal_action -{ -public: - configuration_proposal_action(::dsn::rpc_address t, ::dsn::rpc_address n, config_type::type tp) - : target(t), node(n), type(tp) - { - } +class configuration_proposal_action { + public: + configuration_proposal_action(::dsn::rpc_address t, ::dsn::rpc_address n, config_type::type tp): target(t), node(n), type(tp) {} - configuration_proposal_action(const configuration_proposal_action &); - configuration_proposal_action(configuration_proposal_action &&); - configuration_proposal_action &operator=(const configuration_proposal_action &); - configuration_proposal_action &operator=(configuration_proposal_action &&); - configuration_proposal_action() : type((config_type::type)0) {} + configuration_proposal_action(const configuration_proposal_action&); + configuration_proposal_action(configuration_proposal_action&&); + configuration_proposal_action& operator=(const configuration_proposal_action&); + configuration_proposal_action& operator=(configuration_proposal_action&&); + configuration_proposal_action() : type((config_type::type)0) { + } - virtual ~configuration_proposal_action() throw(); - ::dsn::rpc_address target; - ::dsn::rpc_address node; - config_type::type type; + virtual ~configuration_proposal_action() throw(); + ::dsn::rpc_address target; + ::dsn::rpc_address node; + config_type::type type; - _configuration_proposal_action__isset __isset; + _configuration_proposal_action__isset __isset; - void __set_target(const ::dsn::rpc_address &val); + void __set_target(const ::dsn::rpc_address& val); - void __set_node(const ::dsn::rpc_address &val); + void __set_node(const ::dsn::rpc_address& val); - void __set_type(const config_type::type val); + void __set_type(const config_type::type val); - bool operator==(const configuration_proposal_action &rhs) const - { - if (!(target == rhs.target)) - return false; - if (!(node == rhs.node)) - return false; - if (!(type == rhs.type)) - return false; - return true; - } - bool operator!=(const configuration_proposal_action &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_proposal_action & rhs) const + { + if (!(target == rhs.target)) + return false; + if (!(node == rhs.node)) + return false; + if (!(type == rhs.type)) + return false; + return true; + } + bool operator != (const configuration_proposal_action &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_proposal_action &a, configuration_proposal_action &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_proposal_action &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_proposal_action& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_balancer_request__isset -{ - _configuration_balancer_request__isset() - : gpid(false), action_list(false), force(true), balance_type(false) - { - } - bool gpid : 1; - bool action_list : 1; - bool force : 1; - bool balance_type : 1; +typedef struct _configuration_balancer_request__isset { + _configuration_balancer_request__isset() : gpid(false), action_list(false), force(true), balance_type(false) {} + bool gpid :1; + bool action_list :1; + bool force :1; + bool balance_type :1; } _configuration_balancer_request__isset; -class configuration_balancer_request -{ -public: - configuration_balancer_request(const configuration_balancer_request &); - configuration_balancer_request(configuration_balancer_request &&); - configuration_balancer_request &operator=(const configuration_balancer_request &); - configuration_balancer_request &operator=(configuration_balancer_request &&); - configuration_balancer_request() : force(false), balance_type((balancer_request_type::type)0) {} +class configuration_balancer_request { + public: + + configuration_balancer_request(const configuration_balancer_request&); + configuration_balancer_request(configuration_balancer_request&&); + configuration_balancer_request& operator=(const configuration_balancer_request&); + configuration_balancer_request& operator=(configuration_balancer_request&&); + configuration_balancer_request() : force(false), balance_type((balancer_request_type::type)0) { + } - virtual ~configuration_balancer_request() throw(); - ::dsn::gpid gpid; - std::vector action_list; - bool force; - balancer_request_type::type balance_type; + virtual ~configuration_balancer_request() throw(); + ::dsn::gpid gpid; + std::vector action_list; + bool force; + balancer_request_type::type balance_type; - _configuration_balancer_request__isset __isset; + _configuration_balancer_request__isset __isset; - void __set_gpid(const ::dsn::gpid &val); + void __set_gpid(const ::dsn::gpid& val); - void __set_action_list(const std::vector &val); + void __set_action_list(const std::vector & val); - void __set_force(const bool val); + void __set_force(const bool val); - void __set_balance_type(const balancer_request_type::type val); + void __set_balance_type(const balancer_request_type::type val); - bool operator==(const configuration_balancer_request &rhs) const - { - if (!(gpid == rhs.gpid)) - return false; - if (!(action_list == rhs.action_list)) - return false; - if (__isset.force != rhs.__isset.force) - return false; - else if (__isset.force && !(force == rhs.force)) - return false; - if (__isset.balance_type != rhs.__isset.balance_type) - return false; - else if (__isset.balance_type && !(balance_type == rhs.balance_type)) - return false; - return true; - } - bool operator!=(const configuration_balancer_request &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_balancer_request & rhs) const + { + if (!(gpid == rhs.gpid)) + return false; + if (!(action_list == rhs.action_list)) + return false; + if (__isset.force != rhs.__isset.force) + return false; + else if (__isset.force && !(force == rhs.force)) + return false; + if (__isset.balance_type != rhs.__isset.balance_type) + return false; + else if (__isset.balance_type && !(balance_type == rhs.balance_type)) + return false; + return true; + } + bool operator != (const configuration_balancer_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_balancer_request &) const; + bool operator < (const configuration_balancer_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_balancer_request &a, configuration_balancer_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_balancer_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_balancer_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_balancer_response__isset -{ - _configuration_balancer_response__isset() : err(false) {} - bool err : 1; +typedef struct _configuration_balancer_response__isset { + _configuration_balancer_response__isset() : err(false) {} + bool err :1; } _configuration_balancer_response__isset; -class configuration_balancer_response -{ -public: - configuration_balancer_response(const configuration_balancer_response &); - configuration_balancer_response(configuration_balancer_response &&); - configuration_balancer_response &operator=(const configuration_balancer_response &); - configuration_balancer_response &operator=(configuration_balancer_response &&); - configuration_balancer_response() {} +class configuration_balancer_response { + public: - virtual ~configuration_balancer_response() throw(); - ::dsn::error_code err; + configuration_balancer_response(const configuration_balancer_response&); + configuration_balancer_response(configuration_balancer_response&&); + configuration_balancer_response& operator=(const configuration_balancer_response&); + configuration_balancer_response& operator=(configuration_balancer_response&&); + configuration_balancer_response() { + } - _configuration_balancer_response__isset __isset; + virtual ~configuration_balancer_response() throw(); + ::dsn::error_code err; - void __set_err(const ::dsn::error_code &val); + _configuration_balancer_response__isset __isset; - bool operator==(const configuration_balancer_response &rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator!=(const configuration_balancer_response &rhs) const { return !(*this == rhs); } + void __set_err(const ::dsn::error_code& val); - bool operator<(const configuration_balancer_response &) const; + bool operator == (const configuration_balancer_response & rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator != (const configuration_balancer_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_balancer_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_balancer_response &a, configuration_balancer_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_balancer_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_balancer_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_drop_app_response__isset -{ - _configuration_drop_app_response__isset() : err(false) {} - bool err : 1; +typedef struct _configuration_drop_app_response__isset { + _configuration_drop_app_response__isset() : err(false) {} + bool err :1; } _configuration_drop_app_response__isset; -class configuration_drop_app_response -{ -public: - configuration_drop_app_response(const configuration_drop_app_response &); - configuration_drop_app_response(configuration_drop_app_response &&); - configuration_drop_app_response &operator=(const configuration_drop_app_response &); - configuration_drop_app_response &operator=(configuration_drop_app_response &&); - configuration_drop_app_response() {} +class configuration_drop_app_response { + public: + + configuration_drop_app_response(const configuration_drop_app_response&); + configuration_drop_app_response(configuration_drop_app_response&&); + configuration_drop_app_response& operator=(const configuration_drop_app_response&); + configuration_drop_app_response& operator=(configuration_drop_app_response&&); + configuration_drop_app_response() { + } - virtual ~configuration_drop_app_response() throw(); - ::dsn::error_code err; + virtual ~configuration_drop_app_response() throw(); + ::dsn::error_code err; - _configuration_drop_app_response__isset __isset; + _configuration_drop_app_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const configuration_drop_app_response &rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator!=(const configuration_drop_app_response &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_drop_app_response & rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator != (const configuration_drop_app_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_drop_app_response &) const; + bool operator < (const configuration_drop_app_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_drop_app_response &a, configuration_drop_app_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_drop_app_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_drop_app_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_list_apps_response__isset -{ - _configuration_list_apps_response__isset() : err(false), infos(false) {} - bool err : 1; - bool infos : 1; +typedef struct _configuration_list_apps_response__isset { + _configuration_list_apps_response__isset() : err(false), infos(false) {} + bool err :1; + bool infos :1; } _configuration_list_apps_response__isset; -class configuration_list_apps_response -{ -public: - configuration_list_apps_response(const configuration_list_apps_response &); - configuration_list_apps_response(configuration_list_apps_response &&); - configuration_list_apps_response &operator=(const configuration_list_apps_response &); - configuration_list_apps_response &operator=(configuration_list_apps_response &&); - configuration_list_apps_response() {} +class configuration_list_apps_response { + public: - virtual ~configuration_list_apps_response() throw(); - ::dsn::error_code err; - std::vector<::dsn::app_info> infos; + configuration_list_apps_response(const configuration_list_apps_response&); + configuration_list_apps_response(configuration_list_apps_response&&); + configuration_list_apps_response& operator=(const configuration_list_apps_response&); + configuration_list_apps_response& operator=(configuration_list_apps_response&&); + configuration_list_apps_response() { + } - _configuration_list_apps_response__isset __isset; + virtual ~configuration_list_apps_response() throw(); + ::dsn::error_code err; + std::vector< ::dsn::app_info> infos; - void __set_err(const ::dsn::error_code &val); + _configuration_list_apps_response__isset __isset; - void __set_infos(const std::vector<::dsn::app_info> &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const configuration_list_apps_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(infos == rhs.infos)) - return false; - return true; - } - bool operator!=(const configuration_list_apps_response &rhs) const { return !(*this == rhs); } + void __set_infos(const std::vector< ::dsn::app_info> & val); - bool operator<(const configuration_list_apps_response &) const; + bool operator == (const configuration_list_apps_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(infos == rhs.infos)) + return false; + return true; + } + bool operator != (const configuration_list_apps_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_list_apps_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_list_apps_response &a, configuration_list_apps_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_list_apps_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_list_apps_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_list_nodes_response__isset -{ - _configuration_list_nodes_response__isset() : err(false), infos(false) {} - bool err : 1; - bool infos : 1; +typedef struct _configuration_list_nodes_response__isset { + _configuration_list_nodes_response__isset() : err(false), infos(false) {} + bool err :1; + bool infos :1; } _configuration_list_nodes_response__isset; -class configuration_list_nodes_response -{ -public: - configuration_list_nodes_response(const configuration_list_nodes_response &); - configuration_list_nodes_response(configuration_list_nodes_response &&); - configuration_list_nodes_response &operator=(const configuration_list_nodes_response &); - configuration_list_nodes_response &operator=(configuration_list_nodes_response &&); - configuration_list_nodes_response() {} +class configuration_list_nodes_response { + public: + + configuration_list_nodes_response(const configuration_list_nodes_response&); + configuration_list_nodes_response(configuration_list_nodes_response&&); + configuration_list_nodes_response& operator=(const configuration_list_nodes_response&); + configuration_list_nodes_response& operator=(configuration_list_nodes_response&&); + configuration_list_nodes_response() { + } - virtual ~configuration_list_nodes_response() throw(); - ::dsn::error_code err; - std::vector infos; + virtual ~configuration_list_nodes_response() throw(); + ::dsn::error_code err; + std::vector infos; - _configuration_list_nodes_response__isset __isset; + _configuration_list_nodes_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_infos(const std::vector &val); + void __set_infos(const std::vector & val); - bool operator==(const configuration_list_nodes_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(infos == rhs.infos)) - return false; - return true; - } - bool operator!=(const configuration_list_nodes_response &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_list_nodes_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(infos == rhs.infos)) + return false; + return true; + } + bool operator != (const configuration_list_nodes_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_list_nodes_response &) const; + bool operator < (const configuration_list_nodes_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_list_nodes_response &a, configuration_list_nodes_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_list_nodes_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_list_nodes_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_cluster_info_response__isset -{ - _configuration_cluster_info_response__isset() : err(false), keys(false), values(false) {} - bool err : 1; - bool keys : 1; - bool values : 1; +typedef struct _configuration_cluster_info_response__isset { + _configuration_cluster_info_response__isset() : err(false), keys(false), values(false) {} + bool err :1; + bool keys :1; + bool values :1; } _configuration_cluster_info_response__isset; -class configuration_cluster_info_response -{ -public: - configuration_cluster_info_response(const configuration_cluster_info_response &); - configuration_cluster_info_response(configuration_cluster_info_response &&); - configuration_cluster_info_response &operator=(const configuration_cluster_info_response &); - configuration_cluster_info_response &operator=(configuration_cluster_info_response &&); - configuration_cluster_info_response() {} +class configuration_cluster_info_response { + public: - virtual ~configuration_cluster_info_response() throw(); - ::dsn::error_code err; - std::vector keys; - std::vector values; + configuration_cluster_info_response(const configuration_cluster_info_response&); + configuration_cluster_info_response(configuration_cluster_info_response&&); + configuration_cluster_info_response& operator=(const configuration_cluster_info_response&); + configuration_cluster_info_response& operator=(configuration_cluster_info_response&&); + configuration_cluster_info_response() { + } - _configuration_cluster_info_response__isset __isset; + virtual ~configuration_cluster_info_response() throw(); + ::dsn::error_code err; + std::vector keys; + std::vector values; - void __set_err(const ::dsn::error_code &val); + _configuration_cluster_info_response__isset __isset; - void __set_keys(const std::vector &val); + void __set_err(const ::dsn::error_code& val); - void __set_values(const std::vector &val); + void __set_keys(const std::vector & val); - bool operator==(const configuration_cluster_info_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(keys == rhs.keys)) - return false; - if (!(values == rhs.values)) - return false; - return true; - } - bool operator!=(const configuration_cluster_info_response &rhs) const - { - return !(*this == rhs); - } + void __set_values(const std::vector & val); - bool operator<(const configuration_cluster_info_response &) const; + bool operator == (const configuration_cluster_info_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(keys == rhs.keys)) + return false; + if (!(values == rhs.values)) + return false; + return true; + } + bool operator != (const configuration_cluster_info_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_cluster_info_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_cluster_info_response &a, configuration_cluster_info_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_cluster_info_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_cluster_info_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_recall_app_response__isset -{ - _configuration_recall_app_response__isset() : err(false), info(false) {} - bool err : 1; - bool info : 1; +typedef struct _configuration_recall_app_response__isset { + _configuration_recall_app_response__isset() : err(false), info(false) {} + bool err :1; + bool info :1; } _configuration_recall_app_response__isset; -class configuration_recall_app_response -{ -public: - configuration_recall_app_response(const configuration_recall_app_response &); - configuration_recall_app_response(configuration_recall_app_response &&); - configuration_recall_app_response &operator=(const configuration_recall_app_response &); - configuration_recall_app_response &operator=(configuration_recall_app_response &&); - configuration_recall_app_response() {} +class configuration_recall_app_response { + public: + + configuration_recall_app_response(const configuration_recall_app_response&); + configuration_recall_app_response(configuration_recall_app_response&&); + configuration_recall_app_response& operator=(const configuration_recall_app_response&); + configuration_recall_app_response& operator=(configuration_recall_app_response&&); + configuration_recall_app_response() { + } - virtual ~configuration_recall_app_response() throw(); - ::dsn::error_code err; - ::dsn::app_info info; + virtual ~configuration_recall_app_response() throw(); + ::dsn::error_code err; + ::dsn::app_info info; - _configuration_recall_app_response__isset __isset; + _configuration_recall_app_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_info(const ::dsn::app_info &val); + void __set_info(const ::dsn::app_info& val); - bool operator==(const configuration_recall_app_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(info == rhs.info)) - return false; - return true; - } - bool operator!=(const configuration_recall_app_response &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_recall_app_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(info == rhs.info)) + return false; + return true; + } + bool operator != (const configuration_recall_app_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_recall_app_response &) const; + bool operator < (const configuration_recall_app_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_recall_app_response &a, configuration_recall_app_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_recall_app_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_recall_app_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_replica_decree_request__isset -{ - _query_replica_decree_request__isset() : pid(false), node(false) {} - bool pid : 1; - bool node : 1; +typedef struct _query_replica_decree_request__isset { + _query_replica_decree_request__isset() : pid(false), node(false) {} + bool pid :1; + bool node :1; } _query_replica_decree_request__isset; -class query_replica_decree_request -{ -public: - query_replica_decree_request(const query_replica_decree_request &); - query_replica_decree_request(query_replica_decree_request &&); - query_replica_decree_request &operator=(const query_replica_decree_request &); - query_replica_decree_request &operator=(query_replica_decree_request &&); - query_replica_decree_request() {} +class query_replica_decree_request { + public: - virtual ~query_replica_decree_request() throw(); - ::dsn::gpid pid; - ::dsn::rpc_address node; + query_replica_decree_request(const query_replica_decree_request&); + query_replica_decree_request(query_replica_decree_request&&); + query_replica_decree_request& operator=(const query_replica_decree_request&); + query_replica_decree_request& operator=(query_replica_decree_request&&); + query_replica_decree_request() { + } - _query_replica_decree_request__isset __isset; + virtual ~query_replica_decree_request() throw(); + ::dsn::gpid pid; + ::dsn::rpc_address node; - void __set_pid(const ::dsn::gpid &val); + _query_replica_decree_request__isset __isset; - void __set_node(const ::dsn::rpc_address &val); + void __set_pid(const ::dsn::gpid& val); - bool operator==(const query_replica_decree_request &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(node == rhs.node)) - return false; - return true; - } - bool operator!=(const query_replica_decree_request &rhs) const { return !(*this == rhs); } + void __set_node(const ::dsn::rpc_address& val); - bool operator<(const query_replica_decree_request &) const; + bool operator == (const query_replica_decree_request & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(node == rhs.node)) + return false; + return true; + } + bool operator != (const query_replica_decree_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const query_replica_decree_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(query_replica_decree_request &a, query_replica_decree_request &b); -inline std::ostream &operator<<(std::ostream &out, const query_replica_decree_request &obj) +inline std::ostream& operator<<(std::ostream& out, const query_replica_decree_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_replica_decree_response__isset -{ - _query_replica_decree_response__isset() : err(false), last_decree(false) {} - bool err : 1; - bool last_decree : 1; +typedef struct _query_replica_decree_response__isset { + _query_replica_decree_response__isset() : err(false), last_decree(false) {} + bool err :1; + bool last_decree :1; } _query_replica_decree_response__isset; -class query_replica_decree_response -{ -public: - query_replica_decree_response(const query_replica_decree_response &); - query_replica_decree_response(query_replica_decree_response &&); - query_replica_decree_response &operator=(const query_replica_decree_response &); - query_replica_decree_response &operator=(query_replica_decree_response &&); - query_replica_decree_response() : last_decree(0) {} +class query_replica_decree_response { + public: + + query_replica_decree_response(const query_replica_decree_response&); + query_replica_decree_response(query_replica_decree_response&&); + query_replica_decree_response& operator=(const query_replica_decree_response&); + query_replica_decree_response& operator=(query_replica_decree_response&&); + query_replica_decree_response() : last_decree(0) { + } - virtual ~query_replica_decree_response() throw(); - ::dsn::error_code err; - int64_t last_decree; + virtual ~query_replica_decree_response() throw(); + ::dsn::error_code err; + int64_t last_decree; - _query_replica_decree_response__isset __isset; + _query_replica_decree_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_last_decree(const int64_t val); + void __set_last_decree(const int64_t val); - bool operator==(const query_replica_decree_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(last_decree == rhs.last_decree)) - return false; - return true; - } - bool operator!=(const query_replica_decree_response &rhs) const { return !(*this == rhs); } + bool operator == (const query_replica_decree_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(last_decree == rhs.last_decree)) + return false; + return true; + } + bool operator != (const query_replica_decree_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const query_replica_decree_response &) const; + bool operator < (const query_replica_decree_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(query_replica_decree_response &a, query_replica_decree_response &b); -inline std::ostream &operator<<(std::ostream &out, const query_replica_decree_response &obj) +inline std::ostream& operator<<(std::ostream& out, const query_replica_decree_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_info__isset -{ - _replica_info__isset() - : pid(false), - ballot(false), - status(false), - last_committed_decree(false), - last_prepared_decree(false), - last_durable_decree(false), - app_type(false), - disk_tag(false) - { - } - bool pid : 1; - bool ballot : 1; - bool status : 1; - bool last_committed_decree : 1; - bool last_prepared_decree : 1; - bool last_durable_decree : 1; - bool app_type : 1; - bool disk_tag : 1; +typedef struct _replica_info__isset { + _replica_info__isset() : pid(false), ballot(false), status(false), last_committed_decree(false), last_prepared_decree(false), last_durable_decree(false), app_type(false), disk_tag(false) {} + bool pid :1; + bool ballot :1; + bool status :1; + bool last_committed_decree :1; + bool last_prepared_decree :1; + bool last_durable_decree :1; + bool app_type :1; + bool disk_tag :1; } _replica_info__isset; -class replica_info -{ -public: - replica_info(const replica_info &); - replica_info(replica_info &&); - replica_info &operator=(const replica_info &); - replica_info &operator=(replica_info &&); - replica_info() - : ballot(0), - status((partition_status::type)0), - last_committed_decree(0), - last_prepared_decree(0), - last_durable_decree(0), - app_type(), - disk_tag() - { - } - - virtual ~replica_info() throw(); - ::dsn::gpid pid; - int64_t ballot; - partition_status::type status; - int64_t last_committed_decree; - int64_t last_prepared_decree; - int64_t last_durable_decree; - std::string app_type; - std::string disk_tag; - - _replica_info__isset __isset; - - void __set_pid(const ::dsn::gpid &val); - - void __set_ballot(const int64_t val); - - void __set_status(const partition_status::type val); - - void __set_last_committed_decree(const int64_t val); - - void __set_last_prepared_decree(const int64_t val); - - void __set_last_durable_decree(const int64_t val); - - void __set_app_type(const std::string &val); - - void __set_disk_tag(const std::string &val); - - bool operator==(const replica_info &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(status == rhs.status)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(last_prepared_decree == rhs.last_prepared_decree)) - return false; - if (!(last_durable_decree == rhs.last_durable_decree)) - return false; - if (!(app_type == rhs.app_type)) - return false; - if (!(disk_tag == rhs.disk_tag)) - return false; - return true; - } - bool operator!=(const replica_info &rhs) const { return !(*this == rhs); } - - bool operator<(const replica_info &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class replica_info { + public: + + replica_info(const replica_info&); + replica_info(replica_info&&); + replica_info& operator=(const replica_info&); + replica_info& operator=(replica_info&&); + replica_info() : ballot(0), status((partition_status::type)0), last_committed_decree(0), last_prepared_decree(0), last_durable_decree(0), app_type(), disk_tag() { + } + + virtual ~replica_info() throw(); + ::dsn::gpid pid; + int64_t ballot; + partition_status::type status; + int64_t last_committed_decree; + int64_t last_prepared_decree; + int64_t last_durable_decree; + std::string app_type; + std::string disk_tag; + + _replica_info__isset __isset; + + void __set_pid(const ::dsn::gpid& val); + + void __set_ballot(const int64_t val); + + void __set_status(const partition_status::type val); + + void __set_last_committed_decree(const int64_t val); + + void __set_last_prepared_decree(const int64_t val); + + void __set_last_durable_decree(const int64_t val); + + void __set_app_type(const std::string& val); + + void __set_disk_tag(const std::string& val); + + bool operator == (const replica_info & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(status == rhs.status)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(last_prepared_decree == rhs.last_prepared_decree)) + return false; + if (!(last_durable_decree == rhs.last_durable_decree)) + return false; + if (!(app_type == rhs.app_type)) + return false; + if (!(disk_tag == rhs.disk_tag)) + return false; + return true; + } + bool operator != (const replica_info &rhs) const { + return !(*this == rhs); + } + + bool operator < (const replica_info & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(replica_info &a, replica_info &b); -inline std::ostream &operator<<(std::ostream &out, const replica_info &obj) +inline std::ostream& operator<<(std::ostream& out, const replica_info& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_replica_info_request__isset -{ - _query_replica_info_request__isset() : node(false) {} - bool node : 1; +typedef struct _query_replica_info_request__isset { + _query_replica_info_request__isset() : node(false) {} + bool node :1; } _query_replica_info_request__isset; -class query_replica_info_request -{ -public: - query_replica_info_request(const query_replica_info_request &); - query_replica_info_request(query_replica_info_request &&); - query_replica_info_request &operator=(const query_replica_info_request &); - query_replica_info_request &operator=(query_replica_info_request &&); - query_replica_info_request() {} +class query_replica_info_request { + public: + + query_replica_info_request(const query_replica_info_request&); + query_replica_info_request(query_replica_info_request&&); + query_replica_info_request& operator=(const query_replica_info_request&); + query_replica_info_request& operator=(query_replica_info_request&&); + query_replica_info_request() { + } - virtual ~query_replica_info_request() throw(); - ::dsn::rpc_address node; + virtual ~query_replica_info_request() throw(); + ::dsn::rpc_address node; - _query_replica_info_request__isset __isset; + _query_replica_info_request__isset __isset; - void __set_node(const ::dsn::rpc_address &val); + void __set_node(const ::dsn::rpc_address& val); - bool operator==(const query_replica_info_request &rhs) const - { - if (!(node == rhs.node)) - return false; - return true; - } - bool operator!=(const query_replica_info_request &rhs) const { return !(*this == rhs); } + bool operator == (const query_replica_info_request & rhs) const + { + if (!(node == rhs.node)) + return false; + return true; + } + bool operator != (const query_replica_info_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const query_replica_info_request &) const; + bool operator < (const query_replica_info_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(query_replica_info_request &a, query_replica_info_request &b); -inline std::ostream &operator<<(std::ostream &out, const query_replica_info_request &obj) +inline std::ostream& operator<<(std::ostream& out, const query_replica_info_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_replica_info_response__isset -{ - _query_replica_info_response__isset() : err(false), replicas(false) {} - bool err : 1; - bool replicas : 1; +typedef struct _query_replica_info_response__isset { + _query_replica_info_response__isset() : err(false), replicas(false) {} + bool err :1; + bool replicas :1; } _query_replica_info_response__isset; -class query_replica_info_response -{ -public: - query_replica_info_response(const query_replica_info_response &); - query_replica_info_response(query_replica_info_response &&); - query_replica_info_response &operator=(const query_replica_info_response &); - query_replica_info_response &operator=(query_replica_info_response &&); - query_replica_info_response() {} +class query_replica_info_response { + public: - virtual ~query_replica_info_response() throw(); - ::dsn::error_code err; - std::vector replicas; + query_replica_info_response(const query_replica_info_response&); + query_replica_info_response(query_replica_info_response&&); + query_replica_info_response& operator=(const query_replica_info_response&); + query_replica_info_response& operator=(query_replica_info_response&&); + query_replica_info_response() { + } - _query_replica_info_response__isset __isset; + virtual ~query_replica_info_response() throw(); + ::dsn::error_code err; + std::vector replicas; - void __set_err(const ::dsn::error_code &val); + _query_replica_info_response__isset __isset; - void __set_replicas(const std::vector &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const query_replica_info_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(replicas == rhs.replicas)) - return false; - return true; - } - bool operator!=(const query_replica_info_response &rhs) const { return !(*this == rhs); } + void __set_replicas(const std::vector & val); - bool operator<(const query_replica_info_response &) const; + bool operator == (const query_replica_info_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(replicas == rhs.replicas)) + return false; + return true; + } + bool operator != (const query_replica_info_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const query_replica_info_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(query_replica_info_response &a, query_replica_info_response &b); -inline std::ostream &operator<<(std::ostream &out, const query_replica_info_response &obj) +inline std::ostream& operator<<(std::ostream& out, const query_replica_info_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _disk_info__isset -{ - _disk_info__isset() - : tag(false), - full_dir(false), - disk_capacity_mb(false), - disk_available_mb(false), - holding_primary_replicas(false), - holding_secondary_replicas(false) - { - } - bool tag : 1; - bool full_dir : 1; - bool disk_capacity_mb : 1; - bool disk_available_mb : 1; - bool holding_primary_replicas : 1; - bool holding_secondary_replicas : 1; +typedef struct _disk_info__isset { + _disk_info__isset() : tag(false), full_dir(false), disk_capacity_mb(false), disk_available_mb(false), holding_primary_replicas(false), holding_secondary_replicas(false) {} + bool tag :1; + bool full_dir :1; + bool disk_capacity_mb :1; + bool disk_available_mb :1; + bool holding_primary_replicas :1; + bool holding_secondary_replicas :1; } _disk_info__isset; -class disk_info -{ -public: - disk_info(const disk_info &); - disk_info(disk_info &&); - disk_info &operator=(const disk_info &); - disk_info &operator=(disk_info &&); - disk_info() : tag(), full_dir(), disk_capacity_mb(0), disk_available_mb(0) {} +class disk_info { + public: + + disk_info(const disk_info&); + disk_info(disk_info&&); + disk_info& operator=(const disk_info&); + disk_info& operator=(disk_info&&); + disk_info() : tag(), full_dir(), disk_capacity_mb(0), disk_available_mb(0) { + } - virtual ~disk_info() throw(); - std::string tag; - std::string full_dir; - int64_t disk_capacity_mb; - int64_t disk_available_mb; - std::map> holding_primary_replicas; - std::map> holding_secondary_replicas; + virtual ~disk_info() throw(); + std::string tag; + std::string full_dir; + int64_t disk_capacity_mb; + int64_t disk_available_mb; + std::map > holding_primary_replicas; + std::map > holding_secondary_replicas; - _disk_info__isset __isset; + _disk_info__isset __isset; - void __set_tag(const std::string &val); + void __set_tag(const std::string& val); - void __set_full_dir(const std::string &val); + void __set_full_dir(const std::string& val); - void __set_disk_capacity_mb(const int64_t val); + void __set_disk_capacity_mb(const int64_t val); - void __set_disk_available_mb(const int64_t val); + void __set_disk_available_mb(const int64_t val); - void __set_holding_primary_replicas(const std::map> &val); + void __set_holding_primary_replicas(const std::map > & val); - void __set_holding_secondary_replicas(const std::map> &val); + void __set_holding_secondary_replicas(const std::map > & val); - bool operator==(const disk_info &rhs) const - { - if (!(tag == rhs.tag)) - return false; - if (!(full_dir == rhs.full_dir)) - return false; - if (!(disk_capacity_mb == rhs.disk_capacity_mb)) - return false; - if (!(disk_available_mb == rhs.disk_available_mb)) - return false; - if (!(holding_primary_replicas == rhs.holding_primary_replicas)) - return false; - if (!(holding_secondary_replicas == rhs.holding_secondary_replicas)) - return false; - return true; - } - bool operator!=(const disk_info &rhs) const { return !(*this == rhs); } + bool operator == (const disk_info & rhs) const + { + if (!(tag == rhs.tag)) + return false; + if (!(full_dir == rhs.full_dir)) + return false; + if (!(disk_capacity_mb == rhs.disk_capacity_mb)) + return false; + if (!(disk_available_mb == rhs.disk_available_mb)) + return false; + if (!(holding_primary_replicas == rhs.holding_primary_replicas)) + return false; + if (!(holding_secondary_replicas == rhs.holding_secondary_replicas)) + return false; + return true; + } + bool operator != (const disk_info &rhs) const { + return !(*this == rhs); + } - bool operator<(const disk_info &) const; + bool operator < (const disk_info & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(disk_info &a, disk_info &b); -inline std::ostream &operator<<(std::ostream &out, const disk_info &obj) +inline std::ostream& operator<<(std::ostream& out, const disk_info& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_disk_info_request__isset -{ - _query_disk_info_request__isset() : node(false), app_name(false) {} - bool node : 1; - bool app_name : 1; +typedef struct _query_disk_info_request__isset { + _query_disk_info_request__isset() : node(false), app_name(false) {} + bool node :1; + bool app_name :1; } _query_disk_info_request__isset; -class query_disk_info_request -{ -public: - query_disk_info_request(const query_disk_info_request &); - query_disk_info_request(query_disk_info_request &&); - query_disk_info_request &operator=(const query_disk_info_request &); - query_disk_info_request &operator=(query_disk_info_request &&); - query_disk_info_request() : app_name() {} +class query_disk_info_request { + public: + + query_disk_info_request(const query_disk_info_request&); + query_disk_info_request(query_disk_info_request&&); + query_disk_info_request& operator=(const query_disk_info_request&); + query_disk_info_request& operator=(query_disk_info_request&&); + query_disk_info_request() : app_name() { + } - virtual ~query_disk_info_request() throw(); - ::dsn::rpc_address node; - std::string app_name; + virtual ~query_disk_info_request() throw(); + ::dsn::rpc_address node; + std::string app_name; - _query_disk_info_request__isset __isset; + _query_disk_info_request__isset __isset; - void __set_node(const ::dsn::rpc_address &val); + void __set_node(const ::dsn::rpc_address& val); - void __set_app_name(const std::string &val); + void __set_app_name(const std::string& val); - bool operator==(const query_disk_info_request &rhs) const - { - if (!(node == rhs.node)) - return false; - if (!(app_name == rhs.app_name)) - return false; - return true; - } - bool operator!=(const query_disk_info_request &rhs) const { return !(*this == rhs); } + bool operator == (const query_disk_info_request & rhs) const + { + if (!(node == rhs.node)) + return false; + if (!(app_name == rhs.app_name)) + return false; + return true; + } + bool operator != (const query_disk_info_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const query_disk_info_request &) const; + bool operator < (const query_disk_info_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(query_disk_info_request &a, query_disk_info_request &b); -inline std::ostream &operator<<(std::ostream &out, const query_disk_info_request &obj) +inline std::ostream& operator<<(std::ostream& out, const query_disk_info_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_disk_info_response__isset -{ - _query_disk_info_response__isset() - : err(false), total_capacity_mb(false), total_available_mb(false), disk_infos(false) - { - } - bool err : 1; - bool total_capacity_mb : 1; - bool total_available_mb : 1; - bool disk_infos : 1; +typedef struct _query_disk_info_response__isset { + _query_disk_info_response__isset() : err(false), total_capacity_mb(false), total_available_mb(false), disk_infos(false) {} + bool err :1; + bool total_capacity_mb :1; + bool total_available_mb :1; + bool disk_infos :1; } _query_disk_info_response__isset; -class query_disk_info_response -{ -public: - query_disk_info_response(const query_disk_info_response &); - query_disk_info_response(query_disk_info_response &&); - query_disk_info_response &operator=(const query_disk_info_response &); - query_disk_info_response &operator=(query_disk_info_response &&); - query_disk_info_response() : total_capacity_mb(0), total_available_mb(0) {} +class query_disk_info_response { + public: + + query_disk_info_response(const query_disk_info_response&); + query_disk_info_response(query_disk_info_response&&); + query_disk_info_response& operator=(const query_disk_info_response&); + query_disk_info_response& operator=(query_disk_info_response&&); + query_disk_info_response() : total_capacity_mb(0), total_available_mb(0) { + } - virtual ~query_disk_info_response() throw(); - ::dsn::error_code err; - int64_t total_capacity_mb; - int64_t total_available_mb; - std::vector disk_infos; + virtual ~query_disk_info_response() throw(); + ::dsn::error_code err; + int64_t total_capacity_mb; + int64_t total_available_mb; + std::vector disk_infos; - _query_disk_info_response__isset __isset; + _query_disk_info_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_total_capacity_mb(const int64_t val); + void __set_total_capacity_mb(const int64_t val); - void __set_total_available_mb(const int64_t val); + void __set_total_available_mb(const int64_t val); - void __set_disk_infos(const std::vector &val); + void __set_disk_infos(const std::vector & val); - bool operator==(const query_disk_info_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(total_capacity_mb == rhs.total_capacity_mb)) - return false; - if (!(total_available_mb == rhs.total_available_mb)) - return false; - if (!(disk_infos == rhs.disk_infos)) - return false; - return true; - } - bool operator!=(const query_disk_info_response &rhs) const { return !(*this == rhs); } + bool operator == (const query_disk_info_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(total_capacity_mb == rhs.total_capacity_mb)) + return false; + if (!(total_available_mb == rhs.total_available_mb)) + return false; + if (!(disk_infos == rhs.disk_infos)) + return false; + return true; + } + bool operator != (const query_disk_info_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const query_disk_info_response &) const; + bool operator < (const query_disk_info_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(query_disk_info_response &a, query_disk_info_response &b); -inline std::ostream &operator<<(std::ostream &out, const query_disk_info_response &obj) +inline std::ostream& operator<<(std::ostream& out, const query_disk_info_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_disk_migrate_request__isset -{ - _replica_disk_migrate_request__isset() : pid(false), origin_disk(false), target_disk(false) {} - bool pid : 1; - bool origin_disk : 1; - bool target_disk : 1; +typedef struct _replica_disk_migrate_request__isset { + _replica_disk_migrate_request__isset() : pid(false), origin_disk(false), target_disk(false) {} + bool pid :1; + bool origin_disk :1; + bool target_disk :1; } _replica_disk_migrate_request__isset; -class replica_disk_migrate_request -{ -public: - replica_disk_migrate_request(const replica_disk_migrate_request &); - replica_disk_migrate_request(replica_disk_migrate_request &&); - replica_disk_migrate_request &operator=(const replica_disk_migrate_request &); - replica_disk_migrate_request &operator=(replica_disk_migrate_request &&); - replica_disk_migrate_request() : origin_disk(), target_disk() {} +class replica_disk_migrate_request { + public: + + replica_disk_migrate_request(const replica_disk_migrate_request&); + replica_disk_migrate_request(replica_disk_migrate_request&&); + replica_disk_migrate_request& operator=(const replica_disk_migrate_request&); + replica_disk_migrate_request& operator=(replica_disk_migrate_request&&); + replica_disk_migrate_request() : origin_disk(), target_disk() { + } - virtual ~replica_disk_migrate_request() throw(); - ::dsn::gpid pid; - std::string origin_disk; - std::string target_disk; + virtual ~replica_disk_migrate_request() throw(); + ::dsn::gpid pid; + std::string origin_disk; + std::string target_disk; - _replica_disk_migrate_request__isset __isset; + _replica_disk_migrate_request__isset __isset; - void __set_pid(const ::dsn::gpid &val); + void __set_pid(const ::dsn::gpid& val); - void __set_origin_disk(const std::string &val); + void __set_origin_disk(const std::string& val); - void __set_target_disk(const std::string &val); + void __set_target_disk(const std::string& val); - bool operator==(const replica_disk_migrate_request &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(origin_disk == rhs.origin_disk)) - return false; - if (!(target_disk == rhs.target_disk)) - return false; - return true; - } - bool operator!=(const replica_disk_migrate_request &rhs) const { return !(*this == rhs); } + bool operator == (const replica_disk_migrate_request & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(origin_disk == rhs.origin_disk)) + return false; + if (!(target_disk == rhs.target_disk)) + return false; + return true; + } + bool operator != (const replica_disk_migrate_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const replica_disk_migrate_request &) const; + bool operator < (const replica_disk_migrate_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(replica_disk_migrate_request &a, replica_disk_migrate_request &b); -inline std::ostream &operator<<(std::ostream &out, const replica_disk_migrate_request &obj) +inline std::ostream& operator<<(std::ostream& out, const replica_disk_migrate_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_disk_migrate_response__isset -{ - _replica_disk_migrate_response__isset() : err(false), hint(false) {} - bool err : 1; - bool hint : 1; +typedef struct _replica_disk_migrate_response__isset { + _replica_disk_migrate_response__isset() : err(false), hint(false) {} + bool err :1; + bool hint :1; } _replica_disk_migrate_response__isset; -class replica_disk_migrate_response -{ -public: - replica_disk_migrate_response(const replica_disk_migrate_response &); - replica_disk_migrate_response(replica_disk_migrate_response &&); - replica_disk_migrate_response &operator=(const replica_disk_migrate_response &); - replica_disk_migrate_response &operator=(replica_disk_migrate_response &&); - replica_disk_migrate_response() : hint() {} +class replica_disk_migrate_response { + public: - virtual ~replica_disk_migrate_response() throw(); - ::dsn::error_code err; - std::string hint; + replica_disk_migrate_response(const replica_disk_migrate_response&); + replica_disk_migrate_response(replica_disk_migrate_response&&); + replica_disk_migrate_response& operator=(const replica_disk_migrate_response&); + replica_disk_migrate_response& operator=(replica_disk_migrate_response&&); + replica_disk_migrate_response() : hint() { + } - _replica_disk_migrate_response__isset __isset; + virtual ~replica_disk_migrate_response() throw(); + ::dsn::error_code err; + std::string hint; - void __set_err(const ::dsn::error_code &val); + _replica_disk_migrate_response__isset __isset; - void __set_hint(const std::string &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const replica_disk_migrate_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (__isset.hint != rhs.__isset.hint) - return false; - else if (__isset.hint && !(hint == rhs.hint)) - return false; - return true; - } - bool operator!=(const replica_disk_migrate_response &rhs) const { return !(*this == rhs); } + void __set_hint(const std::string& val); - bool operator<(const replica_disk_migrate_response &) const; + bool operator == (const replica_disk_migrate_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (__isset.hint != rhs.__isset.hint) + return false; + else if (__isset.hint && !(hint == rhs.hint)) + return false; + return true; + } + bool operator != (const replica_disk_migrate_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const replica_disk_migrate_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(replica_disk_migrate_response &a, replica_disk_migrate_response &b); -inline std::ostream &operator<<(std::ostream &out, const replica_disk_migrate_response &obj) +inline std::ostream& operator<<(std::ostream& out, const replica_disk_migrate_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_app_info_request__isset -{ - _query_app_info_request__isset() : meta_server(false) {} - bool meta_server : 1; +typedef struct _query_app_info_request__isset { + _query_app_info_request__isset() : meta_server(false) {} + bool meta_server :1; } _query_app_info_request__isset; -class query_app_info_request -{ -public: - query_app_info_request(const query_app_info_request &); - query_app_info_request(query_app_info_request &&); - query_app_info_request &operator=(const query_app_info_request &); - query_app_info_request &operator=(query_app_info_request &&); - query_app_info_request() {} +class query_app_info_request { + public: - virtual ~query_app_info_request() throw(); - ::dsn::rpc_address meta_server; + query_app_info_request(const query_app_info_request&); + query_app_info_request(query_app_info_request&&); + query_app_info_request& operator=(const query_app_info_request&); + query_app_info_request& operator=(query_app_info_request&&); + query_app_info_request() { + } - _query_app_info_request__isset __isset; + virtual ~query_app_info_request() throw(); + ::dsn::rpc_address meta_server; - void __set_meta_server(const ::dsn::rpc_address &val); + _query_app_info_request__isset __isset; - bool operator==(const query_app_info_request &rhs) const - { - if (!(meta_server == rhs.meta_server)) - return false; - return true; - } - bool operator!=(const query_app_info_request &rhs) const { return !(*this == rhs); } + void __set_meta_server(const ::dsn::rpc_address& val); - bool operator<(const query_app_info_request &) const; + bool operator == (const query_app_info_request & rhs) const + { + if (!(meta_server == rhs.meta_server)) + return false; + return true; + } + bool operator != (const query_app_info_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const query_app_info_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(query_app_info_request &a, query_app_info_request &b); -inline std::ostream &operator<<(std::ostream &out, const query_app_info_request &obj) +inline std::ostream& operator<<(std::ostream& out, const query_app_info_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_app_info_response__isset -{ - _query_app_info_response__isset() : err(false), apps(false) {} - bool err : 1; - bool apps : 1; +typedef struct _query_app_info_response__isset { + _query_app_info_response__isset() : err(false), apps(false) {} + bool err :1; + bool apps :1; } _query_app_info_response__isset; -class query_app_info_response -{ -public: - query_app_info_response(const query_app_info_response &); - query_app_info_response(query_app_info_response &&); - query_app_info_response &operator=(const query_app_info_response &); - query_app_info_response &operator=(query_app_info_response &&); - query_app_info_response() {} +class query_app_info_response { + public: - virtual ~query_app_info_response() throw(); - ::dsn::error_code err; - std::vector<::dsn::app_info> apps; + query_app_info_response(const query_app_info_response&); + query_app_info_response(query_app_info_response&&); + query_app_info_response& operator=(const query_app_info_response&); + query_app_info_response& operator=(query_app_info_response&&); + query_app_info_response() { + } - _query_app_info_response__isset __isset; + virtual ~query_app_info_response() throw(); + ::dsn::error_code err; + std::vector< ::dsn::app_info> apps; - void __set_err(const ::dsn::error_code &val); + _query_app_info_response__isset __isset; - void __set_apps(const std::vector<::dsn::app_info> &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const query_app_info_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(apps == rhs.apps)) - return false; - return true; - } - bool operator!=(const query_app_info_response &rhs) const { return !(*this == rhs); } + void __set_apps(const std::vector< ::dsn::app_info> & val); - bool operator<(const query_app_info_response &) const; + bool operator == (const query_app_info_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(apps == rhs.apps)) + return false; + return true; + } + bool operator != (const query_app_info_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const query_app_info_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(query_app_info_response &a, query_app_info_response &b); -inline std::ostream &operator<<(std::ostream &out, const query_app_info_response &obj) +inline std::ostream& operator<<(std::ostream& out, const query_app_info_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_recovery_request__isset -{ - _configuration_recovery_request__isset() - : recovery_set(false), skip_bad_nodes(false), skip_lost_partitions(false) - { - } - bool recovery_set : 1; - bool skip_bad_nodes : 1; - bool skip_lost_partitions : 1; +typedef struct _configuration_recovery_request__isset { + _configuration_recovery_request__isset() : recovery_set(false), skip_bad_nodes(false), skip_lost_partitions(false) {} + bool recovery_set :1; + bool skip_bad_nodes :1; + bool skip_lost_partitions :1; } _configuration_recovery_request__isset; -class configuration_recovery_request -{ -public: - configuration_recovery_request(const configuration_recovery_request &); - configuration_recovery_request(configuration_recovery_request &&); - configuration_recovery_request &operator=(const configuration_recovery_request &); - configuration_recovery_request &operator=(configuration_recovery_request &&); - configuration_recovery_request() : skip_bad_nodes(0), skip_lost_partitions(0) {} +class configuration_recovery_request { + public: - virtual ~configuration_recovery_request() throw(); - std::vector<::dsn::rpc_address> recovery_set; - bool skip_bad_nodes; - bool skip_lost_partitions; + configuration_recovery_request(const configuration_recovery_request&); + configuration_recovery_request(configuration_recovery_request&&); + configuration_recovery_request& operator=(const configuration_recovery_request&); + configuration_recovery_request& operator=(configuration_recovery_request&&); + configuration_recovery_request() : skip_bad_nodes(0), skip_lost_partitions(0) { + } - _configuration_recovery_request__isset __isset; + virtual ~configuration_recovery_request() throw(); + std::vector< ::dsn::rpc_address> recovery_set; + bool skip_bad_nodes; + bool skip_lost_partitions; - void __set_recovery_set(const std::vector<::dsn::rpc_address> &val); + _configuration_recovery_request__isset __isset; - void __set_skip_bad_nodes(const bool val); + void __set_recovery_set(const std::vector< ::dsn::rpc_address> & val); - void __set_skip_lost_partitions(const bool val); + void __set_skip_bad_nodes(const bool val); - bool operator==(const configuration_recovery_request &rhs) const - { - if (!(recovery_set == rhs.recovery_set)) - return false; - if (!(skip_bad_nodes == rhs.skip_bad_nodes)) - return false; - if (!(skip_lost_partitions == rhs.skip_lost_partitions)) - return false; - return true; - } - bool operator!=(const configuration_recovery_request &rhs) const { return !(*this == rhs); } + void __set_skip_lost_partitions(const bool val); - bool operator<(const configuration_recovery_request &) const; + bool operator == (const configuration_recovery_request & rhs) const + { + if (!(recovery_set == rhs.recovery_set)) + return false; + if (!(skip_bad_nodes == rhs.skip_bad_nodes)) + return false; + if (!(skip_lost_partitions == rhs.skip_lost_partitions)) + return false; + return true; + } + bool operator != (const configuration_recovery_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_recovery_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_recovery_request &a, configuration_recovery_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_recovery_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_recovery_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_recovery_response__isset -{ - _configuration_recovery_response__isset() : err(false), hint_message(false) {} - bool err : 1; - bool hint_message : 1; +typedef struct _configuration_recovery_response__isset { + _configuration_recovery_response__isset() : err(false), hint_message(false) {} + bool err :1; + bool hint_message :1; } _configuration_recovery_response__isset; -class configuration_recovery_response -{ -public: - configuration_recovery_response(const configuration_recovery_response &); - configuration_recovery_response(configuration_recovery_response &&); - configuration_recovery_response &operator=(const configuration_recovery_response &); - configuration_recovery_response &operator=(configuration_recovery_response &&); - configuration_recovery_response() : hint_message() {} +class configuration_recovery_response { + public: + + configuration_recovery_response(const configuration_recovery_response&); + configuration_recovery_response(configuration_recovery_response&&); + configuration_recovery_response& operator=(const configuration_recovery_response&); + configuration_recovery_response& operator=(configuration_recovery_response&&); + configuration_recovery_response() : hint_message() { + } - virtual ~configuration_recovery_response() throw(); - ::dsn::error_code err; - std::string hint_message; + virtual ~configuration_recovery_response() throw(); + ::dsn::error_code err; + std::string hint_message; - _configuration_recovery_response__isset __isset; + _configuration_recovery_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_hint_message(const std::string &val); + void __set_hint_message(const std::string& val); - bool operator==(const configuration_recovery_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_message == rhs.hint_message)) - return false; - return true; - } - bool operator!=(const configuration_recovery_response &rhs) const { return !(*this == rhs); } + bool operator == (const configuration_recovery_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_message == rhs.hint_message)) + return false; + return true; + } + bool operator != (const configuration_recovery_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_recovery_response &) const; + bool operator < (const configuration_recovery_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_recovery_response &a, configuration_recovery_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_recovery_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_recovery_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _policy_info__isset -{ - _policy_info__isset() : policy_name(false), backup_provider_type(false) {} - bool policy_name : 1; - bool backup_provider_type : 1; +typedef struct _policy_info__isset { + _policy_info__isset() : policy_name(false), backup_provider_type(false) {} + bool policy_name :1; + bool backup_provider_type :1; } _policy_info__isset; -class policy_info -{ -public: - policy_info(const policy_info &); - policy_info(policy_info &&); - policy_info &operator=(const policy_info &); - policy_info &operator=(policy_info &&); - policy_info() : policy_name(), backup_provider_type() {} +class policy_info { + public: + + policy_info(const policy_info&); + policy_info(policy_info&&); + policy_info& operator=(const policy_info&); + policy_info& operator=(policy_info&&); + policy_info() : policy_name(), backup_provider_type() { + } - virtual ~policy_info() throw(); - std::string policy_name; - std::string backup_provider_type; + virtual ~policy_info() throw(); + std::string policy_name; + std::string backup_provider_type; - _policy_info__isset __isset; + _policy_info__isset __isset; - void __set_policy_name(const std::string &val); + void __set_policy_name(const std::string& val); - void __set_backup_provider_type(const std::string &val); + void __set_backup_provider_type(const std::string& val); - bool operator==(const policy_info &rhs) const - { - if (!(policy_name == rhs.policy_name)) - return false; - if (!(backup_provider_type == rhs.backup_provider_type)) - return false; - return true; - } - bool operator!=(const policy_info &rhs) const { return !(*this == rhs); } + bool operator == (const policy_info & rhs) const + { + if (!(policy_name == rhs.policy_name)) + return false; + if (!(backup_provider_type == rhs.backup_provider_type)) + return false; + return true; + } + bool operator != (const policy_info &rhs) const { + return !(*this == rhs); + } - bool operator<(const policy_info &) const; + bool operator < (const policy_info & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(policy_info &a, policy_info &b); -inline std::ostream &operator<<(std::ostream &out, const policy_info &obj) +inline std::ostream& operator<<(std::ostream& out, const policy_info& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_restore_request__isset -{ - _configuration_restore_request__isset() - : cluster_name(false), - policy_name(false), - time_stamp(false), - app_name(false), - app_id(false), - new_app_name(false), - backup_provider_name(false), - skip_bad_partition(false) - { - } - bool cluster_name : 1; - bool policy_name : 1; - bool time_stamp : 1; - bool app_name : 1; - bool app_id : 1; - bool new_app_name : 1; - bool backup_provider_name : 1; - bool skip_bad_partition : 1; +typedef struct _configuration_restore_request__isset { + _configuration_restore_request__isset() : cluster_name(false), policy_name(false), time_stamp(false), app_name(false), app_id(false), new_app_name(false), backup_provider_name(false), skip_bad_partition(false) {} + bool cluster_name :1; + bool policy_name :1; + bool time_stamp :1; + bool app_name :1; + bool app_id :1; + bool new_app_name :1; + bool backup_provider_name :1; + bool skip_bad_partition :1; } _configuration_restore_request__isset; -class configuration_restore_request -{ -public: - configuration_restore_request(const configuration_restore_request &); - configuration_restore_request(configuration_restore_request &&); - configuration_restore_request &operator=(const configuration_restore_request &); - configuration_restore_request &operator=(configuration_restore_request &&); - configuration_restore_request() - : cluster_name(), - policy_name(), - time_stamp(0), - app_name(), - app_id(0), - new_app_name(), - backup_provider_name(), - skip_bad_partition(0) - { - } - - virtual ~configuration_restore_request() throw(); - std::string cluster_name; - std::string policy_name; - int64_t time_stamp; - std::string app_name; - int32_t app_id; - std::string new_app_name; - std::string backup_provider_name; - bool skip_bad_partition; - - _configuration_restore_request__isset __isset; - - void __set_cluster_name(const std::string &val); - - void __set_policy_name(const std::string &val); - - void __set_time_stamp(const int64_t val); - - void __set_app_name(const std::string &val); - - void __set_app_id(const int32_t val); - - void __set_new_app_name(const std::string &val); - - void __set_backup_provider_name(const std::string &val); - - void __set_skip_bad_partition(const bool val); - - bool operator==(const configuration_restore_request &rhs) const - { - if (!(cluster_name == rhs.cluster_name)) - return false; - if (!(policy_name == rhs.policy_name)) - return false; - if (!(time_stamp == rhs.time_stamp)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(app_id == rhs.app_id)) - return false; - if (!(new_app_name == rhs.new_app_name)) - return false; - if (!(backup_provider_name == rhs.backup_provider_name)) - return false; - if (!(skip_bad_partition == rhs.skip_bad_partition)) - return false; - return true; - } - bool operator!=(const configuration_restore_request &rhs) const { return !(*this == rhs); } - - bool operator<(const configuration_restore_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class configuration_restore_request { + public: + + configuration_restore_request(const configuration_restore_request&); + configuration_restore_request(configuration_restore_request&&); + configuration_restore_request& operator=(const configuration_restore_request&); + configuration_restore_request& operator=(configuration_restore_request&&); + configuration_restore_request() : cluster_name(), policy_name(), time_stamp(0), app_name(), app_id(0), new_app_name(), backup_provider_name(), skip_bad_partition(0) { + } + + virtual ~configuration_restore_request() throw(); + std::string cluster_name; + std::string policy_name; + int64_t time_stamp; + std::string app_name; + int32_t app_id; + std::string new_app_name; + std::string backup_provider_name; + bool skip_bad_partition; + + _configuration_restore_request__isset __isset; + + void __set_cluster_name(const std::string& val); + + void __set_policy_name(const std::string& val); + + void __set_time_stamp(const int64_t val); + + void __set_app_name(const std::string& val); + + void __set_app_id(const int32_t val); + + void __set_new_app_name(const std::string& val); + + void __set_backup_provider_name(const std::string& val); + + void __set_skip_bad_partition(const bool val); + + bool operator == (const configuration_restore_request & rhs) const + { + if (!(cluster_name == rhs.cluster_name)) + return false; + if (!(policy_name == rhs.policy_name)) + return false; + if (!(time_stamp == rhs.time_stamp)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(app_id == rhs.app_id)) + return false; + if (!(new_app_name == rhs.new_app_name)) + return false; + if (!(backup_provider_name == rhs.backup_provider_name)) + return false; + if (!(skip_bad_partition == rhs.skip_bad_partition)) + return false; + return true; + } + bool operator != (const configuration_restore_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_restore_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_restore_request &a, configuration_restore_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_restore_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_restore_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _backup_request__isset -{ - _backup_request__isset() : pid(false), policy(false), app_name(false), backup_id(false) {} - bool pid : 1; - bool policy : 1; - bool app_name : 1; - bool backup_id : 1; +typedef struct _backup_request__isset { + _backup_request__isset() : pid(false), policy(false), app_name(false), backup_id(false) {} + bool pid :1; + bool policy :1; + bool app_name :1; + bool backup_id :1; } _backup_request__isset; -class backup_request -{ -public: - backup_request(const backup_request &); - backup_request(backup_request &&); - backup_request &operator=(const backup_request &); - backup_request &operator=(backup_request &&); - backup_request() : app_name(), backup_id(0) {} +class backup_request { + public: + + backup_request(const backup_request&); + backup_request(backup_request&&); + backup_request& operator=(const backup_request&); + backup_request& operator=(backup_request&&); + backup_request() : app_name(), backup_id(0) { + } - virtual ~backup_request() throw(); - ::dsn::gpid pid; - policy_info policy; - std::string app_name; - int64_t backup_id; + virtual ~backup_request() throw(); + ::dsn::gpid pid; + policy_info policy; + std::string app_name; + int64_t backup_id; - _backup_request__isset __isset; + _backup_request__isset __isset; - void __set_pid(const ::dsn::gpid &val); + void __set_pid(const ::dsn::gpid& val); - void __set_policy(const policy_info &val); + void __set_policy(const policy_info& val); - void __set_app_name(const std::string &val); + void __set_app_name(const std::string& val); - void __set_backup_id(const int64_t val); + void __set_backup_id(const int64_t val); - bool operator==(const backup_request &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(policy == rhs.policy)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(backup_id == rhs.backup_id)) - return false; - return true; - } - bool operator!=(const backup_request &rhs) const { return !(*this == rhs); } + bool operator == (const backup_request & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(policy == rhs.policy)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(backup_id == rhs.backup_id)) + return false; + return true; + } + bool operator != (const backup_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const backup_request &) const; + bool operator < (const backup_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(backup_request &a, backup_request &b); -inline std::ostream &operator<<(std::ostream &out, const backup_request &obj) +inline std::ostream& operator<<(std::ostream& out, const backup_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _backup_response__isset -{ - _backup_response__isset() - : err(false), - pid(false), - progress(false), - policy_name(false), - backup_id(false), - checkpoint_total_size(false) - { - } - bool err : 1; - bool pid : 1; - bool progress : 1; - bool policy_name : 1; - bool backup_id : 1; - bool checkpoint_total_size : 1; +typedef struct _backup_response__isset { + _backup_response__isset() : err(false), pid(false), progress(false), policy_name(false), backup_id(false), checkpoint_total_size(false) {} + bool err :1; + bool pid :1; + bool progress :1; + bool policy_name :1; + bool backup_id :1; + bool checkpoint_total_size :1; } _backup_response__isset; -class backup_response -{ -public: - backup_response(const backup_response &); - backup_response(backup_response &&); - backup_response &operator=(const backup_response &); - backup_response &operator=(backup_response &&); - backup_response() : progress(0), policy_name(), backup_id(0), checkpoint_total_size(0) {} +class backup_response { + public: + + backup_response(const backup_response&); + backup_response(backup_response&&); + backup_response& operator=(const backup_response&); + backup_response& operator=(backup_response&&); + backup_response() : progress(0), policy_name(), backup_id(0), checkpoint_total_size(0) { + } - virtual ~backup_response() throw(); - ::dsn::error_code err; - ::dsn::gpid pid; - int32_t progress; - std::string policy_name; - int64_t backup_id; - int64_t checkpoint_total_size; + virtual ~backup_response() throw(); + ::dsn::error_code err; + ::dsn::gpid pid; + int32_t progress; + std::string policy_name; + int64_t backup_id; + int64_t checkpoint_total_size; - _backup_response__isset __isset; + _backup_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_pid(const ::dsn::gpid &val); + void __set_pid(const ::dsn::gpid& val); - void __set_progress(const int32_t val); + void __set_progress(const int32_t val); - void __set_policy_name(const std::string &val); + void __set_policy_name(const std::string& val); - void __set_backup_id(const int64_t val); + void __set_backup_id(const int64_t val); - void __set_checkpoint_total_size(const int64_t val); + void __set_checkpoint_total_size(const int64_t val); - bool operator==(const backup_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(pid == rhs.pid)) - return false; - if (!(progress == rhs.progress)) - return false; - if (!(policy_name == rhs.policy_name)) - return false; - if (!(backup_id == rhs.backup_id)) - return false; - if (!(checkpoint_total_size == rhs.checkpoint_total_size)) - return false; - return true; - } - bool operator!=(const backup_response &rhs) const { return !(*this == rhs); } + bool operator == (const backup_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(pid == rhs.pid)) + return false; + if (!(progress == rhs.progress)) + return false; + if (!(policy_name == rhs.policy_name)) + return false; + if (!(backup_id == rhs.backup_id)) + return false; + if (!(checkpoint_total_size == rhs.checkpoint_total_size)) + return false; + return true; + } + bool operator != (const backup_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const backup_response &) const; + bool operator < (const backup_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(backup_response &a, backup_response &b); -inline std::ostream &operator<<(std::ostream &out, const backup_response &obj) +inline std::ostream& operator<<(std::ostream& out, const backup_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _backup_clear_request__isset -{ - _backup_clear_request__isset() : pid(false), policy_name(false) {} - bool pid : 1; - bool policy_name : 1; +typedef struct _backup_clear_request__isset { + _backup_clear_request__isset() : pid(false), policy_name(false) {} + bool pid :1; + bool policy_name :1; } _backup_clear_request__isset; -class backup_clear_request -{ -public: - backup_clear_request(const backup_clear_request &); - backup_clear_request(backup_clear_request &&); - backup_clear_request &operator=(const backup_clear_request &); - backup_clear_request &operator=(backup_clear_request &&); - backup_clear_request() : policy_name() {} +class backup_clear_request { + public: + + backup_clear_request(const backup_clear_request&); + backup_clear_request(backup_clear_request&&); + backup_clear_request& operator=(const backup_clear_request&); + backup_clear_request& operator=(backup_clear_request&&); + backup_clear_request() : policy_name() { + } - virtual ~backup_clear_request() throw(); - ::dsn::gpid pid; - std::string policy_name; + virtual ~backup_clear_request() throw(); + ::dsn::gpid pid; + std::string policy_name; - _backup_clear_request__isset __isset; + _backup_clear_request__isset __isset; - void __set_pid(const ::dsn::gpid &val); + void __set_pid(const ::dsn::gpid& val); - void __set_policy_name(const std::string &val); + void __set_policy_name(const std::string& val); - bool operator==(const backup_clear_request &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(policy_name == rhs.policy_name)) - return false; - return true; - } - bool operator!=(const backup_clear_request &rhs) const { return !(*this == rhs); } + bool operator == (const backup_clear_request & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(policy_name == rhs.policy_name)) + return false; + return true; + } + bool operator != (const backup_clear_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const backup_clear_request &) const; + bool operator < (const backup_clear_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(backup_clear_request &a, backup_clear_request &b); -inline std::ostream &operator<<(std::ostream &out, const backup_clear_request &obj) +inline std::ostream& operator<<(std::ostream& out, const backup_clear_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_modify_backup_policy_request__isset -{ - _configuration_modify_backup_policy_request__isset() - : policy_name(false), - add_appids(false), - removal_appids(false), - new_backup_interval_sec(false), - backup_history_count_to_keep(false), - is_disable(false), - start_time(false) - { - } - bool policy_name : 1; - bool add_appids : 1; - bool removal_appids : 1; - bool new_backup_interval_sec : 1; - bool backup_history_count_to_keep : 1; - bool is_disable : 1; - bool start_time : 1; +typedef struct _configuration_modify_backup_policy_request__isset { + _configuration_modify_backup_policy_request__isset() : policy_name(false), add_appids(false), removal_appids(false), new_backup_interval_sec(false), backup_history_count_to_keep(false), is_disable(false), start_time(false) {} + bool policy_name :1; + bool add_appids :1; + bool removal_appids :1; + bool new_backup_interval_sec :1; + bool backup_history_count_to_keep :1; + bool is_disable :1; + bool start_time :1; } _configuration_modify_backup_policy_request__isset; -class configuration_modify_backup_policy_request -{ -public: - configuration_modify_backup_policy_request(const configuration_modify_backup_policy_request &); - configuration_modify_backup_policy_request(configuration_modify_backup_policy_request &&); - configuration_modify_backup_policy_request & - operator=(const configuration_modify_backup_policy_request &); - configuration_modify_backup_policy_request & - operator=(configuration_modify_backup_policy_request &&); - configuration_modify_backup_policy_request() - : policy_name(), - new_backup_interval_sec(0), - backup_history_count_to_keep(0), - is_disable(0), - start_time() - { - } - - virtual ~configuration_modify_backup_policy_request() throw(); - std::string policy_name; - std::vector add_appids; - std::vector removal_appids; - int64_t new_backup_interval_sec; - int32_t backup_history_count_to_keep; - bool is_disable; - std::string start_time; - - _configuration_modify_backup_policy_request__isset __isset; - - void __set_policy_name(const std::string &val); - - void __set_add_appids(const std::vector &val); - - void __set_removal_appids(const std::vector &val); - - void __set_new_backup_interval_sec(const int64_t val); - - void __set_backup_history_count_to_keep(const int32_t val); - - void __set_is_disable(const bool val); - - void __set_start_time(const std::string &val); - - bool operator==(const configuration_modify_backup_policy_request &rhs) const - { - if (!(policy_name == rhs.policy_name)) - return false; - if (__isset.add_appids != rhs.__isset.add_appids) - return false; - else if (__isset.add_appids && !(add_appids == rhs.add_appids)) - return false; - if (__isset.removal_appids != rhs.__isset.removal_appids) - return false; - else if (__isset.removal_appids && !(removal_appids == rhs.removal_appids)) - return false; - if (__isset.new_backup_interval_sec != rhs.__isset.new_backup_interval_sec) - return false; - else if (__isset.new_backup_interval_sec && - !(new_backup_interval_sec == rhs.new_backup_interval_sec)) - return false; - if (__isset.backup_history_count_to_keep != rhs.__isset.backup_history_count_to_keep) - return false; - else if (__isset.backup_history_count_to_keep && - !(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) - return false; - if (__isset.is_disable != rhs.__isset.is_disable) - return false; - else if (__isset.is_disable && !(is_disable == rhs.is_disable)) - return false; - if (__isset.start_time != rhs.__isset.start_time) - return false; - else if (__isset.start_time && !(start_time == rhs.start_time)) - return false; - return true; - } - bool operator!=(const configuration_modify_backup_policy_request &rhs) const - { - return !(*this == rhs); - } - - bool operator<(const configuration_modify_backup_policy_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; -}; - -void swap(configuration_modify_backup_policy_request &a, - configuration_modify_backup_policy_request &b); - -inline std::ostream &operator<<(std::ostream &out, - const configuration_modify_backup_policy_request &obj) -{ - obj.printTo(out); - return out; +class configuration_modify_backup_policy_request { + public: + + configuration_modify_backup_policy_request(const configuration_modify_backup_policy_request&); + configuration_modify_backup_policy_request(configuration_modify_backup_policy_request&&); + configuration_modify_backup_policy_request& operator=(const configuration_modify_backup_policy_request&); + configuration_modify_backup_policy_request& operator=(configuration_modify_backup_policy_request&&); + configuration_modify_backup_policy_request() : policy_name(), new_backup_interval_sec(0), backup_history_count_to_keep(0), is_disable(0), start_time() { + } + + virtual ~configuration_modify_backup_policy_request() throw(); + std::string policy_name; + std::vector add_appids; + std::vector removal_appids; + int64_t new_backup_interval_sec; + int32_t backup_history_count_to_keep; + bool is_disable; + std::string start_time; + + _configuration_modify_backup_policy_request__isset __isset; + + void __set_policy_name(const std::string& val); + + void __set_add_appids(const std::vector & val); + + void __set_removal_appids(const std::vector & val); + + void __set_new_backup_interval_sec(const int64_t val); + + void __set_backup_history_count_to_keep(const int32_t val); + + void __set_is_disable(const bool val); + + void __set_start_time(const std::string& val); + + bool operator == (const configuration_modify_backup_policy_request & rhs) const + { + if (!(policy_name == rhs.policy_name)) + return false; + if (__isset.add_appids != rhs.__isset.add_appids) + return false; + else if (__isset.add_appids && !(add_appids == rhs.add_appids)) + return false; + if (__isset.removal_appids != rhs.__isset.removal_appids) + return false; + else if (__isset.removal_appids && !(removal_appids == rhs.removal_appids)) + return false; + if (__isset.new_backup_interval_sec != rhs.__isset.new_backup_interval_sec) + return false; + else if (__isset.new_backup_interval_sec && !(new_backup_interval_sec == rhs.new_backup_interval_sec)) + return false; + if (__isset.backup_history_count_to_keep != rhs.__isset.backup_history_count_to_keep) + return false; + else if (__isset.backup_history_count_to_keep && !(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) + return false; + if (__isset.is_disable != rhs.__isset.is_disable) + return false; + else if (__isset.is_disable && !(is_disable == rhs.is_disable)) + return false; + if (__isset.start_time != rhs.__isset.start_time) + return false; + else if (__isset.start_time && !(start_time == rhs.start_time)) + return false; + return true; + } + bool operator != (const configuration_modify_backup_policy_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_modify_backup_policy_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(configuration_modify_backup_policy_request &a, configuration_modify_backup_policy_request &b); + +inline std::ostream& operator<<(std::ostream& out, const configuration_modify_backup_policy_request& obj) +{ + obj.printTo(out); + return out; } -typedef struct _configuration_modify_backup_policy_response__isset -{ - _configuration_modify_backup_policy_response__isset() : err(false), hint_message(false) {} - bool err : 1; - bool hint_message : 1; +typedef struct _configuration_modify_backup_policy_response__isset { + _configuration_modify_backup_policy_response__isset() : err(false), hint_message(false) {} + bool err :1; + bool hint_message :1; } _configuration_modify_backup_policy_response__isset; -class configuration_modify_backup_policy_response -{ -public: - configuration_modify_backup_policy_response( - const configuration_modify_backup_policy_response &); - configuration_modify_backup_policy_response(configuration_modify_backup_policy_response &&); - configuration_modify_backup_policy_response & - operator=(const configuration_modify_backup_policy_response &); - configuration_modify_backup_policy_response & - operator=(configuration_modify_backup_policy_response &&); - configuration_modify_backup_policy_response() : hint_message() {} +class configuration_modify_backup_policy_response { + public: - virtual ~configuration_modify_backup_policy_response() throw(); - ::dsn::error_code err; - std::string hint_message; + configuration_modify_backup_policy_response(const configuration_modify_backup_policy_response&); + configuration_modify_backup_policy_response(configuration_modify_backup_policy_response&&); + configuration_modify_backup_policy_response& operator=(const configuration_modify_backup_policy_response&); + configuration_modify_backup_policy_response& operator=(configuration_modify_backup_policy_response&&); + configuration_modify_backup_policy_response() : hint_message() { + } - _configuration_modify_backup_policy_response__isset __isset; + virtual ~configuration_modify_backup_policy_response() throw(); + ::dsn::error_code err; + std::string hint_message; - void __set_err(const ::dsn::error_code &val); + _configuration_modify_backup_policy_response__isset __isset; - void __set_hint_message(const std::string &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const configuration_modify_backup_policy_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_message == rhs.hint_message)) - return false; - return true; - } - bool operator!=(const configuration_modify_backup_policy_response &rhs) const - { - return !(*this == rhs); - } + void __set_hint_message(const std::string& val); - bool operator<(const configuration_modify_backup_policy_response &) const; + bool operator == (const configuration_modify_backup_policy_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_message == rhs.hint_message)) + return false; + return true; + } + bool operator != (const configuration_modify_backup_policy_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_modify_backup_policy_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; -void swap(configuration_modify_backup_policy_response &a, - configuration_modify_backup_policy_response &b); +void swap(configuration_modify_backup_policy_response &a, configuration_modify_backup_policy_response &b); -inline std::ostream &operator<<(std::ostream &out, - const configuration_modify_backup_policy_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_modify_backup_policy_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_add_backup_policy_request__isset -{ - _configuration_add_backup_policy_request__isset() - : backup_provider_type(false), - policy_name(false), - app_ids(false), - backup_interval_seconds(false), - backup_history_count_to_keep(false), - start_time(false) - { - } - bool backup_provider_type : 1; - bool policy_name : 1; - bool app_ids : 1; - bool backup_interval_seconds : 1; - bool backup_history_count_to_keep : 1; - bool start_time : 1; +typedef struct _configuration_add_backup_policy_request__isset { + _configuration_add_backup_policy_request__isset() : backup_provider_type(false), policy_name(false), app_ids(false), backup_interval_seconds(false), backup_history_count_to_keep(false), start_time(false) {} + bool backup_provider_type :1; + bool policy_name :1; + bool app_ids :1; + bool backup_interval_seconds :1; + bool backup_history_count_to_keep :1; + bool start_time :1; } _configuration_add_backup_policy_request__isset; -class configuration_add_backup_policy_request -{ -public: - configuration_add_backup_policy_request(const configuration_add_backup_policy_request &); - configuration_add_backup_policy_request(configuration_add_backup_policy_request &&); - configuration_add_backup_policy_request & - operator=(const configuration_add_backup_policy_request &); - configuration_add_backup_policy_request &operator=(configuration_add_backup_policy_request &&); - configuration_add_backup_policy_request() - : backup_provider_type(), - policy_name(), - backup_interval_seconds(0), - backup_history_count_to_keep(0), - start_time() - { - } - - virtual ~configuration_add_backup_policy_request() throw(); - std::string backup_provider_type; - std::string policy_name; - std::vector app_ids; - int64_t backup_interval_seconds; - int32_t backup_history_count_to_keep; - std::string start_time; - - _configuration_add_backup_policy_request__isset __isset; - - void __set_backup_provider_type(const std::string &val); - - void __set_policy_name(const std::string &val); - - void __set_app_ids(const std::vector &val); - - void __set_backup_interval_seconds(const int64_t val); - - void __set_backup_history_count_to_keep(const int32_t val); - - void __set_start_time(const std::string &val); - - bool operator==(const configuration_add_backup_policy_request &rhs) const - { - if (!(backup_provider_type == rhs.backup_provider_type)) - return false; - if (!(policy_name == rhs.policy_name)) - return false; - if (!(app_ids == rhs.app_ids)) - return false; - if (!(backup_interval_seconds == rhs.backup_interval_seconds)) - return false; - if (!(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) - return false; - if (!(start_time == rhs.start_time)) - return false; - return true; - } - bool operator!=(const configuration_add_backup_policy_request &rhs) const - { - return !(*this == rhs); - } - - bool operator<(const configuration_add_backup_policy_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class configuration_add_backup_policy_request { + public: + + configuration_add_backup_policy_request(const configuration_add_backup_policy_request&); + configuration_add_backup_policy_request(configuration_add_backup_policy_request&&); + configuration_add_backup_policy_request& operator=(const configuration_add_backup_policy_request&); + configuration_add_backup_policy_request& operator=(configuration_add_backup_policy_request&&); + configuration_add_backup_policy_request() : backup_provider_type(), policy_name(), backup_interval_seconds(0), backup_history_count_to_keep(0), start_time() { + } + + virtual ~configuration_add_backup_policy_request() throw(); + std::string backup_provider_type; + std::string policy_name; + std::vector app_ids; + int64_t backup_interval_seconds; + int32_t backup_history_count_to_keep; + std::string start_time; + + _configuration_add_backup_policy_request__isset __isset; + + void __set_backup_provider_type(const std::string& val); + + void __set_policy_name(const std::string& val); + + void __set_app_ids(const std::vector & val); + + void __set_backup_interval_seconds(const int64_t val); + + void __set_backup_history_count_to_keep(const int32_t val); + + void __set_start_time(const std::string& val); + + bool operator == (const configuration_add_backup_policy_request & rhs) const + { + if (!(backup_provider_type == rhs.backup_provider_type)) + return false; + if (!(policy_name == rhs.policy_name)) + return false; + if (!(app_ids == rhs.app_ids)) + return false; + if (!(backup_interval_seconds == rhs.backup_interval_seconds)) + return false; + if (!(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) + return false; + if (!(start_time == rhs.start_time)) + return false; + return true; + } + bool operator != (const configuration_add_backup_policy_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_add_backup_policy_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_add_backup_policy_request &a, configuration_add_backup_policy_request &b); -inline std::ostream &operator<<(std::ostream &out, - const configuration_add_backup_policy_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_add_backup_policy_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_add_backup_policy_response__isset -{ - _configuration_add_backup_policy_response__isset() : err(false), hint_message(false) {} - bool err : 1; - bool hint_message : 1; +typedef struct _configuration_add_backup_policy_response__isset { + _configuration_add_backup_policy_response__isset() : err(false), hint_message(false) {} + bool err :1; + bool hint_message :1; } _configuration_add_backup_policy_response__isset; -class configuration_add_backup_policy_response -{ -public: - configuration_add_backup_policy_response(const configuration_add_backup_policy_response &); - configuration_add_backup_policy_response(configuration_add_backup_policy_response &&); - configuration_add_backup_policy_response & - operator=(const configuration_add_backup_policy_response &); - configuration_add_backup_policy_response & - operator=(configuration_add_backup_policy_response &&); - configuration_add_backup_policy_response() : hint_message() {} +class configuration_add_backup_policy_response { + public: + + configuration_add_backup_policy_response(const configuration_add_backup_policy_response&); + configuration_add_backup_policy_response(configuration_add_backup_policy_response&&); + configuration_add_backup_policy_response& operator=(const configuration_add_backup_policy_response&); + configuration_add_backup_policy_response& operator=(configuration_add_backup_policy_response&&); + configuration_add_backup_policy_response() : hint_message() { + } - virtual ~configuration_add_backup_policy_response() throw(); - ::dsn::error_code err; - std::string hint_message; + virtual ~configuration_add_backup_policy_response() throw(); + ::dsn::error_code err; + std::string hint_message; - _configuration_add_backup_policy_response__isset __isset; + _configuration_add_backup_policy_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_hint_message(const std::string &val); + void __set_hint_message(const std::string& val); - bool operator==(const configuration_add_backup_policy_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_message == rhs.hint_message)) - return false; - return true; - } - bool operator!=(const configuration_add_backup_policy_response &rhs) const - { - return !(*this == rhs); - } + bool operator == (const configuration_add_backup_policy_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_message == rhs.hint_message)) + return false; + return true; + } + bool operator != (const configuration_add_backup_policy_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_add_backup_policy_response &) const; + bool operator < (const configuration_add_backup_policy_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_add_backup_policy_response &a, configuration_add_backup_policy_response &b); -inline std::ostream &operator<<(std::ostream &out, - const configuration_add_backup_policy_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_add_backup_policy_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _policy_entry__isset -{ - _policy_entry__isset() - : policy_name(false), - backup_provider_type(false), - backup_interval_seconds(false), - app_ids(false), - backup_history_count_to_keep(false), - start_time(false), - is_disable(false) - { - } - bool policy_name : 1; - bool backup_provider_type : 1; - bool backup_interval_seconds : 1; - bool app_ids : 1; - bool backup_history_count_to_keep : 1; - bool start_time : 1; - bool is_disable : 1; +typedef struct _policy_entry__isset { + _policy_entry__isset() : policy_name(false), backup_provider_type(false), backup_interval_seconds(false), app_ids(false), backup_history_count_to_keep(false), start_time(false), is_disable(false) {} + bool policy_name :1; + bool backup_provider_type :1; + bool backup_interval_seconds :1; + bool app_ids :1; + bool backup_history_count_to_keep :1; + bool start_time :1; + bool is_disable :1; } _policy_entry__isset; -class policy_entry -{ -public: - policy_entry(const policy_entry &); - policy_entry(policy_entry &&); - policy_entry &operator=(const policy_entry &); - policy_entry &operator=(policy_entry &&); - policy_entry() - : policy_name(), - backup_provider_type(), - backup_interval_seconds(), - backup_history_count_to_keep(0), - start_time(), - is_disable(0) - { - } - - virtual ~policy_entry() throw(); - std::string policy_name; - std::string backup_provider_type; - std::string backup_interval_seconds; - std::set app_ids; - int32_t backup_history_count_to_keep; - std::string start_time; - bool is_disable; - - _policy_entry__isset __isset; - - void __set_policy_name(const std::string &val); - - void __set_backup_provider_type(const std::string &val); - - void __set_backup_interval_seconds(const std::string &val); - - void __set_app_ids(const std::set &val); - - void __set_backup_history_count_to_keep(const int32_t val); - - void __set_start_time(const std::string &val); - - void __set_is_disable(const bool val); - - bool operator==(const policy_entry &rhs) const - { - if (!(policy_name == rhs.policy_name)) - return false; - if (!(backup_provider_type == rhs.backup_provider_type)) - return false; - if (!(backup_interval_seconds == rhs.backup_interval_seconds)) - return false; - if (!(app_ids == rhs.app_ids)) - return false; - if (!(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) - return false; - if (!(start_time == rhs.start_time)) - return false; - if (!(is_disable == rhs.is_disable)) - return false; - return true; - } - bool operator!=(const policy_entry &rhs) const { return !(*this == rhs); } - - bool operator<(const policy_entry &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class policy_entry { + public: + + policy_entry(const policy_entry&); + policy_entry(policy_entry&&); + policy_entry& operator=(const policy_entry&); + policy_entry& operator=(policy_entry&&); + policy_entry() : policy_name(), backup_provider_type(), backup_interval_seconds(), backup_history_count_to_keep(0), start_time(), is_disable(0) { + } + + virtual ~policy_entry() throw(); + std::string policy_name; + std::string backup_provider_type; + std::string backup_interval_seconds; + std::set app_ids; + int32_t backup_history_count_to_keep; + std::string start_time; + bool is_disable; + + _policy_entry__isset __isset; + + void __set_policy_name(const std::string& val); + + void __set_backup_provider_type(const std::string& val); + + void __set_backup_interval_seconds(const std::string& val); + + void __set_app_ids(const std::set & val); + + void __set_backup_history_count_to_keep(const int32_t val); + + void __set_start_time(const std::string& val); + + void __set_is_disable(const bool val); + + bool operator == (const policy_entry & rhs) const + { + if (!(policy_name == rhs.policy_name)) + return false; + if (!(backup_provider_type == rhs.backup_provider_type)) + return false; + if (!(backup_interval_seconds == rhs.backup_interval_seconds)) + return false; + if (!(app_ids == rhs.app_ids)) + return false; + if (!(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) + return false; + if (!(start_time == rhs.start_time)) + return false; + if (!(is_disable == rhs.is_disable)) + return false; + return true; + } + bool operator != (const policy_entry &rhs) const { + return !(*this == rhs); + } + + bool operator < (const policy_entry & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(policy_entry &a, policy_entry &b); -inline std::ostream &operator<<(std::ostream &out, const policy_entry &obj) +inline std::ostream& operator<<(std::ostream& out, const policy_entry& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _backup_entry__isset -{ - _backup_entry__isset() - : backup_id(false), start_time_ms(false), end_time_ms(false), app_ids(false) - { - } - bool backup_id : 1; - bool start_time_ms : 1; - bool end_time_ms : 1; - bool app_ids : 1; +typedef struct _backup_entry__isset { + _backup_entry__isset() : backup_id(false), start_time_ms(false), end_time_ms(false), app_ids(false) {} + bool backup_id :1; + bool start_time_ms :1; + bool end_time_ms :1; + bool app_ids :1; } _backup_entry__isset; -class backup_entry -{ -public: - backup_entry(const backup_entry &); - backup_entry(backup_entry &&); - backup_entry &operator=(const backup_entry &); - backup_entry &operator=(backup_entry &&); - backup_entry() : backup_id(0), start_time_ms(0), end_time_ms(0) {} +class backup_entry { + public: + + backup_entry(const backup_entry&); + backup_entry(backup_entry&&); + backup_entry& operator=(const backup_entry&); + backup_entry& operator=(backup_entry&&); + backup_entry() : backup_id(0), start_time_ms(0), end_time_ms(0) { + } - virtual ~backup_entry() throw(); - int64_t backup_id; - int64_t start_time_ms; - int64_t end_time_ms; - std::set app_ids; + virtual ~backup_entry() throw(); + int64_t backup_id; + int64_t start_time_ms; + int64_t end_time_ms; + std::set app_ids; - _backup_entry__isset __isset; + _backup_entry__isset __isset; - void __set_backup_id(const int64_t val); + void __set_backup_id(const int64_t val); - void __set_start_time_ms(const int64_t val); + void __set_start_time_ms(const int64_t val); - void __set_end_time_ms(const int64_t val); + void __set_end_time_ms(const int64_t val); - void __set_app_ids(const std::set &val); + void __set_app_ids(const std::set & val); - bool operator==(const backup_entry &rhs) const - { - if (!(backup_id == rhs.backup_id)) - return false; - if (!(start_time_ms == rhs.start_time_ms)) - return false; - if (!(end_time_ms == rhs.end_time_ms)) - return false; - if (!(app_ids == rhs.app_ids)) - return false; - return true; - } - bool operator!=(const backup_entry &rhs) const { return !(*this == rhs); } + bool operator == (const backup_entry & rhs) const + { + if (!(backup_id == rhs.backup_id)) + return false; + if (!(start_time_ms == rhs.start_time_ms)) + return false; + if (!(end_time_ms == rhs.end_time_ms)) + return false; + if (!(app_ids == rhs.app_ids)) + return false; + return true; + } + bool operator != (const backup_entry &rhs) const { + return !(*this == rhs); + } - bool operator<(const backup_entry &) const; + bool operator < (const backup_entry & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(backup_entry &a, backup_entry &b); -inline std::ostream &operator<<(std::ostream &out, const backup_entry &obj) +inline std::ostream& operator<<(std::ostream& out, const backup_entry& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_backup_policy_request__isset -{ - _configuration_query_backup_policy_request__isset() - : policy_names(false), backup_info_count(false) - { - } - bool policy_names : 1; - bool backup_info_count : 1; +typedef struct _configuration_query_backup_policy_request__isset { + _configuration_query_backup_policy_request__isset() : policy_names(false), backup_info_count(false) {} + bool policy_names :1; + bool backup_info_count :1; } _configuration_query_backup_policy_request__isset; -class configuration_query_backup_policy_request -{ -public: - configuration_query_backup_policy_request(const configuration_query_backup_policy_request &); - configuration_query_backup_policy_request(configuration_query_backup_policy_request &&); - configuration_query_backup_policy_request & - operator=(const configuration_query_backup_policy_request &); - configuration_query_backup_policy_request & - operator=(configuration_query_backup_policy_request &&); - configuration_query_backup_policy_request() : backup_info_count(0) {} +class configuration_query_backup_policy_request { + public: + + configuration_query_backup_policy_request(const configuration_query_backup_policy_request&); + configuration_query_backup_policy_request(configuration_query_backup_policy_request&&); + configuration_query_backup_policy_request& operator=(const configuration_query_backup_policy_request&); + configuration_query_backup_policy_request& operator=(configuration_query_backup_policy_request&&); + configuration_query_backup_policy_request() : backup_info_count(0) { + } - virtual ~configuration_query_backup_policy_request() throw(); - std::vector policy_names; - int32_t backup_info_count; + virtual ~configuration_query_backup_policy_request() throw(); + std::vector policy_names; + int32_t backup_info_count; - _configuration_query_backup_policy_request__isset __isset; + _configuration_query_backup_policy_request__isset __isset; - void __set_policy_names(const std::vector &val); + void __set_policy_names(const std::vector & val); - void __set_backup_info_count(const int32_t val); + void __set_backup_info_count(const int32_t val); - bool operator==(const configuration_query_backup_policy_request &rhs) const - { - if (!(policy_names == rhs.policy_names)) - return false; - if (!(backup_info_count == rhs.backup_info_count)) - return false; - return true; - } - bool operator!=(const configuration_query_backup_policy_request &rhs) const - { - return !(*this == rhs); - } + bool operator == (const configuration_query_backup_policy_request & rhs) const + { + if (!(policy_names == rhs.policy_names)) + return false; + if (!(backup_info_count == rhs.backup_info_count)) + return false; + return true; + } + bool operator != (const configuration_query_backup_policy_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_query_backup_policy_request &) const; + bool operator < (const configuration_query_backup_policy_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; -void swap(configuration_query_backup_policy_request &a, - configuration_query_backup_policy_request &b); +void swap(configuration_query_backup_policy_request &a, configuration_query_backup_policy_request &b); -inline std::ostream &operator<<(std::ostream &out, - const configuration_query_backup_policy_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_query_backup_policy_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_backup_policy_response__isset -{ - _configuration_query_backup_policy_response__isset() - : err(false), policys(false), backup_infos(false), hint_msg(false) - { - } - bool err : 1; - bool policys : 1; - bool backup_infos : 1; - bool hint_msg : 1; +typedef struct _configuration_query_backup_policy_response__isset { + _configuration_query_backup_policy_response__isset() : err(false), policys(false), backup_infos(false), hint_msg(false) {} + bool err :1; + bool policys :1; + bool backup_infos :1; + bool hint_msg :1; } _configuration_query_backup_policy_response__isset; -class configuration_query_backup_policy_response -{ -public: - configuration_query_backup_policy_response(const configuration_query_backup_policy_response &); - configuration_query_backup_policy_response(configuration_query_backup_policy_response &&); - configuration_query_backup_policy_response & - operator=(const configuration_query_backup_policy_response &); - configuration_query_backup_policy_response & - operator=(configuration_query_backup_policy_response &&); - configuration_query_backup_policy_response() : hint_msg() {} - - virtual ~configuration_query_backup_policy_response() throw(); - ::dsn::error_code err; - std::vector policys; - std::vector> backup_infos; - std::string hint_msg; - - _configuration_query_backup_policy_response__isset __isset; - - void __set_err(const ::dsn::error_code &val); - - void __set_policys(const std::vector &val); - - void __set_backup_infos(const std::vector> &val); - - void __set_hint_msg(const std::string &val); - - bool operator==(const configuration_query_backup_policy_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(policys == rhs.policys)) - return false; - if (!(backup_infos == rhs.backup_infos)) - return false; - if (__isset.hint_msg != rhs.__isset.hint_msg) - return false; - else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator!=(const configuration_query_backup_policy_response &rhs) const - { - return !(*this == rhs); - } - - bool operator<(const configuration_query_backup_policy_response &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; -}; - -void swap(configuration_query_backup_policy_response &a, - configuration_query_backup_policy_response &b); - -inline std::ostream &operator<<(std::ostream &out, - const configuration_query_backup_policy_response &obj) +class configuration_query_backup_policy_response { + public: + + configuration_query_backup_policy_response(const configuration_query_backup_policy_response&); + configuration_query_backup_policy_response(configuration_query_backup_policy_response&&); + configuration_query_backup_policy_response& operator=(const configuration_query_backup_policy_response&); + configuration_query_backup_policy_response& operator=(configuration_query_backup_policy_response&&); + configuration_query_backup_policy_response() : hint_msg() { + } + + virtual ~configuration_query_backup_policy_response() throw(); + ::dsn::error_code err; + std::vector policys; + std::vector > backup_infos; + std::string hint_msg; + + _configuration_query_backup_policy_response__isset __isset; + + void __set_err(const ::dsn::error_code& val); + + void __set_policys(const std::vector & val); + + void __set_backup_infos(const std::vector > & val); + + void __set_hint_msg(const std::string& val); + + bool operator == (const configuration_query_backup_policy_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(policys == rhs.policys)) + return false; + if (!(backup_infos == rhs.backup_infos)) + return false; + if (__isset.hint_msg != rhs.__isset.hint_msg) + return false; + else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator != (const configuration_query_backup_policy_response &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_query_backup_policy_response & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(configuration_query_backup_policy_response &a, configuration_query_backup_policy_response &b); + +inline std::ostream& operator<<(std::ostream& out, const configuration_query_backup_policy_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_report_restore_status_request__isset -{ - _configuration_report_restore_status_request__isset() - : pid(false), restore_status(false), progress(false), reason(false) - { - } - bool pid : 1; - bool restore_status : 1; - bool progress : 1; - bool reason : 1; +typedef struct _configuration_report_restore_status_request__isset { + _configuration_report_restore_status_request__isset() : pid(false), restore_status(false), progress(false), reason(false) {} + bool pid :1; + bool restore_status :1; + bool progress :1; + bool reason :1; } _configuration_report_restore_status_request__isset; -class configuration_report_restore_status_request -{ -public: - configuration_report_restore_status_request( - const configuration_report_restore_status_request &); - configuration_report_restore_status_request(configuration_report_restore_status_request &&); - configuration_report_restore_status_request & - operator=(const configuration_report_restore_status_request &); - configuration_report_restore_status_request & - operator=(configuration_report_restore_status_request &&); - configuration_report_restore_status_request() : progress(0), reason() {} - - virtual ~configuration_report_restore_status_request() throw(); - ::dsn::gpid pid; - ::dsn::error_code restore_status; - int32_t progress; - std::string reason; - - _configuration_report_restore_status_request__isset __isset; - - void __set_pid(const ::dsn::gpid &val); - - void __set_restore_status(const ::dsn::error_code &val); - - void __set_progress(const int32_t val); - - void __set_reason(const std::string &val); - - bool operator==(const configuration_report_restore_status_request &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(restore_status == rhs.restore_status)) - return false; - if (!(progress == rhs.progress)) - return false; - if (__isset.reason != rhs.__isset.reason) - return false; - else if (__isset.reason && !(reason == rhs.reason)) - return false; - return true; - } - bool operator!=(const configuration_report_restore_status_request &rhs) const - { - return !(*this == rhs); - } - - bool operator<(const configuration_report_restore_status_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; -}; - -void swap(configuration_report_restore_status_request &a, - configuration_report_restore_status_request &b); - -inline std::ostream &operator<<(std::ostream &out, - const configuration_report_restore_status_request &obj) +class configuration_report_restore_status_request { + public: + + configuration_report_restore_status_request(const configuration_report_restore_status_request&); + configuration_report_restore_status_request(configuration_report_restore_status_request&&); + configuration_report_restore_status_request& operator=(const configuration_report_restore_status_request&); + configuration_report_restore_status_request& operator=(configuration_report_restore_status_request&&); + configuration_report_restore_status_request() : progress(0), reason() { + } + + virtual ~configuration_report_restore_status_request() throw(); + ::dsn::gpid pid; + ::dsn::error_code restore_status; + int32_t progress; + std::string reason; + + _configuration_report_restore_status_request__isset __isset; + + void __set_pid(const ::dsn::gpid& val); + + void __set_restore_status(const ::dsn::error_code& val); + + void __set_progress(const int32_t val); + + void __set_reason(const std::string& val); + + bool operator == (const configuration_report_restore_status_request & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(restore_status == rhs.restore_status)) + return false; + if (!(progress == rhs.progress)) + return false; + if (__isset.reason != rhs.__isset.reason) + return false; + else if (__isset.reason && !(reason == rhs.reason)) + return false; + return true; + } + bool operator != (const configuration_report_restore_status_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_report_restore_status_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(configuration_report_restore_status_request &a, configuration_report_restore_status_request &b); + +inline std::ostream& operator<<(std::ostream& out, const configuration_report_restore_status_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_report_restore_status_response__isset -{ - _configuration_report_restore_status_response__isset() : err(false) {} - bool err : 1; +typedef struct _configuration_report_restore_status_response__isset { + _configuration_report_restore_status_response__isset() : err(false) {} + bool err :1; } _configuration_report_restore_status_response__isset; -class configuration_report_restore_status_response -{ -public: - configuration_report_restore_status_response( - const configuration_report_restore_status_response &); - configuration_report_restore_status_response(configuration_report_restore_status_response &&); - configuration_report_restore_status_response & - operator=(const configuration_report_restore_status_response &); - configuration_report_restore_status_response & - operator=(configuration_report_restore_status_response &&); - configuration_report_restore_status_response() {} +class configuration_report_restore_status_response { + public: + + configuration_report_restore_status_response(const configuration_report_restore_status_response&); + configuration_report_restore_status_response(configuration_report_restore_status_response&&); + configuration_report_restore_status_response& operator=(const configuration_report_restore_status_response&); + configuration_report_restore_status_response& operator=(configuration_report_restore_status_response&&); + configuration_report_restore_status_response() { + } - virtual ~configuration_report_restore_status_response() throw(); - ::dsn::error_code err; + virtual ~configuration_report_restore_status_response() throw(); + ::dsn::error_code err; - _configuration_report_restore_status_response__isset __isset; + _configuration_report_restore_status_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const configuration_report_restore_status_response &rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator!=(const configuration_report_restore_status_response &rhs) const - { - return !(*this == rhs); - } + bool operator == (const configuration_report_restore_status_response & rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator != (const configuration_report_restore_status_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_report_restore_status_response &) const; + bool operator < (const configuration_report_restore_status_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; -void swap(configuration_report_restore_status_response &a, - configuration_report_restore_status_response &b); +void swap(configuration_report_restore_status_response &a, configuration_report_restore_status_response &b); -inline std::ostream &operator<<(std::ostream &out, - const configuration_report_restore_status_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_report_restore_status_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_restore_request__isset -{ - _configuration_query_restore_request__isset() : restore_app_id(false) {} - bool restore_app_id : 1; +typedef struct _configuration_query_restore_request__isset { + _configuration_query_restore_request__isset() : restore_app_id(false) {} + bool restore_app_id :1; } _configuration_query_restore_request__isset; -class configuration_query_restore_request -{ -public: - configuration_query_restore_request(const configuration_query_restore_request &); - configuration_query_restore_request(configuration_query_restore_request &&); - configuration_query_restore_request &operator=(const configuration_query_restore_request &); - configuration_query_restore_request &operator=(configuration_query_restore_request &&); - configuration_query_restore_request() : restore_app_id(0) {} +class configuration_query_restore_request { + public: + + configuration_query_restore_request(const configuration_query_restore_request&); + configuration_query_restore_request(configuration_query_restore_request&&); + configuration_query_restore_request& operator=(const configuration_query_restore_request&); + configuration_query_restore_request& operator=(configuration_query_restore_request&&); + configuration_query_restore_request() : restore_app_id(0) { + } - virtual ~configuration_query_restore_request() throw(); - int32_t restore_app_id; + virtual ~configuration_query_restore_request() throw(); + int32_t restore_app_id; - _configuration_query_restore_request__isset __isset; + _configuration_query_restore_request__isset __isset; - void __set_restore_app_id(const int32_t val); + void __set_restore_app_id(const int32_t val); - bool operator==(const configuration_query_restore_request &rhs) const - { - if (!(restore_app_id == rhs.restore_app_id)) - return false; - return true; - } - bool operator!=(const configuration_query_restore_request &rhs) const - { - return !(*this == rhs); - } + bool operator == (const configuration_query_restore_request & rhs) const + { + if (!(restore_app_id == rhs.restore_app_id)) + return false; + return true; + } + bool operator != (const configuration_query_restore_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_query_restore_request &) const; + bool operator < (const configuration_query_restore_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_query_restore_request &a, configuration_query_restore_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_query_restore_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_query_restore_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_restore_response__isset -{ - _configuration_query_restore_response__isset() - : err(false), restore_status(false), restore_progress(false) - { - } - bool err : 1; - bool restore_status : 1; - bool restore_progress : 1; +typedef struct _configuration_query_restore_response__isset { + _configuration_query_restore_response__isset() : err(false), restore_status(false), restore_progress(false) {} + bool err :1; + bool restore_status :1; + bool restore_progress :1; } _configuration_query_restore_response__isset; -class configuration_query_restore_response -{ -public: - configuration_query_restore_response(const configuration_query_restore_response &); - configuration_query_restore_response(configuration_query_restore_response &&); - configuration_query_restore_response &operator=(const configuration_query_restore_response &); - configuration_query_restore_response &operator=(configuration_query_restore_response &&); - configuration_query_restore_response() {} +class configuration_query_restore_response { + public: + + configuration_query_restore_response(const configuration_query_restore_response&); + configuration_query_restore_response(configuration_query_restore_response&&); + configuration_query_restore_response& operator=(const configuration_query_restore_response&); + configuration_query_restore_response& operator=(configuration_query_restore_response&&); + configuration_query_restore_response() { + } - virtual ~configuration_query_restore_response() throw(); - ::dsn::error_code err; - std::vector<::dsn::error_code> restore_status; - std::vector restore_progress; + virtual ~configuration_query_restore_response() throw(); + ::dsn::error_code err; + std::vector< ::dsn::error_code> restore_status; + std::vector restore_progress; - _configuration_query_restore_response__isset __isset; + _configuration_query_restore_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_restore_status(const std::vector<::dsn::error_code> &val); + void __set_restore_status(const std::vector< ::dsn::error_code> & val); - void __set_restore_progress(const std::vector &val); + void __set_restore_progress(const std::vector & val); - bool operator==(const configuration_query_restore_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(restore_status == rhs.restore_status)) - return false; - if (!(restore_progress == rhs.restore_progress)) - return false; - return true; - } - bool operator!=(const configuration_query_restore_response &rhs) const - { - return !(*this == rhs); - } + bool operator == (const configuration_query_restore_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(restore_status == rhs.restore_status)) + return false; + if (!(restore_progress == rhs.restore_progress)) + return false; + return true; + } + bool operator != (const configuration_query_restore_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const configuration_query_restore_response &) const; + bool operator < (const configuration_query_restore_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(configuration_query_restore_response &a, configuration_query_restore_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_query_restore_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_query_restore_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _file_meta__isset -{ - _file_meta__isset() : name(false), size(false), md5(false) {} - bool name : 1; - bool size : 1; - bool md5 : 1; +typedef struct _file_meta__isset { + _file_meta__isset() : name(false), size(false), md5(false) {} + bool name :1; + bool size :1; + bool md5 :1; } _file_meta__isset; -class file_meta -{ -public: - file_meta(const file_meta &); - file_meta(file_meta &&); - file_meta &operator=(const file_meta &); - file_meta &operator=(file_meta &&); - file_meta() : name(), size(0), md5() {} +class file_meta { + public: + + file_meta(const file_meta&); + file_meta(file_meta&&); + file_meta& operator=(const file_meta&); + file_meta& operator=(file_meta&&); + file_meta() : name(), size(0), md5() { + } - virtual ~file_meta() throw(); - std::string name; - int64_t size; - std::string md5; + virtual ~file_meta() throw(); + std::string name; + int64_t size; + std::string md5; - _file_meta__isset __isset; + _file_meta__isset __isset; - void __set_name(const std::string &val); + void __set_name(const std::string& val); - void __set_size(const int64_t val); + void __set_size(const int64_t val); - void __set_md5(const std::string &val); + void __set_md5(const std::string& val); - bool operator==(const file_meta &rhs) const - { - if (!(name == rhs.name)) - return false; - if (!(size == rhs.size)) - return false; - if (!(md5 == rhs.md5)) - return false; - return true; - } - bool operator!=(const file_meta &rhs) const { return !(*this == rhs); } + bool operator == (const file_meta & rhs) const + { + if (!(name == rhs.name)) + return false; + if (!(size == rhs.size)) + return false; + if (!(md5 == rhs.md5)) + return false; + return true; + } + bool operator != (const file_meta &rhs) const { + return !(*this == rhs); + } - bool operator<(const file_meta &) const; + bool operator < (const file_meta & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(file_meta &a, file_meta &b); -inline std::ostream &operator<<(std::ostream &out, const file_meta &obj) +inline std::ostream& operator<<(std::ostream& out, const file_meta& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_update_app_env_request__isset -{ - _configuration_update_app_env_request__isset() - : app_name(false), op(true), keys(false), values(false), clear_prefix(false) - { - } - bool app_name : 1; - bool op : 1; - bool keys : 1; - bool values : 1; - bool clear_prefix : 1; +typedef struct _configuration_update_app_env_request__isset { + _configuration_update_app_env_request__isset() : app_name(false), op(true), keys(false), values(false), clear_prefix(false) {} + bool app_name :1; + bool op :1; + bool keys :1; + bool values :1; + bool clear_prefix :1; } _configuration_update_app_env_request__isset; -class configuration_update_app_env_request -{ -public: - configuration_update_app_env_request(const configuration_update_app_env_request &); - configuration_update_app_env_request(configuration_update_app_env_request &&); - configuration_update_app_env_request &operator=(const configuration_update_app_env_request &); - configuration_update_app_env_request &operator=(configuration_update_app_env_request &&); - configuration_update_app_env_request() - : app_name(), op((app_env_operation::type)0), clear_prefix() - { - op = (app_env_operation::type)0; - } - - virtual ~configuration_update_app_env_request() throw(); - std::string app_name; - app_env_operation::type op; - std::vector keys; - std::vector values; - std::string clear_prefix; - - _configuration_update_app_env_request__isset __isset; - - void __set_app_name(const std::string &val); - - void __set_op(const app_env_operation::type val); - - void __set_keys(const std::vector &val); - - void __set_values(const std::vector &val); - - void __set_clear_prefix(const std::string &val); - - bool operator==(const configuration_update_app_env_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(op == rhs.op)) - return false; - if (__isset.keys != rhs.__isset.keys) - return false; - else if (__isset.keys && !(keys == rhs.keys)) - return false; - if (__isset.values != rhs.__isset.values) - return false; - else if (__isset.values && !(values == rhs.values)) - return false; - if (__isset.clear_prefix != rhs.__isset.clear_prefix) - return false; - else if (__isset.clear_prefix && !(clear_prefix == rhs.clear_prefix)) - return false; - return true; - } - bool operator!=(const configuration_update_app_env_request &rhs) const - { - return !(*this == rhs); - } - - bool operator<(const configuration_update_app_env_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class configuration_update_app_env_request { + public: + + configuration_update_app_env_request(const configuration_update_app_env_request&); + configuration_update_app_env_request(configuration_update_app_env_request&&); + configuration_update_app_env_request& operator=(const configuration_update_app_env_request&); + configuration_update_app_env_request& operator=(configuration_update_app_env_request&&); + configuration_update_app_env_request() : app_name(), op((app_env_operation::type)0), clear_prefix() { + op = (app_env_operation::type)0; + + } + + virtual ~configuration_update_app_env_request() throw(); + std::string app_name; + app_env_operation::type op; + std::vector keys; + std::vector values; + std::string clear_prefix; + + _configuration_update_app_env_request__isset __isset; + + void __set_app_name(const std::string& val); + + void __set_op(const app_env_operation::type val); + + void __set_keys(const std::vector & val); + + void __set_values(const std::vector & val); + + void __set_clear_prefix(const std::string& val); + + bool operator == (const configuration_update_app_env_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(op == rhs.op)) + return false; + if (__isset.keys != rhs.__isset.keys) + return false; + else if (__isset.keys && !(keys == rhs.keys)) + return false; + if (__isset.values != rhs.__isset.values) + return false; + else if (__isset.values && !(values == rhs.values)) + return false; + if (__isset.clear_prefix != rhs.__isset.clear_prefix) + return false; + else if (__isset.clear_prefix && !(clear_prefix == rhs.clear_prefix)) + return false; + return true; + } + bool operator != (const configuration_update_app_env_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const configuration_update_app_env_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_update_app_env_request &a, configuration_update_app_env_request &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_update_app_env_request &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_update_app_env_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_update_app_env_response__isset -{ - _configuration_update_app_env_response__isset() : err(false), hint_message(false) {} - bool err : 1; - bool hint_message : 1; +typedef struct _configuration_update_app_env_response__isset { + _configuration_update_app_env_response__isset() : err(false), hint_message(false) {} + bool err :1; + bool hint_message :1; } _configuration_update_app_env_response__isset; -class configuration_update_app_env_response -{ -public: - configuration_update_app_env_response(const configuration_update_app_env_response &); - configuration_update_app_env_response(configuration_update_app_env_response &&); - configuration_update_app_env_response &operator=(const configuration_update_app_env_response &); - configuration_update_app_env_response &operator=(configuration_update_app_env_response &&); - configuration_update_app_env_response() : hint_message() {} +class configuration_update_app_env_response { + public: - virtual ~configuration_update_app_env_response() throw(); - ::dsn::error_code err; - std::string hint_message; + configuration_update_app_env_response(const configuration_update_app_env_response&); + configuration_update_app_env_response(configuration_update_app_env_response&&); + configuration_update_app_env_response& operator=(const configuration_update_app_env_response&); + configuration_update_app_env_response& operator=(configuration_update_app_env_response&&); + configuration_update_app_env_response() : hint_message() { + } - _configuration_update_app_env_response__isset __isset; + virtual ~configuration_update_app_env_response() throw(); + ::dsn::error_code err; + std::string hint_message; - void __set_err(const ::dsn::error_code &val); + _configuration_update_app_env_response__isset __isset; - void __set_hint_message(const std::string &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const configuration_update_app_env_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_message == rhs.hint_message)) - return false; - return true; - } - bool operator!=(const configuration_update_app_env_response &rhs) const - { - return !(*this == rhs); - } + void __set_hint_message(const std::string& val); - bool operator<(const configuration_update_app_env_response &) const; + bool operator == (const configuration_update_app_env_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_message == rhs.hint_message)) + return false; + return true; + } + bool operator != (const configuration_update_app_env_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const configuration_update_app_env_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(configuration_update_app_env_response &a, configuration_update_app_env_response &b); -inline std::ostream &operator<<(std::ostream &out, const configuration_update_app_env_response &obj) +inline std::ostream& operator<<(std::ostream& out, const configuration_update_app_env_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_add_request__isset -{ - _duplication_add_request__isset() : app_name(false), remote_cluster_name(false), freezed(false) - { - } - bool app_name : 1; - bool remote_cluster_name : 1; - bool freezed : 1; +typedef struct _duplication_add_request__isset { + _duplication_add_request__isset() : app_name(false), remote_cluster_name(false), freezed(false) {} + bool app_name :1; + bool remote_cluster_name :1; + bool freezed :1; } _duplication_add_request__isset; -class duplication_add_request -{ -public: - duplication_add_request(const duplication_add_request &); - duplication_add_request(duplication_add_request &&); - duplication_add_request &operator=(const duplication_add_request &); - duplication_add_request &operator=(duplication_add_request &&); - duplication_add_request() : app_name(), remote_cluster_name(), freezed(0) {} +class duplication_add_request { + public: - virtual ~duplication_add_request() throw(); - std::string app_name; - std::string remote_cluster_name; - bool freezed; + duplication_add_request(const duplication_add_request&); + duplication_add_request(duplication_add_request&&); + duplication_add_request& operator=(const duplication_add_request&); + duplication_add_request& operator=(duplication_add_request&&); + duplication_add_request() : app_name(), remote_cluster_name(), freezed(0) { + } - _duplication_add_request__isset __isset; + virtual ~duplication_add_request() throw(); + std::string app_name; + std::string remote_cluster_name; + bool freezed; - void __set_app_name(const std::string &val); + _duplication_add_request__isset __isset; - void __set_remote_cluster_name(const std::string &val); + void __set_app_name(const std::string& val); - void __set_freezed(const bool val); + void __set_remote_cluster_name(const std::string& val); - bool operator==(const duplication_add_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(remote_cluster_name == rhs.remote_cluster_name)) - return false; - if (!(freezed == rhs.freezed)) - return false; - return true; - } - bool operator!=(const duplication_add_request &rhs) const { return !(*this == rhs); } + void __set_freezed(const bool val); - bool operator<(const duplication_add_request &) const; + bool operator == (const duplication_add_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(remote_cluster_name == rhs.remote_cluster_name)) + return false; + if (!(freezed == rhs.freezed)) + return false; + return true; + } + bool operator != (const duplication_add_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const duplication_add_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(duplication_add_request &a, duplication_add_request &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_add_request &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_add_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_add_response__isset -{ - _duplication_add_response__isset() : err(false), appid(false), dupid(false), hint(false) {} - bool err : 1; - bool appid : 1; - bool dupid : 1; - bool hint : 1; +typedef struct _duplication_add_response__isset { + _duplication_add_response__isset() : err(false), appid(false), dupid(false), hint(false) {} + bool err :1; + bool appid :1; + bool dupid :1; + bool hint :1; } _duplication_add_response__isset; -class duplication_add_response -{ -public: - duplication_add_response(const duplication_add_response &); - duplication_add_response(duplication_add_response &&); - duplication_add_response &operator=(const duplication_add_response &); - duplication_add_response &operator=(duplication_add_response &&); - duplication_add_response() : appid(0), dupid(0), hint() {} +class duplication_add_response { + public: + + duplication_add_response(const duplication_add_response&); + duplication_add_response(duplication_add_response&&); + duplication_add_response& operator=(const duplication_add_response&); + duplication_add_response& operator=(duplication_add_response&&); + duplication_add_response() : appid(0), dupid(0), hint() { + } - virtual ~duplication_add_response() throw(); - ::dsn::error_code err; - int32_t appid; - int32_t dupid; - std::string hint; + virtual ~duplication_add_response() throw(); + ::dsn::error_code err; + int32_t appid; + int32_t dupid; + std::string hint; - _duplication_add_response__isset __isset; + _duplication_add_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_appid(const int32_t val); + void __set_appid(const int32_t val); - void __set_dupid(const int32_t val); + void __set_dupid(const int32_t val); - void __set_hint(const std::string &val); + void __set_hint(const std::string& val); - bool operator==(const duplication_add_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(appid == rhs.appid)) - return false; - if (!(dupid == rhs.dupid)) - return false; - if (__isset.hint != rhs.__isset.hint) - return false; - else if (__isset.hint && !(hint == rhs.hint)) - return false; - return true; - } - bool operator!=(const duplication_add_response &rhs) const { return !(*this == rhs); } + bool operator == (const duplication_add_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(appid == rhs.appid)) + return false; + if (!(dupid == rhs.dupid)) + return false; + if (__isset.hint != rhs.__isset.hint) + return false; + else if (__isset.hint && !(hint == rhs.hint)) + return false; + return true; + } + bool operator != (const duplication_add_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const duplication_add_response &) const; + bool operator < (const duplication_add_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(duplication_add_response &a, duplication_add_response &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_add_response &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_add_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_modify_request__isset -{ - _duplication_modify_request__isset() - : app_name(false), dupid(false), status(false), fail_mode(false) - { - } - bool app_name : 1; - bool dupid : 1; - bool status : 1; - bool fail_mode : 1; +typedef struct _duplication_modify_request__isset { + _duplication_modify_request__isset() : app_name(false), dupid(false), status(false), fail_mode(false) {} + bool app_name :1; + bool dupid :1; + bool status :1; + bool fail_mode :1; } _duplication_modify_request__isset; -class duplication_modify_request -{ -public: - duplication_modify_request(const duplication_modify_request &); - duplication_modify_request(duplication_modify_request &&); - duplication_modify_request &operator=(const duplication_modify_request &); - duplication_modify_request &operator=(duplication_modify_request &&); - duplication_modify_request() - : app_name(), - dupid(0), - status((duplication_status::type)0), - fail_mode((duplication_fail_mode::type)0) - { - } - - virtual ~duplication_modify_request() throw(); - std::string app_name; - int32_t dupid; - duplication_status::type status; - duplication_fail_mode::type fail_mode; - - _duplication_modify_request__isset __isset; - - void __set_app_name(const std::string &val); - - void __set_dupid(const int32_t val); - - void __set_status(const duplication_status::type val); - - void __set_fail_mode(const duplication_fail_mode::type val); - - bool operator==(const duplication_modify_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(dupid == rhs.dupid)) - return false; - if (__isset.status != rhs.__isset.status) - return false; - else if (__isset.status && !(status == rhs.status)) - return false; - if (__isset.fail_mode != rhs.__isset.fail_mode) - return false; - else if (__isset.fail_mode && !(fail_mode == rhs.fail_mode)) - return false; - return true; - } - bool operator!=(const duplication_modify_request &rhs) const { return !(*this == rhs); } - - bool operator<(const duplication_modify_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class duplication_modify_request { + public: + + duplication_modify_request(const duplication_modify_request&); + duplication_modify_request(duplication_modify_request&&); + duplication_modify_request& operator=(const duplication_modify_request&); + duplication_modify_request& operator=(duplication_modify_request&&); + duplication_modify_request() : app_name(), dupid(0), status((duplication_status::type)0), fail_mode((duplication_fail_mode::type)0) { + } + + virtual ~duplication_modify_request() throw(); + std::string app_name; + int32_t dupid; + duplication_status::type status; + duplication_fail_mode::type fail_mode; + + _duplication_modify_request__isset __isset; + + void __set_app_name(const std::string& val); + + void __set_dupid(const int32_t val); + + void __set_status(const duplication_status::type val); + + void __set_fail_mode(const duplication_fail_mode::type val); + + bool operator == (const duplication_modify_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(dupid == rhs.dupid)) + return false; + if (__isset.status != rhs.__isset.status) + return false; + else if (__isset.status && !(status == rhs.status)) + return false; + if (__isset.fail_mode != rhs.__isset.fail_mode) + return false; + else if (__isset.fail_mode && !(fail_mode == rhs.fail_mode)) + return false; + return true; + } + bool operator != (const duplication_modify_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const duplication_modify_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(duplication_modify_request &a, duplication_modify_request &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_modify_request &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_modify_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_modify_response__isset -{ - _duplication_modify_response__isset() : err(false), appid(false) {} - bool err : 1; - bool appid : 1; +typedef struct _duplication_modify_response__isset { + _duplication_modify_response__isset() : err(false), appid(false) {} + bool err :1; + bool appid :1; } _duplication_modify_response__isset; -class duplication_modify_response -{ -public: - duplication_modify_response(const duplication_modify_response &); - duplication_modify_response(duplication_modify_response &&); - duplication_modify_response &operator=(const duplication_modify_response &); - duplication_modify_response &operator=(duplication_modify_response &&); - duplication_modify_response() : appid(0) {} +class duplication_modify_response { + public: - virtual ~duplication_modify_response() throw(); - ::dsn::error_code err; - int32_t appid; + duplication_modify_response(const duplication_modify_response&); + duplication_modify_response(duplication_modify_response&&); + duplication_modify_response& operator=(const duplication_modify_response&); + duplication_modify_response& operator=(duplication_modify_response&&); + duplication_modify_response() : appid(0) { + } - _duplication_modify_response__isset __isset; + virtual ~duplication_modify_response() throw(); + ::dsn::error_code err; + int32_t appid; - void __set_err(const ::dsn::error_code &val); + _duplication_modify_response__isset __isset; - void __set_appid(const int32_t val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const duplication_modify_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(appid == rhs.appid)) - return false; - return true; - } - bool operator!=(const duplication_modify_response &rhs) const { return !(*this == rhs); } + void __set_appid(const int32_t val); - bool operator<(const duplication_modify_response &) const; + bool operator == (const duplication_modify_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(appid == rhs.appid)) + return false; + return true; + } + bool operator != (const duplication_modify_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const duplication_modify_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(duplication_modify_response &a, duplication_modify_response &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_modify_response &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_modify_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_entry__isset -{ - _duplication_entry__isset() - : dupid(false), - status(false), - remote(false), - create_ts(false), - progress(false), - fail_mode(false) - { - } - bool dupid : 1; - bool status : 1; - bool remote : 1; - bool create_ts : 1; - bool progress : 1; - bool fail_mode : 1; +typedef struct _duplication_entry__isset { + _duplication_entry__isset() : dupid(false), status(false), remote(false), create_ts(false), progress(false), fail_mode(false) {} + bool dupid :1; + bool status :1; + bool remote :1; + bool create_ts :1; + bool progress :1; + bool fail_mode :1; } _duplication_entry__isset; -class duplication_entry -{ -public: - duplication_entry(const duplication_entry &); - duplication_entry(duplication_entry &&); - duplication_entry &operator=(const duplication_entry &); - duplication_entry &operator=(duplication_entry &&); - duplication_entry() - : dupid(0), - status((duplication_status::type)0), - remote(), - create_ts(0), - fail_mode((duplication_fail_mode::type)0) - { - } - - virtual ~duplication_entry() throw(); - int32_t dupid; - duplication_status::type status; - std::string remote; - int64_t create_ts; - std::map progress; - duplication_fail_mode::type fail_mode; - - _duplication_entry__isset __isset; - - void __set_dupid(const int32_t val); - - void __set_status(const duplication_status::type val); - - void __set_remote(const std::string &val); - - void __set_create_ts(const int64_t val); - - void __set_progress(const std::map &val); - - void __set_fail_mode(const duplication_fail_mode::type val); - - bool operator==(const duplication_entry &rhs) const - { - if (!(dupid == rhs.dupid)) - return false; - if (!(status == rhs.status)) - return false; - if (!(remote == rhs.remote)) - return false; - if (!(create_ts == rhs.create_ts)) - return false; - if (__isset.progress != rhs.__isset.progress) - return false; - else if (__isset.progress && !(progress == rhs.progress)) - return false; - if (__isset.fail_mode != rhs.__isset.fail_mode) - return false; - else if (__isset.fail_mode && !(fail_mode == rhs.fail_mode)) - return false; - return true; - } - bool operator!=(const duplication_entry &rhs) const { return !(*this == rhs); } - - bool operator<(const duplication_entry &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class duplication_entry { + public: + + duplication_entry(const duplication_entry&); + duplication_entry(duplication_entry&&); + duplication_entry& operator=(const duplication_entry&); + duplication_entry& operator=(duplication_entry&&); + duplication_entry() : dupid(0), status((duplication_status::type)0), remote(), create_ts(0), fail_mode((duplication_fail_mode::type)0) { + } + + virtual ~duplication_entry() throw(); + int32_t dupid; + duplication_status::type status; + std::string remote; + int64_t create_ts; + std::map progress; + duplication_fail_mode::type fail_mode; + + _duplication_entry__isset __isset; + + void __set_dupid(const int32_t val); + + void __set_status(const duplication_status::type val); + + void __set_remote(const std::string& val); + + void __set_create_ts(const int64_t val); + + void __set_progress(const std::map & val); + + void __set_fail_mode(const duplication_fail_mode::type val); + + bool operator == (const duplication_entry & rhs) const + { + if (!(dupid == rhs.dupid)) + return false; + if (!(status == rhs.status)) + return false; + if (!(remote == rhs.remote)) + return false; + if (!(create_ts == rhs.create_ts)) + return false; + if (__isset.progress != rhs.__isset.progress) + return false; + else if (__isset.progress && !(progress == rhs.progress)) + return false; + if (__isset.fail_mode != rhs.__isset.fail_mode) + return false; + else if (__isset.fail_mode && !(fail_mode == rhs.fail_mode)) + return false; + return true; + } + bool operator != (const duplication_entry &rhs) const { + return !(*this == rhs); + } + + bool operator < (const duplication_entry & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(duplication_entry &a, duplication_entry &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_entry &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_entry& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_query_request__isset -{ - _duplication_query_request__isset() : app_name(false) {} - bool app_name : 1; +typedef struct _duplication_query_request__isset { + _duplication_query_request__isset() : app_name(false) {} + bool app_name :1; } _duplication_query_request__isset; -class duplication_query_request -{ -public: - duplication_query_request(const duplication_query_request &); - duplication_query_request(duplication_query_request &&); - duplication_query_request &operator=(const duplication_query_request &); - duplication_query_request &operator=(duplication_query_request &&); - duplication_query_request() : app_name() {} +class duplication_query_request { + public: + + duplication_query_request(const duplication_query_request&); + duplication_query_request(duplication_query_request&&); + duplication_query_request& operator=(const duplication_query_request&); + duplication_query_request& operator=(duplication_query_request&&); + duplication_query_request() : app_name() { + } - virtual ~duplication_query_request() throw(); - std::string app_name; + virtual ~duplication_query_request() throw(); + std::string app_name; - _duplication_query_request__isset __isset; + _duplication_query_request__isset __isset; - void __set_app_name(const std::string &val); + void __set_app_name(const std::string& val); - bool operator==(const duplication_query_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - return true; - } - bool operator!=(const duplication_query_request &rhs) const { return !(*this == rhs); } + bool operator == (const duplication_query_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + return true; + } + bool operator != (const duplication_query_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const duplication_query_request &) const; + bool operator < (const duplication_query_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(duplication_query_request &a, duplication_query_request &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_query_request &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_query_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_query_response__isset -{ - _duplication_query_response__isset() : err(false), appid(false), entry_list(false) {} - bool err : 1; - bool appid : 1; - bool entry_list : 1; +typedef struct _duplication_query_response__isset { + _duplication_query_response__isset() : err(false), appid(false), entry_list(false) {} + bool err :1; + bool appid :1; + bool entry_list :1; } _duplication_query_response__isset; -class duplication_query_response -{ -public: - duplication_query_response(const duplication_query_response &); - duplication_query_response(duplication_query_response &&); - duplication_query_response &operator=(const duplication_query_response &); - duplication_query_response &operator=(duplication_query_response &&); - duplication_query_response() : appid(0) {} +class duplication_query_response { + public: + + duplication_query_response(const duplication_query_response&); + duplication_query_response(duplication_query_response&&); + duplication_query_response& operator=(const duplication_query_response&); + duplication_query_response& operator=(duplication_query_response&&); + duplication_query_response() : appid(0) { + } - virtual ~duplication_query_response() throw(); - ::dsn::error_code err; - int32_t appid; - std::vector entry_list; + virtual ~duplication_query_response() throw(); + ::dsn::error_code err; + int32_t appid; + std::vector entry_list; - _duplication_query_response__isset __isset; + _duplication_query_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_appid(const int32_t val); + void __set_appid(const int32_t val); - void __set_entry_list(const std::vector &val); + void __set_entry_list(const std::vector & val); - bool operator==(const duplication_query_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(appid == rhs.appid)) - return false; - if (!(entry_list == rhs.entry_list)) - return false; - return true; - } - bool operator!=(const duplication_query_response &rhs) const { return !(*this == rhs); } + bool operator == (const duplication_query_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(appid == rhs.appid)) + return false; + if (!(entry_list == rhs.entry_list)) + return false; + return true; + } + bool operator != (const duplication_query_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const duplication_query_response &) const; + bool operator < (const duplication_query_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(duplication_query_response &a, duplication_query_response &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_query_response &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_query_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_confirm_entry__isset -{ - _duplication_confirm_entry__isset() : dupid(false), confirmed_decree(false) {} - bool dupid : 1; - bool confirmed_decree : 1; +typedef struct _duplication_confirm_entry__isset { + _duplication_confirm_entry__isset() : dupid(false), confirmed_decree(false) {} + bool dupid :1; + bool confirmed_decree :1; } _duplication_confirm_entry__isset; -class duplication_confirm_entry -{ -public: - duplication_confirm_entry(const duplication_confirm_entry &); - duplication_confirm_entry(duplication_confirm_entry &&); - duplication_confirm_entry &operator=(const duplication_confirm_entry &); - duplication_confirm_entry &operator=(duplication_confirm_entry &&); - duplication_confirm_entry() : dupid(0), confirmed_decree(0) {} +class duplication_confirm_entry { + public: + + duplication_confirm_entry(const duplication_confirm_entry&); + duplication_confirm_entry(duplication_confirm_entry&&); + duplication_confirm_entry& operator=(const duplication_confirm_entry&); + duplication_confirm_entry& operator=(duplication_confirm_entry&&); + duplication_confirm_entry() : dupid(0), confirmed_decree(0) { + } - virtual ~duplication_confirm_entry() throw(); - int32_t dupid; - int64_t confirmed_decree; + virtual ~duplication_confirm_entry() throw(); + int32_t dupid; + int64_t confirmed_decree; - _duplication_confirm_entry__isset __isset; + _duplication_confirm_entry__isset __isset; - void __set_dupid(const int32_t val); + void __set_dupid(const int32_t val); - void __set_confirmed_decree(const int64_t val); + void __set_confirmed_decree(const int64_t val); - bool operator==(const duplication_confirm_entry &rhs) const - { - if (!(dupid == rhs.dupid)) - return false; - if (!(confirmed_decree == rhs.confirmed_decree)) - return false; - return true; - } - bool operator!=(const duplication_confirm_entry &rhs) const { return !(*this == rhs); } + bool operator == (const duplication_confirm_entry & rhs) const + { + if (!(dupid == rhs.dupid)) + return false; + if (!(confirmed_decree == rhs.confirmed_decree)) + return false; + return true; + } + bool operator != (const duplication_confirm_entry &rhs) const { + return !(*this == rhs); + } - bool operator<(const duplication_confirm_entry &) const; + bool operator < (const duplication_confirm_entry & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(duplication_confirm_entry &a, duplication_confirm_entry &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_confirm_entry &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_confirm_entry& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_sync_request__isset -{ - _duplication_sync_request__isset() : node(false), confirm_list(false) {} - bool node : 1; - bool confirm_list : 1; +typedef struct _duplication_sync_request__isset { + _duplication_sync_request__isset() : node(false), confirm_list(false) {} + bool node :1; + bool confirm_list :1; } _duplication_sync_request__isset; -class duplication_sync_request -{ -public: - duplication_sync_request(const duplication_sync_request &); - duplication_sync_request(duplication_sync_request &&); - duplication_sync_request &operator=(const duplication_sync_request &); - duplication_sync_request &operator=(duplication_sync_request &&); - duplication_sync_request() {} +class duplication_sync_request { + public: - virtual ~duplication_sync_request() throw(); - ::dsn::rpc_address node; - std::map<::dsn::gpid, std::vector> confirm_list; + duplication_sync_request(const duplication_sync_request&); + duplication_sync_request(duplication_sync_request&&); + duplication_sync_request& operator=(const duplication_sync_request&); + duplication_sync_request& operator=(duplication_sync_request&&); + duplication_sync_request() { + } - _duplication_sync_request__isset __isset; + virtual ~duplication_sync_request() throw(); + ::dsn::rpc_address node; + std::map< ::dsn::gpid, std::vector > confirm_list; - void __set_node(const ::dsn::rpc_address &val); + _duplication_sync_request__isset __isset; - void - __set_confirm_list(const std::map<::dsn::gpid, std::vector> &val); + void __set_node(const ::dsn::rpc_address& val); - bool operator==(const duplication_sync_request &rhs) const - { - if (!(node == rhs.node)) - return false; - if (!(confirm_list == rhs.confirm_list)) - return false; - return true; - } - bool operator!=(const duplication_sync_request &rhs) const { return !(*this == rhs); } + void __set_confirm_list(const std::map< ::dsn::gpid, std::vector > & val); - bool operator<(const duplication_sync_request &) const; + bool operator == (const duplication_sync_request & rhs) const + { + if (!(node == rhs.node)) + return false; + if (!(confirm_list == rhs.confirm_list)) + return false; + return true; + } + bool operator != (const duplication_sync_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const duplication_sync_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(duplication_sync_request &a, duplication_sync_request &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_sync_request &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_sync_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_sync_response__isset -{ - _duplication_sync_response__isset() : err(false), dup_map(false) {} - bool err : 1; - bool dup_map : 1; +typedef struct _duplication_sync_response__isset { + _duplication_sync_response__isset() : err(false), dup_map(false) {} + bool err :1; + bool dup_map :1; } _duplication_sync_response__isset; -class duplication_sync_response -{ -public: - duplication_sync_response(const duplication_sync_response &); - duplication_sync_response(duplication_sync_response &&); - duplication_sync_response &operator=(const duplication_sync_response &); - duplication_sync_response &operator=(duplication_sync_response &&); - duplication_sync_response() {} +class duplication_sync_response { + public: - virtual ~duplication_sync_response() throw(); - ::dsn::error_code err; - std::map> dup_map; + duplication_sync_response(const duplication_sync_response&); + duplication_sync_response(duplication_sync_response&&); + duplication_sync_response& operator=(const duplication_sync_response&); + duplication_sync_response& operator=(duplication_sync_response&&); + duplication_sync_response() { + } - _duplication_sync_response__isset __isset; + virtual ~duplication_sync_response() throw(); + ::dsn::error_code err; + std::map > dup_map; - void __set_err(const ::dsn::error_code &val); + _duplication_sync_response__isset __isset; - void __set_dup_map(const std::map> &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const duplication_sync_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(dup_map == rhs.dup_map)) - return false; - return true; - } - bool operator!=(const duplication_sync_response &rhs) const { return !(*this == rhs); } + void __set_dup_map(const std::map > & val); - bool operator<(const duplication_sync_response &) const; + bool operator == (const duplication_sync_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(dup_map == rhs.dup_map)) + return false; + return true; + } + bool operator != (const duplication_sync_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const duplication_sync_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(duplication_sync_response &a, duplication_sync_response &b); -inline std::ostream &operator<<(std::ostream &out, const duplication_sync_response &obj) +inline std::ostream& operator<<(std::ostream& out, const duplication_sync_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ddd_diagnose_request__isset -{ - _ddd_diagnose_request__isset() : pid(false) {} - bool pid : 1; +typedef struct _ddd_diagnose_request__isset { + _ddd_diagnose_request__isset() : pid(false) {} + bool pid :1; } _ddd_diagnose_request__isset; -class ddd_diagnose_request -{ -public: - ddd_diagnose_request(const ddd_diagnose_request &); - ddd_diagnose_request(ddd_diagnose_request &&); - ddd_diagnose_request &operator=(const ddd_diagnose_request &); - ddd_diagnose_request &operator=(ddd_diagnose_request &&); - ddd_diagnose_request() {} +class ddd_diagnose_request { + public: - virtual ~ddd_diagnose_request() throw(); - ::dsn::gpid pid; + ddd_diagnose_request(const ddd_diagnose_request&); + ddd_diagnose_request(ddd_diagnose_request&&); + ddd_diagnose_request& operator=(const ddd_diagnose_request&); + ddd_diagnose_request& operator=(ddd_diagnose_request&&); + ddd_diagnose_request() { + } - _ddd_diagnose_request__isset __isset; + virtual ~ddd_diagnose_request() throw(); + ::dsn::gpid pid; - void __set_pid(const ::dsn::gpid &val); + _ddd_diagnose_request__isset __isset; - bool operator==(const ddd_diagnose_request &rhs) const - { - if (!(pid == rhs.pid)) - return false; - return true; - } - bool operator!=(const ddd_diagnose_request &rhs) const { return !(*this == rhs); } + void __set_pid(const ::dsn::gpid& val); - bool operator<(const ddd_diagnose_request &) const; + bool operator == (const ddd_diagnose_request & rhs) const + { + if (!(pid == rhs.pid)) + return false; + return true; + } + bool operator != (const ddd_diagnose_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const ddd_diagnose_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(ddd_diagnose_request &a, ddd_diagnose_request &b); -inline std::ostream &operator<<(std::ostream &out, const ddd_diagnose_request &obj) +inline std::ostream& operator<<(std::ostream& out, const ddd_diagnose_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ddd_node_info__isset -{ - _ddd_node_info__isset() - : node(false), - drop_time_ms(false), - is_alive(false), - is_collected(false), - ballot(false), - last_committed_decree(false), - last_prepared_decree(false) - { - } - bool node : 1; - bool drop_time_ms : 1; - bool is_alive : 1; - bool is_collected : 1; - bool ballot : 1; - bool last_committed_decree : 1; - bool last_prepared_decree : 1; +typedef struct _ddd_node_info__isset { + _ddd_node_info__isset() : node(false), drop_time_ms(false), is_alive(false), is_collected(false), ballot(false), last_committed_decree(false), last_prepared_decree(false) {} + bool node :1; + bool drop_time_ms :1; + bool is_alive :1; + bool is_collected :1; + bool ballot :1; + bool last_committed_decree :1; + bool last_prepared_decree :1; } _ddd_node_info__isset; -class ddd_node_info -{ -public: - ddd_node_info(const ddd_node_info &); - ddd_node_info(ddd_node_info &&); - ddd_node_info &operator=(const ddd_node_info &); - ddd_node_info &operator=(ddd_node_info &&); - ddd_node_info() - : drop_time_ms(0), - is_alive(0), - is_collected(0), - ballot(0), - last_committed_decree(0), - last_prepared_decree(0) - { - } - - virtual ~ddd_node_info() throw(); - ::dsn::rpc_address node; - int64_t drop_time_ms; - bool is_alive; - bool is_collected; - int64_t ballot; - int64_t last_committed_decree; - int64_t last_prepared_decree; - - _ddd_node_info__isset __isset; - - void __set_node(const ::dsn::rpc_address &val); - - void __set_drop_time_ms(const int64_t val); - - void __set_is_alive(const bool val); - - void __set_is_collected(const bool val); - - void __set_ballot(const int64_t val); - - void __set_last_committed_decree(const int64_t val); - - void __set_last_prepared_decree(const int64_t val); - - bool operator==(const ddd_node_info &rhs) const - { - if (!(node == rhs.node)) - return false; - if (!(drop_time_ms == rhs.drop_time_ms)) - return false; - if (!(is_alive == rhs.is_alive)) - return false; - if (!(is_collected == rhs.is_collected)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(last_prepared_decree == rhs.last_prepared_decree)) - return false; - return true; - } - bool operator!=(const ddd_node_info &rhs) const { return !(*this == rhs); } - - bool operator<(const ddd_node_info &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class ddd_node_info { + public: + + ddd_node_info(const ddd_node_info&); + ddd_node_info(ddd_node_info&&); + ddd_node_info& operator=(const ddd_node_info&); + ddd_node_info& operator=(ddd_node_info&&); + ddd_node_info() : drop_time_ms(0), is_alive(0), is_collected(0), ballot(0), last_committed_decree(0), last_prepared_decree(0) { + } + + virtual ~ddd_node_info() throw(); + ::dsn::rpc_address node; + int64_t drop_time_ms; + bool is_alive; + bool is_collected; + int64_t ballot; + int64_t last_committed_decree; + int64_t last_prepared_decree; + + _ddd_node_info__isset __isset; + + void __set_node(const ::dsn::rpc_address& val); + + void __set_drop_time_ms(const int64_t val); + + void __set_is_alive(const bool val); + + void __set_is_collected(const bool val); + + void __set_ballot(const int64_t val); + + void __set_last_committed_decree(const int64_t val); + + void __set_last_prepared_decree(const int64_t val); + + bool operator == (const ddd_node_info & rhs) const + { + if (!(node == rhs.node)) + return false; + if (!(drop_time_ms == rhs.drop_time_ms)) + return false; + if (!(is_alive == rhs.is_alive)) + return false; + if (!(is_collected == rhs.is_collected)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(last_prepared_decree == rhs.last_prepared_decree)) + return false; + return true; + } + bool operator != (const ddd_node_info &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ddd_node_info & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(ddd_node_info &a, ddd_node_info &b); -inline std::ostream &operator<<(std::ostream &out, const ddd_node_info &obj) +inline std::ostream& operator<<(std::ostream& out, const ddd_node_info& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ddd_partition_info__isset -{ - _ddd_partition_info__isset() : config(false), dropped(false), reason(false) {} - bool config : 1; - bool dropped : 1; - bool reason : 1; +typedef struct _ddd_partition_info__isset { + _ddd_partition_info__isset() : config(false), dropped(false), reason(false) {} + bool config :1; + bool dropped :1; + bool reason :1; } _ddd_partition_info__isset; -class ddd_partition_info -{ -public: - ddd_partition_info(const ddd_partition_info &); - ddd_partition_info(ddd_partition_info &&); - ddd_partition_info &operator=(const ddd_partition_info &); - ddd_partition_info &operator=(ddd_partition_info &&); - ddd_partition_info() : reason() {} +class ddd_partition_info { + public: - virtual ~ddd_partition_info() throw(); - ::dsn::partition_configuration config; - std::vector dropped; - std::string reason; + ddd_partition_info(const ddd_partition_info&); + ddd_partition_info(ddd_partition_info&&); + ddd_partition_info& operator=(const ddd_partition_info&); + ddd_partition_info& operator=(ddd_partition_info&&); + ddd_partition_info() : reason() { + } - _ddd_partition_info__isset __isset; + virtual ~ddd_partition_info() throw(); + ::dsn::partition_configuration config; + std::vector dropped; + std::string reason; - void __set_config(const ::dsn::partition_configuration &val); + _ddd_partition_info__isset __isset; - void __set_dropped(const std::vector &val); + void __set_config(const ::dsn::partition_configuration& val); - void __set_reason(const std::string &val); + void __set_dropped(const std::vector & val); - bool operator==(const ddd_partition_info &rhs) const - { - if (!(config == rhs.config)) - return false; - if (!(dropped == rhs.dropped)) - return false; - if (!(reason == rhs.reason)) - return false; - return true; - } - bool operator!=(const ddd_partition_info &rhs) const { return !(*this == rhs); } + void __set_reason(const std::string& val); - bool operator<(const ddd_partition_info &) const; + bool operator == (const ddd_partition_info & rhs) const + { + if (!(config == rhs.config)) + return false; + if (!(dropped == rhs.dropped)) + return false; + if (!(reason == rhs.reason)) + return false; + return true; + } + bool operator != (const ddd_partition_info &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const ddd_partition_info & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(ddd_partition_info &a, ddd_partition_info &b); -inline std::ostream &operator<<(std::ostream &out, const ddd_partition_info &obj) +inline std::ostream& operator<<(std::ostream& out, const ddd_partition_info& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ddd_diagnose_response__isset -{ - _ddd_diagnose_response__isset() : err(false), partitions(false) {} - bool err : 1; - bool partitions : 1; +typedef struct _ddd_diagnose_response__isset { + _ddd_diagnose_response__isset() : err(false), partitions(false) {} + bool err :1; + bool partitions :1; } _ddd_diagnose_response__isset; -class ddd_diagnose_response -{ -public: - ddd_diagnose_response(const ddd_diagnose_response &); - ddd_diagnose_response(ddd_diagnose_response &&); - ddd_diagnose_response &operator=(const ddd_diagnose_response &); - ddd_diagnose_response &operator=(ddd_diagnose_response &&); - ddd_diagnose_response() {} +class ddd_diagnose_response { + public: - virtual ~ddd_diagnose_response() throw(); - ::dsn::error_code err; - std::vector partitions; + ddd_diagnose_response(const ddd_diagnose_response&); + ddd_diagnose_response(ddd_diagnose_response&&); + ddd_diagnose_response& operator=(const ddd_diagnose_response&); + ddd_diagnose_response& operator=(ddd_diagnose_response&&); + ddd_diagnose_response() { + } - _ddd_diagnose_response__isset __isset; + virtual ~ddd_diagnose_response() throw(); + ::dsn::error_code err; + std::vector partitions; - void __set_err(const ::dsn::error_code &val); + _ddd_diagnose_response__isset __isset; - void __set_partitions(const std::vector &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const ddd_diagnose_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(partitions == rhs.partitions)) - return false; - return true; - } - bool operator!=(const ddd_diagnose_response &rhs) const { return !(*this == rhs); } + void __set_partitions(const std::vector & val); - bool operator<(const ddd_diagnose_response &) const; + bool operator == (const ddd_diagnose_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(partitions == rhs.partitions)) + return false; + return true; + } + bool operator != (const ddd_diagnose_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const ddd_diagnose_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(ddd_diagnose_response &a, ddd_diagnose_response &b); -inline std::ostream &operator<<(std::ostream &out, const ddd_diagnose_response &obj) +inline std::ostream& operator<<(std::ostream& out, const ddd_diagnose_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _start_partition_split_request__isset -{ - _start_partition_split_request__isset() : app_name(false), new_partition_count(false) {} - bool app_name : 1; - bool new_partition_count : 1; +typedef struct _start_partition_split_request__isset { + _start_partition_split_request__isset() : app_name(false), new_partition_count(false) {} + bool app_name :1; + bool new_partition_count :1; } _start_partition_split_request__isset; -class start_partition_split_request -{ -public: - start_partition_split_request(const start_partition_split_request &); - start_partition_split_request(start_partition_split_request &&); - start_partition_split_request &operator=(const start_partition_split_request &); - start_partition_split_request &operator=(start_partition_split_request &&); - start_partition_split_request() : app_name(), new_partition_count(0) {} +class start_partition_split_request { + public: - virtual ~start_partition_split_request() throw(); - std::string app_name; - int32_t new_partition_count; + start_partition_split_request(const start_partition_split_request&); + start_partition_split_request(start_partition_split_request&&); + start_partition_split_request& operator=(const start_partition_split_request&); + start_partition_split_request& operator=(start_partition_split_request&&); + start_partition_split_request() : app_name(), new_partition_count(0) { + } - _start_partition_split_request__isset __isset; + virtual ~start_partition_split_request() throw(); + std::string app_name; + int32_t new_partition_count; - void __set_app_name(const std::string &val); + _start_partition_split_request__isset __isset; - void __set_new_partition_count(const int32_t val); + void __set_app_name(const std::string& val); - bool operator==(const start_partition_split_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(new_partition_count == rhs.new_partition_count)) - return false; - return true; - } - bool operator!=(const start_partition_split_request &rhs) const { return !(*this == rhs); } + void __set_new_partition_count(const int32_t val); - bool operator<(const start_partition_split_request &) const; + bool operator == (const start_partition_split_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(new_partition_count == rhs.new_partition_count)) + return false; + return true; + } + bool operator != (const start_partition_split_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const start_partition_split_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(start_partition_split_request &a, start_partition_split_request &b); -inline std::ostream &operator<<(std::ostream &out, const start_partition_split_request &obj) +inline std::ostream& operator<<(std::ostream& out, const start_partition_split_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _start_partition_split_response__isset -{ - _start_partition_split_response__isset() : err(false), hint_msg(false) {} - bool err : 1; - bool hint_msg : 1; +typedef struct _start_partition_split_response__isset { + _start_partition_split_response__isset() : err(false), hint_msg(false) {} + bool err :1; + bool hint_msg :1; } _start_partition_split_response__isset; -class start_partition_split_response -{ -public: - start_partition_split_response(const start_partition_split_response &); - start_partition_split_response(start_partition_split_response &&); - start_partition_split_response &operator=(const start_partition_split_response &); - start_partition_split_response &operator=(start_partition_split_response &&); - start_partition_split_response() : hint_msg() {} +class start_partition_split_response { + public: + + start_partition_split_response(const start_partition_split_response&); + start_partition_split_response(start_partition_split_response&&); + start_partition_split_response& operator=(const start_partition_split_response&); + start_partition_split_response& operator=(start_partition_split_response&&); + start_partition_split_response() : hint_msg() { + } - virtual ~start_partition_split_response() throw(); - ::dsn::error_code err; - std::string hint_msg; + virtual ~start_partition_split_response() throw(); + ::dsn::error_code err; + std::string hint_msg; - _start_partition_split_response__isset __isset; + _start_partition_split_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_hint_msg(const std::string &val); + void __set_hint_msg(const std::string& val); - bool operator==(const start_partition_split_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator!=(const start_partition_split_response &rhs) const { return !(*this == rhs); } + bool operator == (const start_partition_split_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator != (const start_partition_split_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const start_partition_split_response &) const; + bool operator < (const start_partition_split_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(start_partition_split_response &a, start_partition_split_response &b); -inline std::ostream &operator<<(std::ostream &out, const start_partition_split_response &obj) +inline std::ostream& operator<<(std::ostream& out, const start_partition_split_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _notify_catch_up_request__isset -{ - _notify_catch_up_request__isset() - : parent_gpid(false), child_gpid(false), child_ballot(false), child_address(false) - { - } - bool parent_gpid : 1; - bool child_gpid : 1; - bool child_ballot : 1; - bool child_address : 1; +typedef struct _notify_catch_up_request__isset { + _notify_catch_up_request__isset() : parent_gpid(false), child_gpid(false), child_ballot(false), child_address(false) {} + bool parent_gpid :1; + bool child_gpid :1; + bool child_ballot :1; + bool child_address :1; } _notify_catch_up_request__isset; -class notify_catch_up_request -{ -public: - notify_catch_up_request(const notify_catch_up_request &); - notify_catch_up_request(notify_catch_up_request &&); - notify_catch_up_request &operator=(const notify_catch_up_request &); - notify_catch_up_request &operator=(notify_catch_up_request &&); - notify_catch_up_request() : child_ballot(0) {} +class notify_catch_up_request { + public: + + notify_catch_up_request(const notify_catch_up_request&); + notify_catch_up_request(notify_catch_up_request&&); + notify_catch_up_request& operator=(const notify_catch_up_request&); + notify_catch_up_request& operator=(notify_catch_up_request&&); + notify_catch_up_request() : child_ballot(0) { + } - virtual ~notify_catch_up_request() throw(); - ::dsn::gpid parent_gpid; - ::dsn::gpid child_gpid; - int64_t child_ballot; - ::dsn::rpc_address child_address; + virtual ~notify_catch_up_request() throw(); + ::dsn::gpid parent_gpid; + ::dsn::gpid child_gpid; + int64_t child_ballot; + ::dsn::rpc_address child_address; - _notify_catch_up_request__isset __isset; + _notify_catch_up_request__isset __isset; - void __set_parent_gpid(const ::dsn::gpid &val); + void __set_parent_gpid(const ::dsn::gpid& val); - void __set_child_gpid(const ::dsn::gpid &val); + void __set_child_gpid(const ::dsn::gpid& val); - void __set_child_ballot(const int64_t val); + void __set_child_ballot(const int64_t val); - void __set_child_address(const ::dsn::rpc_address &val); + void __set_child_address(const ::dsn::rpc_address& val); - bool operator==(const notify_catch_up_request &rhs) const - { - if (!(parent_gpid == rhs.parent_gpid)) - return false; - if (!(child_gpid == rhs.child_gpid)) - return false; - if (!(child_ballot == rhs.child_ballot)) - return false; - if (!(child_address == rhs.child_address)) - return false; - return true; - } - bool operator!=(const notify_catch_up_request &rhs) const { return !(*this == rhs); } + bool operator == (const notify_catch_up_request & rhs) const + { + if (!(parent_gpid == rhs.parent_gpid)) + return false; + if (!(child_gpid == rhs.child_gpid)) + return false; + if (!(child_ballot == rhs.child_ballot)) + return false; + if (!(child_address == rhs.child_address)) + return false; + return true; + } + bool operator != (const notify_catch_up_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const notify_catch_up_request &) const; + bool operator < (const notify_catch_up_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(notify_catch_up_request &a, notify_catch_up_request &b); -inline std::ostream &operator<<(std::ostream &out, const notify_catch_up_request &obj) +inline std::ostream& operator<<(std::ostream& out, const notify_catch_up_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _notify_cacth_up_response__isset -{ - _notify_cacth_up_response__isset() : err(false) {} - bool err : 1; +typedef struct _notify_cacth_up_response__isset { + _notify_cacth_up_response__isset() : err(false) {} + bool err :1; } _notify_cacth_up_response__isset; -class notify_cacth_up_response -{ -public: - notify_cacth_up_response(const notify_cacth_up_response &); - notify_cacth_up_response(notify_cacth_up_response &&); - notify_cacth_up_response &operator=(const notify_cacth_up_response &); - notify_cacth_up_response &operator=(notify_cacth_up_response &&); - notify_cacth_up_response() {} +class notify_cacth_up_response { + public: + + notify_cacth_up_response(const notify_cacth_up_response&); + notify_cacth_up_response(notify_cacth_up_response&&); + notify_cacth_up_response& operator=(const notify_cacth_up_response&); + notify_cacth_up_response& operator=(notify_cacth_up_response&&); + notify_cacth_up_response() { + } - virtual ~notify_cacth_up_response() throw(); - ::dsn::error_code err; + virtual ~notify_cacth_up_response() throw(); + ::dsn::error_code err; - _notify_cacth_up_response__isset __isset; + _notify_cacth_up_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const notify_cacth_up_response &rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator!=(const notify_cacth_up_response &rhs) const { return !(*this == rhs); } + bool operator == (const notify_cacth_up_response & rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator != (const notify_cacth_up_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const notify_cacth_up_response &) const; + bool operator < (const notify_cacth_up_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(notify_cacth_up_response &a, notify_cacth_up_response &b); -inline std::ostream &operator<<(std::ostream &out, const notify_cacth_up_response &obj) +inline std::ostream& operator<<(std::ostream& out, const notify_cacth_up_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _update_child_group_partition_count_request__isset -{ - _update_child_group_partition_count_request__isset() - : target_address(false), new_partition_count(false), child_pid(false), ballot(false) - { - } - bool target_address : 1; - bool new_partition_count : 1; - bool child_pid : 1; - bool ballot : 1; +typedef struct _update_child_group_partition_count_request__isset { + _update_child_group_partition_count_request__isset() : target_address(false), new_partition_count(false), child_pid(false), ballot(false) {} + bool target_address :1; + bool new_partition_count :1; + bool child_pid :1; + bool ballot :1; } _update_child_group_partition_count_request__isset; -class update_child_group_partition_count_request -{ -public: - update_child_group_partition_count_request(const update_child_group_partition_count_request &); - update_child_group_partition_count_request(update_child_group_partition_count_request &&); - update_child_group_partition_count_request & - operator=(const update_child_group_partition_count_request &); - update_child_group_partition_count_request & - operator=(update_child_group_partition_count_request &&); - update_child_group_partition_count_request() : new_partition_count(0), ballot(0) {} +class update_child_group_partition_count_request { + public: + + update_child_group_partition_count_request(const update_child_group_partition_count_request&); + update_child_group_partition_count_request(update_child_group_partition_count_request&&); + update_child_group_partition_count_request& operator=(const update_child_group_partition_count_request&); + update_child_group_partition_count_request& operator=(update_child_group_partition_count_request&&); + update_child_group_partition_count_request() : new_partition_count(0), ballot(0) { + } - virtual ~update_child_group_partition_count_request() throw(); - ::dsn::rpc_address target_address; - int32_t new_partition_count; - ::dsn::gpid child_pid; - int64_t ballot; + virtual ~update_child_group_partition_count_request() throw(); + ::dsn::rpc_address target_address; + int32_t new_partition_count; + ::dsn::gpid child_pid; + int64_t ballot; - _update_child_group_partition_count_request__isset __isset; + _update_child_group_partition_count_request__isset __isset; - void __set_target_address(const ::dsn::rpc_address &val); + void __set_target_address(const ::dsn::rpc_address& val); - void __set_new_partition_count(const int32_t val); + void __set_new_partition_count(const int32_t val); - void __set_child_pid(const ::dsn::gpid &val); + void __set_child_pid(const ::dsn::gpid& val); - void __set_ballot(const int64_t val); + void __set_ballot(const int64_t val); - bool operator==(const update_child_group_partition_count_request &rhs) const - { - if (!(target_address == rhs.target_address)) - return false; - if (!(new_partition_count == rhs.new_partition_count)) - return false; - if (!(child_pid == rhs.child_pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - return true; - } - bool operator!=(const update_child_group_partition_count_request &rhs) const - { - return !(*this == rhs); - } + bool operator == (const update_child_group_partition_count_request & rhs) const + { + if (!(target_address == rhs.target_address)) + return false; + if (!(new_partition_count == rhs.new_partition_count)) + return false; + if (!(child_pid == rhs.child_pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + return true; + } + bool operator != (const update_child_group_partition_count_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const update_child_group_partition_count_request &) const; + bool operator < (const update_child_group_partition_count_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; -void swap(update_child_group_partition_count_request &a, - update_child_group_partition_count_request &b); +void swap(update_child_group_partition_count_request &a, update_child_group_partition_count_request &b); -inline std::ostream &operator<<(std::ostream &out, - const update_child_group_partition_count_request &obj) +inline std::ostream& operator<<(std::ostream& out, const update_child_group_partition_count_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _update_child_group_partition_count_response__isset -{ - _update_child_group_partition_count_response__isset() : err(false) {} - bool err : 1; +typedef struct _update_child_group_partition_count_response__isset { + _update_child_group_partition_count_response__isset() : err(false) {} + bool err :1; } _update_child_group_partition_count_response__isset; -class update_child_group_partition_count_response -{ -public: - update_child_group_partition_count_response( - const update_child_group_partition_count_response &); - update_child_group_partition_count_response(update_child_group_partition_count_response &&); - update_child_group_partition_count_response & - operator=(const update_child_group_partition_count_response &); - update_child_group_partition_count_response & - operator=(update_child_group_partition_count_response &&); - update_child_group_partition_count_response() {} +class update_child_group_partition_count_response { + public: + + update_child_group_partition_count_response(const update_child_group_partition_count_response&); + update_child_group_partition_count_response(update_child_group_partition_count_response&&); + update_child_group_partition_count_response& operator=(const update_child_group_partition_count_response&); + update_child_group_partition_count_response& operator=(update_child_group_partition_count_response&&); + update_child_group_partition_count_response() { + } - virtual ~update_child_group_partition_count_response() throw(); - ::dsn::error_code err; + virtual ~update_child_group_partition_count_response() throw(); + ::dsn::error_code err; - _update_child_group_partition_count_response__isset __isset; + _update_child_group_partition_count_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const update_child_group_partition_count_response &rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator!=(const update_child_group_partition_count_response &rhs) const - { - return !(*this == rhs); - } + bool operator == (const update_child_group_partition_count_response & rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator != (const update_child_group_partition_count_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const update_child_group_partition_count_response &) const; + bool operator < (const update_child_group_partition_count_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; -void swap(update_child_group_partition_count_response &a, - update_child_group_partition_count_response &b); +void swap(update_child_group_partition_count_response &a, update_child_group_partition_count_response &b); -inline std::ostream &operator<<(std::ostream &out, - const update_child_group_partition_count_response &obj) +inline std::ostream& operator<<(std::ostream& out, const update_child_group_partition_count_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _register_child_request__isset -{ - _register_child_request__isset() - : app(false), parent_config(false), child_config(false), primary_address(false) - { - } - bool app : 1; - bool parent_config : 1; - bool child_config : 1; - bool primary_address : 1; +typedef struct _register_child_request__isset { + _register_child_request__isset() : app(false), parent_config(false), child_config(false), primary_address(false) {} + bool app :1; + bool parent_config :1; + bool child_config :1; + bool primary_address :1; } _register_child_request__isset; -class register_child_request -{ -public: - register_child_request(const register_child_request &); - register_child_request(register_child_request &&); - register_child_request &operator=(const register_child_request &); - register_child_request &operator=(register_child_request &&); - register_child_request() {} +class register_child_request { + public: + + register_child_request(const register_child_request&); + register_child_request(register_child_request&&); + register_child_request& operator=(const register_child_request&); + register_child_request& operator=(register_child_request&&); + register_child_request() { + } - virtual ~register_child_request() throw(); - ::dsn::app_info app; - ::dsn::partition_configuration parent_config; - ::dsn::partition_configuration child_config; - ::dsn::rpc_address primary_address; + virtual ~register_child_request() throw(); + ::dsn::app_info app; + ::dsn::partition_configuration parent_config; + ::dsn::partition_configuration child_config; + ::dsn::rpc_address primary_address; - _register_child_request__isset __isset; + _register_child_request__isset __isset; - void __set_app(const ::dsn::app_info &val); + void __set_app(const ::dsn::app_info& val); - void __set_parent_config(const ::dsn::partition_configuration &val); + void __set_parent_config(const ::dsn::partition_configuration& val); - void __set_child_config(const ::dsn::partition_configuration &val); + void __set_child_config(const ::dsn::partition_configuration& val); - void __set_primary_address(const ::dsn::rpc_address &val); + void __set_primary_address(const ::dsn::rpc_address& val); - bool operator==(const register_child_request &rhs) const - { - if (!(app == rhs.app)) - return false; - if (!(parent_config == rhs.parent_config)) - return false; - if (!(child_config == rhs.child_config)) - return false; - if (!(primary_address == rhs.primary_address)) - return false; - return true; - } - bool operator!=(const register_child_request &rhs) const { return !(*this == rhs); } + bool operator == (const register_child_request & rhs) const + { + if (!(app == rhs.app)) + return false; + if (!(parent_config == rhs.parent_config)) + return false; + if (!(child_config == rhs.child_config)) + return false; + if (!(primary_address == rhs.primary_address)) + return false; + return true; + } + bool operator != (const register_child_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const register_child_request &) const; + bool operator < (const register_child_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(register_child_request &a, register_child_request &b); -inline std::ostream &operator<<(std::ostream &out, const register_child_request &obj) +inline std::ostream& operator<<(std::ostream& out, const register_child_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _register_child_response__isset -{ - _register_child_response__isset() - : err(false), app(false), parent_config(false), child_config(false) - { - } - bool err : 1; - bool app : 1; - bool parent_config : 1; - bool child_config : 1; +typedef struct _register_child_response__isset { + _register_child_response__isset() : err(false), app(false), parent_config(false), child_config(false) {} + bool err :1; + bool app :1; + bool parent_config :1; + bool child_config :1; } _register_child_response__isset; -class register_child_response -{ -public: - register_child_response(const register_child_response &); - register_child_response(register_child_response &&); - register_child_response &operator=(const register_child_response &); - register_child_response &operator=(register_child_response &&); - register_child_response() {} +class register_child_response { + public: + + register_child_response(const register_child_response&); + register_child_response(register_child_response&&); + register_child_response& operator=(const register_child_response&); + register_child_response& operator=(register_child_response&&); + register_child_response() { + } - virtual ~register_child_response() throw(); - ::dsn::error_code err; - ::dsn::app_info app; - ::dsn::partition_configuration parent_config; - ::dsn::partition_configuration child_config; + virtual ~register_child_response() throw(); + ::dsn::error_code err; + ::dsn::app_info app; + ::dsn::partition_configuration parent_config; + ::dsn::partition_configuration child_config; - _register_child_response__isset __isset; + _register_child_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_app(const ::dsn::app_info &val); + void __set_app(const ::dsn::app_info& val); - void __set_parent_config(const ::dsn::partition_configuration &val); + void __set_parent_config(const ::dsn::partition_configuration& val); - void __set_child_config(const ::dsn::partition_configuration &val); + void __set_child_config(const ::dsn::partition_configuration& val); - bool operator==(const register_child_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(app == rhs.app)) - return false; - if (!(parent_config == rhs.parent_config)) - return false; - if (!(child_config == rhs.child_config)) - return false; - return true; - } - bool operator!=(const register_child_response &rhs) const { return !(*this == rhs); } + bool operator == (const register_child_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(app == rhs.app)) + return false; + if (!(parent_config == rhs.parent_config)) + return false; + if (!(child_config == rhs.child_config)) + return false; + return true; + } + bool operator != (const register_child_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const register_child_response &) const; + bool operator < (const register_child_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(register_child_response &a, register_child_response &b); -inline std::ostream &operator<<(std::ostream &out, const register_child_response &obj) +inline std::ostream& operator<<(std::ostream& out, const register_child_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _bulk_load_metadata__isset -{ - _bulk_load_metadata__isset() : files(false), file_total_size(false) {} - bool files : 1; - bool file_total_size : 1; +typedef struct _bulk_load_metadata__isset { + _bulk_load_metadata__isset() : files(false), file_total_size(false) {} + bool files :1; + bool file_total_size :1; } _bulk_load_metadata__isset; -class bulk_load_metadata -{ -public: - bulk_load_metadata(const bulk_load_metadata &); - bulk_load_metadata(bulk_load_metadata &&); - bulk_load_metadata &operator=(const bulk_load_metadata &); - bulk_load_metadata &operator=(bulk_load_metadata &&); - bulk_load_metadata() : file_total_size(0) {} +class bulk_load_metadata { + public: - virtual ~bulk_load_metadata() throw(); - std::vector files; - int64_t file_total_size; + bulk_load_metadata(const bulk_load_metadata&); + bulk_load_metadata(bulk_load_metadata&&); + bulk_load_metadata& operator=(const bulk_load_metadata&); + bulk_load_metadata& operator=(bulk_load_metadata&&); + bulk_load_metadata() : file_total_size(0) { + } - _bulk_load_metadata__isset __isset; + virtual ~bulk_load_metadata() throw(); + std::vector files; + int64_t file_total_size; - void __set_files(const std::vector &val); + _bulk_load_metadata__isset __isset; - void __set_file_total_size(const int64_t val); + void __set_files(const std::vector & val); - bool operator==(const bulk_load_metadata &rhs) const - { - if (!(files == rhs.files)) - return false; - if (!(file_total_size == rhs.file_total_size)) - return false; - return true; - } - bool operator!=(const bulk_load_metadata &rhs) const { return !(*this == rhs); } + void __set_file_total_size(const int64_t val); - bool operator<(const bulk_load_metadata &) const; + bool operator == (const bulk_load_metadata & rhs) const + { + if (!(files == rhs.files)) + return false; + if (!(file_total_size == rhs.file_total_size)) + return false; + return true; + } + bool operator != (const bulk_load_metadata &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const bulk_load_metadata & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(bulk_load_metadata &a, bulk_load_metadata &b); -inline std::ostream &operator<<(std::ostream &out, const bulk_load_metadata &obj) +inline std::ostream& operator<<(std::ostream& out, const bulk_load_metadata& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _start_bulk_load_request__isset -{ - _start_bulk_load_request__isset() - : app_name(false), cluster_name(false), file_provider_type(false), remote_root_path(false) - { - } - bool app_name : 1; - bool cluster_name : 1; - bool file_provider_type : 1; - bool remote_root_path : 1; +typedef struct _start_bulk_load_request__isset { + _start_bulk_load_request__isset() : app_name(false), cluster_name(false), file_provider_type(false), remote_root_path(false) {} + bool app_name :1; + bool cluster_name :1; + bool file_provider_type :1; + bool remote_root_path :1; } _start_bulk_load_request__isset; -class start_bulk_load_request -{ -public: - start_bulk_load_request(const start_bulk_load_request &); - start_bulk_load_request(start_bulk_load_request &&); - start_bulk_load_request &operator=(const start_bulk_load_request &); - start_bulk_load_request &operator=(start_bulk_load_request &&); - start_bulk_load_request() : app_name(), cluster_name(), file_provider_type(), remote_root_path() - { - } +class start_bulk_load_request { + public: - virtual ~start_bulk_load_request() throw(); - std::string app_name; - std::string cluster_name; - std::string file_provider_type; - std::string remote_root_path; + start_bulk_load_request(const start_bulk_load_request&); + start_bulk_load_request(start_bulk_load_request&&); + start_bulk_load_request& operator=(const start_bulk_load_request&); + start_bulk_load_request& operator=(start_bulk_load_request&&); + start_bulk_load_request() : app_name(), cluster_name(), file_provider_type(), remote_root_path() { + } - _start_bulk_load_request__isset __isset; + virtual ~start_bulk_load_request() throw(); + std::string app_name; + std::string cluster_name; + std::string file_provider_type; + std::string remote_root_path; - void __set_app_name(const std::string &val); + _start_bulk_load_request__isset __isset; - void __set_cluster_name(const std::string &val); + void __set_app_name(const std::string& val); - void __set_file_provider_type(const std::string &val); + void __set_cluster_name(const std::string& val); - void __set_remote_root_path(const std::string &val); + void __set_file_provider_type(const std::string& val); - bool operator==(const start_bulk_load_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(cluster_name == rhs.cluster_name)) - return false; - if (!(file_provider_type == rhs.file_provider_type)) - return false; - if (!(remote_root_path == rhs.remote_root_path)) - return false; - return true; - } - bool operator!=(const start_bulk_load_request &rhs) const { return !(*this == rhs); } + void __set_remote_root_path(const std::string& val); - bool operator<(const start_bulk_load_request &) const; + bool operator == (const start_bulk_load_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(cluster_name == rhs.cluster_name)) + return false; + if (!(file_provider_type == rhs.file_provider_type)) + return false; + if (!(remote_root_path == rhs.remote_root_path)) + return false; + return true; + } + bool operator != (const start_bulk_load_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const start_bulk_load_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(start_bulk_load_request &a, start_bulk_load_request &b); -inline std::ostream &operator<<(std::ostream &out, const start_bulk_load_request &obj) +inline std::ostream& operator<<(std::ostream& out, const start_bulk_load_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _start_bulk_load_response__isset -{ - _start_bulk_load_response__isset() : err(false), hint_msg(false) {} - bool err : 1; - bool hint_msg : 1; +typedef struct _start_bulk_load_response__isset { + _start_bulk_load_response__isset() : err(false), hint_msg(false) {} + bool err :1; + bool hint_msg :1; } _start_bulk_load_response__isset; -class start_bulk_load_response -{ -public: - start_bulk_load_response(const start_bulk_load_response &); - start_bulk_load_response(start_bulk_load_response &&); - start_bulk_load_response &operator=(const start_bulk_load_response &); - start_bulk_load_response &operator=(start_bulk_load_response &&); - start_bulk_load_response() : hint_msg() {} +class start_bulk_load_response { + public: - virtual ~start_bulk_load_response() throw(); - ::dsn::error_code err; - std::string hint_msg; + start_bulk_load_response(const start_bulk_load_response&); + start_bulk_load_response(start_bulk_load_response&&); + start_bulk_load_response& operator=(const start_bulk_load_response&); + start_bulk_load_response& operator=(start_bulk_load_response&&); + start_bulk_load_response() : hint_msg() { + } - _start_bulk_load_response__isset __isset; + virtual ~start_bulk_load_response() throw(); + ::dsn::error_code err; + std::string hint_msg; - void __set_err(const ::dsn::error_code &val); + _start_bulk_load_response__isset __isset; - void __set_hint_msg(const std::string &val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const start_bulk_load_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator!=(const start_bulk_load_response &rhs) const { return !(*this == rhs); } + void __set_hint_msg(const std::string& val); - bool operator<(const start_bulk_load_response &) const; + bool operator == (const start_bulk_load_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator != (const start_bulk_load_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const start_bulk_load_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(start_bulk_load_response &a, start_bulk_load_response &b); -inline std::ostream &operator<<(std::ostream &out, const start_bulk_load_response &obj) +inline std::ostream& operator<<(std::ostream& out, const start_bulk_load_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _partition_bulk_load_state__isset -{ - _partition_bulk_load_state__isset() - : download_progress(true), - download_status(false), - ingest_status(true), - is_cleaned_up(true), - is_paused(true) - { - } - bool download_progress : 1; - bool download_status : 1; - bool ingest_status : 1; - bool is_cleaned_up : 1; - bool is_paused : 1; +typedef struct _partition_bulk_load_state__isset { + _partition_bulk_load_state__isset() : download_progress(true), download_status(false), ingest_status(true), is_cleaned_up(true), is_paused(true) {} + bool download_progress :1; + bool download_status :1; + bool ingest_status :1; + bool is_cleaned_up :1; + bool is_paused :1; } _partition_bulk_load_state__isset; -class partition_bulk_load_state -{ -public: - partition_bulk_load_state(const partition_bulk_load_state &); - partition_bulk_load_state(partition_bulk_load_state &&); - partition_bulk_load_state &operator=(const partition_bulk_load_state &); - partition_bulk_load_state &operator=(partition_bulk_load_state &&); - partition_bulk_load_state() - : download_progress(0), - ingest_status((ingestion_status::type)0), - is_cleaned_up(false), - is_paused(false) - { - ingest_status = (ingestion_status::type)0; - } - - virtual ~partition_bulk_load_state() throw(); - int32_t download_progress; - ::dsn::error_code download_status; - ingestion_status::type ingest_status; - bool is_cleaned_up; - bool is_paused; - - _partition_bulk_load_state__isset __isset; - - void __set_download_progress(const int32_t val); - - void __set_download_status(const ::dsn::error_code &val); - - void __set_ingest_status(const ingestion_status::type val); - - void __set_is_cleaned_up(const bool val); - - void __set_is_paused(const bool val); - - bool operator==(const partition_bulk_load_state &rhs) const - { - if (__isset.download_progress != rhs.__isset.download_progress) - return false; - else if (__isset.download_progress && !(download_progress == rhs.download_progress)) - return false; - if (__isset.download_status != rhs.__isset.download_status) - return false; - else if (__isset.download_status && !(download_status == rhs.download_status)) - return false; - if (__isset.ingest_status != rhs.__isset.ingest_status) - return false; - else if (__isset.ingest_status && !(ingest_status == rhs.ingest_status)) - return false; - if (__isset.is_cleaned_up != rhs.__isset.is_cleaned_up) - return false; - else if (__isset.is_cleaned_up && !(is_cleaned_up == rhs.is_cleaned_up)) - return false; - if (__isset.is_paused != rhs.__isset.is_paused) - return false; - else if (__isset.is_paused && !(is_paused == rhs.is_paused)) - return false; - return true; - } - bool operator!=(const partition_bulk_load_state &rhs) const { return !(*this == rhs); } - - bool operator<(const partition_bulk_load_state &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class partition_bulk_load_state { + public: + + partition_bulk_load_state(const partition_bulk_load_state&); + partition_bulk_load_state(partition_bulk_load_state&&); + partition_bulk_load_state& operator=(const partition_bulk_load_state&); + partition_bulk_load_state& operator=(partition_bulk_load_state&&); + partition_bulk_load_state() : download_progress(0), ingest_status((ingestion_status::type)0), is_cleaned_up(false), is_paused(false) { + ingest_status = (ingestion_status::type)0; + + } + + virtual ~partition_bulk_load_state() throw(); + int32_t download_progress; + ::dsn::error_code download_status; + ingestion_status::type ingest_status; + bool is_cleaned_up; + bool is_paused; + + _partition_bulk_load_state__isset __isset; + + void __set_download_progress(const int32_t val); + + void __set_download_status(const ::dsn::error_code& val); + + void __set_ingest_status(const ingestion_status::type val); + + void __set_is_cleaned_up(const bool val); + + void __set_is_paused(const bool val); + + bool operator == (const partition_bulk_load_state & rhs) const + { + if (__isset.download_progress != rhs.__isset.download_progress) + return false; + else if (__isset.download_progress && !(download_progress == rhs.download_progress)) + return false; + if (__isset.download_status != rhs.__isset.download_status) + return false; + else if (__isset.download_status && !(download_status == rhs.download_status)) + return false; + if (__isset.ingest_status != rhs.__isset.ingest_status) + return false; + else if (__isset.ingest_status && !(ingest_status == rhs.ingest_status)) + return false; + if (__isset.is_cleaned_up != rhs.__isset.is_cleaned_up) + return false; + else if (__isset.is_cleaned_up && !(is_cleaned_up == rhs.is_cleaned_up)) + return false; + if (__isset.is_paused != rhs.__isset.is_paused) + return false; + else if (__isset.is_paused && !(is_paused == rhs.is_paused)) + return false; + return true; + } + bool operator != (const partition_bulk_load_state &rhs) const { + return !(*this == rhs); + } + + bool operator < (const partition_bulk_load_state & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(partition_bulk_load_state &a, partition_bulk_load_state &b); -inline std::ostream &operator<<(std::ostream &out, const partition_bulk_load_state &obj) +inline std::ostream& operator<<(std::ostream& out, const partition_bulk_load_state& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _bulk_load_request__isset -{ - _bulk_load_request__isset() - : pid(false), - app_name(false), - primary_addr(false), - remote_provider_name(false), - cluster_name(false), - ballot(false), - meta_bulk_load_status(false), - query_bulk_load_metadata(false), - remote_root_path(false) - { - } - bool pid : 1; - bool app_name : 1; - bool primary_addr : 1; - bool remote_provider_name : 1; - bool cluster_name : 1; - bool ballot : 1; - bool meta_bulk_load_status : 1; - bool query_bulk_load_metadata : 1; - bool remote_root_path : 1; +typedef struct _bulk_load_request__isset { + _bulk_load_request__isset() : pid(false), app_name(false), primary_addr(false), remote_provider_name(false), cluster_name(false), ballot(false), meta_bulk_load_status(false), query_bulk_load_metadata(false), remote_root_path(false) {} + bool pid :1; + bool app_name :1; + bool primary_addr :1; + bool remote_provider_name :1; + bool cluster_name :1; + bool ballot :1; + bool meta_bulk_load_status :1; + bool query_bulk_load_metadata :1; + bool remote_root_path :1; } _bulk_load_request__isset; -class bulk_load_request -{ -public: - bulk_load_request(const bulk_load_request &); - bulk_load_request(bulk_load_request &&); - bulk_load_request &operator=(const bulk_load_request &); - bulk_load_request &operator=(bulk_load_request &&); - bulk_load_request() - : app_name(), - remote_provider_name(), - cluster_name(), - ballot(0), - meta_bulk_load_status((bulk_load_status::type)0), - query_bulk_load_metadata(0), - remote_root_path() - { - } - - virtual ~bulk_load_request() throw(); - ::dsn::gpid pid; - std::string app_name; - ::dsn::rpc_address primary_addr; - std::string remote_provider_name; - std::string cluster_name; - int64_t ballot; - bulk_load_status::type meta_bulk_load_status; - bool query_bulk_load_metadata; - std::string remote_root_path; - - _bulk_load_request__isset __isset; - - void __set_pid(const ::dsn::gpid &val); - - void __set_app_name(const std::string &val); - - void __set_primary_addr(const ::dsn::rpc_address &val); - - void __set_remote_provider_name(const std::string &val); - - void __set_cluster_name(const std::string &val); - - void __set_ballot(const int64_t val); - - void __set_meta_bulk_load_status(const bulk_load_status::type val); - - void __set_query_bulk_load_metadata(const bool val); - - void __set_remote_root_path(const std::string &val); - - bool operator==(const bulk_load_request &rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(primary_addr == rhs.primary_addr)) - return false; - if (!(remote_provider_name == rhs.remote_provider_name)) - return false; - if (!(cluster_name == rhs.cluster_name)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(meta_bulk_load_status == rhs.meta_bulk_load_status)) - return false; - if (!(query_bulk_load_metadata == rhs.query_bulk_load_metadata)) - return false; - if (!(remote_root_path == rhs.remote_root_path)) - return false; - return true; - } - bool operator!=(const bulk_load_request &rhs) const { return !(*this == rhs); } - - bool operator<(const bulk_load_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class bulk_load_request { + public: + + bulk_load_request(const bulk_load_request&); + bulk_load_request(bulk_load_request&&); + bulk_load_request& operator=(const bulk_load_request&); + bulk_load_request& operator=(bulk_load_request&&); + bulk_load_request() : app_name(), remote_provider_name(), cluster_name(), ballot(0), meta_bulk_load_status((bulk_load_status::type)0), query_bulk_load_metadata(0), remote_root_path() { + } + + virtual ~bulk_load_request() throw(); + ::dsn::gpid pid; + std::string app_name; + ::dsn::rpc_address primary_addr; + std::string remote_provider_name; + std::string cluster_name; + int64_t ballot; + bulk_load_status::type meta_bulk_load_status; + bool query_bulk_load_metadata; + std::string remote_root_path; + + _bulk_load_request__isset __isset; + + void __set_pid(const ::dsn::gpid& val); + + void __set_app_name(const std::string& val); + + void __set_primary_addr(const ::dsn::rpc_address& val); + + void __set_remote_provider_name(const std::string& val); + + void __set_cluster_name(const std::string& val); + + void __set_ballot(const int64_t val); + + void __set_meta_bulk_load_status(const bulk_load_status::type val); + + void __set_query_bulk_load_metadata(const bool val); + + void __set_remote_root_path(const std::string& val); + + bool operator == (const bulk_load_request & rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(primary_addr == rhs.primary_addr)) + return false; + if (!(remote_provider_name == rhs.remote_provider_name)) + return false; + if (!(cluster_name == rhs.cluster_name)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(meta_bulk_load_status == rhs.meta_bulk_load_status)) + return false; + if (!(query_bulk_load_metadata == rhs.query_bulk_load_metadata)) + return false; + if (!(remote_root_path == rhs.remote_root_path)) + return false; + return true; + } + bool operator != (const bulk_load_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const bulk_load_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(bulk_load_request &a, bulk_load_request &b); -inline std::ostream &operator<<(std::ostream &out, const bulk_load_request &obj) +inline std::ostream& operator<<(std::ostream& out, const bulk_load_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _bulk_load_response__isset -{ - _bulk_load_response__isset() - : err(false), - pid(false), - app_name(false), - primary_bulk_load_status(false), - group_bulk_load_state(false), - metadata(false), - total_download_progress(false), - is_group_ingestion_finished(false), - is_group_bulk_load_context_cleaned_up(false), - is_group_bulk_load_paused(false) - { - } - bool err : 1; - bool pid : 1; - bool app_name : 1; - bool primary_bulk_load_status : 1; - bool group_bulk_load_state : 1; - bool metadata : 1; - bool total_download_progress : 1; - bool is_group_ingestion_finished : 1; - bool is_group_bulk_load_context_cleaned_up : 1; - bool is_group_bulk_load_paused : 1; +typedef struct _bulk_load_response__isset { + _bulk_load_response__isset() : err(false), pid(false), app_name(false), primary_bulk_load_status(false), group_bulk_load_state(false), metadata(false), total_download_progress(false), is_group_ingestion_finished(false), is_group_bulk_load_context_cleaned_up(false), is_group_bulk_load_paused(false) {} + bool err :1; + bool pid :1; + bool app_name :1; + bool primary_bulk_load_status :1; + bool group_bulk_load_state :1; + bool metadata :1; + bool total_download_progress :1; + bool is_group_ingestion_finished :1; + bool is_group_bulk_load_context_cleaned_up :1; + bool is_group_bulk_load_paused :1; } _bulk_load_response__isset; -class bulk_load_response -{ -public: - bulk_load_response(const bulk_load_response &); - bulk_load_response(bulk_load_response &&); - bulk_load_response &operator=(const bulk_load_response &); - bulk_load_response &operator=(bulk_load_response &&); - bulk_load_response() - : app_name(), - primary_bulk_load_status((bulk_load_status::type)0), - total_download_progress(0), - is_group_ingestion_finished(0), - is_group_bulk_load_context_cleaned_up(0), - is_group_bulk_load_paused(0) - { - } - - virtual ~bulk_load_response() throw(); - ::dsn::error_code err; - ::dsn::gpid pid; - std::string app_name; - bulk_load_status::type primary_bulk_load_status; - std::map<::dsn::rpc_address, partition_bulk_load_state> group_bulk_load_state; - bulk_load_metadata metadata; - int32_t total_download_progress; - bool is_group_ingestion_finished; - bool is_group_bulk_load_context_cleaned_up; - bool is_group_bulk_load_paused; - - _bulk_load_response__isset __isset; - - void __set_err(const ::dsn::error_code &val); - - void __set_pid(const ::dsn::gpid &val); - - void __set_app_name(const std::string &val); - - void __set_primary_bulk_load_status(const bulk_load_status::type val); - - void - __set_group_bulk_load_state(const std::map<::dsn::rpc_address, partition_bulk_load_state> &val); - - void __set_metadata(const bulk_load_metadata &val); - - void __set_total_download_progress(const int32_t val); - - void __set_is_group_ingestion_finished(const bool val); - - void __set_is_group_bulk_load_context_cleaned_up(const bool val); - - void __set_is_group_bulk_load_paused(const bool val); - - bool operator==(const bulk_load_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(pid == rhs.pid)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(primary_bulk_load_status == rhs.primary_bulk_load_status)) - return false; - if (!(group_bulk_load_state == rhs.group_bulk_load_state)) - return false; - if (__isset.metadata != rhs.__isset.metadata) - return false; - else if (__isset.metadata && !(metadata == rhs.metadata)) - return false; - if (__isset.total_download_progress != rhs.__isset.total_download_progress) - return false; - else if (__isset.total_download_progress && - !(total_download_progress == rhs.total_download_progress)) - return false; - if (__isset.is_group_ingestion_finished != rhs.__isset.is_group_ingestion_finished) - return false; - else if (__isset.is_group_ingestion_finished && - !(is_group_ingestion_finished == rhs.is_group_ingestion_finished)) - return false; - if (__isset.is_group_bulk_load_context_cleaned_up != - rhs.__isset.is_group_bulk_load_context_cleaned_up) - return false; - else if (__isset.is_group_bulk_load_context_cleaned_up && - !(is_group_bulk_load_context_cleaned_up == - rhs.is_group_bulk_load_context_cleaned_up)) - return false; - if (__isset.is_group_bulk_load_paused != rhs.__isset.is_group_bulk_load_paused) - return false; - else if (__isset.is_group_bulk_load_paused && - !(is_group_bulk_load_paused == rhs.is_group_bulk_load_paused)) - return false; - return true; - } - bool operator!=(const bulk_load_response &rhs) const { return !(*this == rhs); } - - bool operator<(const bulk_load_response &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class bulk_load_response { + public: + + bulk_load_response(const bulk_load_response&); + bulk_load_response(bulk_load_response&&); + bulk_load_response& operator=(const bulk_load_response&); + bulk_load_response& operator=(bulk_load_response&&); + bulk_load_response() : app_name(), primary_bulk_load_status((bulk_load_status::type)0), total_download_progress(0), is_group_ingestion_finished(0), is_group_bulk_load_context_cleaned_up(0), is_group_bulk_load_paused(0) { + } + + virtual ~bulk_load_response() throw(); + ::dsn::error_code err; + ::dsn::gpid pid; + std::string app_name; + bulk_load_status::type primary_bulk_load_status; + std::map< ::dsn::rpc_address, partition_bulk_load_state> group_bulk_load_state; + bulk_load_metadata metadata; + int32_t total_download_progress; + bool is_group_ingestion_finished; + bool is_group_bulk_load_context_cleaned_up; + bool is_group_bulk_load_paused; + + _bulk_load_response__isset __isset; + + void __set_err(const ::dsn::error_code& val); + + void __set_pid(const ::dsn::gpid& val); + + void __set_app_name(const std::string& val); + + void __set_primary_bulk_load_status(const bulk_load_status::type val); + + void __set_group_bulk_load_state(const std::map< ::dsn::rpc_address, partition_bulk_load_state> & val); + + void __set_metadata(const bulk_load_metadata& val); + + void __set_total_download_progress(const int32_t val); + + void __set_is_group_ingestion_finished(const bool val); + + void __set_is_group_bulk_load_context_cleaned_up(const bool val); + + void __set_is_group_bulk_load_paused(const bool val); + + bool operator == (const bulk_load_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(pid == rhs.pid)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(primary_bulk_load_status == rhs.primary_bulk_load_status)) + return false; + if (!(group_bulk_load_state == rhs.group_bulk_load_state)) + return false; + if (__isset.metadata != rhs.__isset.metadata) + return false; + else if (__isset.metadata && !(metadata == rhs.metadata)) + return false; + if (__isset.total_download_progress != rhs.__isset.total_download_progress) + return false; + else if (__isset.total_download_progress && !(total_download_progress == rhs.total_download_progress)) + return false; + if (__isset.is_group_ingestion_finished != rhs.__isset.is_group_ingestion_finished) + return false; + else if (__isset.is_group_ingestion_finished && !(is_group_ingestion_finished == rhs.is_group_ingestion_finished)) + return false; + if (__isset.is_group_bulk_load_context_cleaned_up != rhs.__isset.is_group_bulk_load_context_cleaned_up) + return false; + else if (__isset.is_group_bulk_load_context_cleaned_up && !(is_group_bulk_load_context_cleaned_up == rhs.is_group_bulk_load_context_cleaned_up)) + return false; + if (__isset.is_group_bulk_load_paused != rhs.__isset.is_group_bulk_load_paused) + return false; + else if (__isset.is_group_bulk_load_paused && !(is_group_bulk_load_paused == rhs.is_group_bulk_load_paused)) + return false; + return true; + } + bool operator != (const bulk_load_response &rhs) const { + return !(*this == rhs); + } + + bool operator < (const bulk_load_response & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(bulk_load_response &a, bulk_load_response &b); -inline std::ostream &operator<<(std::ostream &out, const bulk_load_response &obj) +inline std::ostream& operator<<(std::ostream& out, const bulk_load_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _group_bulk_load_request__isset -{ - _group_bulk_load_request__isset() - : app_name(false), - target_address(false), - config(false), - provider_name(false), - cluster_name(false), - meta_bulk_load_status(false), - remote_root_path(false) - { - } - bool app_name : 1; - bool target_address : 1; - bool config : 1; - bool provider_name : 1; - bool cluster_name : 1; - bool meta_bulk_load_status : 1; - bool remote_root_path : 1; +typedef struct _group_bulk_load_request__isset { + _group_bulk_load_request__isset() : app_name(false), target_address(false), config(false), provider_name(false), cluster_name(false), meta_bulk_load_status(false), remote_root_path(false) {} + bool app_name :1; + bool target_address :1; + bool config :1; + bool provider_name :1; + bool cluster_name :1; + bool meta_bulk_load_status :1; + bool remote_root_path :1; } _group_bulk_load_request__isset; -class group_bulk_load_request -{ -public: - group_bulk_load_request(const group_bulk_load_request &); - group_bulk_load_request(group_bulk_load_request &&); - group_bulk_load_request &operator=(const group_bulk_load_request &); - group_bulk_load_request &operator=(group_bulk_load_request &&); - group_bulk_load_request() - : app_name(), - provider_name(), - cluster_name(), - meta_bulk_load_status((bulk_load_status::type)0), - remote_root_path() - { - } - - virtual ~group_bulk_load_request() throw(); - std::string app_name; - ::dsn::rpc_address target_address; - replica_configuration config; - std::string provider_name; - std::string cluster_name; - bulk_load_status::type meta_bulk_load_status; - std::string remote_root_path; - - _group_bulk_load_request__isset __isset; - - void __set_app_name(const std::string &val); - - void __set_target_address(const ::dsn::rpc_address &val); - - void __set_config(const replica_configuration &val); - - void __set_provider_name(const std::string &val); - - void __set_cluster_name(const std::string &val); - - void __set_meta_bulk_load_status(const bulk_load_status::type val); - - void __set_remote_root_path(const std::string &val); - - bool operator==(const group_bulk_load_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(target_address == rhs.target_address)) - return false; - if (!(config == rhs.config)) - return false; - if (!(provider_name == rhs.provider_name)) - return false; - if (!(cluster_name == rhs.cluster_name)) - return false; - if (!(meta_bulk_load_status == rhs.meta_bulk_load_status)) - return false; - if (!(remote_root_path == rhs.remote_root_path)) - return false; - return true; - } - bool operator!=(const group_bulk_load_request &rhs) const { return !(*this == rhs); } - - bool operator<(const group_bulk_load_request &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class group_bulk_load_request { + public: + + group_bulk_load_request(const group_bulk_load_request&); + group_bulk_load_request(group_bulk_load_request&&); + group_bulk_load_request& operator=(const group_bulk_load_request&); + group_bulk_load_request& operator=(group_bulk_load_request&&); + group_bulk_load_request() : app_name(), provider_name(), cluster_name(), meta_bulk_load_status((bulk_load_status::type)0), remote_root_path() { + } + + virtual ~group_bulk_load_request() throw(); + std::string app_name; + ::dsn::rpc_address target_address; + replica_configuration config; + std::string provider_name; + std::string cluster_name; + bulk_load_status::type meta_bulk_load_status; + std::string remote_root_path; + + _group_bulk_load_request__isset __isset; + + void __set_app_name(const std::string& val); + + void __set_target_address(const ::dsn::rpc_address& val); + + void __set_config(const replica_configuration& val); + + void __set_provider_name(const std::string& val); + + void __set_cluster_name(const std::string& val); + + void __set_meta_bulk_load_status(const bulk_load_status::type val); + + void __set_remote_root_path(const std::string& val); + + bool operator == (const group_bulk_load_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(target_address == rhs.target_address)) + return false; + if (!(config == rhs.config)) + return false; + if (!(provider_name == rhs.provider_name)) + return false; + if (!(cluster_name == rhs.cluster_name)) + return false; + if (!(meta_bulk_load_status == rhs.meta_bulk_load_status)) + return false; + if (!(remote_root_path == rhs.remote_root_path)) + return false; + return true; + } + bool operator != (const group_bulk_load_request &rhs) const { + return !(*this == rhs); + } + + bool operator < (const group_bulk_load_request & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(group_bulk_load_request &a, group_bulk_load_request &b); -inline std::ostream &operator<<(std::ostream &out, const group_bulk_load_request &obj) +inline std::ostream& operator<<(std::ostream& out, const group_bulk_load_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _group_bulk_load_response__isset -{ - _group_bulk_load_response__isset() : err(false), status(false), bulk_load_state(false) {} - bool err : 1; - bool status : 1; - bool bulk_load_state : 1; +typedef struct _group_bulk_load_response__isset { + _group_bulk_load_response__isset() : err(false), status(false), bulk_load_state(false) {} + bool err :1; + bool status :1; + bool bulk_load_state :1; } _group_bulk_load_response__isset; -class group_bulk_load_response -{ -public: - group_bulk_load_response(const group_bulk_load_response &); - group_bulk_load_response(group_bulk_load_response &&); - group_bulk_load_response &operator=(const group_bulk_load_response &); - group_bulk_load_response &operator=(group_bulk_load_response &&); - group_bulk_load_response() : status((bulk_load_status::type)0) {} +class group_bulk_load_response { + public: - virtual ~group_bulk_load_response() throw(); - ::dsn::error_code err; - bulk_load_status::type status; - partition_bulk_load_state bulk_load_state; + group_bulk_load_response(const group_bulk_load_response&); + group_bulk_load_response(group_bulk_load_response&&); + group_bulk_load_response& operator=(const group_bulk_load_response&); + group_bulk_load_response& operator=(group_bulk_load_response&&); + group_bulk_load_response() : status((bulk_load_status::type)0) { + } - _group_bulk_load_response__isset __isset; + virtual ~group_bulk_load_response() throw(); + ::dsn::error_code err; + bulk_load_status::type status; + partition_bulk_load_state bulk_load_state; - void __set_err(const ::dsn::error_code &val); + _group_bulk_load_response__isset __isset; - void __set_status(const bulk_load_status::type val); + void __set_err(const ::dsn::error_code& val); - void __set_bulk_load_state(const partition_bulk_load_state &val); + void __set_status(const bulk_load_status::type val); - bool operator==(const group_bulk_load_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(status == rhs.status)) - return false; - if (!(bulk_load_state == rhs.bulk_load_state)) - return false; - return true; - } - bool operator!=(const group_bulk_load_response &rhs) const { return !(*this == rhs); } + void __set_bulk_load_state(const partition_bulk_load_state& val); - bool operator<(const group_bulk_load_response &) const; + bool operator == (const group_bulk_load_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(status == rhs.status)) + return false; + if (!(bulk_load_state == rhs.bulk_load_state)) + return false; + return true; + } + bool operator != (const group_bulk_load_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const group_bulk_load_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(group_bulk_load_response &a, group_bulk_load_response &b); -inline std::ostream &operator<<(std::ostream &out, const group_bulk_load_response &obj) +inline std::ostream& operator<<(std::ostream& out, const group_bulk_load_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ingestion_request__isset -{ - _ingestion_request__isset() : app_name(false), metadata(false) {} - bool app_name : 1; - bool metadata : 1; +typedef struct _ingestion_request__isset { + _ingestion_request__isset() : app_name(false), metadata(false) {} + bool app_name :1; + bool metadata :1; } _ingestion_request__isset; -class ingestion_request -{ -public: - ingestion_request(const ingestion_request &); - ingestion_request(ingestion_request &&); - ingestion_request &operator=(const ingestion_request &); - ingestion_request &operator=(ingestion_request &&); - ingestion_request() : app_name() {} +class ingestion_request { + public: - virtual ~ingestion_request() throw(); - std::string app_name; - bulk_load_metadata metadata; + ingestion_request(const ingestion_request&); + ingestion_request(ingestion_request&&); + ingestion_request& operator=(const ingestion_request&); + ingestion_request& operator=(ingestion_request&&); + ingestion_request() : app_name() { + } - _ingestion_request__isset __isset; + virtual ~ingestion_request() throw(); + std::string app_name; + bulk_load_metadata metadata; - void __set_app_name(const std::string &val); + _ingestion_request__isset __isset; - void __set_metadata(const bulk_load_metadata &val); + void __set_app_name(const std::string& val); - bool operator==(const ingestion_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(metadata == rhs.metadata)) - return false; - return true; - } - bool operator!=(const ingestion_request &rhs) const { return !(*this == rhs); } + void __set_metadata(const bulk_load_metadata& val); - bool operator<(const ingestion_request &) const; + bool operator == (const ingestion_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(metadata == rhs.metadata)) + return false; + return true; + } + bool operator != (const ingestion_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const ingestion_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(ingestion_request &a, ingestion_request &b); -inline std::ostream &operator<<(std::ostream &out, const ingestion_request &obj) +inline std::ostream& operator<<(std::ostream& out, const ingestion_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ingestion_response__isset -{ - _ingestion_response__isset() : err(false), rocksdb_error(false) {} - bool err : 1; - bool rocksdb_error : 1; +typedef struct _ingestion_response__isset { + _ingestion_response__isset() : err(false), rocksdb_error(false) {} + bool err :1; + bool rocksdb_error :1; } _ingestion_response__isset; -class ingestion_response -{ -public: - ingestion_response(const ingestion_response &); - ingestion_response(ingestion_response &&); - ingestion_response &operator=(const ingestion_response &); - ingestion_response &operator=(ingestion_response &&); - ingestion_response() : rocksdb_error(0) {} +class ingestion_response { + public: - virtual ~ingestion_response() throw(); - ::dsn::error_code err; - int32_t rocksdb_error; + ingestion_response(const ingestion_response&); + ingestion_response(ingestion_response&&); + ingestion_response& operator=(const ingestion_response&); + ingestion_response& operator=(ingestion_response&&); + ingestion_response() : rocksdb_error(0) { + } - _ingestion_response__isset __isset; + virtual ~ingestion_response() throw(); + ::dsn::error_code err; + int32_t rocksdb_error; - void __set_err(const ::dsn::error_code &val); + _ingestion_response__isset __isset; - void __set_rocksdb_error(const int32_t val); + void __set_err(const ::dsn::error_code& val); - bool operator==(const ingestion_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(rocksdb_error == rhs.rocksdb_error)) - return false; - return true; - } - bool operator!=(const ingestion_response &rhs) const { return !(*this == rhs); } + void __set_rocksdb_error(const int32_t val); - bool operator<(const ingestion_response &) const; + bool operator == (const ingestion_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(rocksdb_error == rhs.rocksdb_error)) + return false; + return true; + } + bool operator != (const ingestion_response &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const ingestion_response & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(ingestion_response &a, ingestion_response &b); -inline std::ostream &operator<<(std::ostream &out, const ingestion_response &obj) +inline std::ostream& operator<<(std::ostream& out, const ingestion_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _control_bulk_load_request__isset -{ - _control_bulk_load_request__isset() : app_name(false), type(false) {} - bool app_name : 1; - bool type : 1; +typedef struct _control_bulk_load_request__isset { + _control_bulk_load_request__isset() : app_name(false), type(false) {} + bool app_name :1; + bool type :1; } _control_bulk_load_request__isset; -class control_bulk_load_request -{ -public: - control_bulk_load_request(const control_bulk_load_request &); - control_bulk_load_request(control_bulk_load_request &&); - control_bulk_load_request &operator=(const control_bulk_load_request &); - control_bulk_load_request &operator=(control_bulk_load_request &&); - control_bulk_load_request() : app_name(), type((bulk_load_control_type::type)0) {} +class control_bulk_load_request { + public: + + control_bulk_load_request(const control_bulk_load_request&); + control_bulk_load_request(control_bulk_load_request&&); + control_bulk_load_request& operator=(const control_bulk_load_request&); + control_bulk_load_request& operator=(control_bulk_load_request&&); + control_bulk_load_request() : app_name(), type((bulk_load_control_type::type)0) { + } - virtual ~control_bulk_load_request() throw(); - std::string app_name; - bulk_load_control_type::type type; + virtual ~control_bulk_load_request() throw(); + std::string app_name; + bulk_load_control_type::type type; - _control_bulk_load_request__isset __isset; + _control_bulk_load_request__isset __isset; - void __set_app_name(const std::string &val); + void __set_app_name(const std::string& val); - void __set_type(const bulk_load_control_type::type val); + void __set_type(const bulk_load_control_type::type val); - bool operator==(const control_bulk_load_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(type == rhs.type)) - return false; - return true; - } - bool operator!=(const control_bulk_load_request &rhs) const { return !(*this == rhs); } + bool operator == (const control_bulk_load_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(type == rhs.type)) + return false; + return true; + } + bool operator != (const control_bulk_load_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const control_bulk_load_request &) const; + bool operator < (const control_bulk_load_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(control_bulk_load_request &a, control_bulk_load_request &b); -inline std::ostream &operator<<(std::ostream &out, const control_bulk_load_request &obj) +inline std::ostream& operator<<(std::ostream& out, const control_bulk_load_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _control_bulk_load_response__isset -{ - _control_bulk_load_response__isset() : err(false), hint_msg(false) {} - bool err : 1; - bool hint_msg : 1; +typedef struct _control_bulk_load_response__isset { + _control_bulk_load_response__isset() : err(false), hint_msg(false) {} + bool err :1; + bool hint_msg :1; } _control_bulk_load_response__isset; -class control_bulk_load_response -{ -public: - control_bulk_load_response(const control_bulk_load_response &); - control_bulk_load_response(control_bulk_load_response &&); - control_bulk_load_response &operator=(const control_bulk_load_response &); - control_bulk_load_response &operator=(control_bulk_load_response &&); - control_bulk_load_response() : hint_msg() {} +class control_bulk_load_response { + public: + + control_bulk_load_response(const control_bulk_load_response&); + control_bulk_load_response(control_bulk_load_response&&); + control_bulk_load_response& operator=(const control_bulk_load_response&); + control_bulk_load_response& operator=(control_bulk_load_response&&); + control_bulk_load_response() : hint_msg() { + } - virtual ~control_bulk_load_response() throw(); - ::dsn::error_code err; - std::string hint_msg; + virtual ~control_bulk_load_response() throw(); + ::dsn::error_code err; + std::string hint_msg; - _control_bulk_load_response__isset __isset; + _control_bulk_load_response__isset __isset; - void __set_err(const ::dsn::error_code &val); + void __set_err(const ::dsn::error_code& val); - void __set_hint_msg(const std::string &val); + void __set_hint_msg(const std::string& val); - bool operator==(const control_bulk_load_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (__isset.hint_msg != rhs.__isset.hint_msg) - return false; - else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator!=(const control_bulk_load_response &rhs) const { return !(*this == rhs); } + bool operator == (const control_bulk_load_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (__isset.hint_msg != rhs.__isset.hint_msg) + return false; + else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator != (const control_bulk_load_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const control_bulk_load_response &) const; + bool operator < (const control_bulk_load_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(control_bulk_load_response &a, control_bulk_load_response &b); -inline std::ostream &operator<<(std::ostream &out, const control_bulk_load_response &obj) +inline std::ostream& operator<<(std::ostream& out, const control_bulk_load_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_bulk_load_request__isset -{ - _query_bulk_load_request__isset() : app_name(false) {} - bool app_name : 1; +typedef struct _query_bulk_load_request__isset { + _query_bulk_load_request__isset() : app_name(false) {} + bool app_name :1; } _query_bulk_load_request__isset; -class query_bulk_load_request -{ -public: - query_bulk_load_request(const query_bulk_load_request &); - query_bulk_load_request(query_bulk_load_request &&); - query_bulk_load_request &operator=(const query_bulk_load_request &); - query_bulk_load_request &operator=(query_bulk_load_request &&); - query_bulk_load_request() : app_name() {} +class query_bulk_load_request { + public: + + query_bulk_load_request(const query_bulk_load_request&); + query_bulk_load_request(query_bulk_load_request&&); + query_bulk_load_request& operator=(const query_bulk_load_request&); + query_bulk_load_request& operator=(query_bulk_load_request&&); + query_bulk_load_request() : app_name() { + } - virtual ~query_bulk_load_request() throw(); - std::string app_name; + virtual ~query_bulk_load_request() throw(); + std::string app_name; - _query_bulk_load_request__isset __isset; + _query_bulk_load_request__isset __isset; - void __set_app_name(const std::string &val); + void __set_app_name(const std::string& val); - bool operator==(const query_bulk_load_request &rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - return true; - } - bool operator!=(const query_bulk_load_request &rhs) const { return !(*this == rhs); } + bool operator == (const query_bulk_load_request & rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + return true; + } + bool operator != (const query_bulk_load_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const query_bulk_load_request &) const; + bool operator < (const query_bulk_load_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(query_bulk_load_request &a, query_bulk_load_request &b); -inline std::ostream &operator<<(std::ostream &out, const query_bulk_load_request &obj) +inline std::ostream& operator<<(std::ostream& out, const query_bulk_load_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_bulk_load_response__isset -{ - _query_bulk_load_response__isset() - : err(false), - app_name(false), - app_status(false), - partitions_status(false), - max_replica_count(false), - bulk_load_states(false), - hint_msg(false) - { - } - bool err : 1; - bool app_name : 1; - bool app_status : 1; - bool partitions_status : 1; - bool max_replica_count : 1; - bool bulk_load_states : 1; - bool hint_msg : 1; +typedef struct _query_bulk_load_response__isset { + _query_bulk_load_response__isset() : err(false), app_name(false), app_status(false), partitions_status(false), max_replica_count(false), bulk_load_states(false), hint_msg(false) {} + bool err :1; + bool app_name :1; + bool app_status :1; + bool partitions_status :1; + bool max_replica_count :1; + bool bulk_load_states :1; + bool hint_msg :1; } _query_bulk_load_response__isset; -class query_bulk_load_response -{ -public: - query_bulk_load_response(const query_bulk_load_response &); - query_bulk_load_response(query_bulk_load_response &&); - query_bulk_load_response &operator=(const query_bulk_load_response &); - query_bulk_load_response &operator=(query_bulk_load_response &&); - query_bulk_load_response() - : app_name(), app_status((bulk_load_status::type)0), max_replica_count(0), hint_msg() - { - } - - virtual ~query_bulk_load_response() throw(); - ::dsn::error_code err; - std::string app_name; - bulk_load_status::type app_status; - std::vector partitions_status; - int32_t max_replica_count; - std::vector> bulk_load_states; - std::string hint_msg; - - _query_bulk_load_response__isset __isset; - - void __set_err(const ::dsn::error_code &val); - - void __set_app_name(const std::string &val); - - void __set_app_status(const bulk_load_status::type val); - - void __set_partitions_status(const std::vector &val); - - void __set_max_replica_count(const int32_t val); - - void __set_bulk_load_states( - const std::vector> &val); - - void __set_hint_msg(const std::string &val); - - bool operator==(const query_bulk_load_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(app_status == rhs.app_status)) - return false; - if (!(partitions_status == rhs.partitions_status)) - return false; - if (!(max_replica_count == rhs.max_replica_count)) - return false; - if (!(bulk_load_states == rhs.bulk_load_states)) - return false; - if (__isset.hint_msg != rhs.__isset.hint_msg) - return false; - else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator!=(const query_bulk_load_response &rhs) const { return !(*this == rhs); } - - bool operator<(const query_bulk_load_response &) const; - - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - - virtual void printTo(std::ostream &out) const; +class query_bulk_load_response { + public: + + query_bulk_load_response(const query_bulk_load_response&); + query_bulk_load_response(query_bulk_load_response&&); + query_bulk_load_response& operator=(const query_bulk_load_response&); + query_bulk_load_response& operator=(query_bulk_load_response&&); + query_bulk_load_response() : app_name(), app_status((bulk_load_status::type)0), max_replica_count(0), hint_msg() { + } + + virtual ~query_bulk_load_response() throw(); + ::dsn::error_code err; + std::string app_name; + bulk_load_status::type app_status; + std::vector partitions_status; + int32_t max_replica_count; + std::vector > bulk_load_states; + std::string hint_msg; + + _query_bulk_load_response__isset __isset; + + void __set_err(const ::dsn::error_code& val); + + void __set_app_name(const std::string& val); + + void __set_app_status(const bulk_load_status::type val); + + void __set_partitions_status(const std::vector & val); + + void __set_max_replica_count(const int32_t val); + + void __set_bulk_load_states(const std::vector > & val); + + void __set_hint_msg(const std::string& val); + + bool operator == (const query_bulk_load_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(app_status == rhs.app_status)) + return false; + if (!(partitions_status == rhs.partitions_status)) + return false; + if (!(max_replica_count == rhs.max_replica_count)) + return false; + if (!(bulk_load_states == rhs.bulk_load_states)) + return false; + if (__isset.hint_msg != rhs.__isset.hint_msg) + return false; + else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator != (const query_bulk_load_response &rhs) const { + return !(*this == rhs); + } + + bool operator < (const query_bulk_load_response & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(query_bulk_load_response &a, query_bulk_load_response &b); -inline std::ostream &operator<<(std::ostream &out, const query_bulk_load_response &obj) +inline std::ostream& operator<<(std::ostream& out, const query_bulk_load_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _detect_hotkey_request__isset -{ - _detect_hotkey_request__isset() : type(false), action(false), pid(false) {} - bool type : 1; - bool action : 1; - bool pid : 1; +typedef struct _detect_hotkey_request__isset { + _detect_hotkey_request__isset() : type(false), action(false), pid(false) {} + bool type :1; + bool action :1; + bool pid :1; } _detect_hotkey_request__isset; -class detect_hotkey_request -{ -public: - detect_hotkey_request(const detect_hotkey_request &); - detect_hotkey_request(detect_hotkey_request &&); - detect_hotkey_request &operator=(const detect_hotkey_request &); - detect_hotkey_request &operator=(detect_hotkey_request &&); - detect_hotkey_request() : type((hotkey_type::type)0), action((detect_action::type)0) {} +class detect_hotkey_request { + public: + + detect_hotkey_request(const detect_hotkey_request&); + detect_hotkey_request(detect_hotkey_request&&); + detect_hotkey_request& operator=(const detect_hotkey_request&); + detect_hotkey_request& operator=(detect_hotkey_request&&); + detect_hotkey_request() : type((hotkey_type::type)0), action((detect_action::type)0) { + } - virtual ~detect_hotkey_request() throw(); - hotkey_type::type type; - detect_action::type action; - ::dsn::gpid pid; + virtual ~detect_hotkey_request() throw(); + hotkey_type::type type; + detect_action::type action; + ::dsn::gpid pid; - _detect_hotkey_request__isset __isset; + _detect_hotkey_request__isset __isset; - void __set_type(const hotkey_type::type val); + void __set_type(const hotkey_type::type val); - void __set_action(const detect_action::type val); + void __set_action(const detect_action::type val); - void __set_pid(const ::dsn::gpid &val); + void __set_pid(const ::dsn::gpid& val); - bool operator==(const detect_hotkey_request &rhs) const - { - if (!(type == rhs.type)) - return false; - if (!(action == rhs.action)) - return false; - if (!(pid == rhs.pid)) - return false; - return true; - } - bool operator!=(const detect_hotkey_request &rhs) const { return !(*this == rhs); } + bool operator == (const detect_hotkey_request & rhs) const + { + if (!(type == rhs.type)) + return false; + if (!(action == rhs.action)) + return false; + if (!(pid == rhs.pid)) + return false; + return true; + } + bool operator != (const detect_hotkey_request &rhs) const { + return !(*this == rhs); + } - bool operator<(const detect_hotkey_request &) const; + bool operator < (const detect_hotkey_request & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(detect_hotkey_request &a, detect_hotkey_request &b); -inline std::ostream &operator<<(std::ostream &out, const detect_hotkey_request &obj) +inline std::ostream& operator<<(std::ostream& out, const detect_hotkey_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _detect_hotkey_response__isset -{ - _detect_hotkey_response__isset() : err(false), err_hint(false) {} - bool err : 1; - bool err_hint : 1; +typedef struct _detect_hotkey_response__isset { + _detect_hotkey_response__isset() : err(false), err_hint(false), hotkey_result(false) {} + bool err :1; + bool err_hint :1; + bool hotkey_result :1; } _detect_hotkey_response__isset; -class detect_hotkey_response -{ -public: - detect_hotkey_response(const detect_hotkey_response &); - detect_hotkey_response(detect_hotkey_response &&); - detect_hotkey_response &operator=(const detect_hotkey_response &); - detect_hotkey_response &operator=(detect_hotkey_response &&); - detect_hotkey_response() : err_hint() {} +class detect_hotkey_response { + public: + + detect_hotkey_response(const detect_hotkey_response&); + detect_hotkey_response(detect_hotkey_response&&); + detect_hotkey_response& operator=(const detect_hotkey_response&); + detect_hotkey_response& operator=(detect_hotkey_response&&); + detect_hotkey_response() : err_hint(), hotkey_result() { + } + + virtual ~detect_hotkey_response() throw(); + ::dsn::error_code err; + std::string err_hint; + std::string hotkey_result; - virtual ~detect_hotkey_response() throw(); - ::dsn::error_code err; - std::string err_hint; + _detect_hotkey_response__isset __isset; - _detect_hotkey_response__isset __isset; + void __set_err(const ::dsn::error_code& val); - void __set_err(const ::dsn::error_code &val); + void __set_err_hint(const std::string& val); - void __set_err_hint(const std::string &val); + void __set_hotkey_result(const std::string& val); - bool operator==(const detect_hotkey_response &rhs) const - { - if (!(err == rhs.err)) - return false; - if (__isset.err_hint != rhs.__isset.err_hint) - return false; - else if (__isset.err_hint && !(err_hint == rhs.err_hint)) - return false; - return true; - } - bool operator!=(const detect_hotkey_response &rhs) const { return !(*this == rhs); } + bool operator == (const detect_hotkey_response & rhs) const + { + if (!(err == rhs.err)) + return false; + if (__isset.err_hint != rhs.__isset.err_hint) + return false; + else if (__isset.err_hint && !(err_hint == rhs.err_hint)) + return false; + if (__isset.hotkey_result != rhs.__isset.hotkey_result) + return false; + else if (__isset.hotkey_result && !(hotkey_result == rhs.hotkey_result)) + return false; + return true; + } + bool operator != (const detect_hotkey_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const detect_hotkey_response &) const; + bool operator < (const detect_hotkey_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(detect_hotkey_response &a, detect_hotkey_response &b); -inline std::ostream &operator<<(std::ostream &out, const detect_hotkey_response &obj) +inline std::ostream& operator<<(std::ostream& out, const detect_hotkey_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -} -} // namespace + +}} // namespace #endif diff --git a/src/common/replication_types.cpp b/src/common/replication_types.cpp index d8f8fc3d45..fb1d18d015 100644 --- a/src/common/replication_types.cpp +++ b/src/common/replication_types.cpp @@ -11,18262 +11,17714 @@ #include -namespace dsn { -namespace replication { - -int _kpartition_statusValues[] = {partition_status::PS_INVALID, - partition_status::PS_INACTIVE, - partition_status::PS_ERROR, - partition_status::PS_PRIMARY, - partition_status::PS_SECONDARY, - partition_status::PS_POTENTIAL_SECONDARY, - partition_status::PS_PARTITION_SPLIT}; -const char *_kpartition_statusNames[] = {"PS_INVALID", - "PS_INACTIVE", - "PS_ERROR", - "PS_PRIMARY", - "PS_SECONDARY", - "PS_POTENTIAL_SECONDARY", - "PS_PARTITION_SPLIT"}; -const std::map _partition_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(7, _kpartition_statusValues, _kpartition_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kread_semanticValues[] = {read_semantic::ReadInvalid, - read_semantic::ReadLastUpdate, - read_semantic::ReadOutdated, - read_semantic::ReadSnapshot}; -const char *_kread_semanticNames[] = { - "ReadInvalid", "ReadLastUpdate", "ReadOutdated", "ReadSnapshot"}; -const std::map _read_semantic_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(4, _kread_semanticValues, _kread_semanticNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); +namespace dsn { namespace replication { + +int _kpartition_statusValues[] = { + partition_status::PS_INVALID, + partition_status::PS_INACTIVE, + partition_status::PS_ERROR, + partition_status::PS_PRIMARY, + partition_status::PS_SECONDARY, + partition_status::PS_POTENTIAL_SECONDARY, + partition_status::PS_PARTITION_SPLIT +}; +const char* _kpartition_statusNames[] = { + "PS_INVALID", + "PS_INACTIVE", + "PS_ERROR", + "PS_PRIMARY", + "PS_SECONDARY", + "PS_POTENTIAL_SECONDARY", + "PS_PARTITION_SPLIT" +}; +const std::map _partition_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(7, _kpartition_statusValues, _kpartition_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kread_semanticValues[] = { + read_semantic::ReadInvalid, + read_semantic::ReadLastUpdate, + read_semantic::ReadOutdated, + read_semantic::ReadSnapshot +}; +const char* _kread_semanticNames[] = { + "ReadInvalid", + "ReadLastUpdate", + "ReadOutdated", + "ReadSnapshot" +}; +const std::map _read_semantic_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kread_semanticValues, _kread_semanticNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); int _klearn_typeValues[] = { - learn_type::LT_INVALID, learn_type::LT_CACHE, learn_type::LT_APP, learn_type::LT_LOG}; -const char *_klearn_typeNames[] = {"LT_INVALID", "LT_CACHE", "LT_APP", "LT_LOG"}; -const std::map _learn_type_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(4, _klearn_typeValues, _klearn_typeNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _klearner_statusValues[] = {learner_status::LearningInvalid, - learner_status::LearningWithoutPrepare, - learner_status::LearningWithPrepareTransient, - learner_status::LearningWithPrepare, - learner_status::LearningSucceeded, - learner_status::LearningFailed}; -const char *_klearner_statusNames[] = {"LearningInvalid", - "LearningWithoutPrepare", - "LearningWithPrepareTransient", - "LearningWithPrepare", - "LearningSucceeded", - "LearningFailed"}; -const std::map _learner_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(6, _klearner_statusValues, _klearner_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _ksplit_statusValues[] = {split_status::NOT_SPLIT, - split_status::SPLITTING, - split_status::PAUSING, - split_status::PAUSED, - split_status::CANCELING}; -const char *_ksplit_statusNames[] = {"NOT_SPLIT", "SPLITTING", "PAUSING", "PAUSED", "CANCELING"}; -const std::map _split_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(5, _ksplit_statusValues, _ksplit_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kconfig_typeValues[] = {config_type::CT_INVALID, - config_type::CT_ASSIGN_PRIMARY, - config_type::CT_UPGRADE_TO_PRIMARY, - config_type::CT_ADD_SECONDARY, - config_type::CT_UPGRADE_TO_SECONDARY, - config_type::CT_DOWNGRADE_TO_SECONDARY, - config_type::CT_DOWNGRADE_TO_INACTIVE, - config_type::CT_REMOVE, - config_type::CT_ADD_SECONDARY_FOR_LB, - config_type::CT_PRIMARY_FORCE_UPDATE_BALLOT, - config_type::CT_DROP_PARTITION, - config_type::CT_REGISTER_CHILD}; -const char *_kconfig_typeNames[] = {"CT_INVALID", - "CT_ASSIGN_PRIMARY", - "CT_UPGRADE_TO_PRIMARY", - "CT_ADD_SECONDARY", - "CT_UPGRADE_TO_SECONDARY", - "CT_DOWNGRADE_TO_SECONDARY", - "CT_DOWNGRADE_TO_INACTIVE", - "CT_REMOVE", - "CT_ADD_SECONDARY_FOR_LB", - "CT_PRIMARY_FORCE_UPDATE_BALLOT", - "CT_DROP_PARTITION", - "CT_REGISTER_CHILD"}; -const std::map _config_type_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(12, _kconfig_typeValues, _kconfig_typeNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + learn_type::LT_INVALID, + learn_type::LT_CACHE, + learn_type::LT_APP, + learn_type::LT_LOG +}; +const char* _klearn_typeNames[] = { + "LT_INVALID", + "LT_CACHE", + "LT_APP", + "LT_LOG" +}; +const std::map _learn_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _klearn_typeValues, _klearn_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _klearner_statusValues[] = { + learner_status::LearningInvalid, + learner_status::LearningWithoutPrepare, + learner_status::LearningWithPrepareTransient, + learner_status::LearningWithPrepare, + learner_status::LearningSucceeded, + learner_status::LearningFailed +}; +const char* _klearner_statusNames[] = { + "LearningInvalid", + "LearningWithoutPrepare", + "LearningWithPrepareTransient", + "LearningWithPrepare", + "LearningSucceeded", + "LearningFailed" +}; +const std::map _learner_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _klearner_statusValues, _klearner_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _ksplit_statusValues[] = { + split_status::NOT_SPLIT, + split_status::SPLITTING, + split_status::PAUSING, + split_status::PAUSED, + split_status::CANCELING +}; +const char* _ksplit_statusNames[] = { + "NOT_SPLIT", + "SPLITTING", + "PAUSING", + "PAUSED", + "CANCELING" +}; +const std::map _split_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _ksplit_statusValues, _ksplit_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kconfig_typeValues[] = { + config_type::CT_INVALID, + config_type::CT_ASSIGN_PRIMARY, + config_type::CT_UPGRADE_TO_PRIMARY, + config_type::CT_ADD_SECONDARY, + config_type::CT_UPGRADE_TO_SECONDARY, + config_type::CT_DOWNGRADE_TO_SECONDARY, + config_type::CT_DOWNGRADE_TO_INACTIVE, + config_type::CT_REMOVE, + config_type::CT_ADD_SECONDARY_FOR_LB, + config_type::CT_PRIMARY_FORCE_UPDATE_BALLOT, + config_type::CT_DROP_PARTITION, + config_type::CT_REGISTER_CHILD +}; +const char* _kconfig_typeNames[] = { + "CT_INVALID", + "CT_ASSIGN_PRIMARY", + "CT_UPGRADE_TO_PRIMARY", + "CT_ADD_SECONDARY", + "CT_UPGRADE_TO_SECONDARY", + "CT_DOWNGRADE_TO_SECONDARY", + "CT_DOWNGRADE_TO_INACTIVE", + "CT_REMOVE", + "CT_ADD_SECONDARY_FOR_LB", + "CT_PRIMARY_FORCE_UPDATE_BALLOT", + "CT_DROP_PARTITION", + "CT_REGISTER_CHILD" +}; +const std::map _config_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(12, _kconfig_typeValues, _kconfig_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); int _knode_statusValues[] = { - node_status::NS_INVALID, node_status::NS_ALIVE, node_status::NS_UNALIVE}; -const char *_knode_statusNames[] = {"NS_INVALID", "NS_ALIVE", "NS_UNALIVE"}; -const std::map _node_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(3, _knode_statusValues, _knode_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kmeta_function_levelValues[] = {meta_function_level::fl_stopped, - meta_function_level::fl_blind, - meta_function_level::fl_freezed, - meta_function_level::fl_steady, - meta_function_level::fl_lively, - meta_function_level::fl_invalid}; -const char *_kmeta_function_levelNames[] = { - "fl_stopped", "fl_blind", "fl_freezed", "fl_steady", "fl_lively", "fl_invalid"}; -const std::map _meta_function_level_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(6, _kmeta_function_levelValues, _kmeta_function_levelNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kbalancer_request_typeValues[] = {balancer_request_type::move_primary, - balancer_request_type::copy_primary, - balancer_request_type::copy_secondary}; -const char *_kbalancer_request_typeNames[] = {"move_primary", "copy_primary", "copy_secondary"}; -const std::map _balancer_request_type_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(3, _kbalancer_request_typeValues, _kbalancer_request_typeNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kapp_env_operationValues[] = {app_env_operation::APP_ENV_OP_INVALID, - app_env_operation::APP_ENV_OP_SET, - app_env_operation::APP_ENV_OP_DEL, - app_env_operation::APP_ENV_OP_CLEAR}; -const char *_kapp_env_operationNames[] = { - "APP_ENV_OP_INVALID", "APP_ENV_OP_SET", "APP_ENV_OP_DEL", "APP_ENV_OP_CLEAR"}; -const std::map _app_env_operation_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(4, _kapp_env_operationValues, _kapp_env_operationNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kduplication_statusValues[] = {duplication_status::DS_INIT, - duplication_status::DS_START, - duplication_status::DS_PAUSE, - duplication_status::DS_REMOVED}; -const char *_kduplication_statusNames[] = {"DS_INIT", "DS_START", "DS_PAUSE", "DS_REMOVED"}; -const std::map _duplication_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(4, _kduplication_statusValues, _kduplication_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kduplication_fail_modeValues[] = {duplication_fail_mode::FAIL_SLOW, - duplication_fail_mode::FAIL_SKIP, - duplication_fail_mode::FAIL_FAST}; -const char *_kduplication_fail_modeNames[] = {"FAIL_SLOW", "FAIL_SKIP", "FAIL_FAST"}; -const std::map _duplication_fail_mode_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(3, _kduplication_fail_modeValues, _kduplication_fail_modeNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kbulk_load_statusValues[] = {bulk_load_status::BLS_INVALID, - bulk_load_status::BLS_DOWNLOADING, - bulk_load_status::BLS_DOWNLOADED, - bulk_load_status::BLS_INGESTING, - bulk_load_status::BLS_SUCCEED, - bulk_load_status::BLS_FAILED, - bulk_load_status::BLS_PAUSING, - bulk_load_status::BLS_PAUSED, - bulk_load_status::BLS_CANCELED}; -const char *_kbulk_load_statusNames[] = {"BLS_INVALID", - "BLS_DOWNLOADING", - "BLS_DOWNLOADED", - "BLS_INGESTING", - "BLS_SUCCEED", - "BLS_FAILED", - "BLS_PAUSING", - "BLS_PAUSED", - "BLS_CANCELED"}; -const std::map _bulk_load_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(9, _kbulk_load_statusValues, _kbulk_load_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kingestion_statusValues[] = {ingestion_status::IS_INVALID, - ingestion_status::IS_RUNNING, - ingestion_status::IS_SUCCEED, - ingestion_status::IS_FAILED}; -const char *_kingestion_statusNames[] = {"IS_INVALID", "IS_RUNNING", "IS_SUCCEED", "IS_FAILED"}; -const std::map _ingestion_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(4, _kingestion_statusValues, _kingestion_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kbulk_load_control_typeValues[] = {bulk_load_control_type::BLC_PAUSE, - bulk_load_control_type::BLC_RESTART, - bulk_load_control_type::BLC_CANCEL, - bulk_load_control_type::BLC_FORCE_CANCEL}; -const char *_kbulk_load_control_typeNames[] = { - "BLC_PAUSE", "BLC_RESTART", "BLC_CANCEL", "BLC_FORCE_CANCEL"}; -const std::map _bulk_load_control_type_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(4, - _kbulk_load_control_typeValues, - _kbulk_load_control_typeNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _khotkey_typeValues[] = {hotkey_type::READ, hotkey_type::WRITE}; -const char *_khotkey_typeNames[] = {"READ", "WRITE"}; -const std::map _hotkey_type_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(2, _khotkey_typeValues, _khotkey_typeNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kdetect_actionValues[] = {detect_action::START, detect_action::STOP}; -const char *_kdetect_actionNames[] = {"START", "STOP"}; -const std::map _detect_action_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(2, _kdetect_actionValues, _kdetect_actionNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kdisk_migration_statusValues[] = {disk_migration_status::IDLE, - disk_migration_status::MOVING, - disk_migration_status::MOVED, - disk_migration_status::CLOSED}; -const char *_kdisk_migration_statusNames[] = {"IDLE", "MOVING", "MOVED", "CLOSED"}; -const std::map _disk_migration_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(4, _kdisk_migration_statusValues, _kdisk_migration_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -mutation_header::~mutation_header() throw() {} - -void mutation_header::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void mutation_header::__set_ballot(const int64_t val) { this->ballot = val; } - -void mutation_header::__set_decree(const int64_t val) { this->decree = val; } - -void mutation_header::__set_log_offset(const int64_t val) { this->log_offset = val; } - -void mutation_header::__set_last_committed_decree(const int64_t val) -{ - this->last_committed_decree = val; -} - -void mutation_header::__set_timestamp(const int64_t val) { this->timestamp = val; } - -uint32_t mutation_header::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->decree); - this->__isset.decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->log_offset); - this->__isset.log_offset = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->timestamp); - this->__isset.timestamp = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + node_status::NS_INVALID, + node_status::NS_ALIVE, + node_status::NS_UNALIVE +}; +const char* _knode_statusNames[] = { + "NS_INVALID", + "NS_ALIVE", + "NS_UNALIVE" +}; +const std::map _node_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _knode_statusValues, _knode_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kmeta_function_levelValues[] = { + meta_function_level::fl_stopped, + meta_function_level::fl_blind, + meta_function_level::fl_freezed, + meta_function_level::fl_steady, + meta_function_level::fl_lively, + meta_function_level::fl_invalid +}; +const char* _kmeta_function_levelNames[] = { + "fl_stopped", + "fl_blind", + "fl_freezed", + "fl_steady", + "fl_lively", + "fl_invalid" +}; +const std::map _meta_function_level_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _kmeta_function_levelValues, _kmeta_function_levelNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kbalancer_request_typeValues[] = { + balancer_request_type::move_primary, + balancer_request_type::copy_primary, + balancer_request_type::copy_secondary +}; +const char* _kbalancer_request_typeNames[] = { + "move_primary", + "copy_primary", + "copy_secondary" +}; +const std::map _balancer_request_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kbalancer_request_typeValues, _kbalancer_request_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kapp_env_operationValues[] = { + app_env_operation::APP_ENV_OP_INVALID, + app_env_operation::APP_ENV_OP_SET, + app_env_operation::APP_ENV_OP_DEL, + app_env_operation::APP_ENV_OP_CLEAR +}; +const char* _kapp_env_operationNames[] = { + "APP_ENV_OP_INVALID", + "APP_ENV_OP_SET", + "APP_ENV_OP_DEL", + "APP_ENV_OP_CLEAR" +}; +const std::map _app_env_operation_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kapp_env_operationValues, _kapp_env_operationNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kduplication_statusValues[] = { + duplication_status::DS_INIT, + duplication_status::DS_START, + duplication_status::DS_PAUSE, + duplication_status::DS_REMOVED +}; +const char* _kduplication_statusNames[] = { + "DS_INIT", + "DS_START", + "DS_PAUSE", + "DS_REMOVED" +}; +const std::map _duplication_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kduplication_statusValues, _kduplication_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kduplication_fail_modeValues[] = { + duplication_fail_mode::FAIL_SLOW, + duplication_fail_mode::FAIL_SKIP, + duplication_fail_mode::FAIL_FAST +}; +const char* _kduplication_fail_modeNames[] = { + "FAIL_SLOW", + "FAIL_SKIP", + "FAIL_FAST" +}; +const std::map _duplication_fail_mode_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kduplication_fail_modeValues, _kduplication_fail_modeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kbulk_load_statusValues[] = { + bulk_load_status::BLS_INVALID, + bulk_load_status::BLS_DOWNLOADING, + bulk_load_status::BLS_DOWNLOADED, + bulk_load_status::BLS_INGESTING, + bulk_load_status::BLS_SUCCEED, + bulk_load_status::BLS_FAILED, + bulk_load_status::BLS_PAUSING, + bulk_load_status::BLS_PAUSED, + bulk_load_status::BLS_CANCELED +}; +const char* _kbulk_load_statusNames[] = { + "BLS_INVALID", + "BLS_DOWNLOADING", + "BLS_DOWNLOADED", + "BLS_INGESTING", + "BLS_SUCCEED", + "BLS_FAILED", + "BLS_PAUSING", + "BLS_PAUSED", + "BLS_CANCELED" +}; +const std::map _bulk_load_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(9, _kbulk_load_statusValues, _kbulk_load_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kingestion_statusValues[] = { + ingestion_status::IS_INVALID, + ingestion_status::IS_RUNNING, + ingestion_status::IS_SUCCEED, + ingestion_status::IS_FAILED +}; +const char* _kingestion_statusNames[] = { + "IS_INVALID", + "IS_RUNNING", + "IS_SUCCEED", + "IS_FAILED" +}; +const std::map _ingestion_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kingestion_statusValues, _kingestion_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kbulk_load_control_typeValues[] = { + bulk_load_control_type::BLC_PAUSE, + bulk_load_control_type::BLC_RESTART, + bulk_load_control_type::BLC_CANCEL, + bulk_load_control_type::BLC_FORCE_CANCEL +}; +const char* _kbulk_load_control_typeNames[] = { + "BLC_PAUSE", + "BLC_RESTART", + "BLC_CANCEL", + "BLC_FORCE_CANCEL" +}; +const std::map _bulk_load_control_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kbulk_load_control_typeValues, _kbulk_load_control_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _khotkey_typeValues[] = { + hotkey_type::READ, + hotkey_type::WRITE +}; +const char* _khotkey_typeNames[] = { + "READ", + "WRITE" +}; +const std::map _hotkey_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _khotkey_typeValues, _khotkey_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kdetect_actionValues[] = { + detect_action::START, + detect_action::STOP, + detect_action::QUERY +}; +const char* _kdetect_actionNames[] = { + "START", + "STOP", + "QUERY" +}; +const std::map _detect_action_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kdetect_actionValues, _kdetect_actionNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kdisk_migration_statusValues[] = { + disk_migration_status::IDLE, + disk_migration_status::MOVING, + disk_migration_status::MOVED, + disk_migration_status::CLOSED +}; +const char* _kdisk_migration_statusNames[] = { + "IDLE", + "MOVING", + "MOVED", + "CLOSED" +}; +const std::map _disk_migration_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kdisk_migration_statusValues, _kdisk_migration_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + + +mutation_header::~mutation_header() throw() { +} + + +void mutation_header::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +void mutation_header::__set_ballot(const int64_t val) { + this->ballot = val; +} + +void mutation_header::__set_decree(const int64_t val) { + this->decree = val; +} + +void mutation_header::__set_log_offset(const int64_t val) { + this->log_offset = val; +} + +void mutation_header::__set_last_committed_decree(const int64_t val) { + this->last_committed_decree = val; +} + +void mutation_header::__set_timestamp(const int64_t val) { + this->timestamp = val; +} + +uint32_t mutation_header::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->decree); + this->__isset.decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->log_offset); + this->__isset.log_offset = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->timestamp); + this->__isset.timestamp = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t mutation_header::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("mutation_header"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("decree", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->decree); + xfer += oprot->writeFieldEnd(); -uint32_t mutation_header::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("mutation_header"); + xfer += oprot->writeFieldBegin("log_offset", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->log_offset); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->timestamp); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("decree", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->decree); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("log_offset", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->log_offset); - xfer += oprot->writeFieldEnd(); +void swap(mutation_header &a, mutation_header &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.ballot, b.ballot); + swap(a.decree, b.decree); + swap(a.log_offset, b.log_offset); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.timestamp, b.timestamp); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); +mutation_header::mutation_header(const mutation_header& other0) { + pid = other0.pid; + ballot = other0.ballot; + decree = other0.decree; + log_offset = other0.log_offset; + last_committed_decree = other0.last_committed_decree; + timestamp = other0.timestamp; + __isset = other0.__isset; +} +mutation_header::mutation_header( mutation_header&& other1) { + pid = std::move(other1.pid); + ballot = std::move(other1.ballot); + decree = std::move(other1.decree); + log_offset = std::move(other1.log_offset); + last_committed_decree = std::move(other1.last_committed_decree); + timestamp = std::move(other1.timestamp); + __isset = std::move(other1.__isset); +} +mutation_header& mutation_header::operator=(const mutation_header& other2) { + pid = other2.pid; + ballot = other2.ballot; + decree = other2.decree; + log_offset = other2.log_offset; + last_committed_decree = other2.last_committed_decree; + timestamp = other2.timestamp; + __isset = other2.__isset; + return *this; +} +mutation_header& mutation_header::operator=(mutation_header&& other3) { + pid = std::move(other3.pid); + ballot = std::move(other3.ballot); + decree = std::move(other3.decree); + log_offset = std::move(other3.log_offset); + last_committed_decree = std::move(other3.last_committed_decree); + timestamp = std::move(other3.timestamp); + __isset = std::move(other3.__isset); + return *this; +} +void mutation_header::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "mutation_header("; + out << "pid=" << to_string(pid); + out << ", " << "ballot=" << to_string(ballot); + out << ", " << "decree=" << to_string(decree); + out << ", " << "log_offset=" << to_string(log_offset); + out << ", " << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " << "timestamp=" << to_string(timestamp); + out << ")"; +} - xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->timestamp); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(mutation_header &a, mutation_header &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.ballot, b.ballot); - swap(a.decree, b.decree); - swap(a.log_offset, b.log_offset); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.timestamp, b.timestamp); - swap(a.__isset, b.__isset); -} - -mutation_header::mutation_header(const mutation_header &other0) -{ - pid = other0.pid; - ballot = other0.ballot; - decree = other0.decree; - log_offset = other0.log_offset; - last_committed_decree = other0.last_committed_decree; - timestamp = other0.timestamp; - __isset = other0.__isset; -} -mutation_header::mutation_header(mutation_header &&other1) -{ - pid = std::move(other1.pid); - ballot = std::move(other1.ballot); - decree = std::move(other1.decree); - log_offset = std::move(other1.log_offset); - last_committed_decree = std::move(other1.last_committed_decree); - timestamp = std::move(other1.timestamp); - __isset = std::move(other1.__isset); -} -mutation_header &mutation_header::operator=(const mutation_header &other2) -{ - pid = other2.pid; - ballot = other2.ballot; - decree = other2.decree; - log_offset = other2.log_offset; - last_committed_decree = other2.last_committed_decree; - timestamp = other2.timestamp; - __isset = other2.__isset; - return *this; -} -mutation_header &mutation_header::operator=(mutation_header &&other3) -{ - pid = std::move(other3.pid); - ballot = std::move(other3.ballot); - decree = std::move(other3.decree); - log_offset = std::move(other3.log_offset); - last_committed_decree = std::move(other3.last_committed_decree); - timestamp = std::move(other3.timestamp); - __isset = std::move(other3.__isset); - return *this; -} -void mutation_header::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "mutation_header("; - out << "pid=" << to_string(pid); - out << ", " - << "ballot=" << to_string(ballot); - out << ", " - << "decree=" << to_string(decree); - out << ", " - << "log_offset=" << to_string(log_offset); - out << ", " - << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " - << "timestamp=" << to_string(timestamp); - out << ")"; -} - -mutation_update::~mutation_update() throw() {} - -void mutation_update::__set_code(const ::dsn::task_code &val) { this->code = val; } - -void mutation_update::__set_serialization_type(const int32_t val) -{ - this->serialization_type = val; -} - -void mutation_update::__set_data(const ::dsn::blob &val) { this->data = val; } - -void mutation_update::__set_start_time_ns(const int64_t val) -{ - this->start_time_ns = val; - __isset.start_time_ns = true; -} - -uint32_t mutation_update::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->code.read(iprot); - this->__isset.code = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->serialization_type); - this->__isset.serialization_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->data.read(iprot); - this->__isset.data = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->start_time_ns); - this->__isset.start_time_ns = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +mutation_update::~mutation_update() throw() { +} - xfer += iprot->readStructEnd(); - return xfer; +void mutation_update::__set_code(const ::dsn::task_code& val) { + this->code = val; } -uint32_t mutation_update::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("mutation_update"); +void mutation_update::__set_serialization_type(const int32_t val) { + this->serialization_type = val; +} - xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->code.write(oprot); - xfer += oprot->writeFieldEnd(); +void mutation_update::__set_data(const ::dsn::blob& val) { + this->data = val; +} - xfer += oprot->writeFieldBegin("serialization_type", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->serialization_type); - xfer += oprot->writeFieldEnd(); +void mutation_update::__set_start_time_ns(const int64_t val) { + this->start_time_ns = val; +__isset.start_time_ns = true; +} - xfer += oprot->writeFieldBegin("data", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->data.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t mutation_update::read(::apache::thrift::protocol::TProtocol* iprot) { - if (this->__isset.start_time_ns) { - xfer += oprot->writeFieldBegin("start_time_ns", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->start_time_ns); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(mutation_update &a, mutation_update &b) -{ - using ::std::swap; - swap(a.code, b.code); - swap(a.serialization_type, b.serialization_type); - swap(a.data, b.data); - swap(a.start_time_ns, b.start_time_ns); - swap(a.__isset, b.__isset); -} - -mutation_update::mutation_update(const mutation_update &other4) -{ - code = other4.code; - serialization_type = other4.serialization_type; - data = other4.data; - start_time_ns = other4.start_time_ns; - __isset = other4.__isset; -} -mutation_update::mutation_update(mutation_update &&other5) -{ - code = std::move(other5.code); - serialization_type = std::move(other5.serialization_type); - data = std::move(other5.data); - start_time_ns = std::move(other5.start_time_ns); - __isset = std::move(other5.__isset); -} -mutation_update &mutation_update::operator=(const mutation_update &other6) -{ - code = other6.code; - serialization_type = other6.serialization_type; - data = other6.data; - start_time_ns = other6.start_time_ns; - __isset = other6.__isset; - return *this; -} -mutation_update &mutation_update::operator=(mutation_update &&other7) -{ - code = std::move(other7.code); - serialization_type = std::move(other7.serialization_type); - data = std::move(other7.data); - start_time_ns = std::move(other7.start_time_ns); - __isset = std::move(other7.__isset); - return *this; -} -void mutation_update::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "mutation_update("; - out << "code=" << to_string(code); - out << ", " - << "serialization_type=" << to_string(serialization_type); - out << ", " - << "data=" << to_string(data); - out << ", " - << "start_time_ns="; - (__isset.start_time_ns ? (out << to_string(start_time_ns)) : (out << "")); - out << ")"; -} - -mutation_data::~mutation_data() throw() {} - -void mutation_data::__set_header(const mutation_header &val) { this->header = val; } - -void mutation_data::__set_updates(const std::vector &val) { this->updates = val; } - -uint32_t mutation_data::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->header.read(iprot); - this->__isset.header = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->updates.clear(); - uint32_t _size8; - ::apache::thrift::protocol::TType _etype11; - xfer += iprot->readListBegin(_etype11, _size8); - this->updates.resize(_size8); - uint32_t _i12; - for (_i12 = 0; _i12 < _size8; ++_i12) { - xfer += this->updates[_i12].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.updates = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->code.read(iprot); + this->__isset.code = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->serialization_type); + this->__isset.serialization_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->data.read(iprot); + this->__isset.data = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->start_time_ns); + this->__isset.start_time_ns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t mutation_data::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("mutation_data"); +uint32_t mutation_update::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("mutation_update"); - xfer += oprot->writeFieldBegin("header", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->header.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->code.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("updates", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->updates.size())); - std::vector::const_iterator _iter13; - for (_iter13 = this->updates.begin(); _iter13 != this->updates.end(); ++_iter13) { - xfer += (*_iter13).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("serialization_type", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->serialization_type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("data", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->data.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + if (this->__isset.start_time_ns) { + xfer += oprot->writeFieldBegin("start_time_ns", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->start_time_ns); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(mutation_data &a, mutation_data &b) -{ - using ::std::swap; - swap(a.header, b.header); - swap(a.updates, b.updates); - swap(a.__isset, b.__isset); +void swap(mutation_update &a, mutation_update &b) { + using ::std::swap; + swap(a.code, b.code); + swap(a.serialization_type, b.serialization_type); + swap(a.data, b.data); + swap(a.start_time_ns, b.start_time_ns); + swap(a.__isset, b.__isset); } -mutation_data::mutation_data(const mutation_data &other14) -{ - header = other14.header; - updates = other14.updates; - __isset = other14.__isset; +mutation_update::mutation_update(const mutation_update& other4) { + code = other4.code; + serialization_type = other4.serialization_type; + data = other4.data; + start_time_ns = other4.start_time_ns; + __isset = other4.__isset; } -mutation_data::mutation_data(mutation_data &&other15) -{ - header = std::move(other15.header); - updates = std::move(other15.updates); - __isset = std::move(other15.__isset); +mutation_update::mutation_update( mutation_update&& other5) { + code = std::move(other5.code); + serialization_type = std::move(other5.serialization_type); + data = std::move(other5.data); + start_time_ns = std::move(other5.start_time_ns); + __isset = std::move(other5.__isset); } -mutation_data &mutation_data::operator=(const mutation_data &other16) -{ - header = other16.header; - updates = other16.updates; - __isset = other16.__isset; - return *this; +mutation_update& mutation_update::operator=(const mutation_update& other6) { + code = other6.code; + serialization_type = other6.serialization_type; + data = other6.data; + start_time_ns = other6.start_time_ns; + __isset = other6.__isset; + return *this; } -mutation_data &mutation_data::operator=(mutation_data &&other17) -{ - header = std::move(other17.header); - updates = std::move(other17.updates); - __isset = std::move(other17.__isset); - return *this; +mutation_update& mutation_update::operator=(mutation_update&& other7) { + code = std::move(other7.code); + serialization_type = std::move(other7.serialization_type); + data = std::move(other7.data); + start_time_ns = std::move(other7.start_time_ns); + __isset = std::move(other7.__isset); + return *this; } -void mutation_data::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "mutation_data("; - out << "header=" << to_string(header); - out << ", " - << "updates=" << to_string(updates); - out << ")"; +void mutation_update::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "mutation_update("; + out << "code=" << to_string(code); + out << ", " << "serialization_type=" << to_string(serialization_type); + out << ", " << "data=" << to_string(data); + out << ", " << "start_time_ns="; (__isset.start_time_ns ? (out << to_string(start_time_ns)) : (out << "")); + out << ")"; } -replica_configuration::~replica_configuration() throw() {} - -void replica_configuration::__set_pid(const ::dsn::gpid &val) { this->pid = val; } -void replica_configuration::__set_ballot(const int64_t val) { this->ballot = val; } - -void replica_configuration::__set_primary(const ::dsn::rpc_address &val) { this->primary = val; } +mutation_data::~mutation_data() throw() { +} -void replica_configuration::__set_status(const partition_status::type val) { this->status = val; } -void replica_configuration::__set_learner_signature(const int64_t val) -{ - this->learner_signature = val; +void mutation_data::__set_header(const mutation_header& val) { + this->header = val; } -void replica_configuration::__set_pop_all(const bool val) -{ - this->pop_all = val; - __isset.pop_all = true; +void mutation_data::__set_updates(const std::vector & val) { + this->updates = val; } -uint32_t replica_configuration::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t mutation_data::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->primary.read(iprot); - this->__isset.primary = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast18; - xfer += iprot->readI32(ecast18); - this->status = (partition_status::type)ecast18; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->learner_signature); - this->__isset.learner_signature = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->pop_all); - this->__isset.pop_all = true; - } else { - xfer += iprot->skip(ftype); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->header.read(iprot); + this->__isset.header = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->updates.clear(); + uint32_t _size8; + ::apache::thrift::protocol::TType _etype11; + xfer += iprot->readListBegin(_etype11, _size8); + this->updates.resize(_size8); + uint32_t _i12; + for (_i12 = 0; _i12 < _size8; ++_i12) + { + xfer += this->updates[_i12].read(iprot); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.updates = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t replica_configuration::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_configuration"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("primary", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->primary.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); +uint32_t mutation_data::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("mutation_data"); - xfer += oprot->writeFieldBegin("learner_signature", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->learner_signature); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("header", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->header.write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.pop_all) { - xfer += oprot->writeFieldBegin("pop_all", ::apache::thrift::protocol::T_BOOL, 6); - xfer += oprot->writeBool(this->pop_all); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(replica_configuration &a, replica_configuration &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.ballot, b.ballot); - swap(a.primary, b.primary); - swap(a.status, b.status); - swap(a.learner_signature, b.learner_signature); - swap(a.pop_all, b.pop_all); - swap(a.__isset, b.__isset); -} - -replica_configuration::replica_configuration(const replica_configuration &other19) -{ - pid = other19.pid; - ballot = other19.ballot; - primary = other19.primary; - status = other19.status; - learner_signature = other19.learner_signature; - pop_all = other19.pop_all; - __isset = other19.__isset; -} -replica_configuration::replica_configuration(replica_configuration &&other20) -{ - pid = std::move(other20.pid); - ballot = std::move(other20.ballot); - primary = std::move(other20.primary); - status = std::move(other20.status); - learner_signature = std::move(other20.learner_signature); - pop_all = std::move(other20.pop_all); - __isset = std::move(other20.__isset); -} -replica_configuration &replica_configuration::operator=(const replica_configuration &other21) -{ - pid = other21.pid; - ballot = other21.ballot; - primary = other21.primary; - status = other21.status; - learner_signature = other21.learner_signature; - pop_all = other21.pop_all; - __isset = other21.__isset; - return *this; -} -replica_configuration &replica_configuration::operator=(replica_configuration &&other22) -{ - pid = std::move(other22.pid); - ballot = std::move(other22.ballot); - primary = std::move(other22.primary); - status = std::move(other22.status); - learner_signature = std::move(other22.learner_signature); - pop_all = std::move(other22.pop_all); - __isset = std::move(other22.__isset); - return *this; -} -void replica_configuration::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "replica_configuration("; - out << "pid=" << to_string(pid); - out << ", " - << "ballot=" << to_string(ballot); - out << ", " - << "primary=" << to_string(primary); - out << ", " - << "status=" << to_string(status); - out << ", " - << "learner_signature=" << to_string(learner_signature); - out << ", " - << "pop_all="; - (__isset.pop_all ? (out << to_string(pop_all)) : (out << "")); - out << ")"; -} - -prepare_msg::~prepare_msg() throw() {} - -void prepare_msg::__set_config(const replica_configuration &val) { this->config = val; } - -void prepare_msg::__set_mu(const mutation_data &val) { this->mu = val; } - -uint32_t prepare_msg::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->mu.read(iprot); - this->__isset.mu = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeFieldBegin("updates", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->updates.size())); + std::vector ::const_iterator _iter13; + for (_iter13 = this->updates.begin(); _iter13 != this->updates.end(); ++_iter13) + { + xfer += (*_iter13).write(oprot); } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); - - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t prepare_msg::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("prepare_msg"); - - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("mu", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->mu.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; +void swap(mutation_data &a, mutation_data &b) { + using ::std::swap; + swap(a.header, b.header); + swap(a.updates, b.updates); + swap(a.__isset, b.__isset); } -void swap(prepare_msg &a, prepare_msg &b) -{ - using ::std::swap; - swap(a.config, b.config); - swap(a.mu, b.mu); - swap(a.__isset, b.__isset); +mutation_data::mutation_data(const mutation_data& other14) { + header = other14.header; + updates = other14.updates; + __isset = other14.__isset; } - -prepare_msg::prepare_msg(const prepare_msg &other23) -{ - config = other23.config; - mu = other23.mu; - __isset = other23.__isset; +mutation_data::mutation_data( mutation_data&& other15) { + header = std::move(other15.header); + updates = std::move(other15.updates); + __isset = std::move(other15.__isset); +} +mutation_data& mutation_data::operator=(const mutation_data& other16) { + header = other16.header; + updates = other16.updates; + __isset = other16.__isset; + return *this; +} +mutation_data& mutation_data::operator=(mutation_data&& other17) { + header = std::move(other17.header); + updates = std::move(other17.updates); + __isset = std::move(other17.__isset); + return *this; } -prepare_msg::prepare_msg(prepare_msg &&other24) -{ - config = std::move(other24.config); - mu = std::move(other24.mu); - __isset = std::move(other24.__isset); +void mutation_data::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "mutation_data("; + out << "header=" << to_string(header); + out << ", " << "updates=" << to_string(updates); + out << ")"; } -prepare_msg &prepare_msg::operator=(const prepare_msg &other25) -{ - config = other25.config; - mu = other25.mu; - __isset = other25.__isset; - return *this; + + +replica_configuration::~replica_configuration() throw() { } -prepare_msg &prepare_msg::operator=(prepare_msg &&other26) -{ - config = std::move(other26.config); - mu = std::move(other26.mu); - __isset = std::move(other26.__isset); - return *this; + + +void replica_configuration::__set_pid(const ::dsn::gpid& val) { + this->pid = val; } -void prepare_msg::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "prepare_msg("; - out << "config=" << to_string(config); - out << ", " - << "mu=" << to_string(mu); - out << ")"; + +void replica_configuration::__set_ballot(const int64_t val) { + this->ballot = val; } -read_request_header::~read_request_header() throw() {} +void replica_configuration::__set_primary(const ::dsn::rpc_address& val) { + this->primary = val; +} -void read_request_header::__set_pid(const ::dsn::gpid &val) { this->pid = val; } +void replica_configuration::__set_status(const partition_status::type val) { + this->status = val; +} -void read_request_header::__set_code(const ::dsn::task_code &val) { this->code = val; } +void replica_configuration::__set_learner_signature(const int64_t val) { + this->learner_signature = val; +} -void read_request_header::__set_semantic(const read_semantic::type val) { this->semantic = val; } +void replica_configuration::__set_pop_all(const bool val) { + this->pop_all = val; +__isset.pop_all = true; +} -void read_request_header::__set_version_decree(const int64_t val) { this->version_decree = val; } +uint32_t replica_configuration::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t read_request_header::read(::apache::thrift::protocol::TProtocol *iprot) -{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->code.read(iprot); - this->__isset.code = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast27; - xfer += iprot->readI32(ecast27); - this->semantic = (read_semantic::type)ecast27; - this->__isset.semantic = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->version_decree); - this->__isset.version_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->primary.read(iprot); + this->__isset.primary = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast18; + xfer += iprot->readI32(ecast18); + this->status = (partition_status::type)ecast18; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->learner_signature); + this->__isset.learner_signature = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->pop_all); + this->__isset.pop_all = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t replica_configuration::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_configuration"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); - - return xfer; -} + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); -uint32_t read_request_header::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("read_request_header"); + xfer += oprot->writeFieldBegin("primary", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->primary.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->code.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("learner_signature", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->learner_signature); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("semantic", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->semantic); + if (this->__isset.pop_all) { + xfer += oprot->writeFieldBegin("pop_all", ::apache::thrift::protocol::T_BOOL, 6); + xfer += oprot->writeBool(this->pop_all); xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("version_decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->version_decree); - xfer += oprot->writeFieldEnd(); +void swap(replica_configuration &a, replica_configuration &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.ballot, b.ballot); + swap(a.primary, b.primary); + swap(a.status, b.status); + swap(a.learner_signature, b.learner_signature); + swap(a.pop_all, b.pop_all); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(read_request_header &a, read_request_header &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.code, b.code); - swap(a.semantic, b.semantic); - swap(a.version_decree, b.version_decree); - swap(a.__isset, b.__isset); -} - -read_request_header::read_request_header(const read_request_header &other28) -{ - pid = other28.pid; - code = other28.code; - semantic = other28.semantic; - version_decree = other28.version_decree; - __isset = other28.__isset; -} -read_request_header::read_request_header(read_request_header &&other29) -{ - pid = std::move(other29.pid); - code = std::move(other29.code); - semantic = std::move(other29.semantic); - version_decree = std::move(other29.version_decree); - __isset = std::move(other29.__isset); -} -read_request_header &read_request_header::operator=(const read_request_header &other30) -{ - pid = other30.pid; - code = other30.code; - semantic = other30.semantic; - version_decree = other30.version_decree; - __isset = other30.__isset; - return *this; -} -read_request_header &read_request_header::operator=(read_request_header &&other31) -{ - pid = std::move(other31.pid); - code = std::move(other31.code); - semantic = std::move(other31.semantic); - version_decree = std::move(other31.version_decree); - __isset = std::move(other31.__isset); - return *this; -} -void read_request_header::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "read_request_header("; - out << "pid=" << to_string(pid); - out << ", " - << "code=" << to_string(code); - out << ", " - << "semantic=" << to_string(semantic); - out << ", " - << "version_decree=" << to_string(version_decree); - out << ")"; -} - -write_request_header::~write_request_header() throw() {} - -void write_request_header::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void write_request_header::__set_code(const ::dsn::task_code &val) { this->code = val; } - -uint32_t write_request_header::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->code.read(iprot); - this->__isset.code = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +replica_configuration::replica_configuration(const replica_configuration& other19) { + pid = other19.pid; + ballot = other19.ballot; + primary = other19.primary; + status = other19.status; + learner_signature = other19.learner_signature; + pop_all = other19.pop_all; + __isset = other19.__isset; +} +replica_configuration::replica_configuration( replica_configuration&& other20) { + pid = std::move(other20.pid); + ballot = std::move(other20.ballot); + primary = std::move(other20.primary); + status = std::move(other20.status); + learner_signature = std::move(other20.learner_signature); + pop_all = std::move(other20.pop_all); + __isset = std::move(other20.__isset); +} +replica_configuration& replica_configuration::operator=(const replica_configuration& other21) { + pid = other21.pid; + ballot = other21.ballot; + primary = other21.primary; + status = other21.status; + learner_signature = other21.learner_signature; + pop_all = other21.pop_all; + __isset = other21.__isset; + return *this; +} +replica_configuration& replica_configuration::operator=(replica_configuration&& other22) { + pid = std::move(other22.pid); + ballot = std::move(other22.ballot); + primary = std::move(other22.primary); + status = std::move(other22.status); + learner_signature = std::move(other22.learner_signature); + pop_all = std::move(other22.pop_all); + __isset = std::move(other22.__isset); + return *this; +} +void replica_configuration::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "replica_configuration("; + out << "pid=" << to_string(pid); + out << ", " << "ballot=" << to_string(ballot); + out << ", " << "primary=" << to_string(primary); + out << ", " << "status=" << to_string(status); + out << ", " << "learner_signature=" << to_string(learner_signature); + out << ", " << "pop_all="; (__isset.pop_all ? (out << to_string(pop_all)) : (out << "")); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +prepare_msg::~prepare_msg() throw() { +} + + +void prepare_msg::__set_config(const replica_configuration& val) { + this->config = val; } -uint32_t write_request_header::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("write_request_header"); +void prepare_msg::__set_mu(const mutation_data& val) { + this->mu = val; +} - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t prepare_msg::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->code.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(write_request_header &a, write_request_header &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.code, b.code); - swap(a.__isset, b.__isset); -} - -write_request_header::write_request_header(const write_request_header &other32) -{ - pid = other32.pid; - code = other32.code; - __isset = other32.__isset; -} -write_request_header::write_request_header(write_request_header &&other33) -{ - pid = std::move(other33.pid); - code = std::move(other33.code); - __isset = std::move(other33.__isset); -} -write_request_header &write_request_header::operator=(const write_request_header &other34) -{ - pid = other34.pid; - code = other34.code; - __isset = other34.__isset; - return *this; -} -write_request_header &write_request_header::operator=(write_request_header &&other35) -{ - pid = std::move(other35.pid); - code = std::move(other35.code); - __isset = std::move(other35.__isset); - return *this; -} -void write_request_header::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "write_request_header("; - out << "pid=" << to_string(pid); - out << ", " - << "code=" << to_string(code); - out << ")"; -} - -rw_response_header::~rw_response_header() throw() {} - -void rw_response_header::__set_err(const ::dsn::error_code &val) { this->err = val; } - -uint32_t rw_response_header::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->mu.read(iprot); + this->__isset.mu = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t rw_response_header::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("rw_response_header"); +uint32_t prepare_msg::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("prepare_msg"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldBegin("mu", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->mu.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(rw_response_header &a, rw_response_header &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); +void swap(prepare_msg &a, prepare_msg &b) { + using ::std::swap; + swap(a.config, b.config); + swap(a.mu, b.mu); + swap(a.__isset, b.__isset); } -rw_response_header::rw_response_header(const rw_response_header &other36) -{ - err = other36.err; - __isset = other36.__isset; +prepare_msg::prepare_msg(const prepare_msg& other23) { + config = other23.config; + mu = other23.mu; + __isset = other23.__isset; } -rw_response_header::rw_response_header(rw_response_header &&other37) -{ - err = std::move(other37.err); - __isset = std::move(other37.__isset); +prepare_msg::prepare_msg( prepare_msg&& other24) { + config = std::move(other24.config); + mu = std::move(other24.mu); + __isset = std::move(other24.__isset); } -rw_response_header &rw_response_header::operator=(const rw_response_header &other38) -{ - err = other38.err; - __isset = other38.__isset; - return *this; +prepare_msg& prepare_msg::operator=(const prepare_msg& other25) { + config = other25.config; + mu = other25.mu; + __isset = other25.__isset; + return *this; } -rw_response_header &rw_response_header::operator=(rw_response_header &&other39) -{ - err = std::move(other39.err); - __isset = std::move(other39.__isset); - return *this; +prepare_msg& prepare_msg::operator=(prepare_msg&& other26) { + config = std::move(other26.config); + mu = std::move(other26.mu); + __isset = std::move(other26.__isset); + return *this; } -void rw_response_header::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "rw_response_header("; - out << "err=" << to_string(err); - out << ")"; +void prepare_msg::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "prepare_msg("; + out << "config=" << to_string(config); + out << ", " << "mu=" << to_string(mu); + out << ")"; } -prepare_ack::~prepare_ack() throw() {} -void prepare_ack::__set_pid(const ::dsn::gpid &val) { this->pid = val; } +read_request_header::~read_request_header() throw() { +} -void prepare_ack::__set_err(const ::dsn::error_code &val) { this->err = val; } -void prepare_ack::__set_ballot(const int64_t val) { this->ballot = val; } +void read_request_header::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} -void prepare_ack::__set_decree(const int64_t val) { this->decree = val; } +void read_request_header::__set_code(const ::dsn::task_code& val) { + this->code = val; +} -void prepare_ack::__set_last_committed_decree_in_app(const int64_t val) -{ - this->last_committed_decree_in_app = val; +void read_request_header::__set_semantic(const read_semantic::type val) { + this->semantic = val; } -void prepare_ack::__set_last_committed_decree_in_prepare_list(const int64_t val) -{ - this->last_committed_decree_in_prepare_list = val; +void read_request_header::__set_version_decree(const int64_t val) { + this->version_decree = val; } -uint32_t prepare_ack::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t read_request_header::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->decree); - this->__isset.decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_app); - this->__isset.last_committed_decree_in_app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); - this->__isset.last_committed_decree_in_prepare_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->code.read(iprot); + this->__isset.code = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast27; + xfer += iprot->readI32(ecast27); + this->semantic = (read_semantic::type)ecast27; + this->__isset.semantic = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->version_decree); + this->__isset.version_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t prepare_ack::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("prepare_ack"); +uint32_t read_request_header::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("read_request_header"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->code.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("semantic", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->semantic); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->decree); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("version_decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->version_decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin( - "last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->last_committed_decree_in_app); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin( - "last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); - xfer += oprot->writeFieldEnd(); +void swap(read_request_header &a, read_request_header &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.code, b.code); + swap(a.semantic, b.semantic); + swap(a.version_decree, b.version_decree); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(prepare_ack &a, prepare_ack &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.err, b.err); - swap(a.ballot, b.ballot); - swap(a.decree, b.decree); - swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); - swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); - swap(a.__isset, b.__isset); -} - -prepare_ack::prepare_ack(const prepare_ack &other40) -{ - pid = other40.pid; - err = other40.err; - ballot = other40.ballot; - decree = other40.decree; - last_committed_decree_in_app = other40.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other40.last_committed_decree_in_prepare_list; - __isset = other40.__isset; -} -prepare_ack::prepare_ack(prepare_ack &&other41) -{ - pid = std::move(other41.pid); - err = std::move(other41.err); - ballot = std::move(other41.ballot); - decree = std::move(other41.decree); - last_committed_decree_in_app = std::move(other41.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = - std::move(other41.last_committed_decree_in_prepare_list); - __isset = std::move(other41.__isset); -} -prepare_ack &prepare_ack::operator=(const prepare_ack &other42) -{ - pid = other42.pid; - err = other42.err; - ballot = other42.ballot; - decree = other42.decree; - last_committed_decree_in_app = other42.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other42.last_committed_decree_in_prepare_list; - __isset = other42.__isset; - return *this; -} -prepare_ack &prepare_ack::operator=(prepare_ack &&other43) -{ - pid = std::move(other43.pid); - err = std::move(other43.err); - ballot = std::move(other43.ballot); - decree = std::move(other43.decree); - last_committed_decree_in_app = std::move(other43.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = - std::move(other43.last_committed_decree_in_prepare_list); - __isset = std::move(other43.__isset); - return *this; -} -void prepare_ack::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "prepare_ack("; - out << "pid=" << to_string(pid); - out << ", " - << "err=" << to_string(err); - out << ", " - << "ballot=" << to_string(ballot); - out << ", " - << "decree=" << to_string(decree); - out << ", " - << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); - out << ", " - << "last_committed_decree_in_prepare_list=" - << to_string(last_committed_decree_in_prepare_list); - out << ")"; -} - -learn_state::~learn_state() throw() {} - -void learn_state::__set_from_decree_excluded(const int64_t val) -{ - this->from_decree_excluded = val; -} - -void learn_state::__set_to_decree_included(const int64_t val) { this->to_decree_included = val; } - -void learn_state::__set_meta(const ::dsn::blob &val) { this->meta = val; } - -void learn_state::__set_files(const std::vector &val) { this->files = val; } - -void learn_state::__set_learn_start_decree(const int64_t val) -{ - this->learn_start_decree = val; - __isset.learn_start_decree = true; -} - -uint32_t learn_state::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->from_decree_excluded); - this->__isset.from_decree_excluded = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->to_decree_included); - this->__isset.to_decree_included = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->meta.read(iprot); - this->__isset.meta = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->files.clear(); - uint32_t _size44; - ::apache::thrift::protocol::TType _etype47; - xfer += iprot->readListBegin(_etype47, _size44); - this->files.resize(_size44); - uint32_t _i48; - for (_i48 = 0; _i48 < _size44; ++_i48) { - xfer += iprot->readString(this->files[_i48]); - } - xfer += iprot->readListEnd(); - } - this->__isset.files = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->learn_start_decree); - this->__isset.learn_start_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +read_request_header::read_request_header(const read_request_header& other28) { + pid = other28.pid; + code = other28.code; + semantic = other28.semantic; + version_decree = other28.version_decree; + __isset = other28.__isset; +} +read_request_header::read_request_header( read_request_header&& other29) { + pid = std::move(other29.pid); + code = std::move(other29.code); + semantic = std::move(other29.semantic); + version_decree = std::move(other29.version_decree); + __isset = std::move(other29.__isset); +} +read_request_header& read_request_header::operator=(const read_request_header& other30) { + pid = other30.pid; + code = other30.code; + semantic = other30.semantic; + version_decree = other30.version_decree; + __isset = other30.__isset; + return *this; +} +read_request_header& read_request_header::operator=(read_request_header&& other31) { + pid = std::move(other31.pid); + code = std::move(other31.code); + semantic = std::move(other31.semantic); + version_decree = std::move(other31.version_decree); + __isset = std::move(other31.__isset); + return *this; +} +void read_request_header::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "read_request_header("; + out << "pid=" << to_string(pid); + out << ", " << "code=" << to_string(code); + out << ", " << "semantic=" << to_string(semantic); + out << ", " << "version_decree=" << to_string(version_decree); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +write_request_header::~write_request_header() throw() { } -uint32_t learn_state::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("learn_state"); - xfer += oprot->writeFieldBegin("from_decree_excluded", ::apache::thrift::protocol::T_I64, 1); - xfer += oprot->writeI64(this->from_decree_excluded); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("to_decree_included", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->to_decree_included); - xfer += oprot->writeFieldEnd(); +void write_request_header::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} - xfer += oprot->writeFieldBegin("meta", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->meta.write(oprot); - xfer += oprot->writeFieldEnd(); +void write_request_header::__set_code(const ::dsn::task_code& val) { + this->code = val; +} - xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, - static_cast(this->files.size())); - std::vector::const_iterator _iter49; - for (_iter49 = this->files.begin(); _iter49 != this->files.end(); ++_iter49) { - xfer += oprot->writeString((*_iter49)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); +uint32_t write_request_header::read(::apache::thrift::protocol::TProtocol* iprot) { - if (this->__isset.learn_start_decree) { - xfer += oprot->writeFieldBegin("learn_start_decree", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->learn_start_decree); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(learn_state &a, learn_state &b) -{ - using ::std::swap; - swap(a.from_decree_excluded, b.from_decree_excluded); - swap(a.to_decree_included, b.to_decree_included); - swap(a.meta, b.meta); - swap(a.files, b.files); - swap(a.learn_start_decree, b.learn_start_decree); - swap(a.__isset, b.__isset); -} - -learn_state::learn_state(const learn_state &other50) -{ - from_decree_excluded = other50.from_decree_excluded; - to_decree_included = other50.to_decree_included; - meta = other50.meta; - files = other50.files; - learn_start_decree = other50.learn_start_decree; - __isset = other50.__isset; -} -learn_state::learn_state(learn_state &&other51) -{ - from_decree_excluded = std::move(other51.from_decree_excluded); - to_decree_included = std::move(other51.to_decree_included); - meta = std::move(other51.meta); - files = std::move(other51.files); - learn_start_decree = std::move(other51.learn_start_decree); - __isset = std::move(other51.__isset); -} -learn_state &learn_state::operator=(const learn_state &other52) -{ - from_decree_excluded = other52.from_decree_excluded; - to_decree_included = other52.to_decree_included; - meta = other52.meta; - files = other52.files; - learn_start_decree = other52.learn_start_decree; - __isset = other52.__isset; - return *this; -} -learn_state &learn_state::operator=(learn_state &&other53) -{ - from_decree_excluded = std::move(other53.from_decree_excluded); - to_decree_included = std::move(other53.to_decree_included); - meta = std::move(other53.meta); - files = std::move(other53.files); - learn_start_decree = std::move(other53.learn_start_decree); - __isset = std::move(other53.__isset); - return *this; -} -void learn_state::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "learn_state("; - out << "from_decree_excluded=" << to_string(from_decree_excluded); - out << ", " - << "to_decree_included=" << to_string(to_decree_included); - out << ", " - << "meta=" << to_string(meta); - out << ", " - << "files=" << to_string(files); - out << ", " - << "learn_start_decree="; - (__isset.learn_start_decree ? (out << to_string(learn_start_decree)) : (out << "")); - out << ")"; -} - -learn_request::~learn_request() throw() {} - -void learn_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void learn_request::__set_learner(const ::dsn::rpc_address &val) { this->learner = val; } - -void learn_request::__set_signature(const int64_t val) { this->signature = val; } - -void learn_request::__set_last_committed_decree_in_app(const int64_t val) -{ - this->last_committed_decree_in_app = val; -} - -void learn_request::__set_last_committed_decree_in_prepare_list(const int64_t val) -{ - this->last_committed_decree_in_prepare_list = val; -} - -void learn_request::__set_app_specific_learn_request(const ::dsn::blob &val) -{ - this->app_specific_learn_request = val; -} - -void learn_request::__set_max_gced_decree(const int64_t val) -{ - this->max_gced_decree = val; - __isset.max_gced_decree = true; -} - -uint32_t learn_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->learner.read(iprot); - this->__isset.learner = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->signature); - this->__isset.signature = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_app); - this->__isset.last_committed_decree_in_app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); - this->__isset.last_committed_decree_in_prepare_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->app_specific_learn_request.read(iprot); - this->__isset.app_specific_learn_request = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->max_gced_decree); - this->__isset.max_gced_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructEnd(); + xfer += iprot->readStructBegin(fname); - return xfer; -} + using ::apache::thrift::protocol::TProtocolException; -uint32_t learn_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("learn_request"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->code.read(iprot); + this->__isset.code = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldBegin("learner", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->learner.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldBegin("signature", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->signature); - xfer += oprot->writeFieldEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin( - "last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->last_committed_decree_in_app); - xfer += oprot->writeFieldEnd(); +uint32_t write_request_header::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("write_request_header"); - xfer += oprot->writeFieldBegin( - "last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin( - "app_specific_learn_request", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->app_specific_learn_request.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->code.write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.max_gced_decree) { - xfer += oprot->writeFieldBegin("max_gced_decree", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->max_gced_decree); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(learn_request &a, learn_request &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.learner, b.learner); - swap(a.signature, b.signature); - swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); - swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); - swap(a.app_specific_learn_request, b.app_specific_learn_request); - swap(a.max_gced_decree, b.max_gced_decree); - swap(a.__isset, b.__isset); -} - -learn_request::learn_request(const learn_request &other54) -{ - pid = other54.pid; - learner = other54.learner; - signature = other54.signature; - last_committed_decree_in_app = other54.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other54.last_committed_decree_in_prepare_list; - app_specific_learn_request = other54.app_specific_learn_request; - max_gced_decree = other54.max_gced_decree; - __isset = other54.__isset; -} -learn_request::learn_request(learn_request &&other55) -{ - pid = std::move(other55.pid); - learner = std::move(other55.learner); - signature = std::move(other55.signature); - last_committed_decree_in_app = std::move(other55.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = - std::move(other55.last_committed_decree_in_prepare_list); - app_specific_learn_request = std::move(other55.app_specific_learn_request); - max_gced_decree = std::move(other55.max_gced_decree); - __isset = std::move(other55.__isset); -} -learn_request &learn_request::operator=(const learn_request &other56) -{ - pid = other56.pid; - learner = other56.learner; - signature = other56.signature; - last_committed_decree_in_app = other56.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other56.last_committed_decree_in_prepare_list; - app_specific_learn_request = other56.app_specific_learn_request; - max_gced_decree = other56.max_gced_decree; - __isset = other56.__isset; - return *this; -} -learn_request &learn_request::operator=(learn_request &&other57) -{ - pid = std::move(other57.pid); - learner = std::move(other57.learner); - signature = std::move(other57.signature); - last_committed_decree_in_app = std::move(other57.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = - std::move(other57.last_committed_decree_in_prepare_list); - app_specific_learn_request = std::move(other57.app_specific_learn_request); - max_gced_decree = std::move(other57.max_gced_decree); - __isset = std::move(other57.__isset); - return *this; -} -void learn_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "learn_request("; - out << "pid=" << to_string(pid); - out << ", " - << "learner=" << to_string(learner); - out << ", " - << "signature=" << to_string(signature); - out << ", " - << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); - out << ", " - << "last_committed_decree_in_prepare_list=" - << to_string(last_committed_decree_in_prepare_list); - out << ", " - << "app_specific_learn_request=" << to_string(app_specific_learn_request); - out << ", " - << "max_gced_decree="; - (__isset.max_gced_decree ? (out << to_string(max_gced_decree)) : (out << "")); - out << ")"; -} - -learn_response::~learn_response() throw() {} - -void learn_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void learn_response::__set_config(const replica_configuration &val) { this->config = val; } - -void learn_response::__set_last_committed_decree(const int64_t val) -{ - this->last_committed_decree = val; -} - -void learn_response::__set_prepare_start_decree(const int64_t val) -{ - this->prepare_start_decree = val; -} - -void learn_response::__set_type(const learn_type::type val) { this->type = val; } - -void learn_response::__set_state(const learn_state &val) { this->state = val; } - -void learn_response::__set_address(const ::dsn::rpc_address &val) { this->address = val; } - -void learn_response::__set_base_local_dir(const std::string &val) { this->base_local_dir = val; } - -uint32_t learn_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->prepare_start_decree); - this->__isset.prepare_start_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast58; - xfer += iprot->readI32(ecast58); - this->type = (learn_type::type)ecast58; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->state.read(iprot); - this->__isset.state = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->address.read(iprot); - this->__isset.address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->base_local_dir); - this->__isset.base_local_dir = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += iprot->readStructEnd(); +void swap(write_request_header &a, write_request_header &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.code, b.code); + swap(a.__isset, b.__isset); +} - return xfer; +write_request_header::write_request_header(const write_request_header& other32) { + pid = other32.pid; + code = other32.code; + __isset = other32.__isset; +} +write_request_header::write_request_header( write_request_header&& other33) { + pid = std::move(other33.pid); + code = std::move(other33.code); + __isset = std::move(other33.__isset); +} +write_request_header& write_request_header::operator=(const write_request_header& other34) { + pid = other34.pid; + code = other34.code; + __isset = other34.__isset; + return *this; +} +write_request_header& write_request_header::operator=(write_request_header&& other35) { + pid = std::move(other35.pid); + code = std::move(other35.code); + __isset = std::move(other35.__isset); + return *this; +} +void write_request_header::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "write_request_header("; + out << "pid=" << to_string(pid); + out << ", " << "code=" << to_string(code); + out << ")"; } -uint32_t learn_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("learn_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +rw_response_header::~rw_response_header() throw() { +} - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); +void rw_response_header::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - xfer += oprot->writeFieldBegin("prepare_start_decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->prepare_start_decree); - xfer += oprot->writeFieldEnd(); +uint32_t rw_response_header::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("state", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->state.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("address", ::apache::thrift::protocol::T_STRUCT, 7); - xfer += this->address.write(oprot); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("base_local_dir", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->base_local_dir); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(learn_response &a, learn_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.config, b.config); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.prepare_start_decree, b.prepare_start_decree); - swap(a.type, b.type); - swap(a.state, b.state); - swap(a.address, b.address); - swap(a.base_local_dir, b.base_local_dir); - swap(a.__isset, b.__isset); -} - -learn_response::learn_response(const learn_response &other59) -{ - err = other59.err; - config = other59.config; - last_committed_decree = other59.last_committed_decree; - prepare_start_decree = other59.prepare_start_decree; - type = other59.type; - state = other59.state; - address = other59.address; - base_local_dir = other59.base_local_dir; - __isset = other59.__isset; -} -learn_response::learn_response(learn_response &&other60) -{ - err = std::move(other60.err); - config = std::move(other60.config); - last_committed_decree = std::move(other60.last_committed_decree); - prepare_start_decree = std::move(other60.prepare_start_decree); - type = std::move(other60.type); - state = std::move(other60.state); - address = std::move(other60.address); - base_local_dir = std::move(other60.base_local_dir); - __isset = std::move(other60.__isset); -} -learn_response &learn_response::operator=(const learn_response &other61) -{ - err = other61.err; - config = other61.config; - last_committed_decree = other61.last_committed_decree; - prepare_start_decree = other61.prepare_start_decree; - type = other61.type; - state = other61.state; - address = other61.address; - base_local_dir = other61.base_local_dir; - __isset = other61.__isset; - return *this; -} -learn_response &learn_response::operator=(learn_response &&other62) -{ - err = std::move(other62.err); - config = std::move(other62.config); - last_committed_decree = std::move(other62.last_committed_decree); - prepare_start_decree = std::move(other62.prepare_start_decree); - type = std::move(other62.type); - state = std::move(other62.state); - address = std::move(other62.address); - base_local_dir = std::move(other62.base_local_dir); - __isset = std::move(other62.__isset); - return *this; -} -void learn_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "learn_response("; - out << "err=" << to_string(err); - out << ", " - << "config=" << to_string(config); - out << ", " - << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " - << "prepare_start_decree=" << to_string(prepare_start_decree); - out << ", " - << "type=" << to_string(type); - out << ", " - << "state=" << to_string(state); - out << ", " - << "address=" << to_string(address); - out << ", " - << "base_local_dir=" << to_string(base_local_dir); - out << ")"; -} - -learn_notify_response::~learn_notify_response() throw() {} - -void learn_notify_response::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void learn_notify_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void learn_notify_response::__set_signature(const int64_t val) { this->signature = val; } - -uint32_t learn_notify_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->signature); - this->__isset.signature = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t learn_notify_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("learn_notify_response"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t rw_response_header::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("rw_response_header"); - xfer += oprot->writeFieldBegin("signature", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->signature); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(learn_notify_response &a, learn_notify_response &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.err, b.err); - swap(a.signature, b.signature); - swap(a.__isset, b.__isset); +void swap(rw_response_header &a, rw_response_header &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); } -learn_notify_response::learn_notify_response(const learn_notify_response &other63) -{ - pid = other63.pid; - err = other63.err; - signature = other63.signature; - __isset = other63.__isset; +rw_response_header::rw_response_header(const rw_response_header& other36) { + err = other36.err; + __isset = other36.__isset; } -learn_notify_response::learn_notify_response(learn_notify_response &&other64) -{ - pid = std::move(other64.pid); - err = std::move(other64.err); - signature = std::move(other64.signature); - __isset = std::move(other64.__isset); +rw_response_header::rw_response_header( rw_response_header&& other37) { + err = std::move(other37.err); + __isset = std::move(other37.__isset); } -learn_notify_response &learn_notify_response::operator=(const learn_notify_response &other65) -{ - pid = other65.pid; - err = other65.err; - signature = other65.signature; - __isset = other65.__isset; - return *this; +rw_response_header& rw_response_header::operator=(const rw_response_header& other38) { + err = other38.err; + __isset = other38.__isset; + return *this; } -learn_notify_response &learn_notify_response::operator=(learn_notify_response &&other66) -{ - pid = std::move(other66.pid); - err = std::move(other66.err); - signature = std::move(other66.signature); - __isset = std::move(other66.__isset); - return *this; +rw_response_header& rw_response_header::operator=(rw_response_header&& other39) { + err = std::move(other39.err); + __isset = std::move(other39.__isset); + return *this; } -void learn_notify_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "learn_notify_response("; - out << "pid=" << to_string(pid); - out << ", " - << "err=" << to_string(err); - out << ", " - << "signature=" << to_string(signature); - out << ")"; +void rw_response_header::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "rw_response_header("; + out << "err=" << to_string(err); + out << ")"; } -group_check_request::~group_check_request() throw() {} -void group_check_request::__set_app(const ::dsn::app_info &val) { this->app = val; } +prepare_ack::~prepare_ack() throw() { +} -void group_check_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } -void group_check_request::__set_config(const replica_configuration &val) { this->config = val; } +void prepare_ack::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} -void group_check_request::__set_last_committed_decree(const int64_t val) -{ - this->last_committed_decree = val; +void prepare_ack::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void group_check_request::__set_confirmed_decree(const int64_t val) -{ - this->confirmed_decree = val; - __isset.confirmed_decree = true; +void prepare_ack::__set_ballot(const int64_t val) { + this->ballot = val; } -void group_check_request::__set_child_gpid(const ::dsn::gpid &val) -{ - this->child_gpid = val; - __isset.child_gpid = true; +void prepare_ack::__set_decree(const int64_t val) { + this->decree = val; } -void group_check_request::__set_meta_split_status(const split_status::type val) -{ - this->meta_split_status = val; - __isset.meta_split_status = true; +void prepare_ack::__set_last_committed_decree_in_app(const int64_t val) { + this->last_committed_decree_in_app = val; } -uint32_t group_check_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void prepare_ack::__set_last_committed_decree_in_prepare_list(const int64_t val) { + this->last_committed_decree_in_prepare_list = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t prepare_ack::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->app.read(iprot); - this->__isset.app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->confirmed_decree); - this->__isset.confirmed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_gpid.read(iprot); - this->__isset.child_gpid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast67; - xfer += iprot->readI32(ecast67); - this->meta_split_status = (split_status::type)ecast67; - this->__isset.meta_split_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->decree); + this->__isset.decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_app); + this->__isset.last_committed_decree_in_app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); + this->__isset.last_committed_decree_in_prepare_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t prepare_ack::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("prepare_ack"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); -uint32_t group_check_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("group_check_request"); + xfer += oprot->writeFieldBegin("decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->app.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->last_committed_decree_in_app); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); +void swap(prepare_ack &a, prepare_ack &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.err, b.err); + swap(a.ballot, b.ballot); + swap(a.decree, b.decree); + swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); + swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); + swap(a.__isset, b.__isset); +} - if (this->__isset.confirmed_decree) { - xfer += oprot->writeFieldBegin("confirmed_decree", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->confirmed_decree); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.child_gpid) { - xfer += oprot->writeFieldBegin("child_gpid", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->child_gpid.write(oprot); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.meta_split_status) { - xfer += oprot->writeFieldBegin("meta_split_status", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((int32_t)this->meta_split_status); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(group_check_request &a, group_check_request &b) -{ - using ::std::swap; - swap(a.app, b.app); - swap(a.node, b.node); - swap(a.config, b.config); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.confirmed_decree, b.confirmed_decree); - swap(a.child_gpid, b.child_gpid); - swap(a.meta_split_status, b.meta_split_status); - swap(a.__isset, b.__isset); -} - -group_check_request::group_check_request(const group_check_request &other68) -{ - app = other68.app; - node = other68.node; - config = other68.config; - last_committed_decree = other68.last_committed_decree; - confirmed_decree = other68.confirmed_decree; - child_gpid = other68.child_gpid; - meta_split_status = other68.meta_split_status; - __isset = other68.__isset; -} -group_check_request::group_check_request(group_check_request &&other69) -{ - app = std::move(other69.app); - node = std::move(other69.node); - config = std::move(other69.config); - last_committed_decree = std::move(other69.last_committed_decree); - confirmed_decree = std::move(other69.confirmed_decree); - child_gpid = std::move(other69.child_gpid); - meta_split_status = std::move(other69.meta_split_status); - __isset = std::move(other69.__isset); -} -group_check_request &group_check_request::operator=(const group_check_request &other70) -{ - app = other70.app; - node = other70.node; - config = other70.config; - last_committed_decree = other70.last_committed_decree; - confirmed_decree = other70.confirmed_decree; - child_gpid = other70.child_gpid; - meta_split_status = other70.meta_split_status; - __isset = other70.__isset; - return *this; -} -group_check_request &group_check_request::operator=(group_check_request &&other71) -{ - app = std::move(other71.app); - node = std::move(other71.node); - config = std::move(other71.config); - last_committed_decree = std::move(other71.last_committed_decree); - confirmed_decree = std::move(other71.confirmed_decree); - child_gpid = std::move(other71.child_gpid); - meta_split_status = std::move(other71.meta_split_status); - __isset = std::move(other71.__isset); - return *this; -} -void group_check_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "group_check_request("; - out << "app=" << to_string(app); - out << ", " - << "node=" << to_string(node); - out << ", " - << "config=" << to_string(config); - out << ", " - << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " - << "confirmed_decree="; - (__isset.confirmed_decree ? (out << to_string(confirmed_decree)) : (out << "")); - out << ", " - << "child_gpid="; - (__isset.child_gpid ? (out << to_string(child_gpid)) : (out << "")); - out << ", " - << "meta_split_status="; - (__isset.meta_split_status ? (out << to_string(meta_split_status)) : (out << "")); - out << ")"; -} - -group_check_response::~group_check_response() throw() {} - -void group_check_response::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void group_check_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void group_check_response::__set_last_committed_decree_in_app(const int64_t val) -{ - this->last_committed_decree_in_app = val; -} - -void group_check_response::__set_last_committed_decree_in_prepare_list(const int64_t val) -{ - this->last_committed_decree_in_prepare_list = val; -} - -void group_check_response::__set_learner_status_(const learner_status::type val) -{ - this->learner_status_ = val; -} - -void group_check_response::__set_learner_signature(const int64_t val) -{ - this->learner_signature = val; -} - -void group_check_response::__set_node(const ::dsn::rpc_address &val) { this->node = val; } - -uint32_t group_check_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_app); - this->__isset.last_committed_decree_in_app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); - this->__isset.last_committed_decree_in_prepare_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast72; - xfer += iprot->readI32(ecast72); - this->learner_status_ = (learner_status::type)ecast72; - this->__isset.learner_status_ = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->learner_signature); - this->__isset.learner_signature = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +prepare_ack::prepare_ack(const prepare_ack& other40) { + pid = other40.pid; + err = other40.err; + ballot = other40.ballot; + decree = other40.decree; + last_committed_decree_in_app = other40.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other40.last_committed_decree_in_prepare_list; + __isset = other40.__isset; +} +prepare_ack::prepare_ack( prepare_ack&& other41) { + pid = std::move(other41.pid); + err = std::move(other41.err); + ballot = std::move(other41.ballot); + decree = std::move(other41.decree); + last_committed_decree_in_app = std::move(other41.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = std::move(other41.last_committed_decree_in_prepare_list); + __isset = std::move(other41.__isset); +} +prepare_ack& prepare_ack::operator=(const prepare_ack& other42) { + pid = other42.pid; + err = other42.err; + ballot = other42.ballot; + decree = other42.decree; + last_committed_decree_in_app = other42.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other42.last_committed_decree_in_prepare_list; + __isset = other42.__isset; + return *this; +} +prepare_ack& prepare_ack::operator=(prepare_ack&& other43) { + pid = std::move(other43.pid); + err = std::move(other43.err); + ballot = std::move(other43.ballot); + decree = std::move(other43.decree); + last_committed_decree_in_app = std::move(other43.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = std::move(other43.last_committed_decree_in_prepare_list); + __isset = std::move(other43.__isset); + return *this; +} +void prepare_ack::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "prepare_ack("; + out << "pid=" << to_string(pid); + out << ", " << "err=" << to_string(err); + out << ", " << "ballot=" << to_string(ballot); + out << ", " << "decree=" << to_string(decree); + out << ", " << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); + out << ", " << "last_committed_decree_in_prepare_list=" << to_string(last_committed_decree_in_prepare_list); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +learn_state::~learn_state() throw() { } -uint32_t group_check_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("group_check_response"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); +void learn_state::__set_from_decree_excluded(const int64_t val) { + this->from_decree_excluded = val; +} - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +void learn_state::__set_to_decree_included(const int64_t val) { + this->to_decree_included = val; +} - xfer += oprot->writeFieldBegin( - "last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->last_committed_decree_in_app); - xfer += oprot->writeFieldEnd(); +void learn_state::__set_meta(const ::dsn::blob& val) { + this->meta = val; +} - xfer += oprot->writeFieldBegin( - "last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); - xfer += oprot->writeFieldEnd(); +void learn_state::__set_files(const std::vector & val) { + this->files = val; +} - xfer += oprot->writeFieldBegin("learner_status_", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((int32_t)this->learner_status_); - xfer += oprot->writeFieldEnd(); +void learn_state::__set_learn_start_decree(const int64_t val) { + this->learn_start_decree = val; +__isset.learn_start_decree = true; +} - xfer += oprot->writeFieldBegin("learner_signature", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->learner_signature); - xfer += oprot->writeFieldEnd(); +uint32_t learn_state::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 7); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(group_check_response &a, group_check_response &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.err, b.err); - swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); - swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); - swap(a.learner_status_, b.learner_status_); - swap(a.learner_signature, b.learner_signature); - swap(a.node, b.node); - swap(a.__isset, b.__isset); -} - -group_check_response::group_check_response(const group_check_response &other73) -{ - pid = other73.pid; - err = other73.err; - last_committed_decree_in_app = other73.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other73.last_committed_decree_in_prepare_list; - learner_status_ = other73.learner_status_; - learner_signature = other73.learner_signature; - node = other73.node; - __isset = other73.__isset; -} -group_check_response::group_check_response(group_check_response &&other74) -{ - pid = std::move(other74.pid); - err = std::move(other74.err); - last_committed_decree_in_app = std::move(other74.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = - std::move(other74.last_committed_decree_in_prepare_list); - learner_status_ = std::move(other74.learner_status_); - learner_signature = std::move(other74.learner_signature); - node = std::move(other74.node); - __isset = std::move(other74.__isset); -} -group_check_response &group_check_response::operator=(const group_check_response &other75) -{ - pid = other75.pid; - err = other75.err; - last_committed_decree_in_app = other75.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other75.last_committed_decree_in_prepare_list; - learner_status_ = other75.learner_status_; - learner_signature = other75.learner_signature; - node = other75.node; - __isset = other75.__isset; - return *this; -} -group_check_response &group_check_response::operator=(group_check_response &&other76) -{ - pid = std::move(other76.pid); - err = std::move(other76.err); - last_committed_decree_in_app = std::move(other76.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = - std::move(other76.last_committed_decree_in_prepare_list); - learner_status_ = std::move(other76.learner_status_); - learner_signature = std::move(other76.learner_signature); - node = std::move(other76.node); - __isset = std::move(other76.__isset); - return *this; -} -void group_check_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "group_check_response("; - out << "pid=" << to_string(pid); - out << ", " - << "err=" << to_string(err); - out << ", " - << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); - out << ", " - << "last_committed_decree_in_prepare_list=" - << to_string(last_committed_decree_in_prepare_list); - out << ", " - << "learner_status_=" << to_string(learner_status_); - out << ", " - << "learner_signature=" << to_string(learner_signature); - out << ", " - << "node=" << to_string(node); - out << ")"; -} - -node_info::~node_info() throw() {} - -void node_info::__set_status(const node_status::type val) { this->status = val; } - -void node_info::__set_address(const ::dsn::rpc_address &val) { this->address = val; } - -uint32_t node_info::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast77; - xfer += iprot->readI32(ecast77); - this->status = (node_status::type)ecast77; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->address.read(iprot); - this->__isset.address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->from_decree_excluded); + this->__isset.from_decree_excluded = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->to_decree_included); + this->__isset.to_decree_included = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->meta.read(iprot); + this->__isset.meta = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->files.clear(); + uint32_t _size44; + ::apache::thrift::protocol::TType _etype47; + xfer += iprot->readListBegin(_etype47, _size44); + this->files.resize(_size44); + uint32_t _i48; + for (_i48 = 0; _i48 < _size44; ++_i48) + { + xfer += iprot->readString(this->files[_i48]); + } + xfer += iprot->readListEnd(); + } + this->__isset.files = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->learn_start_decree); + this->__isset.learn_start_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t node_info::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("node_info"); +uint32_t learn_state::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("learn_state"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("from_decree_excluded", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->from_decree_excluded); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("address", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->address.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("to_decree_included", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->to_decree_included); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("meta", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->meta.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->files.size())); + std::vector ::const_iterator _iter49; + for (_iter49 = this->files.begin(); _iter49 != this->files.end(); ++_iter49) + { + xfer += oprot->writeString((*_iter49)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + if (this->__isset.learn_start_decree) { + xfer += oprot->writeFieldBegin("learn_start_decree", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->learn_start_decree); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(node_info &a, node_info &b) -{ - using ::std::swap; - swap(a.status, b.status); - swap(a.address, b.address); - swap(a.__isset, b.__isset); +void swap(learn_state &a, learn_state &b) { + using ::std::swap; + swap(a.from_decree_excluded, b.from_decree_excluded); + swap(a.to_decree_included, b.to_decree_included); + swap(a.meta, b.meta); + swap(a.files, b.files); + swap(a.learn_start_decree, b.learn_start_decree); + swap(a.__isset, b.__isset); } -node_info::node_info(const node_info &other78) -{ - status = other78.status; - address = other78.address; - __isset = other78.__isset; +learn_state::learn_state(const learn_state& other50) { + from_decree_excluded = other50.from_decree_excluded; + to_decree_included = other50.to_decree_included; + meta = other50.meta; + files = other50.files; + learn_start_decree = other50.learn_start_decree; + __isset = other50.__isset; } -node_info::node_info(node_info &&other79) -{ - status = std::move(other79.status); - address = std::move(other79.address); - __isset = std::move(other79.__isset); +learn_state::learn_state( learn_state&& other51) { + from_decree_excluded = std::move(other51.from_decree_excluded); + to_decree_included = std::move(other51.to_decree_included); + meta = std::move(other51.meta); + files = std::move(other51.files); + learn_start_decree = std::move(other51.learn_start_decree); + __isset = std::move(other51.__isset); } -node_info &node_info::operator=(const node_info &other80) -{ - status = other80.status; - address = other80.address; - __isset = other80.__isset; - return *this; +learn_state& learn_state::operator=(const learn_state& other52) { + from_decree_excluded = other52.from_decree_excluded; + to_decree_included = other52.to_decree_included; + meta = other52.meta; + files = other52.files; + learn_start_decree = other52.learn_start_decree; + __isset = other52.__isset; + return *this; } -node_info &node_info::operator=(node_info &&other81) -{ - status = std::move(other81.status); - address = std::move(other81.address); - __isset = std::move(other81.__isset); - return *this; +learn_state& learn_state::operator=(learn_state&& other53) { + from_decree_excluded = std::move(other53.from_decree_excluded); + to_decree_included = std::move(other53.to_decree_included); + meta = std::move(other53.meta); + files = std::move(other53.files); + learn_start_decree = std::move(other53.learn_start_decree); + __isset = std::move(other53.__isset); + return *this; } -void node_info::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "node_info("; - out << "status=" << to_string(status); - out << ", " - << "address=" << to_string(address); - out << ")"; +void learn_state::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "learn_state("; + out << "from_decree_excluded=" << to_string(from_decree_excluded); + out << ", " << "to_decree_included=" << to_string(to_decree_included); + out << ", " << "meta=" << to_string(meta); + out << ", " << "files=" << to_string(files); + out << ", " << "learn_start_decree="; (__isset.learn_start_decree ? (out << to_string(learn_start_decree)) : (out << "")); + out << ")"; } -configuration_update_request::~configuration_update_request() throw() {} - -void configuration_update_request::__set_info(const ::dsn::app_info &val) { this->info = val; } -void configuration_update_request::__set_config(const ::dsn::partition_configuration &val) -{ - this->config = val; +learn_request::~learn_request() throw() { } -void configuration_update_request::__set_type(const config_type::type val) { this->type = val; } -void configuration_update_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } - -void configuration_update_request::__set_host_node(const ::dsn::rpc_address &val) -{ - this->host_node = val; +void learn_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; } -void configuration_update_request::__set_meta_split_status(const split_status::type val) -{ - this->meta_split_status = val; - __isset.meta_split_status = true; +void learn_request::__set_learner(const ::dsn::rpc_address& val) { + this->learner = val; } -uint32_t configuration_update_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; +void learn_request::__set_signature(const int64_t val) { + this->signature = val; +} - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->info.read(iprot); - this->__isset.info = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast82; - xfer += iprot->readI32(ecast82); - this->type = (config_type::type)ecast82; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->host_node.read(iprot); - this->__isset.host_node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast83; - xfer += iprot->readI32(ecast83); - this->meta_split_status = (split_status::type)ecast83; - this->__isset.meta_split_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void learn_request::__set_last_committed_decree_in_app(const int64_t val) { + this->last_committed_decree_in_app = val; +} - xfer += iprot->readStructEnd(); +void learn_request::__set_last_committed_decree_in_prepare_list(const int64_t val) { + this->last_committed_decree_in_prepare_list = val; +} - return xfer; +void learn_request::__set_app_specific_learn_request(const ::dsn::blob& val) { + this->app_specific_learn_request = val; } -uint32_t configuration_update_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_update_request"); +void learn_request::__set_max_gced_decree(const int64_t val) { + this->max_gced_decree = val; +__isset.max_gced_decree = true; +} - xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->info.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t learn_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("host_node", ::apache::thrift::protocol::T_STRUCT, 5); - xfer += this->host_node.write(oprot); - xfer += oprot->writeFieldEnd(); - if (this->__isset.meta_split_status) { - xfer += oprot->writeFieldBegin("meta_split_status", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((int32_t)this->meta_split_status); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_update_request &a, configuration_update_request &b) -{ - using ::std::swap; - swap(a.info, b.info); - swap(a.config, b.config); - swap(a.type, b.type); - swap(a.node, b.node); - swap(a.host_node, b.host_node); - swap(a.meta_split_status, b.meta_split_status); - swap(a.__isset, b.__isset); -} - -configuration_update_request::configuration_update_request( - const configuration_update_request &other84) -{ - info = other84.info; - config = other84.config; - type = other84.type; - node = other84.node; - host_node = other84.host_node; - meta_split_status = other84.meta_split_status; - __isset = other84.__isset; -} -configuration_update_request::configuration_update_request(configuration_update_request &&other85) -{ - info = std::move(other85.info); - config = std::move(other85.config); - type = std::move(other85.type); - node = std::move(other85.node); - host_node = std::move(other85.host_node); - meta_split_status = std::move(other85.meta_split_status); - __isset = std::move(other85.__isset); -} -configuration_update_request &configuration_update_request:: -operator=(const configuration_update_request &other86) -{ - info = other86.info; - config = other86.config; - type = other86.type; - node = other86.node; - host_node = other86.host_node; - meta_split_status = other86.meta_split_status; - __isset = other86.__isset; - return *this; -} -configuration_update_request &configuration_update_request:: -operator=(configuration_update_request &&other87) -{ - info = std::move(other87.info); - config = std::move(other87.config); - type = std::move(other87.type); - node = std::move(other87.node); - host_node = std::move(other87.host_node); - meta_split_status = std::move(other87.meta_split_status); - __isset = std::move(other87.__isset); - return *this; -} -void configuration_update_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_update_request("; - out << "info=" << to_string(info); - out << ", " - << "config=" << to_string(config); - out << ", " - << "type=" << to_string(type); - out << ", " - << "node=" << to_string(node); - out << ", " - << "host_node=" << to_string(host_node); - out << ", " - << "meta_split_status="; - (__isset.meta_split_status ? (out << to_string(meta_split_status)) : (out << "")); - out << ")"; -} - -configuration_update_response::~configuration_update_response() throw() {} - -void configuration_update_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void configuration_update_response::__set_config(const ::dsn::partition_configuration &val) -{ - this->config = val; -} - -uint32_t configuration_update_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->learner.read(iprot); + this->__isset.learner = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->signature); + this->__isset.signature = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_app); + this->__isset.last_committed_decree_in_app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); + this->__isset.last_committed_decree_in_prepare_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->app_specific_learn_request.read(iprot); + this->__isset.app_specific_learn_request = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->max_gced_decree); + this->__isset.max_gced_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t learn_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("learn_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("learner", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->learner.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("signature", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->signature); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->last_committed_decree_in_app); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_specific_learn_request", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->app_specific_learn_request.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); - - return xfer; + if (this->__isset.max_gced_decree) { + xfer += oprot->writeFieldBegin("max_gced_decree", ::apache::thrift::protocol::T_I64, 7); + xfer += oprot->writeI64(this->max_gced_decree); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t configuration_update_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_update_response"); +void swap(learn_request &a, learn_request &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.learner, b.learner); + swap(a.signature, b.signature); + swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); + swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); + swap(a.app_specific_learn_request, b.app_specific_learn_request); + swap(a.max_gced_decree, b.max_gced_decree); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +learn_request::learn_request(const learn_request& other54) { + pid = other54.pid; + learner = other54.learner; + signature = other54.signature; + last_committed_decree_in_app = other54.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other54.last_committed_decree_in_prepare_list; + app_specific_learn_request = other54.app_specific_learn_request; + max_gced_decree = other54.max_gced_decree; + __isset = other54.__isset; +} +learn_request::learn_request( learn_request&& other55) { + pid = std::move(other55.pid); + learner = std::move(other55.learner); + signature = std::move(other55.signature); + last_committed_decree_in_app = std::move(other55.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = std::move(other55.last_committed_decree_in_prepare_list); + app_specific_learn_request = std::move(other55.app_specific_learn_request); + max_gced_decree = std::move(other55.max_gced_decree); + __isset = std::move(other55.__isset); +} +learn_request& learn_request::operator=(const learn_request& other56) { + pid = other56.pid; + learner = other56.learner; + signature = other56.signature; + last_committed_decree_in_app = other56.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other56.last_committed_decree_in_prepare_list; + app_specific_learn_request = other56.app_specific_learn_request; + max_gced_decree = other56.max_gced_decree; + __isset = other56.__isset; + return *this; +} +learn_request& learn_request::operator=(learn_request&& other57) { + pid = std::move(other57.pid); + learner = std::move(other57.learner); + signature = std::move(other57.signature); + last_committed_decree_in_app = std::move(other57.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = std::move(other57.last_committed_decree_in_prepare_list); + app_specific_learn_request = std::move(other57.app_specific_learn_request); + max_gced_decree = std::move(other57.max_gced_decree); + __isset = std::move(other57.__isset); + return *this; +} +void learn_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "learn_request("; + out << "pid=" << to_string(pid); + out << ", " << "learner=" << to_string(learner); + out << ", " << "signature=" << to_string(signature); + out << ", " << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); + out << ", " << "last_committed_decree_in_prepare_list=" << to_string(last_committed_decree_in_prepare_list); + out << ", " << "app_specific_learn_request=" << to_string(app_specific_learn_request); + out << ", " << "max_gced_decree="; (__isset.max_gced_decree ? (out << to_string(max_gced_decree)) : (out << "")); + out << ")"; +} - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; +learn_response::~learn_response() throw() { } -void swap(configuration_update_response &a, configuration_update_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.config, b.config); - swap(a.__isset, b.__isset); -} -configuration_update_response::configuration_update_response( - const configuration_update_response &other88) -{ - err = other88.err; - config = other88.config; - __isset = other88.__isset; +void learn_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -configuration_update_response::configuration_update_response( - configuration_update_response &&other89) -{ - err = std::move(other89.err); - config = std::move(other89.config); - __isset = std::move(other89.__isset); + +void learn_response::__set_config(const replica_configuration& val) { + this->config = val; } -configuration_update_response &configuration_update_response:: -operator=(const configuration_update_response &other90) -{ - err = other90.err; - config = other90.config; - __isset = other90.__isset; - return *this; + +void learn_response::__set_last_committed_decree(const int64_t val) { + this->last_committed_decree = val; } -configuration_update_response &configuration_update_response:: -operator=(configuration_update_response &&other91) -{ - err = std::move(other91.err); - config = std::move(other91.config); - __isset = std::move(other91.__isset); - return *this; + +void learn_response::__set_prepare_start_decree(const int64_t val) { + this->prepare_start_decree = val; } -void configuration_update_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_update_response("; - out << "err=" << to_string(err); - out << ", " - << "config=" << to_string(config); - out << ")"; + +void learn_response::__set_type(const learn_type::type val) { + this->type = val; } -replica_server_info::~replica_server_info() throw() {} +void learn_response::__set_state(const learn_state& val) { + this->state = val; +} -void replica_server_info::__set_geo_tags(const std::map &val) -{ - this->geo_tags = val; +void learn_response::__set_address(const ::dsn::rpc_address& val) { + this->address = val; } -void replica_server_info::__set_total_capacity_mb(const int64_t val) -{ - this->total_capacity_mb = val; +void learn_response::__set_base_local_dir(const std::string& val) { + this->base_local_dir = val; } -uint32_t replica_server_info::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t learn_response::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->geo_tags.clear(); - uint32_t _size92; - ::apache::thrift::protocol::TType _ktype93; - ::apache::thrift::protocol::TType _vtype94; - xfer += iprot->readMapBegin(_ktype93, _vtype94, _size92); - uint32_t _i96; - for (_i96 = 0; _i96 < _size92; ++_i96) { - std::string _key97; - xfer += iprot->readString(_key97); - std::string &_val98 = this->geo_tags[_key97]; - xfer += iprot->readString(_val98); - } - xfer += iprot->readMapEnd(); - } - this->__isset.geo_tags = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->total_capacity_mb); - this->__isset.total_capacity_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->prepare_start_decree); + this->__isset.prepare_start_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast58; + xfer += iprot->readI32(ecast58); + this->type = (learn_type::type)ecast58; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->state.read(iprot); + this->__isset.state = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->address.read(iprot); + this->__isset.address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->base_local_dir); + this->__isset.base_local_dir = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t learn_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("learn_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("prepare_start_decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->prepare_start_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("state", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->state.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("address", ::apache::thrift::protocol::T_STRUCT, 7); + xfer += this->address.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("base_local_dir", ::apache::thrift::protocol::T_STRING, 8); + xfer += oprot->writeString(this->base_local_dir); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(learn_response &a, learn_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.config, b.config); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.prepare_start_decree, b.prepare_start_decree); + swap(a.type, b.type); + swap(a.state, b.state); + swap(a.address, b.address); + swap(a.base_local_dir, b.base_local_dir); + swap(a.__isset, b.__isset); +} + +learn_response::learn_response(const learn_response& other59) { + err = other59.err; + config = other59.config; + last_committed_decree = other59.last_committed_decree; + prepare_start_decree = other59.prepare_start_decree; + type = other59.type; + state = other59.state; + address = other59.address; + base_local_dir = other59.base_local_dir; + __isset = other59.__isset; +} +learn_response::learn_response( learn_response&& other60) { + err = std::move(other60.err); + config = std::move(other60.config); + last_committed_decree = std::move(other60.last_committed_decree); + prepare_start_decree = std::move(other60.prepare_start_decree); + type = std::move(other60.type); + state = std::move(other60.state); + address = std::move(other60.address); + base_local_dir = std::move(other60.base_local_dir); + __isset = std::move(other60.__isset); +} +learn_response& learn_response::operator=(const learn_response& other61) { + err = other61.err; + config = other61.config; + last_committed_decree = other61.last_committed_decree; + prepare_start_decree = other61.prepare_start_decree; + type = other61.type; + state = other61.state; + address = other61.address; + base_local_dir = other61.base_local_dir; + __isset = other61.__isset; + return *this; +} +learn_response& learn_response::operator=(learn_response&& other62) { + err = std::move(other62.err); + config = std::move(other62.config); + last_committed_decree = std::move(other62.last_committed_decree); + prepare_start_decree = std::move(other62.prepare_start_decree); + type = std::move(other62.type); + state = std::move(other62.state); + address = std::move(other62.address); + base_local_dir = std::move(other62.base_local_dir); + __isset = std::move(other62.__isset); + return *this; +} +void learn_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "learn_response("; + out << "err=" << to_string(err); + out << ", " << "config=" << to_string(config); + out << ", " << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " << "prepare_start_decree=" << to_string(prepare_start_decree); + out << ", " << "type=" << to_string(type); + out << ", " << "state=" << to_string(state); + out << ", " << "address=" << to_string(address); + out << ", " << "base_local_dir=" << to_string(base_local_dir); + out << ")"; +} + + +learn_notify_response::~learn_notify_response() throw() { +} + + +void learn_notify_response::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +void learn_notify_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void learn_notify_response::__set_signature(const int64_t val) { + this->signature = val; +} + +uint32_t learn_notify_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->signature); + this->__isset.signature = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t replica_server_info::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_server_info"); +uint32_t learn_notify_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("learn_notify_response"); - xfer += oprot->writeFieldBegin("geo_tags", ::apache::thrift::protocol::T_MAP, 1); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, - ::apache::thrift::protocol::T_STRING, - static_cast(this->geo_tags.size())); - std::map::const_iterator _iter99; - for (_iter99 = this->geo_tags.begin(); _iter99 != this->geo_tags.end(); ++_iter99) { - xfer += oprot->writeString(_iter99->first); - xfer += oprot->writeString(_iter99->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("total_capacity_mb", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->total_capacity_mb); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("signature", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->signature); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(replica_server_info &a, replica_server_info &b) -{ - using ::std::swap; - swap(a.geo_tags, b.geo_tags); - swap(a.total_capacity_mb, b.total_capacity_mb); - swap(a.__isset, b.__isset); +void swap(learn_notify_response &a, learn_notify_response &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.err, b.err); + swap(a.signature, b.signature); + swap(a.__isset, b.__isset); } -replica_server_info::replica_server_info(const replica_server_info &other100) -{ - geo_tags = other100.geo_tags; - total_capacity_mb = other100.total_capacity_mb; - __isset = other100.__isset; +learn_notify_response::learn_notify_response(const learn_notify_response& other63) { + pid = other63.pid; + err = other63.err; + signature = other63.signature; + __isset = other63.__isset; } -replica_server_info::replica_server_info(replica_server_info &&other101) -{ - geo_tags = std::move(other101.geo_tags); - total_capacity_mb = std::move(other101.total_capacity_mb); - __isset = std::move(other101.__isset); +learn_notify_response::learn_notify_response( learn_notify_response&& other64) { + pid = std::move(other64.pid); + err = std::move(other64.err); + signature = std::move(other64.signature); + __isset = std::move(other64.__isset); } -replica_server_info &replica_server_info::operator=(const replica_server_info &other102) -{ - geo_tags = other102.geo_tags; - total_capacity_mb = other102.total_capacity_mb; - __isset = other102.__isset; - return *this; +learn_notify_response& learn_notify_response::operator=(const learn_notify_response& other65) { + pid = other65.pid; + err = other65.err; + signature = other65.signature; + __isset = other65.__isset; + return *this; } -replica_server_info &replica_server_info::operator=(replica_server_info &&other103) -{ - geo_tags = std::move(other103.geo_tags); - total_capacity_mb = std::move(other103.total_capacity_mb); - __isset = std::move(other103.__isset); - return *this; +learn_notify_response& learn_notify_response::operator=(learn_notify_response&& other66) { + pid = std::move(other66.pid); + err = std::move(other66.err); + signature = std::move(other66.signature); + __isset = std::move(other66.__isset); + return *this; } -void replica_server_info::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "replica_server_info("; - out << "geo_tags=" << to_string(geo_tags); - out << ", " - << "total_capacity_mb=" << to_string(total_capacity_mb); - out << ")"; +void learn_notify_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "learn_notify_response("; + out << "pid=" << to_string(pid); + out << ", " << "err=" << to_string(err); + out << ", " << "signature=" << to_string(signature); + out << ")"; } -configuration_query_by_node_request::~configuration_query_by_node_request() throw() {} -void configuration_query_by_node_request::__set_node(const ::dsn::rpc_address &val) -{ - this->node = val; +group_check_request::~group_check_request() throw() { } -void configuration_query_by_node_request::__set_stored_replicas( - const std::vector &val) -{ - this->stored_replicas = val; - __isset.stored_replicas = true; -} -void configuration_query_by_node_request::__set_info(const replica_server_info &val) -{ - this->info = val; - __isset.info = true; +void group_check_request::__set_app(const ::dsn::app_info& val) { + this->app = val; } -uint32_t configuration_query_by_node_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; +void group_check_request::__set_node(const ::dsn::rpc_address& val) { + this->node = val; +} - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->stored_replicas.clear(); - uint32_t _size104; - ::apache::thrift::protocol::TType _etype107; - xfer += iprot->readListBegin(_etype107, _size104); - this->stored_replicas.resize(_size104); - uint32_t _i108; - for (_i108 = 0; _i108 < _size104; ++_i108) { - xfer += this->stored_replicas[_i108].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.stored_replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->info.read(iprot); - this->__isset.info = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void group_check_request::__set_config(const replica_configuration& val) { + this->config = val; +} - xfer += iprot->readStructEnd(); +void group_check_request::__set_last_committed_decree(const int64_t val) { + this->last_committed_decree = val; +} - return xfer; +void group_check_request::__set_confirmed_decree(const int64_t val) { + this->confirmed_decree = val; +__isset.confirmed_decree = true; } -uint32_t -configuration_query_by_node_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_by_node_request"); +void group_check_request::__set_child_gpid(const ::dsn::gpid& val) { + this->child_gpid = val; +__isset.child_gpid = true; +} - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); +void group_check_request::__set_meta_split_status(const split_status::type val) { + this->meta_split_status = val; +__isset.meta_split_status = true; +} - if (this->__isset.stored_replicas) { - xfer += oprot->writeFieldBegin("stored_replicas", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->stored_replicas.size())); - std::vector::const_iterator _iter109; - for (_iter109 = this->stored_replicas.begin(); _iter109 != this->stored_replicas.end(); - ++_iter109) { - xfer += (*_iter109).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.info) { - xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->info.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_by_node_request &a, configuration_query_by_node_request &b) -{ - using ::std::swap; - swap(a.node, b.node); - swap(a.stored_replicas, b.stored_replicas); - swap(a.info, b.info); - swap(a.__isset, b.__isset); -} - -configuration_query_by_node_request::configuration_query_by_node_request( - const configuration_query_by_node_request &other110) -{ - node = other110.node; - stored_replicas = other110.stored_replicas; - info = other110.info; - __isset = other110.__isset; -} -configuration_query_by_node_request::configuration_query_by_node_request( - configuration_query_by_node_request &&other111) -{ - node = std::move(other111.node); - stored_replicas = std::move(other111.stored_replicas); - info = std::move(other111.info); - __isset = std::move(other111.__isset); -} -configuration_query_by_node_request &configuration_query_by_node_request:: -operator=(const configuration_query_by_node_request &other112) -{ - node = other112.node; - stored_replicas = other112.stored_replicas; - info = other112.info; - __isset = other112.__isset; - return *this; -} -configuration_query_by_node_request &configuration_query_by_node_request:: -operator=(configuration_query_by_node_request &&other113) -{ - node = std::move(other113.node); - stored_replicas = std::move(other113.stored_replicas); - info = std::move(other113.info); - __isset = std::move(other113.__isset); - return *this; -} -void configuration_query_by_node_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_query_by_node_request("; - out << "node=" << to_string(node); - out << ", " - << "stored_replicas="; - (__isset.stored_replicas ? (out << to_string(stored_replicas)) : (out << "")); - out << ", " - << "info="; - (__isset.info ? (out << to_string(info)) : (out << "")); - out << ")"; -} - -configuration_query_by_node_response::~configuration_query_by_node_response() throw() {} - -void configuration_query_by_node_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; -} - -void configuration_query_by_node_response::__set_partitions( - const std::vector &val) -{ - this->partitions = val; -} - -void configuration_query_by_node_response::__set_gc_replicas(const std::vector &val) -{ - this->gc_replicas = val; - __isset.gc_replicas = true; -} - -uint32_t configuration_query_by_node_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partitions.clear(); - uint32_t _size114; - ::apache::thrift::protocol::TType _etype117; - xfer += iprot->readListBegin(_etype117, _size114); - this->partitions.resize(_size114); - uint32_t _i118; - for (_i118 = 0; _i118 < _size114; ++_i118) { - xfer += this->partitions[_i118].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.partitions = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->gc_replicas.clear(); - uint32_t _size119; - ::apache::thrift::protocol::TType _etype122; - xfer += iprot->readListBegin(_etype122, _size119); - this->gc_replicas.resize(_size119); - uint32_t _i123; - for (_i123 = 0; _i123 < _size119; ++_i123) { - xfer += this->gc_replicas[_i123].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.gc_replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +uint32_t group_check_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - return xfer; -} + xfer += iprot->readStructBegin(fname); -uint32_t -configuration_query_by_node_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_by_node_response"); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->partitions.size())); - std::vector::const_iterator _iter124; - for (_iter124 = this->partitions.begin(); _iter124 != this->partitions.end(); ++_iter124) { - xfer += (*_iter124).write(oprot); - } - xfer += oprot->writeListEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - xfer += oprot->writeFieldEnd(); - - if (this->__isset.gc_replicas) { - xfer += oprot->writeFieldBegin("gc_replicas", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->gc_replicas.size())); - std::vector::const_iterator _iter125; - for (_iter125 = this->gc_replicas.begin(); _iter125 != this->gc_replicas.end(); - ++_iter125) { - xfer += (*_iter125).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_by_node_response &a, configuration_query_by_node_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.partitions, b.partitions); - swap(a.gc_replicas, b.gc_replicas); - swap(a.__isset, b.__isset); -} - -configuration_query_by_node_response::configuration_query_by_node_response( - const configuration_query_by_node_response &other126) -{ - err = other126.err; - partitions = other126.partitions; - gc_replicas = other126.gc_replicas; - __isset = other126.__isset; -} -configuration_query_by_node_response::configuration_query_by_node_response( - configuration_query_by_node_response &&other127) -{ - err = std::move(other127.err); - partitions = std::move(other127.partitions); - gc_replicas = std::move(other127.gc_replicas); - __isset = std::move(other127.__isset); -} -configuration_query_by_node_response &configuration_query_by_node_response:: -operator=(const configuration_query_by_node_response &other128) -{ - err = other128.err; - partitions = other128.partitions; - gc_replicas = other128.gc_replicas; - __isset = other128.__isset; - return *this; -} -configuration_query_by_node_response &configuration_query_by_node_response:: -operator=(configuration_query_by_node_response &&other129) -{ - err = std::move(other129.err); - partitions = std::move(other129.partitions); - gc_replicas = std::move(other129.gc_replicas); - __isset = std::move(other129.__isset); - return *this; -} -void configuration_query_by_node_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_query_by_node_response("; - out << "err=" << to_string(err); - out << ", " - << "partitions=" << to_string(partitions); - out << ", " - << "gc_replicas="; - (__isset.gc_replicas ? (out << to_string(gc_replicas)) : (out << "")); - out << ")"; -} - -create_app_options::~create_app_options() throw() {} - -void create_app_options::__set_partition_count(const int32_t val) { this->partition_count = val; } - -void create_app_options::__set_replica_count(const int32_t val) { this->replica_count = val; } - -void create_app_options::__set_success_if_exist(const bool val) { this->success_if_exist = val; } - -void create_app_options::__set_app_type(const std::string &val) { this->app_type = val; } - -void create_app_options::__set_is_stateful(const bool val) { this->is_stateful = val; } - -void create_app_options::__set_envs(const std::map &val) -{ - this->envs = val; -} - -uint32_t create_app_options::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_count); - this->__isset.partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->replica_count); - this->__isset.replica_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success_if_exist); - this->__isset.success_if_exist = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_type); - this->__isset.app_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_stateful); - this->__isset.is_stateful = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->envs.clear(); - uint32_t _size130; - ::apache::thrift::protocol::TType _ktype131; - ::apache::thrift::protocol::TType _vtype132; - xfer += iprot->readMapBegin(_ktype131, _vtype132, _size130); - uint32_t _i134; - for (_i134 = 0; _i134 < _size130; ++_i134) { - std::string _key135; - xfer += iprot->readString(_key135); - std::string &_val136 = this->envs[_key135]; - xfer += iprot->readString(_val136); - } - xfer += iprot->readMapEnd(); - } - this->__isset.envs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->app.read(iprot); + this->__isset.app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->confirmed_decree); + this->__isset.confirmed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_gpid.read(iprot); + this->__isset.child_gpid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast67; + xfer += iprot->readI32(ecast67); + this->meta_split_status = (split_status::type)ecast67; + this->__isset.meta_split_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t create_app_options::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("create_app_options"); +uint32_t group_check_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("group_check_request"); - xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->partition_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->app.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("replica_count", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->replica_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("success_if_exist", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->success_if_exist); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->app_type); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->is_stateful); + if (this->__isset.confirmed_decree) { + xfer += oprot->writeFieldBegin("confirmed_decree", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->confirmed_decree); xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("envs", ::apache::thrift::protocol::T_MAP, 6); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, - ::apache::thrift::protocol::T_STRING, - static_cast(this->envs.size())); - std::map::const_iterator _iter137; - for (_iter137 = this->envs.begin(); _iter137 != this->envs.end(); ++_iter137) { - xfer += oprot->writeString(_iter137->first); - xfer += oprot->writeString(_iter137->second); - } - xfer += oprot->writeMapEnd(); - } + } + if (this->__isset.child_gpid) { + xfer += oprot->writeFieldBegin("child_gpid", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->child_gpid.write(oprot); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.meta_split_status) { + xfer += oprot->writeFieldBegin("meta_split_status", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32((int32_t)this->meta_split_status); xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(create_app_options &a, create_app_options &b) -{ - using ::std::swap; - swap(a.partition_count, b.partition_count); - swap(a.replica_count, b.replica_count); - swap(a.success_if_exist, b.success_if_exist); - swap(a.app_type, b.app_type); - swap(a.is_stateful, b.is_stateful); - swap(a.envs, b.envs); - swap(a.__isset, b.__isset); -} - -create_app_options::create_app_options(const create_app_options &other138) -{ - partition_count = other138.partition_count; - replica_count = other138.replica_count; - success_if_exist = other138.success_if_exist; - app_type = other138.app_type; - is_stateful = other138.is_stateful; - envs = other138.envs; - __isset = other138.__isset; -} -create_app_options::create_app_options(create_app_options &&other139) -{ - partition_count = std::move(other139.partition_count); - replica_count = std::move(other139.replica_count); - success_if_exist = std::move(other139.success_if_exist); - app_type = std::move(other139.app_type); - is_stateful = std::move(other139.is_stateful); - envs = std::move(other139.envs); - __isset = std::move(other139.__isset); -} -create_app_options &create_app_options::operator=(const create_app_options &other140) -{ - partition_count = other140.partition_count; - replica_count = other140.replica_count; - success_if_exist = other140.success_if_exist; - app_type = other140.app_type; - is_stateful = other140.is_stateful; - envs = other140.envs; - __isset = other140.__isset; - return *this; -} -create_app_options &create_app_options::operator=(create_app_options &&other141) -{ - partition_count = std::move(other141.partition_count); - replica_count = std::move(other141.replica_count); - success_if_exist = std::move(other141.success_if_exist); - app_type = std::move(other141.app_type); - is_stateful = std::move(other141.is_stateful); - envs = std::move(other141.envs); - __isset = std::move(other141.__isset); - return *this; -} -void create_app_options::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "create_app_options("; - out << "partition_count=" << to_string(partition_count); - out << ", " - << "replica_count=" << to_string(replica_count); - out << ", " - << "success_if_exist=" << to_string(success_if_exist); - out << ", " - << "app_type=" << to_string(app_type); - out << ", " - << "is_stateful=" << to_string(is_stateful); - out << ", " - << "envs=" << to_string(envs); - out << ")"; -} - -configuration_create_app_request::~configuration_create_app_request() throw() {} - -void configuration_create_app_request::__set_app_name(const std::string &val) -{ - this->app_name = val; -} - -void configuration_create_app_request::__set_options(const create_app_options &val) -{ - this->options = val; -} - -uint32_t configuration_create_app_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->options.read(iprot); - this->__isset.options = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void swap(group_check_request &a, group_check_request &b) { + using ::std::swap; + swap(a.app, b.app); + swap(a.node, b.node); + swap(a.config, b.config); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.confirmed_decree, b.confirmed_decree); + swap(a.child_gpid, b.child_gpid); + swap(a.meta_split_status, b.meta_split_status); + swap(a.__isset, b.__isset); +} + +group_check_request::group_check_request(const group_check_request& other68) { + app = other68.app; + node = other68.node; + config = other68.config; + last_committed_decree = other68.last_committed_decree; + confirmed_decree = other68.confirmed_decree; + child_gpid = other68.child_gpid; + meta_split_status = other68.meta_split_status; + __isset = other68.__isset; +} +group_check_request::group_check_request( group_check_request&& other69) { + app = std::move(other69.app); + node = std::move(other69.node); + config = std::move(other69.config); + last_committed_decree = std::move(other69.last_committed_decree); + confirmed_decree = std::move(other69.confirmed_decree); + child_gpid = std::move(other69.child_gpid); + meta_split_status = std::move(other69.meta_split_status); + __isset = std::move(other69.__isset); +} +group_check_request& group_check_request::operator=(const group_check_request& other70) { + app = other70.app; + node = other70.node; + config = other70.config; + last_committed_decree = other70.last_committed_decree; + confirmed_decree = other70.confirmed_decree; + child_gpid = other70.child_gpid; + meta_split_status = other70.meta_split_status; + __isset = other70.__isset; + return *this; +} +group_check_request& group_check_request::operator=(group_check_request&& other71) { + app = std::move(other71.app); + node = std::move(other71.node); + config = std::move(other71.config); + last_committed_decree = std::move(other71.last_committed_decree); + confirmed_decree = std::move(other71.confirmed_decree); + child_gpid = std::move(other71.child_gpid); + meta_split_status = std::move(other71.meta_split_status); + __isset = std::move(other71.__isset); + return *this; +} +void group_check_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "group_check_request("; + out << "app=" << to_string(app); + out << ", " << "node=" << to_string(node); + out << ", " << "config=" << to_string(config); + out << ", " << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " << "confirmed_decree="; (__isset.confirmed_decree ? (out << to_string(confirmed_decree)) : (out << "")); + out << ", " << "child_gpid="; (__isset.child_gpid ? (out << to_string(child_gpid)) : (out << "")); + out << ", " << "meta_split_status="; (__isset.meta_split_status ? (out << to_string(meta_split_status)) : (out << "")); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +group_check_response::~group_check_response() throw() { } -uint32_t configuration_create_app_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_create_app_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); +void group_check_response::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} - xfer += oprot->writeFieldBegin("options", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->options.write(oprot); - xfer += oprot->writeFieldEnd(); +void group_check_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_create_app_request &a, configuration_create_app_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.options, b.options); - swap(a.__isset, b.__isset); -} - -configuration_create_app_request::configuration_create_app_request( - const configuration_create_app_request &other142) -{ - app_name = other142.app_name; - options = other142.options; - __isset = other142.__isset; -} -configuration_create_app_request::configuration_create_app_request( - configuration_create_app_request &&other143) -{ - app_name = std::move(other143.app_name); - options = std::move(other143.options); - __isset = std::move(other143.__isset); -} -configuration_create_app_request &configuration_create_app_request:: -operator=(const configuration_create_app_request &other144) -{ - app_name = other144.app_name; - options = other144.options; - __isset = other144.__isset; - return *this; -} -configuration_create_app_request &configuration_create_app_request:: -operator=(configuration_create_app_request &&other145) -{ - app_name = std::move(other145.app_name); - options = std::move(other145.options); - __isset = std::move(other145.__isset); - return *this; -} -void configuration_create_app_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_create_app_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "options=" << to_string(options); - out << ")"; -} - -drop_app_options::~drop_app_options() throw() {} - -void drop_app_options::__set_success_if_not_exist(const bool val) -{ - this->success_if_not_exist = val; -} - -void drop_app_options::__set_reserve_seconds(const int64_t val) -{ - this->reserve_seconds = val; - __isset.reserve_seconds = true; -} - -uint32_t drop_app_options::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success_if_not_exist); - this->__isset.success_if_not_exist = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->reserve_seconds); - this->__isset.reserve_seconds = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void group_check_response::__set_last_committed_decree_in_app(const int64_t val) { + this->last_committed_decree_in_app = val; +} - xfer += iprot->readStructEnd(); +void group_check_response::__set_last_committed_decree_in_prepare_list(const int64_t val) { + this->last_committed_decree_in_prepare_list = val; +} - return xfer; +void group_check_response::__set_learner_status_(const learner_status::type val) { + this->learner_status_ = val; } -uint32_t drop_app_options::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("drop_app_options"); +void group_check_response::__set_learner_signature(const int64_t val) { + this->learner_signature = val; +} - xfer += oprot->writeFieldBegin("success_if_not_exist", ::apache::thrift::protocol::T_BOOL, 1); - xfer += oprot->writeBool(this->success_if_not_exist); - xfer += oprot->writeFieldEnd(); +void group_check_response::__set_node(const ::dsn::rpc_address& val) { + this->node = val; +} - if (this->__isset.reserve_seconds) { - xfer += oprot->writeFieldBegin("reserve_seconds", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->reserve_seconds); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(drop_app_options &a, drop_app_options &b) -{ - using ::std::swap; - swap(a.success_if_not_exist, b.success_if_not_exist); - swap(a.reserve_seconds, b.reserve_seconds); - swap(a.__isset, b.__isset); -} - -drop_app_options::drop_app_options(const drop_app_options &other146) -{ - success_if_not_exist = other146.success_if_not_exist; - reserve_seconds = other146.reserve_seconds; - __isset = other146.__isset; -} -drop_app_options::drop_app_options(drop_app_options &&other147) -{ - success_if_not_exist = std::move(other147.success_if_not_exist); - reserve_seconds = std::move(other147.reserve_seconds); - __isset = std::move(other147.__isset); -} -drop_app_options &drop_app_options::operator=(const drop_app_options &other148) -{ - success_if_not_exist = other148.success_if_not_exist; - reserve_seconds = other148.reserve_seconds; - __isset = other148.__isset; - return *this; -} -drop_app_options &drop_app_options::operator=(drop_app_options &&other149) -{ - success_if_not_exist = std::move(other149.success_if_not_exist); - reserve_seconds = std::move(other149.reserve_seconds); - __isset = std::move(other149.__isset); - return *this; -} -void drop_app_options::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "drop_app_options("; - out << "success_if_not_exist=" << to_string(success_if_not_exist); - out << ", " - << "reserve_seconds="; - (__isset.reserve_seconds ? (out << to_string(reserve_seconds)) : (out << "")); - out << ")"; -} - -configuration_drop_app_request::~configuration_drop_app_request() throw() {} - -void configuration_drop_app_request::__set_app_name(const std::string &val) -{ - this->app_name = val; -} - -void configuration_drop_app_request::__set_options(const drop_app_options &val) -{ - this->options = val; -} - -uint32_t configuration_drop_app_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->options.read(iprot); - this->__isset.options = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +uint32_t group_check_response::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - return xfer; -} + xfer += iprot->readStructBegin(fname); -uint32_t configuration_drop_app_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_drop_app_request"); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("options", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->options.write(oprot); - xfer += oprot->writeFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_app); + this->__isset.last_committed_decree_in_app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); + this->__isset.last_committed_decree_in_prepare_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast72; + xfer += iprot->readI32(ecast72); + this->learner_status_ = (learner_status::type)ecast72; + this->__isset.learner_status_ = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->learner_signature); + this->__isset.learner_signature = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t group_check_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("group_check_response"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->last_committed_decree_in_app); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("learner_status_", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((int32_t)this->learner_status_); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("learner_signature", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->learner_signature); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 7); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_drop_app_request &a, configuration_drop_app_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.options, b.options); - swap(a.__isset, b.__isset); -} - -configuration_drop_app_request::configuration_drop_app_request( - const configuration_drop_app_request &other150) -{ - app_name = other150.app_name; - options = other150.options; - __isset = other150.__isset; -} -configuration_drop_app_request::configuration_drop_app_request( - configuration_drop_app_request &&other151) -{ - app_name = std::move(other151.app_name); - options = std::move(other151.options); - __isset = std::move(other151.__isset); -} -configuration_drop_app_request &configuration_drop_app_request:: -operator=(const configuration_drop_app_request &other152) -{ - app_name = other152.app_name; - options = other152.options; - __isset = other152.__isset; - return *this; -} -configuration_drop_app_request &configuration_drop_app_request:: -operator=(configuration_drop_app_request &&other153) -{ - app_name = std::move(other153.app_name); - options = std::move(other153.options); - __isset = std::move(other153.__isset); - return *this; -} -void configuration_drop_app_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_drop_app_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "options=" << to_string(options); - out << ")"; -} - -configuration_list_apps_request::~configuration_list_apps_request() throw() {} - -void configuration_list_apps_request::__set_status(const ::dsn::app_status::type val) -{ - this->status = val; -} - -uint32_t configuration_list_apps_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast154; - xfer += iprot->readI32(ecast154); - this->status = (::dsn::app_status::type)ecast154; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(group_check_response &a, group_check_response &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.err, b.err); + swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); + swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); + swap(a.learner_status_, b.learner_status_); + swap(a.learner_signature, b.learner_signature); + swap(a.node, b.node); + swap(a.__isset, b.__isset); +} + +group_check_response::group_check_response(const group_check_response& other73) { + pid = other73.pid; + err = other73.err; + last_committed_decree_in_app = other73.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other73.last_committed_decree_in_prepare_list; + learner_status_ = other73.learner_status_; + learner_signature = other73.learner_signature; + node = other73.node; + __isset = other73.__isset; +} +group_check_response::group_check_response( group_check_response&& other74) { + pid = std::move(other74.pid); + err = std::move(other74.err); + last_committed_decree_in_app = std::move(other74.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = std::move(other74.last_committed_decree_in_prepare_list); + learner_status_ = std::move(other74.learner_status_); + learner_signature = std::move(other74.learner_signature); + node = std::move(other74.node); + __isset = std::move(other74.__isset); +} +group_check_response& group_check_response::operator=(const group_check_response& other75) { + pid = other75.pid; + err = other75.err; + last_committed_decree_in_app = other75.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other75.last_committed_decree_in_prepare_list; + learner_status_ = other75.learner_status_; + learner_signature = other75.learner_signature; + node = other75.node; + __isset = other75.__isset; + return *this; +} +group_check_response& group_check_response::operator=(group_check_response&& other76) { + pid = std::move(other76.pid); + err = std::move(other76.err); + last_committed_decree_in_app = std::move(other76.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = std::move(other76.last_committed_decree_in_prepare_list); + learner_status_ = std::move(other76.learner_status_); + learner_signature = std::move(other76.learner_signature); + node = std::move(other76.node); + __isset = std::move(other76.__isset); + return *this; +} +void group_check_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "group_check_response("; + out << "pid=" << to_string(pid); + out << ", " << "err=" << to_string(err); + out << ", " << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); + out << ", " << "last_committed_decree_in_prepare_list=" << to_string(last_committed_decree_in_prepare_list); + out << ", " << "learner_status_=" << to_string(learner_status_); + out << ", " << "learner_signature=" << to_string(learner_signature); + out << ", " << "node=" << to_string(node); + out << ")"; +} + + +node_info::~node_info() throw() { +} + + +void node_info::__set_status(const node_status::type val) { + this->status = val; +} + +void node_info::__set_address(const ::dsn::rpc_address& val) { + this->address = val; +} + +uint32_t node_info::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast77; + xfer += iprot->readI32(ecast77); + this->status = (node_status::type)ecast77; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->address.read(iprot); + this->__isset.address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_list_apps_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_list_apps_request"); +uint32_t node_info::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("node_info"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_list_apps_request &a, configuration_list_apps_request &b) -{ - using ::std::swap; - swap(a.status, b.status); - swap(a.__isset, b.__isset); -} - -configuration_list_apps_request::configuration_list_apps_request( - const configuration_list_apps_request &other155) -{ - status = other155.status; - __isset = other155.__isset; -} -configuration_list_apps_request::configuration_list_apps_request( - configuration_list_apps_request &&other156) -{ - status = std::move(other156.status); - __isset = std::move(other156.__isset); -} -configuration_list_apps_request &configuration_list_apps_request:: -operator=(const configuration_list_apps_request &other157) -{ - status = other157.status; - __isset = other157.__isset; - return *this; -} -configuration_list_apps_request &configuration_list_apps_request:: -operator=(configuration_list_apps_request &&other158) -{ - status = std::move(other158.status); - __isset = std::move(other158.__isset); - return *this; -} -void configuration_list_apps_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_list_apps_request("; - out << "status=" << to_string(status); - out << ")"; -} - -configuration_list_nodes_request::~configuration_list_nodes_request() throw() {} - -void configuration_list_nodes_request::__set_status(const node_status::type val) -{ - this->status = val; -} - -uint32_t configuration_list_nodes_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast159; - xfer += iprot->readI32(ecast159); - this->status = (node_status::type)ecast159; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldBegin("address", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->address.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - return xfer; +void swap(node_info &a, node_info &b) { + using ::std::swap; + swap(a.status, b.status); + swap(a.address, b.address); + swap(a.__isset, b.__isset); } -uint32_t configuration_list_nodes_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_list_nodes_request"); +node_info::node_info(const node_info& other78) { + status = other78.status; + address = other78.address; + __isset = other78.__isset; +} +node_info::node_info( node_info&& other79) { + status = std::move(other79.status); + address = std::move(other79.address); + __isset = std::move(other79.__isset); +} +node_info& node_info::operator=(const node_info& other80) { + status = other80.status; + address = other80.address; + __isset = other80.__isset; + return *this; +} +node_info& node_info::operator=(node_info&& other81) { + status = std::move(other81.status); + address = std::move(other81.address); + __isset = std::move(other81.__isset); + return *this; +} +void node_info::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "node_info("; + out << "status=" << to_string(status); + out << ", " << "address=" << to_string(address); + out << ")"; +} - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; +configuration_update_request::~configuration_update_request() throw() { } -void swap(configuration_list_nodes_request &a, configuration_list_nodes_request &b) -{ - using ::std::swap; - swap(a.status, b.status); - swap(a.__isset, b.__isset); + +void configuration_update_request::__set_info(const ::dsn::app_info& val) { + this->info = val; } -configuration_list_nodes_request::configuration_list_nodes_request( - const configuration_list_nodes_request &other160) -{ - status = other160.status; - __isset = other160.__isset; +void configuration_update_request::__set_config(const ::dsn::partition_configuration& val) { + this->config = val; } -configuration_list_nodes_request::configuration_list_nodes_request( - configuration_list_nodes_request &&other161) -{ - status = std::move(other161.status); - __isset = std::move(other161.__isset); + +void configuration_update_request::__set_type(const config_type::type val) { + this->type = val; } -configuration_list_nodes_request &configuration_list_nodes_request:: -operator=(const configuration_list_nodes_request &other162) -{ - status = other162.status; - __isset = other162.__isset; - return *this; + +void configuration_update_request::__set_node(const ::dsn::rpc_address& val) { + this->node = val; } -configuration_list_nodes_request &configuration_list_nodes_request:: -operator=(configuration_list_nodes_request &&other163) -{ - status = std::move(other163.status); - __isset = std::move(other163.__isset); - return *this; + +void configuration_update_request::__set_host_node(const ::dsn::rpc_address& val) { + this->host_node = val; } -void configuration_list_nodes_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_list_nodes_request("; - out << "status=" << to_string(status); - out << ")"; + +void configuration_update_request::__set_meta_split_status(const split_status::type val) { + this->meta_split_status = val; +__isset.meta_split_status = true; } -configuration_cluster_info_request::~configuration_cluster_info_request() throw() {} +uint32_t configuration_update_request::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t configuration_cluster_info_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->info.read(iprot); + this->__isset.info = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast82; + xfer += iprot->readI32(ecast82); + this->type = (config_type::type)ecast82; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->host_node.read(iprot); + this->__isset.host_node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast83; + xfer += iprot->readI32(ecast83); + this->meta_split_status = (split_status::type)ecast83; + this->__isset.meta_split_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: xfer += iprot->skip(ftype); - xfer += iprot->readFieldEnd(); + break; } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_update_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_update_request"); + + xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->info.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); -uint32_t -configuration_cluster_info_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_cluster_info_request"); + xfer += oprot->writeFieldBegin("host_node", ::apache::thrift::protocol::T_STRUCT, 5); + xfer += this->host_node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + if (this->__isset.meta_split_status) { + xfer += oprot->writeFieldBegin("meta_split_status", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((int32_t)this->meta_split_status); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_cluster_info_request &a, configuration_cluster_info_request &b) -{ - using ::std::swap; - (void)a; - (void)b; +void swap(configuration_update_request &a, configuration_update_request &b) { + using ::std::swap; + swap(a.info, b.info); + swap(a.config, b.config); + swap(a.type, b.type); + swap(a.node, b.node); + swap(a.host_node, b.host_node); + swap(a.meta_split_status, b.meta_split_status); + swap(a.__isset, b.__isset); } -configuration_cluster_info_request::configuration_cluster_info_request( - const configuration_cluster_info_request &other164) -{ - (void)other164; +configuration_update_request::configuration_update_request(const configuration_update_request& other84) { + info = other84.info; + config = other84.config; + type = other84.type; + node = other84.node; + host_node = other84.host_node; + meta_split_status = other84.meta_split_status; + __isset = other84.__isset; } -configuration_cluster_info_request::configuration_cluster_info_request( - configuration_cluster_info_request &&other165) -{ - (void)other165; +configuration_update_request::configuration_update_request( configuration_update_request&& other85) { + info = std::move(other85.info); + config = std::move(other85.config); + type = std::move(other85.type); + node = std::move(other85.node); + host_node = std::move(other85.host_node); + meta_split_status = std::move(other85.meta_split_status); + __isset = std::move(other85.__isset); } -configuration_cluster_info_request &configuration_cluster_info_request:: -operator=(const configuration_cluster_info_request &other166) -{ - (void)other166; - return *this; +configuration_update_request& configuration_update_request::operator=(const configuration_update_request& other86) { + info = other86.info; + config = other86.config; + type = other86.type; + node = other86.node; + host_node = other86.host_node; + meta_split_status = other86.meta_split_status; + __isset = other86.__isset; + return *this; } -configuration_cluster_info_request &configuration_cluster_info_request:: -operator=(configuration_cluster_info_request &&other167) -{ - (void)other167; - return *this; +configuration_update_request& configuration_update_request::operator=(configuration_update_request&& other87) { + info = std::move(other87.info); + config = std::move(other87.config); + type = std::move(other87.type); + node = std::move(other87.node); + host_node = std::move(other87.host_node); + meta_split_status = std::move(other87.meta_split_status); + __isset = std::move(other87.__isset); + return *this; } -void configuration_cluster_info_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_cluster_info_request("; - out << ")"; +void configuration_update_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_update_request("; + out << "info=" << to_string(info); + out << ", " << "config=" << to_string(config); + out << ", " << "type=" << to_string(type); + out << ", " << "node=" << to_string(node); + out << ", " << "host_node=" << to_string(host_node); + out << ", " << "meta_split_status="; (__isset.meta_split_status ? (out << to_string(meta_split_status)) : (out << "")); + out << ")"; } -configuration_recall_app_request::~configuration_recall_app_request() throw() {} - -void configuration_recall_app_request::__set_app_id(const int32_t val) { this->app_id = val; } -void configuration_recall_app_request::__set_new_app_name(const std::string &val) -{ - this->new_app_name = val; +configuration_update_response::~configuration_update_response() throw() { +} + + +void configuration_update_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -uint32_t configuration_recall_app_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void configuration_update_response::__set_config(const ::dsn::partition_configuration& val) { + this->config = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t configuration_update_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->new_app_name); - this->__isset.new_app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_recall_app_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_recall_app_request"); - - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("new_app_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->new_app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_recall_app_request &a, configuration_recall_app_request &b) -{ - using ::std::swap; - swap(a.app_id, b.app_id); - swap(a.new_app_name, b.new_app_name); - swap(a.__isset, b.__isset); -} - -configuration_recall_app_request::configuration_recall_app_request( - const configuration_recall_app_request &other168) -{ - app_id = other168.app_id; - new_app_name = other168.new_app_name; - __isset = other168.__isset; -} -configuration_recall_app_request::configuration_recall_app_request( - configuration_recall_app_request &&other169) -{ - app_id = std::move(other169.app_id); - new_app_name = std::move(other169.new_app_name); - __isset = std::move(other169.__isset); -} -configuration_recall_app_request &configuration_recall_app_request:: -operator=(const configuration_recall_app_request &other170) -{ - app_id = other170.app_id; - new_app_name = other170.new_app_name; - __isset = other170.__isset; - return *this; -} -configuration_recall_app_request &configuration_recall_app_request:: -operator=(configuration_recall_app_request &&other171) -{ - app_id = std::move(other171.app_id); - new_app_name = std::move(other171.new_app_name); - __isset = std::move(other171.__isset); - return *this; -} -void configuration_recall_app_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_recall_app_request("; - out << "app_id=" << to_string(app_id); - out << ", " - << "new_app_name=" << to_string(new_app_name); - out << ")"; -} - -configuration_create_app_response::~configuration_create_app_response() throw() {} - -void configuration_create_app_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void configuration_create_app_response::__set_appid(const int32_t val) { this->appid = val; } - -uint32_t configuration_create_app_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->appid); - this->__isset.appid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); - xfer += iprot->readStructEnd(); - - return xfer; + return xfer; } -uint32_t -configuration_create_app_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_create_app_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->appid); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_update_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_update_response"); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_create_app_response &a, configuration_create_app_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.appid, b.appid); - swap(a.__isset, b.__isset); -} - -configuration_create_app_response::configuration_create_app_response( - const configuration_create_app_response &other172) -{ - err = other172.err; - appid = other172.appid; - __isset = other172.__isset; -} -configuration_create_app_response::configuration_create_app_response( - configuration_create_app_response &&other173) -{ - err = std::move(other173.err); - appid = std::move(other173.appid); - __isset = std::move(other173.__isset); -} -configuration_create_app_response &configuration_create_app_response:: -operator=(const configuration_create_app_response &other174) -{ - err = other174.err; - appid = other174.appid; - __isset = other174.__isset; - return *this; -} -configuration_create_app_response &configuration_create_app_response:: -operator=(configuration_create_app_response &&other175) -{ - err = std::move(other175.err); - appid = std::move(other175.appid); - __isset = std::move(other175.__isset); - return *this; -} -void configuration_create_app_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_create_app_response("; - out << "err=" << to_string(err); - out << ", " - << "appid=" << to_string(appid); - out << ")"; -} - -configuration_meta_control_request::~configuration_meta_control_request() throw() {} - -void configuration_meta_control_request::__set_level(const meta_function_level::type val) -{ - this->level = val; -} - -uint32_t configuration_meta_control_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast176; - xfer += iprot->readI32(ecast176); - this->level = (meta_function_level::type)ecast176; - this->__isset.level = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t -configuration_meta_control_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_meta_control_request"); - - xfer += oprot->writeFieldBegin("level", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->level); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; +void swap(configuration_update_response &a, configuration_update_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.config, b.config); + swap(a.__isset, b.__isset); } -void swap(configuration_meta_control_request &a, configuration_meta_control_request &b) -{ - using ::std::swap; - swap(a.level, b.level); - swap(a.__isset, b.__isset); +configuration_update_response::configuration_update_response(const configuration_update_response& other88) { + err = other88.err; + config = other88.config; + __isset = other88.__isset; } - -configuration_meta_control_request::configuration_meta_control_request( - const configuration_meta_control_request &other177) -{ - level = other177.level; - __isset = other177.__isset; +configuration_update_response::configuration_update_response( configuration_update_response&& other89) { + err = std::move(other89.err); + config = std::move(other89.config); + __isset = std::move(other89.__isset); } -configuration_meta_control_request::configuration_meta_control_request( - configuration_meta_control_request &&other178) -{ - level = std::move(other178.level); - __isset = std::move(other178.__isset); +configuration_update_response& configuration_update_response::operator=(const configuration_update_response& other90) { + err = other90.err; + config = other90.config; + __isset = other90.__isset; + return *this; } -configuration_meta_control_request &configuration_meta_control_request:: -operator=(const configuration_meta_control_request &other179) -{ - level = other179.level; - __isset = other179.__isset; - return *this; +configuration_update_response& configuration_update_response::operator=(configuration_update_response&& other91) { + err = std::move(other91.err); + config = std::move(other91.config); + __isset = std::move(other91.__isset); + return *this; } -configuration_meta_control_request &configuration_meta_control_request:: -operator=(configuration_meta_control_request &&other180) -{ - level = std::move(other180.level); - __isset = std::move(other180.__isset); - return *this; +void configuration_update_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_update_response("; + out << "err=" << to_string(err); + out << ", " << "config=" << to_string(config); + out << ")"; } -void configuration_meta_control_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_meta_control_request("; - out << "level=" << to_string(level); - out << ")"; + + +replica_server_info::~replica_server_info() throw() { } -configuration_meta_control_response::~configuration_meta_control_response() throw() {} -void configuration_meta_control_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; +void replica_server_info::__set_geo_tags(const std::map & val) { + this->geo_tags = val; } -void configuration_meta_control_response::__set_old_level(const meta_function_level::type val) -{ - this->old_level = val; +void replica_server_info::__set_total_capacity_mb(const int64_t val) { + this->total_capacity_mb = val; } -uint32_t configuration_meta_control_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t replica_server_info::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast181; - xfer += iprot->readI32(ecast181); - this->old_level = (meta_function_level::type)ecast181; - this->__isset.old_level = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->geo_tags.clear(); + uint32_t _size92; + ::apache::thrift::protocol::TType _ktype93; + ::apache::thrift::protocol::TType _vtype94; + xfer += iprot->readMapBegin(_ktype93, _vtype94, _size92); + uint32_t _i96; + for (_i96 = 0; _i96 < _size92; ++_i96) + { + std::string _key97; + xfer += iprot->readString(_key97); + std::string& _val98 = this->geo_tags[_key97]; + xfer += iprot->readString(_val98); + } + xfer += iprot->readMapEnd(); + } + this->__isset.geo_tags = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->total_capacity_mb); + this->__isset.total_capacity_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_meta_control_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_meta_control_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("old_level", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->old_level); - xfer += oprot->writeFieldEnd(); +uint32_t replica_server_info::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_server_info"); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_meta_control_response &a, configuration_meta_control_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.old_level, b.old_level); - swap(a.__isset, b.__isset); -} - -configuration_meta_control_response::configuration_meta_control_response( - const configuration_meta_control_response &other182) -{ - err = other182.err; - old_level = other182.old_level; - __isset = other182.__isset; -} -configuration_meta_control_response::configuration_meta_control_response( - configuration_meta_control_response &&other183) -{ - err = std::move(other183.err); - old_level = std::move(other183.old_level); - __isset = std::move(other183.__isset); -} -configuration_meta_control_response &configuration_meta_control_response:: -operator=(const configuration_meta_control_response &other184) -{ - err = other184.err; - old_level = other184.old_level; - __isset = other184.__isset; - return *this; -} -configuration_meta_control_response &configuration_meta_control_response:: -operator=(configuration_meta_control_response &&other185) -{ - err = std::move(other185.err); - old_level = std::move(other185.old_level); - __isset = std::move(other185.__isset); - return *this; -} -void configuration_meta_control_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_meta_control_response("; - out << "err=" << to_string(err); - out << ", " - << "old_level=" << to_string(old_level); - out << ")"; -} - -configuration_proposal_action::~configuration_proposal_action() throw() {} - -void configuration_proposal_action::__set_target(const ::dsn::rpc_address &val) -{ - this->target = val; -} - -void configuration_proposal_action::__set_node(const ::dsn::rpc_address &val) { this->node = val; } - -void configuration_proposal_action::__set_type(const config_type::type val) { this->type = val; } - -uint32_t configuration_proposal_action::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->target.read(iprot); - this->__isset.target = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast186; - xfer += iprot->readI32(ecast186); - this->type = (config_type::type)ecast186; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeFieldBegin("geo_tags", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->geo_tags.size())); + std::map ::const_iterator _iter99; + for (_iter99 = this->geo_tags.begin(); _iter99 != this->geo_tags.end(); ++_iter99) + { + xfer += oprot->writeString(_iter99->first); + xfer += oprot->writeString(_iter99->second); } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("total_capacity_mb", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->total_capacity_mb); + xfer += oprot->writeFieldEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t configuration_proposal_action::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_proposal_action"); - - xfer += oprot->writeFieldBegin("target", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->target.write(oprot); - xfer += oprot->writeFieldEnd(); +void swap(replica_server_info &a, replica_server_info &b) { + using ::std::swap; + swap(a.geo_tags, b.geo_tags); + swap(a.total_capacity_mb, b.total_capacity_mb); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); +replica_server_info::replica_server_info(const replica_server_info& other100) { + geo_tags = other100.geo_tags; + total_capacity_mb = other100.total_capacity_mb; + __isset = other100.__isset; +} +replica_server_info::replica_server_info( replica_server_info&& other101) { + geo_tags = std::move(other101.geo_tags); + total_capacity_mb = std::move(other101.total_capacity_mb); + __isset = std::move(other101.__isset); +} +replica_server_info& replica_server_info::operator=(const replica_server_info& other102) { + geo_tags = other102.geo_tags; + total_capacity_mb = other102.total_capacity_mb; + __isset = other102.__isset; + return *this; +} +replica_server_info& replica_server_info::operator=(replica_server_info&& other103) { + geo_tags = std::move(other103.geo_tags); + total_capacity_mb = std::move(other103.total_capacity_mb); + __isset = std::move(other103.__isset); + return *this; +} +void replica_server_info::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "replica_server_info("; + out << "geo_tags=" << to_string(geo_tags); + out << ", " << "total_capacity_mb=" << to_string(total_capacity_mb); + out << ")"; +} - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_proposal_action &a, configuration_proposal_action &b) -{ - using ::std::swap; - swap(a.target, b.target); - swap(a.node, b.node); - swap(a.type, b.type); - swap(a.__isset, b.__isset); -} - -configuration_proposal_action::configuration_proposal_action( - const configuration_proposal_action &other187) -{ - target = other187.target; - node = other187.node; - type = other187.type; - __isset = other187.__isset; -} -configuration_proposal_action::configuration_proposal_action( - configuration_proposal_action &&other188) -{ - target = std::move(other188.target); - node = std::move(other188.node); - type = std::move(other188.type); - __isset = std::move(other188.__isset); -} -configuration_proposal_action &configuration_proposal_action:: -operator=(const configuration_proposal_action &other189) -{ - target = other189.target; - node = other189.node; - type = other189.type; - __isset = other189.__isset; - return *this; -} -configuration_proposal_action &configuration_proposal_action:: -operator=(configuration_proposal_action &&other190) -{ - target = std::move(other190.target); - node = std::move(other190.node); - type = std::move(other190.type); - __isset = std::move(other190.__isset); - return *this; -} -void configuration_proposal_action::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_proposal_action("; - out << "target=" << to_string(target); - out << ", " - << "node=" << to_string(node); - out << ", " - << "type=" << to_string(type); - out << ")"; -} - -configuration_balancer_request::~configuration_balancer_request() throw() {} - -void configuration_balancer_request::__set_gpid(const ::dsn::gpid &val) { this->gpid = val; } - -void configuration_balancer_request::__set_action_list( - const std::vector &val) -{ - this->action_list = val; -} - -void configuration_balancer_request::__set_force(const bool val) -{ - this->force = val; - __isset.force = true; -} - -void configuration_balancer_request::__set_balance_type(const balancer_request_type::type val) -{ - this->balance_type = val; - __isset.balance_type = true; -} - -uint32_t configuration_balancer_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->gpid.read(iprot); - this->__isset.gpid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->action_list.clear(); - uint32_t _size191; - ::apache::thrift::protocol::TType _etype194; - xfer += iprot->readListBegin(_etype194, _size191); - this->action_list.resize(_size191); - uint32_t _i195; - for (_i195 = 0; _i195 < _size191; ++_i195) { - xfer += this->action_list[_i195].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.action_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->force); - this->__isset.force = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast196; - xfer += iprot->readI32(ecast196); - this->balance_type = (balancer_request_type::type)ecast196; - this->__isset.balance_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +configuration_query_by_node_request::~configuration_query_by_node_request() throw() { +} - xfer += iprot->readStructEnd(); - return xfer; +void configuration_query_by_node_request::__set_node(const ::dsn::rpc_address& val) { + this->node = val; } -uint32_t configuration_balancer_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_balancer_request"); - - xfer += oprot->writeFieldBegin("gpid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->gpid.write(oprot); - xfer += oprot->writeFieldEnd(); +void configuration_query_by_node_request::__set_stored_replicas(const std::vector & val) { + this->stored_replicas = val; +__isset.stored_replicas = true; +} - xfer += oprot->writeFieldBegin("action_list", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->action_list.size())); - std::vector::const_iterator _iter197; - for (_iter197 = this->action_list.begin(); _iter197 != this->action_list.end(); - ++_iter197) { - xfer += (*_iter197).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); +void configuration_query_by_node_request::__set_info(const replica_server_info& val) { + this->info = val; +__isset.info = true; +} - if (this->__isset.force) { - xfer += oprot->writeFieldBegin("force", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->force); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.balance_type) { - xfer += oprot->writeFieldBegin("balance_type", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->balance_type); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_balancer_request &a, configuration_balancer_request &b) -{ - using ::std::swap; - swap(a.gpid, b.gpid); - swap(a.action_list, b.action_list); - swap(a.force, b.force); - swap(a.balance_type, b.balance_type); - swap(a.__isset, b.__isset); -} - -configuration_balancer_request::configuration_balancer_request( - const configuration_balancer_request &other198) -{ - gpid = other198.gpid; - action_list = other198.action_list; - force = other198.force; - balance_type = other198.balance_type; - __isset = other198.__isset; -} -configuration_balancer_request::configuration_balancer_request( - configuration_balancer_request &&other199) -{ - gpid = std::move(other199.gpid); - action_list = std::move(other199.action_list); - force = std::move(other199.force); - balance_type = std::move(other199.balance_type); - __isset = std::move(other199.__isset); -} -configuration_balancer_request &configuration_balancer_request:: -operator=(const configuration_balancer_request &other200) -{ - gpid = other200.gpid; - action_list = other200.action_list; - force = other200.force; - balance_type = other200.balance_type; - __isset = other200.__isset; - return *this; -} -configuration_balancer_request &configuration_balancer_request:: -operator=(configuration_balancer_request &&other201) -{ - gpid = std::move(other201.gpid); - action_list = std::move(other201.action_list); - force = std::move(other201.force); - balance_type = std::move(other201.balance_type); - __isset = std::move(other201.__isset); - return *this; -} -void configuration_balancer_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_balancer_request("; - out << "gpid=" << to_string(gpid); - out << ", " - << "action_list=" << to_string(action_list); - out << ", " - << "force="; - (__isset.force ? (out << to_string(force)) : (out << "")); - out << ", " - << "balance_type="; - (__isset.balance_type ? (out << to_string(balance_type)) : (out << "")); - out << ")"; -} - -configuration_balancer_response::~configuration_balancer_response() throw() {} - -void configuration_balancer_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -uint32_t configuration_balancer_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +uint32_t configuration_query_by_node_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - return xfer; -} + xfer += iprot->readStructBegin(fname); -uint32_t configuration_balancer_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_balancer_response"); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_balancer_response &a, configuration_balancer_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); -} - -configuration_balancer_response::configuration_balancer_response( - const configuration_balancer_response &other202) -{ - err = other202.err; - __isset = other202.__isset; -} -configuration_balancer_response::configuration_balancer_response( - configuration_balancer_response &&other203) -{ - err = std::move(other203.err); - __isset = std::move(other203.__isset); -} -configuration_balancer_response &configuration_balancer_response:: -operator=(const configuration_balancer_response &other204) -{ - err = other204.err; - __isset = other204.__isset; - return *this; -} -configuration_balancer_response &configuration_balancer_response:: -operator=(configuration_balancer_response &&other205) -{ - err = std::move(other205.err); - __isset = std::move(other205.__isset); - return *this; -} -void configuration_balancer_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_balancer_response("; - out << "err=" << to_string(err); - out << ")"; -} - -configuration_drop_app_response::~configuration_drop_app_response() throw() {} - -void configuration_drop_app_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -uint32_t configuration_drop_app_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->stored_replicas.clear(); + uint32_t _size104; + ::apache::thrift::protocol::TType _etype107; + xfer += iprot->readListBegin(_etype107, _size104); + this->stored_replicas.resize(_size104); + uint32_t _i108; + for (_i108 = 0; _i108 < _size104; ++_i108) + { + xfer += this->stored_replicas[_i108].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.stored_replicas = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->info.read(iprot); + this->__isset.info = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_drop_app_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_drop_app_response"); +uint32_t configuration_query_by_node_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_by_node_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + if (this->__isset.stored_replicas) { + xfer += oprot->writeFieldBegin("stored_replicas", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->stored_replicas.size())); + std::vector ::const_iterator _iter109; + for (_iter109 = this->stored_replicas.begin(); _iter109 != this->stored_replicas.end(); ++_iter109) + { + xfer += (*_iter109).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.info) { + xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->info.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_drop_app_response &a, configuration_drop_app_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); +void swap(configuration_query_by_node_request &a, configuration_query_by_node_request &b) { + using ::std::swap; + swap(a.node, b.node); + swap(a.stored_replicas, b.stored_replicas); + swap(a.info, b.info); + swap(a.__isset, b.__isset); } -configuration_drop_app_response::configuration_drop_app_response( - const configuration_drop_app_response &other206) -{ - err = other206.err; - __isset = other206.__isset; +configuration_query_by_node_request::configuration_query_by_node_request(const configuration_query_by_node_request& other110) { + node = other110.node; + stored_replicas = other110.stored_replicas; + info = other110.info; + __isset = other110.__isset; } -configuration_drop_app_response::configuration_drop_app_response( - configuration_drop_app_response &&other207) -{ - err = std::move(other207.err); - __isset = std::move(other207.__isset); +configuration_query_by_node_request::configuration_query_by_node_request( configuration_query_by_node_request&& other111) { + node = std::move(other111.node); + stored_replicas = std::move(other111.stored_replicas); + info = std::move(other111.info); + __isset = std::move(other111.__isset); } -configuration_drop_app_response &configuration_drop_app_response:: -operator=(const configuration_drop_app_response &other208) -{ - err = other208.err; - __isset = other208.__isset; - return *this; +configuration_query_by_node_request& configuration_query_by_node_request::operator=(const configuration_query_by_node_request& other112) { + node = other112.node; + stored_replicas = other112.stored_replicas; + info = other112.info; + __isset = other112.__isset; + return *this; } -configuration_drop_app_response &configuration_drop_app_response:: -operator=(configuration_drop_app_response &&other209) -{ - err = std::move(other209.err); - __isset = std::move(other209.__isset); - return *this; +configuration_query_by_node_request& configuration_query_by_node_request::operator=(configuration_query_by_node_request&& other113) { + node = std::move(other113.node); + stored_replicas = std::move(other113.stored_replicas); + info = std::move(other113.info); + __isset = std::move(other113.__isset); + return *this; } -void configuration_drop_app_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_drop_app_response("; - out << "err=" << to_string(err); - out << ")"; +void configuration_query_by_node_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_query_by_node_request("; + out << "node=" << to_string(node); + out << ", " << "stored_replicas="; (__isset.stored_replicas ? (out << to_string(stored_replicas)) : (out << "")); + out << ", " << "info="; (__isset.info ? (out << to_string(info)) : (out << "")); + out << ")"; } -configuration_list_apps_response::~configuration_list_apps_response() throw() {} - -void configuration_list_apps_response::__set_err(const ::dsn::error_code &val) { this->err = val; } -void configuration_list_apps_response::__set_infos(const std::vector<::dsn::app_info> &val) -{ - this->infos = val; +configuration_query_by_node_response::~configuration_query_by_node_response() throw() { } -uint32_t configuration_list_apps_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +void configuration_query_by_node_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - xfer += iprot->readStructBegin(fname); +void configuration_query_by_node_response::__set_partitions(const std::vector & val) { + this->partitions = val; +} - using ::apache::thrift::protocol::TProtocolException; +void configuration_query_by_node_response::__set_gc_replicas(const std::vector & val) { + this->gc_replicas = val; +__isset.gc_replicas = true; +} - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->infos.clear(); - uint32_t _size210; - ::apache::thrift::protocol::TType _etype213; - xfer += iprot->readListBegin(_etype213, _size210); - this->infos.resize(_size210); - uint32_t _i214; - for (_i214 = 0; _i214 < _size210; ++_i214) { - xfer += this->infos[_i214].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.infos = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +uint32_t configuration_query_by_node_response::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - return xfer; -} + xfer += iprot->readStructBegin(fname); -uint32_t configuration_list_apps_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_list_apps_response"); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("infos", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->infos.size())); - std::vector<::dsn::app_info>::const_iterator _iter215; - for (_iter215 = this->infos.begin(); _iter215 != this->infos.end(); ++_iter215) { - xfer += (*_iter215).write(oprot); - } - xfer += oprot->writeListEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_list_apps_response &a, configuration_list_apps_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.infos, b.infos); - swap(a.__isset, b.__isset); -} - -configuration_list_apps_response::configuration_list_apps_response( - const configuration_list_apps_response &other216) -{ - err = other216.err; - infos = other216.infos; - __isset = other216.__isset; -} -configuration_list_apps_response::configuration_list_apps_response( - configuration_list_apps_response &&other217) -{ - err = std::move(other217.err); - infos = std::move(other217.infos); - __isset = std::move(other217.__isset); -} -configuration_list_apps_response &configuration_list_apps_response:: -operator=(const configuration_list_apps_response &other218) -{ - err = other218.err; - infos = other218.infos; - __isset = other218.__isset; - return *this; -} -configuration_list_apps_response &configuration_list_apps_response:: -operator=(configuration_list_apps_response &&other219) -{ - err = std::move(other219.err); - infos = std::move(other219.infos); - __isset = std::move(other219.__isset); - return *this; -} -void configuration_list_apps_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_list_apps_response("; - out << "err=" << to_string(err); - out << ", " - << "infos=" << to_string(infos); - out << ")"; -} - -configuration_list_nodes_response::~configuration_list_nodes_response() throw() {} - -void configuration_list_nodes_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void configuration_list_nodes_response::__set_infos(const std::vector &val) -{ - this->infos = val; -} - -uint32_t configuration_list_nodes_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->infos.clear(); - uint32_t _size220; - ::apache::thrift::protocol::TType _etype223; - xfer += iprot->readListBegin(_etype223, _size220); - this->infos.resize(_size220); - uint32_t _i224; - for (_i224 = 0; _i224 < _size220; ++_i224) { - xfer += this->infos[_i224].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.infos = true; - } else { - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions.clear(); + uint32_t _size114; + ::apache::thrift::protocol::TType _etype117; + xfer += iprot->readListBegin(_etype117, _size114); + this->partitions.resize(_size114); + uint32_t _i118; + for (_i118 = 0; _i118 < _size114; ++_i118) + { + xfer += this->partitions[_i118].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->gc_replicas.clear(); + uint32_t _size119; + ::apache::thrift::protocol::TType _etype122; + xfer += iprot->readListBegin(_etype122, _size119); + this->gc_replicas.resize(_size119); + uint32_t _i123; + for (_i123 = 0; _i123 < _size119; ++_i123) + { + xfer += this->gc_replicas[_i123].read(iprot); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.gc_replicas = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_list_nodes_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_list_nodes_response"); +uint32_t configuration_query_by_node_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_by_node_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("infos", ::apache::thrift::protocol::T_LIST, 2); + xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); + std::vector ::const_iterator _iter124; + for (_iter124 = this->partitions.begin(); _iter124 != this->partitions.end(); ++_iter124) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->infos.size())); - std::vector::const_iterator _iter225; - for (_iter225 = this->infos.begin(); _iter225 != this->infos.end(); ++_iter225) { - xfer += (*_iter225).write(oprot); - } - xfer += oprot->writeListEnd(); + xfer += (*_iter124).write(oprot); } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_list_nodes_response &a, configuration_list_nodes_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.infos, b.infos); - swap(a.__isset, b.__isset); -} - -configuration_list_nodes_response::configuration_list_nodes_response( - const configuration_list_nodes_response &other226) -{ - err = other226.err; - infos = other226.infos; - __isset = other226.__isset; -} -configuration_list_nodes_response::configuration_list_nodes_response( - configuration_list_nodes_response &&other227) -{ - err = std::move(other227.err); - infos = std::move(other227.infos); - __isset = std::move(other227.__isset); -} -configuration_list_nodes_response &configuration_list_nodes_response:: -operator=(const configuration_list_nodes_response &other228) -{ - err = other228.err; - infos = other228.infos; - __isset = other228.__isset; - return *this; -} -configuration_list_nodes_response &configuration_list_nodes_response:: -operator=(configuration_list_nodes_response &&other229) -{ - err = std::move(other229.err); - infos = std::move(other229.infos); - __isset = std::move(other229.__isset); - return *this; -} -void configuration_list_nodes_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_list_nodes_response("; - out << "err=" << to_string(err); - out << ", " - << "infos=" << to_string(infos); - out << ")"; -} - -configuration_cluster_info_response::~configuration_cluster_info_response() throw() {} - -void configuration_cluster_info_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; -} - -void configuration_cluster_info_response::__set_keys(const std::vector &val) -{ - this->keys = val; -} - -void configuration_cluster_info_response::__set_values(const std::vector &val) -{ - this->values = val; -} - -uint32_t configuration_cluster_info_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->keys.clear(); - uint32_t _size230; - ::apache::thrift::protocol::TType _etype233; - xfer += iprot->readListBegin(_etype233, _size230); - this->keys.resize(_size230); - uint32_t _i234; - for (_i234 = 0; _i234 < _size230; ++_i234) { - xfer += iprot->readString(this->keys[_i234]); - } - xfer += iprot->readListEnd(); - } - this->__isset.keys = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->values.clear(); - uint32_t _size235; - ::apache::thrift::protocol::TType _etype238; - xfer += iprot->readListBegin(_etype238, _size235); - this->values.resize(_size235); - uint32_t _i239; - for (_i239 = 0; _i239 < _size235; ++_i239) { - xfer += iprot->readString(this->values[_i239]); - } - xfer += iprot->readListEnd(); - } - this->__isset.values = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + if (this->__isset.gc_replicas) { + xfer += oprot->writeFieldBegin("gc_replicas", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->gc_replicas.size())); + std::vector ::const_iterator _iter125; + for (_iter125 = this->gc_replicas.begin(); _iter125 != this->gc_replicas.end(); ++_iter125) + { + xfer += (*_iter125).write(oprot); + } + xfer += oprot->writeListEnd(); } + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += iprot->readStructEnd(); +void swap(configuration_query_by_node_response &a, configuration_query_by_node_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.partitions, b.partitions); + swap(a.gc_replicas, b.gc_replicas); + swap(a.__isset, b.__isset); +} - return xfer; +configuration_query_by_node_response::configuration_query_by_node_response(const configuration_query_by_node_response& other126) { + err = other126.err; + partitions = other126.partitions; + gc_replicas = other126.gc_replicas; + __isset = other126.__isset; +} +configuration_query_by_node_response::configuration_query_by_node_response( configuration_query_by_node_response&& other127) { + err = std::move(other127.err); + partitions = std::move(other127.partitions); + gc_replicas = std::move(other127.gc_replicas); + __isset = std::move(other127.__isset); +} +configuration_query_by_node_response& configuration_query_by_node_response::operator=(const configuration_query_by_node_response& other128) { + err = other128.err; + partitions = other128.partitions; + gc_replicas = other128.gc_replicas; + __isset = other128.__isset; + return *this; +} +configuration_query_by_node_response& configuration_query_by_node_response::operator=(configuration_query_by_node_response&& other129) { + err = std::move(other129.err); + partitions = std::move(other129.partitions); + gc_replicas = std::move(other129.gc_replicas); + __isset = std::move(other129.__isset); + return *this; +} +void configuration_query_by_node_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_query_by_node_response("; + out << "err=" << to_string(err); + out << ", " << "partitions=" << to_string(partitions); + out << ", " << "gc_replicas="; (__isset.gc_replicas ? (out << to_string(gc_replicas)) : (out << "")); + out << ")"; } -uint32_t -configuration_cluster_info_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_cluster_info_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +create_app_options::~create_app_options() throw() { +} - xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, - static_cast(this->keys.size())); - std::vector::const_iterator _iter240; - for (_iter240 = this->keys.begin(); _iter240 != this->keys.end(); ++_iter240) { - xfer += oprot->writeString((*_iter240)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, - static_cast(this->values.size())); - std::vector::const_iterator _iter241; - for (_iter241 = this->values.begin(); _iter241 != this->values.end(); ++_iter241) { - xfer += oprot->writeString((*_iter241)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); +void create_app_options::__set_partition_count(const int32_t val) { + this->partition_count = val; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_cluster_info_response &a, configuration_cluster_info_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.keys, b.keys); - swap(a.values, b.values); - swap(a.__isset, b.__isset); -} - -configuration_cluster_info_response::configuration_cluster_info_response( - const configuration_cluster_info_response &other242) -{ - err = other242.err; - keys = other242.keys; - values = other242.values; - __isset = other242.__isset; -} -configuration_cluster_info_response::configuration_cluster_info_response( - configuration_cluster_info_response &&other243) -{ - err = std::move(other243.err); - keys = std::move(other243.keys); - values = std::move(other243.values); - __isset = std::move(other243.__isset); -} -configuration_cluster_info_response &configuration_cluster_info_response:: -operator=(const configuration_cluster_info_response &other244) -{ - err = other244.err; - keys = other244.keys; - values = other244.values; - __isset = other244.__isset; - return *this; -} -configuration_cluster_info_response &configuration_cluster_info_response:: -operator=(configuration_cluster_info_response &&other245) -{ - err = std::move(other245.err); - keys = std::move(other245.keys); - values = std::move(other245.values); - __isset = std::move(other245.__isset); - return *this; -} -void configuration_cluster_info_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_cluster_info_response("; - out << "err=" << to_string(err); - out << ", " - << "keys=" << to_string(keys); - out << ", " - << "values=" << to_string(values); - out << ")"; -} - -configuration_recall_app_response::~configuration_recall_app_response() throw() {} - -void configuration_recall_app_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void configuration_recall_app_response::__set_info(const ::dsn::app_info &val) { this->info = val; } - -uint32_t configuration_recall_app_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->info.read(iprot); - this->__isset.info = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void create_app_options::__set_replica_count(const int32_t val) { + this->replica_count = val; +} + +void create_app_options::__set_success_if_exist(const bool val) { + this->success_if_exist = val; +} - xfer += iprot->readStructEnd(); +void create_app_options::__set_app_type(const std::string& val) { + this->app_type = val; +} - return xfer; +void create_app_options::__set_is_stateful(const bool val) { + this->is_stateful = val; } -uint32_t -configuration_recall_app_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_recall_app_response"); +void create_app_options::__set_envs(const std::map & val) { + this->envs = val; +} - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t create_app_options::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->info.write(oprot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_recall_app_response &a, configuration_recall_app_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.info, b.info); - swap(a.__isset, b.__isset); -} - -configuration_recall_app_response::configuration_recall_app_response( - const configuration_recall_app_response &other246) -{ - err = other246.err; - info = other246.info; - __isset = other246.__isset; -} -configuration_recall_app_response::configuration_recall_app_response( - configuration_recall_app_response &&other247) -{ - err = std::move(other247.err); - info = std::move(other247.info); - __isset = std::move(other247.__isset); -} -configuration_recall_app_response &configuration_recall_app_response:: -operator=(const configuration_recall_app_response &other248) -{ - err = other248.err; - info = other248.info; - __isset = other248.__isset; - return *this; -} -configuration_recall_app_response &configuration_recall_app_response:: -operator=(configuration_recall_app_response &&other249) -{ - err = std::move(other249.err); - info = std::move(other249.info); - __isset = std::move(other249.__isset); - return *this; -} -void configuration_recall_app_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_recall_app_response("; - out << "err=" << to_string(err); - out << ", " - << "info=" << to_string(info); - out << ")"; -} - -query_replica_decree_request::~query_replica_decree_request() throw() {} - -void query_replica_decree_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void query_replica_decree_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } - -uint32_t query_replica_decree_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_count); + this->__isset.partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->replica_count); + this->__isset.replica_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success_if_exist); + this->__isset.success_if_exist = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_type); + this->__isset.app_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_stateful); + this->__isset.is_stateful = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->envs.clear(); + uint32_t _size130; + ::apache::thrift::protocol::TType _ktype131; + ::apache::thrift::protocol::TType _vtype132; + xfer += iprot->readMapBegin(_ktype131, _vtype132, _size130); + uint32_t _i134; + for (_i134 = 0; _i134 < _size130; ++_i134) + { + std::string _key135; + xfer += iprot->readString(_key135); + std::string& _val136 = this->envs[_key135]; + xfer += iprot->readString(_val136); + } + xfer += iprot->readMapEnd(); + } + this->__isset.envs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_replica_decree_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_replica_decree_request"); +uint32_t create_app_options::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("create_app_options"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->partition_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("replica_count", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->replica_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_replica_decree_request &a, query_replica_decree_request &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.node, b.node); - swap(a.__isset, b.__isset); -} - -query_replica_decree_request::query_replica_decree_request( - const query_replica_decree_request &other250) -{ - pid = other250.pid; - node = other250.node; - __isset = other250.__isset; -} -query_replica_decree_request::query_replica_decree_request(query_replica_decree_request &&other251) -{ - pid = std::move(other251.pid); - node = std::move(other251.node); - __isset = std::move(other251.__isset); -} -query_replica_decree_request &query_replica_decree_request:: -operator=(const query_replica_decree_request &other252) -{ - pid = other252.pid; - node = other252.node; - __isset = other252.__isset; - return *this; -} -query_replica_decree_request &query_replica_decree_request:: -operator=(query_replica_decree_request &&other253) -{ - pid = std::move(other253.pid); - node = std::move(other253.node); - __isset = std::move(other253.__isset); - return *this; -} -void query_replica_decree_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_replica_decree_request("; - out << "pid=" << to_string(pid); - out << ", " - << "node=" << to_string(node); - out << ")"; -} - -query_replica_decree_response::~query_replica_decree_response() throw() {} - -void query_replica_decree_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void query_replica_decree_response::__set_last_decree(const int64_t val) -{ - this->last_decree = val; -} - -uint32_t query_replica_decree_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_decree); - this->__isset.last_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeFieldBegin("success_if_exist", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->success_if_exist); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->app_type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 5); + xfer += oprot->writeBool(this->is_stateful); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("envs", ::apache::thrift::protocol::T_MAP, 6); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->envs.size())); + std::map ::const_iterator _iter137; + for (_iter137 = this->envs.begin(); _iter137 != this->envs.end(); ++_iter137) + { + xfer += oprot->writeString(_iter137->first); + xfer += oprot->writeString(_iter137->second); } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(create_app_options &a, create_app_options &b) { + using ::std::swap; + swap(a.partition_count, b.partition_count); + swap(a.replica_count, b.replica_count); + swap(a.success_if_exist, b.success_if_exist); + swap(a.app_type, b.app_type); + swap(a.is_stateful, b.is_stateful); + swap(a.envs, b.envs); + swap(a.__isset, b.__isset); +} + +create_app_options::create_app_options(const create_app_options& other138) { + partition_count = other138.partition_count; + replica_count = other138.replica_count; + success_if_exist = other138.success_if_exist; + app_type = other138.app_type; + is_stateful = other138.is_stateful; + envs = other138.envs; + __isset = other138.__isset; +} +create_app_options::create_app_options( create_app_options&& other139) { + partition_count = std::move(other139.partition_count); + replica_count = std::move(other139.replica_count); + success_if_exist = std::move(other139.success_if_exist); + app_type = std::move(other139.app_type); + is_stateful = std::move(other139.is_stateful); + envs = std::move(other139.envs); + __isset = std::move(other139.__isset); +} +create_app_options& create_app_options::operator=(const create_app_options& other140) { + partition_count = other140.partition_count; + replica_count = other140.replica_count; + success_if_exist = other140.success_if_exist; + app_type = other140.app_type; + is_stateful = other140.is_stateful; + envs = other140.envs; + __isset = other140.__isset; + return *this; +} +create_app_options& create_app_options::operator=(create_app_options&& other141) { + partition_count = std::move(other141.partition_count); + replica_count = std::move(other141.replica_count); + success_if_exist = std::move(other141.success_if_exist); + app_type = std::move(other141.app_type); + is_stateful = std::move(other141.is_stateful); + envs = std::move(other141.envs); + __isset = std::move(other141.__isset); + return *this; +} +void create_app_options::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "create_app_options("; + out << "partition_count=" << to_string(partition_count); + out << ", " << "replica_count=" << to_string(replica_count); + out << ", " << "success_if_exist=" << to_string(success_if_exist); + out << ", " << "app_type=" << to_string(app_type); + out << ", " << "is_stateful=" << to_string(is_stateful); + out << ", " << "envs=" << to_string(envs); + out << ")"; +} + + +configuration_create_app_request::~configuration_create_app_request() throw() { +} + + +void configuration_create_app_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void configuration_create_app_request::__set_options(const create_app_options& val) { + this->options = val; +} + +uint32_t configuration_create_app_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->options.read(iprot); + this->__isset.options = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_replica_decree_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_replica_decree_response"); +uint32_t configuration_create_app_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_create_app_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("last_decree", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->last_decree); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("options", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->options.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(query_replica_decree_response &a, query_replica_decree_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.last_decree, b.last_decree); - swap(a.__isset, b.__isset); +void swap(configuration_create_app_request &a, configuration_create_app_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.options, b.options); + swap(a.__isset, b.__isset); } -query_replica_decree_response::query_replica_decree_response( - const query_replica_decree_response &other254) -{ - err = other254.err; - last_decree = other254.last_decree; - __isset = other254.__isset; +configuration_create_app_request::configuration_create_app_request(const configuration_create_app_request& other142) { + app_name = other142.app_name; + options = other142.options; + __isset = other142.__isset; } -query_replica_decree_response::query_replica_decree_response( - query_replica_decree_response &&other255) -{ - err = std::move(other255.err); - last_decree = std::move(other255.last_decree); - __isset = std::move(other255.__isset); +configuration_create_app_request::configuration_create_app_request( configuration_create_app_request&& other143) { + app_name = std::move(other143.app_name); + options = std::move(other143.options); + __isset = std::move(other143.__isset); } -query_replica_decree_response &query_replica_decree_response:: -operator=(const query_replica_decree_response &other256) -{ - err = other256.err; - last_decree = other256.last_decree; - __isset = other256.__isset; - return *this; +configuration_create_app_request& configuration_create_app_request::operator=(const configuration_create_app_request& other144) { + app_name = other144.app_name; + options = other144.options; + __isset = other144.__isset; + return *this; } -query_replica_decree_response &query_replica_decree_response:: -operator=(query_replica_decree_response &&other257) -{ - err = std::move(other257.err); - last_decree = std::move(other257.last_decree); - __isset = std::move(other257.__isset); - return *this; +configuration_create_app_request& configuration_create_app_request::operator=(configuration_create_app_request&& other145) { + app_name = std::move(other145.app_name); + options = std::move(other145.options); + __isset = std::move(other145.__isset); + return *this; } -void query_replica_decree_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_replica_decree_response("; - out << "err=" << to_string(err); - out << ", " - << "last_decree=" << to_string(last_decree); - out << ")"; +void configuration_create_app_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_create_app_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "options=" << to_string(options); + out << ")"; } -replica_info::~replica_info() throw() {} -void replica_info::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void replica_info::__set_ballot(const int64_t val) { this->ballot = val; } +drop_app_options::~drop_app_options() throw() { +} -void replica_info::__set_status(const partition_status::type val) { this->status = val; } -void replica_info::__set_last_committed_decree(const int64_t val) -{ - this->last_committed_decree = val; +void drop_app_options::__set_success_if_not_exist(const bool val) { + this->success_if_not_exist = val; } -void replica_info::__set_last_prepared_decree(const int64_t val) -{ - this->last_prepared_decree = val; +void drop_app_options::__set_reserve_seconds(const int64_t val) { + this->reserve_seconds = val; +__isset.reserve_seconds = true; } -void replica_info::__set_last_durable_decree(const int64_t val) { this->last_durable_decree = val; } +uint32_t drop_app_options::read(::apache::thrift::protocol::TProtocol* iprot) { -void replica_info::__set_app_type(const std::string &val) { this->app_type = val; } + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; -void replica_info::__set_disk_tag(const std::string &val) { this->disk_tag = val; } + xfer += iprot->readStructBegin(fname); -uint32_t replica_info::read(::apache::thrift::protocol::TProtocol *iprot) -{ + using ::apache::thrift::protocol::TProtocolException; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast258; - xfer += iprot->readI32(ecast258); - this->status = (partition_status::type)ecast258; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_prepared_decree); - this->__isset.last_prepared_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_durable_decree); - this->__isset.last_durable_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_type); - this->__isset.app_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->disk_tag); - this->__isset.disk_tag = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success_if_not_exist); + this->__isset.success_if_not_exist = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->reserve_seconds); + this->__isset.reserve_seconds = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t replica_info::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_info"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_prepared_decree", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->last_prepared_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_durable_decree", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->last_durable_decree); - xfer += oprot->writeFieldEnd(); +uint32_t drop_app_options::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("drop_app_options"); - xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->app_type); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("success_if_not_exist", ::apache::thrift::protocol::T_BOOL, 1); + xfer += oprot->writeBool(this->success_if_not_exist); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("disk_tag", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->disk_tag); + if (this->__isset.reserve_seconds) { + xfer += oprot->writeFieldBegin("reserve_seconds", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->reserve_seconds); xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(replica_info &a, replica_info &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.ballot, b.ballot); - swap(a.status, b.status); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.last_prepared_decree, b.last_prepared_decree); - swap(a.last_durable_decree, b.last_durable_decree); - swap(a.app_type, b.app_type); - swap(a.disk_tag, b.disk_tag); - swap(a.__isset, b.__isset); -} - -replica_info::replica_info(const replica_info &other259) -{ - pid = other259.pid; - ballot = other259.ballot; - status = other259.status; - last_committed_decree = other259.last_committed_decree; - last_prepared_decree = other259.last_prepared_decree; - last_durable_decree = other259.last_durable_decree; - app_type = other259.app_type; - disk_tag = other259.disk_tag; - __isset = other259.__isset; -} -replica_info::replica_info(replica_info &&other260) -{ - pid = std::move(other260.pid); - ballot = std::move(other260.ballot); - status = std::move(other260.status); - last_committed_decree = std::move(other260.last_committed_decree); - last_prepared_decree = std::move(other260.last_prepared_decree); - last_durable_decree = std::move(other260.last_durable_decree); - app_type = std::move(other260.app_type); - disk_tag = std::move(other260.disk_tag); - __isset = std::move(other260.__isset); -} -replica_info &replica_info::operator=(const replica_info &other261) -{ - pid = other261.pid; - ballot = other261.ballot; - status = other261.status; - last_committed_decree = other261.last_committed_decree; - last_prepared_decree = other261.last_prepared_decree; - last_durable_decree = other261.last_durable_decree; - app_type = other261.app_type; - disk_tag = other261.disk_tag; - __isset = other261.__isset; - return *this; -} -replica_info &replica_info::operator=(replica_info &&other262) -{ - pid = std::move(other262.pid); - ballot = std::move(other262.ballot); - status = std::move(other262.status); - last_committed_decree = std::move(other262.last_committed_decree); - last_prepared_decree = std::move(other262.last_prepared_decree); - last_durable_decree = std::move(other262.last_durable_decree); - app_type = std::move(other262.app_type); - disk_tag = std::move(other262.disk_tag); - __isset = std::move(other262.__isset); - return *this; -} -void replica_info::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "replica_info("; - out << "pid=" << to_string(pid); - out << ", " - << "ballot=" << to_string(ballot); - out << ", " - << "status=" << to_string(status); - out << ", " - << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " - << "last_prepared_decree=" << to_string(last_prepared_decree); - out << ", " - << "last_durable_decree=" << to_string(last_durable_decree); - out << ", " - << "app_type=" << to_string(app_type); - out << ", " - << "disk_tag=" << to_string(disk_tag); - out << ")"; -} - -query_replica_info_request::~query_replica_info_request() throw() {} - -void query_replica_info_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } - -uint32_t query_replica_info_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t query_replica_info_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_replica_info_request"); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; +void swap(drop_app_options &a, drop_app_options &b) { + using ::std::swap; + swap(a.success_if_not_exist, b.success_if_not_exist); + swap(a.reserve_seconds, b.reserve_seconds); + swap(a.__isset, b.__isset); } -void swap(query_replica_info_request &a, query_replica_info_request &b) -{ - using ::std::swap; - swap(a.node, b.node); - swap(a.__isset, b.__isset); +drop_app_options::drop_app_options(const drop_app_options& other146) { + success_if_not_exist = other146.success_if_not_exist; + reserve_seconds = other146.reserve_seconds; + __isset = other146.__isset; } - -query_replica_info_request::query_replica_info_request(const query_replica_info_request &other263) -{ - node = other263.node; - __isset = other263.__isset; +drop_app_options::drop_app_options( drop_app_options&& other147) { + success_if_not_exist = std::move(other147.success_if_not_exist); + reserve_seconds = std::move(other147.reserve_seconds); + __isset = std::move(other147.__isset); } -query_replica_info_request::query_replica_info_request(query_replica_info_request &&other264) -{ - node = std::move(other264.node); - __isset = std::move(other264.__isset); +drop_app_options& drop_app_options::operator=(const drop_app_options& other148) { + success_if_not_exist = other148.success_if_not_exist; + reserve_seconds = other148.reserve_seconds; + __isset = other148.__isset; + return *this; } -query_replica_info_request &query_replica_info_request:: -operator=(const query_replica_info_request &other265) -{ - node = other265.node; - __isset = other265.__isset; - return *this; +drop_app_options& drop_app_options::operator=(drop_app_options&& other149) { + success_if_not_exist = std::move(other149.success_if_not_exist); + reserve_seconds = std::move(other149.reserve_seconds); + __isset = std::move(other149.__isset); + return *this; } -query_replica_info_request &query_replica_info_request:: -operator=(query_replica_info_request &&other266) -{ - node = std::move(other266.node); - __isset = std::move(other266.__isset); - return *this; +void drop_app_options::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "drop_app_options("; + out << "success_if_not_exist=" << to_string(success_if_not_exist); + out << ", " << "reserve_seconds="; (__isset.reserve_seconds ? (out << to_string(reserve_seconds)) : (out << "")); + out << ")"; } -void query_replica_info_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_replica_info_request("; - out << "node=" << to_string(node); - out << ")"; + + +configuration_drop_app_request::~configuration_drop_app_request() throw() { } -query_replica_info_response::~query_replica_info_response() throw() {} -void query_replica_info_response::__set_err(const ::dsn::error_code &val) { this->err = val; } +void configuration_drop_app_request::__set_app_name(const std::string& val) { + this->app_name = val; +} -void query_replica_info_response::__set_replicas(const std::vector &val) -{ - this->replicas = val; +void configuration_drop_app_request::__set_options(const drop_app_options& val) { + this->options = val; } -uint32_t query_replica_info_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t configuration_drop_app_request::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->replicas.clear(); - uint32_t _size267; - ::apache::thrift::protocol::TType _etype270; - xfer += iprot->readListBegin(_etype270, _size267); - this->replicas.resize(_size267); - uint32_t _i271; - for (_i271 = 0; _i271 < _size267; ++_i271) { - xfer += this->replicas[_i271].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->options.read(iprot); + this->__isset.options = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_replica_info_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_replica_info_response"); +uint32_t configuration_drop_app_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_drop_app_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("replicas", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->replicas.size())); - std::vector::const_iterator _iter272; - for (_iter272 = this->replicas.begin(); _iter272 != this->replicas.end(); ++_iter272) { - xfer += (*_iter272).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("options", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->options.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(query_replica_info_response &a, query_replica_info_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.replicas, b.replicas); - swap(a.__isset, b.__isset); +void swap(configuration_drop_app_request &a, configuration_drop_app_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.options, b.options); + swap(a.__isset, b.__isset); } -query_replica_info_response::query_replica_info_response( - const query_replica_info_response &other273) -{ - err = other273.err; - replicas = other273.replicas; - __isset = other273.__isset; +configuration_drop_app_request::configuration_drop_app_request(const configuration_drop_app_request& other150) { + app_name = other150.app_name; + options = other150.options; + __isset = other150.__isset; } -query_replica_info_response::query_replica_info_response(query_replica_info_response &&other274) -{ - err = std::move(other274.err); - replicas = std::move(other274.replicas); - __isset = std::move(other274.__isset); +configuration_drop_app_request::configuration_drop_app_request( configuration_drop_app_request&& other151) { + app_name = std::move(other151.app_name); + options = std::move(other151.options); + __isset = std::move(other151.__isset); } -query_replica_info_response &query_replica_info_response:: -operator=(const query_replica_info_response &other275) -{ - err = other275.err; - replicas = other275.replicas; - __isset = other275.__isset; - return *this; +configuration_drop_app_request& configuration_drop_app_request::operator=(const configuration_drop_app_request& other152) { + app_name = other152.app_name; + options = other152.options; + __isset = other152.__isset; + return *this; } -query_replica_info_response &query_replica_info_response:: -operator=(query_replica_info_response &&other276) -{ - err = std::move(other276.err); - replicas = std::move(other276.replicas); - __isset = std::move(other276.__isset); - return *this; +configuration_drop_app_request& configuration_drop_app_request::operator=(configuration_drop_app_request&& other153) { + app_name = std::move(other153.app_name); + options = std::move(other153.options); + __isset = std::move(other153.__isset); + return *this; } -void query_replica_info_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_replica_info_response("; - out << "err=" << to_string(err); - out << ", " - << "replicas=" << to_string(replicas); - out << ")"; +void configuration_drop_app_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_drop_app_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "options=" << to_string(options); + out << ")"; } -disk_info::~disk_info() throw() {} - -void disk_info::__set_tag(const std::string &val) { this->tag = val; } -void disk_info::__set_full_dir(const std::string &val) { this->full_dir = val; } - -void disk_info::__set_disk_capacity_mb(const int64_t val) { this->disk_capacity_mb = val; } +configuration_list_apps_request::~configuration_list_apps_request() throw() { +} -void disk_info::__set_disk_available_mb(const int64_t val) { this->disk_available_mb = val; } -void disk_info::__set_holding_primary_replicas(const std::map> &val) -{ - this->holding_primary_replicas = val; +void configuration_list_apps_request::__set_status(const ::dsn::app_status::type val) { + this->status = val; } -void disk_info::__set_holding_secondary_replicas( - const std::map> &val) -{ - this->holding_secondary_replicas = val; -} +uint32_t configuration_list_apps_request::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t disk_info::read(::apache::thrift::protocol::TProtocol *iprot) -{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tag); - this->__isset.tag = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->full_dir); - this->__isset.full_dir = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->disk_capacity_mb); - this->__isset.disk_capacity_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->disk_available_mb); - this->__isset.disk_available_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->holding_primary_replicas.clear(); - uint32_t _size277; - ::apache::thrift::protocol::TType _ktype278; - ::apache::thrift::protocol::TType _vtype279; - xfer += iprot->readMapBegin(_ktype278, _vtype279, _size277); - uint32_t _i281; - for (_i281 = 0; _i281 < _size277; ++_i281) { - int32_t _key282; - xfer += iprot->readI32(_key282); - std::set<::dsn::gpid> &_val283 = this->holding_primary_replicas[_key282]; - { - _val283.clear(); - uint32_t _size284; - ::apache::thrift::protocol::TType _etype287; - xfer += iprot->readSetBegin(_etype287, _size284); - uint32_t _i288; - for (_i288 = 0; _i288 < _size284; ++_i288) { - ::dsn::gpid _elem289; - xfer += _elem289.read(iprot); - _val283.insert(_elem289); - } - xfer += iprot->readSetEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.holding_primary_replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->holding_secondary_replicas.clear(); - uint32_t _size290; - ::apache::thrift::protocol::TType _ktype291; - ::apache::thrift::protocol::TType _vtype292; - xfer += iprot->readMapBegin(_ktype291, _vtype292, _size290); - uint32_t _i294; - for (_i294 = 0; _i294 < _size290; ++_i294) { - int32_t _key295; - xfer += iprot->readI32(_key295); - std::set<::dsn::gpid> &_val296 = this->holding_secondary_replicas[_key295]; - { - _val296.clear(); - uint32_t _size297; - ::apache::thrift::protocol::TType _etype300; - xfer += iprot->readSetBegin(_etype300, _size297); - uint32_t _i301; - for (_i301 = 0; _i301 < _size297; ++_i301) { - ::dsn::gpid _elem302; - xfer += _elem302.read(iprot); - _val296.insert(_elem302); - } - xfer += iprot->readSetEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.holding_secondary_replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t disk_info::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("disk_info"); - - xfer += oprot->writeFieldBegin("tag", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->tag); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("full_dir", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->full_dir); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("disk_capacity_mb", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->disk_capacity_mb); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("disk_available_mb", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->disk_available_mb); - xfer += oprot->writeFieldEnd(); - - xfer += - oprot->writeFieldBegin("holding_primary_replicas", ::apache::thrift::protocol::T_MAP, 5); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, - ::apache::thrift::protocol::T_SET, - static_cast(this->holding_primary_replicas.size())); - std::map>::const_iterator _iter303; - for (_iter303 = this->holding_primary_replicas.begin(); - _iter303 != this->holding_primary_replicas.end(); - ++_iter303) { - xfer += oprot->writeI32(_iter303->first); - { - xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(_iter303->second.size())); - std::set<::dsn::gpid>::const_iterator _iter304; - for (_iter304 = _iter303->second.begin(); _iter304 != _iter303->second.end(); - ++_iter304) { - xfer += (*_iter304).write(oprot); - } - xfer += oprot->writeSetEnd(); - } - } - xfer += oprot->writeMapEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - xfer += oprot->writeFieldEnd(); - - xfer += - oprot->writeFieldBegin("holding_secondary_replicas", ::apache::thrift::protocol::T_MAP, 6); + switch (fid) { - xfer += - oprot->writeMapBegin(::apache::thrift::protocol::T_I32, - ::apache::thrift::protocol::T_SET, - static_cast(this->holding_secondary_replicas.size())); - std::map>::const_iterator _iter305; - for (_iter305 = this->holding_secondary_replicas.begin(); - _iter305 != this->holding_secondary_replicas.end(); - ++_iter305) { - xfer += oprot->writeI32(_iter305->first); - { - xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(_iter305->second.size())); - std::set<::dsn::gpid>::const_iterator _iter306; - for (_iter306 = _iter305->second.begin(); _iter306 != _iter305->second.end(); - ++_iter306) { - xfer += (*_iter306).write(oprot); - } - xfer += oprot->writeSetEnd(); - } - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(disk_info &a, disk_info &b) -{ - using ::std::swap; - swap(a.tag, b.tag); - swap(a.full_dir, b.full_dir); - swap(a.disk_capacity_mb, b.disk_capacity_mb); - swap(a.disk_available_mb, b.disk_available_mb); - swap(a.holding_primary_replicas, b.holding_primary_replicas); - swap(a.holding_secondary_replicas, b.holding_secondary_replicas); - swap(a.__isset, b.__isset); -} - -disk_info::disk_info(const disk_info &other307) -{ - tag = other307.tag; - full_dir = other307.full_dir; - disk_capacity_mb = other307.disk_capacity_mb; - disk_available_mb = other307.disk_available_mb; - holding_primary_replicas = other307.holding_primary_replicas; - holding_secondary_replicas = other307.holding_secondary_replicas; - __isset = other307.__isset; -} -disk_info::disk_info(disk_info &&other308) -{ - tag = std::move(other308.tag); - full_dir = std::move(other308.full_dir); - disk_capacity_mb = std::move(other308.disk_capacity_mb); - disk_available_mb = std::move(other308.disk_available_mb); - holding_primary_replicas = std::move(other308.holding_primary_replicas); - holding_secondary_replicas = std::move(other308.holding_secondary_replicas); - __isset = std::move(other308.__isset); -} -disk_info &disk_info::operator=(const disk_info &other309) -{ - tag = other309.tag; - full_dir = other309.full_dir; - disk_capacity_mb = other309.disk_capacity_mb; - disk_available_mb = other309.disk_available_mb; - holding_primary_replicas = other309.holding_primary_replicas; - holding_secondary_replicas = other309.holding_secondary_replicas; - __isset = other309.__isset; - return *this; -} -disk_info &disk_info::operator=(disk_info &&other310) -{ - tag = std::move(other310.tag); - full_dir = std::move(other310.full_dir); - disk_capacity_mb = std::move(other310.disk_capacity_mb); - disk_available_mb = std::move(other310.disk_available_mb); - holding_primary_replicas = std::move(other310.holding_primary_replicas); - holding_secondary_replicas = std::move(other310.holding_secondary_replicas); - __isset = std::move(other310.__isset); - return *this; -} -void disk_info::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "disk_info("; - out << "tag=" << to_string(tag); - out << ", " - << "full_dir=" << to_string(full_dir); - out << ", " - << "disk_capacity_mb=" << to_string(disk_capacity_mb); - out << ", " - << "disk_available_mb=" << to_string(disk_available_mb); - out << ", " - << "holding_primary_replicas=" << to_string(holding_primary_replicas); - out << ", " - << "holding_secondary_replicas=" << to_string(holding_secondary_replicas); - out << ")"; -} - -query_disk_info_request::~query_disk_info_request() throw() {} - -void query_disk_info_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } - -void query_disk_info_request::__set_app_name(const std::string &val) { this->app_name = val; } - -uint32_t query_disk_info_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast154; + xfer += iprot->readI32(ecast154); + this->status = ( ::dsn::app_status::type)ecast154; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_disk_info_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_disk_info_request"); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_list_apps_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_list_apps_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(query_disk_info_request &a, query_disk_info_request &b) -{ - using ::std::swap; - swap(a.node, b.node); - swap(a.app_name, b.app_name); - swap(a.__isset, b.__isset); +void swap(configuration_list_apps_request &a, configuration_list_apps_request &b) { + using ::std::swap; + swap(a.status, b.status); + swap(a.__isset, b.__isset); } -query_disk_info_request::query_disk_info_request(const query_disk_info_request &other311) -{ - node = other311.node; - app_name = other311.app_name; - __isset = other311.__isset; +configuration_list_apps_request::configuration_list_apps_request(const configuration_list_apps_request& other155) { + status = other155.status; + __isset = other155.__isset; } -query_disk_info_request::query_disk_info_request(query_disk_info_request &&other312) -{ - node = std::move(other312.node); - app_name = std::move(other312.app_name); - __isset = std::move(other312.__isset); +configuration_list_apps_request::configuration_list_apps_request( configuration_list_apps_request&& other156) { + status = std::move(other156.status); + __isset = std::move(other156.__isset); } -query_disk_info_request &query_disk_info_request::operator=(const query_disk_info_request &other313) -{ - node = other313.node; - app_name = other313.app_name; - __isset = other313.__isset; - return *this; +configuration_list_apps_request& configuration_list_apps_request::operator=(const configuration_list_apps_request& other157) { + status = other157.status; + __isset = other157.__isset; + return *this; } -query_disk_info_request &query_disk_info_request::operator=(query_disk_info_request &&other314) -{ - node = std::move(other314.node); - app_name = std::move(other314.app_name); - __isset = std::move(other314.__isset); - return *this; +configuration_list_apps_request& configuration_list_apps_request::operator=(configuration_list_apps_request&& other158) { + status = std::move(other158.status); + __isset = std::move(other158.__isset); + return *this; } -void query_disk_info_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_disk_info_request("; - out << "node=" << to_string(node); - out << ", " - << "app_name=" << to_string(app_name); - out << ")"; +void configuration_list_apps_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_list_apps_request("; + out << "status=" << to_string(status); + out << ")"; } -query_disk_info_response::~query_disk_info_response() throw() {} -void query_disk_info_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void query_disk_info_response::__set_total_capacity_mb(const int64_t val) -{ - this->total_capacity_mb = val; +configuration_list_nodes_request::~configuration_list_nodes_request() throw() { } -void query_disk_info_response::__set_total_available_mb(const int64_t val) -{ - this->total_available_mb = val; -} -void query_disk_info_response::__set_disk_infos(const std::vector &val) -{ - this->disk_infos = val; +void configuration_list_nodes_request::__set_status(const node_status::type val) { + this->status = val; } -uint32_t query_disk_info_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t configuration_list_nodes_request::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->total_capacity_mb); - this->__isset.total_capacity_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->total_available_mb); - this->__isset.total_available_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->disk_infos.clear(); - uint32_t _size315; - ::apache::thrift::protocol::TType _etype318; - xfer += iprot->readListBegin(_etype318, _size315); - this->disk_infos.resize(_size315); - uint32_t _i319; - for (_i319 = 0; _i319 < _size315; ++_i319) { - xfer += this->disk_infos[_i319].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.disk_infos = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast159; + xfer += iprot->readI32(ecast159); + this->status = (node_status::type)ecast159; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_disk_info_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_disk_info_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("total_capacity_mb", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->total_capacity_mb); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("total_available_mb", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->total_available_mb); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("disk_infos", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->disk_infos.size())); - std::vector::const_iterator _iter320; - for (_iter320 = this->disk_infos.begin(); _iter320 != this->disk_infos.end(); ++_iter320) { - xfer += (*_iter320).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); +uint32_t configuration_list_nodes_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_list_nodes_request"); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_disk_info_response &a, query_disk_info_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.total_capacity_mb, b.total_capacity_mb); - swap(a.total_available_mb, b.total_available_mb); - swap(a.disk_infos, b.disk_infos); - swap(a.__isset, b.__isset); -} - -query_disk_info_response::query_disk_info_response(const query_disk_info_response &other321) -{ - err = other321.err; - total_capacity_mb = other321.total_capacity_mb; - total_available_mb = other321.total_available_mb; - disk_infos = other321.disk_infos; - __isset = other321.__isset; -} -query_disk_info_response::query_disk_info_response(query_disk_info_response &&other322) -{ - err = std::move(other322.err); - total_capacity_mb = std::move(other322.total_capacity_mb); - total_available_mb = std::move(other322.total_available_mb); - disk_infos = std::move(other322.disk_infos); - __isset = std::move(other322.__isset); -} -query_disk_info_response &query_disk_info_response:: -operator=(const query_disk_info_response &other323) -{ - err = other323.err; - total_capacity_mb = other323.total_capacity_mb; - total_available_mb = other323.total_available_mb; - disk_infos = other323.disk_infos; - __isset = other323.__isset; - return *this; -} -query_disk_info_response &query_disk_info_response::operator=(query_disk_info_response &&other324) -{ - err = std::move(other324.err); - total_capacity_mb = std::move(other324.total_capacity_mb); - total_available_mb = std::move(other324.total_available_mb); - disk_infos = std::move(other324.disk_infos); - __isset = std::move(other324.__isset); - return *this; -} -void query_disk_info_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_disk_info_response("; - out << "err=" << to_string(err); - out << ", " - << "total_capacity_mb=" << to_string(total_capacity_mb); - out << ", " - << "total_available_mb=" << to_string(total_available_mb); - out << ", " - << "disk_infos=" << to_string(disk_infos); - out << ")"; -} - -replica_disk_migrate_request::~replica_disk_migrate_request() throw() {} - -void replica_disk_migrate_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void replica_disk_migrate_request::__set_origin_disk(const std::string &val) -{ - this->origin_disk = val; -} - -void replica_disk_migrate_request::__set_target_disk(const std::string &val) -{ - this->target_disk = val; -} - -uint32_t replica_disk_migrate_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->origin_disk); - this->__isset.origin_disk = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->target_disk); - this->__isset.target_disk = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - return xfer; +void swap(configuration_list_nodes_request &a, configuration_list_nodes_request &b) { + using ::std::swap; + swap(a.status, b.status); + swap(a.__isset, b.__isset); } -uint32_t replica_disk_migrate_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_disk_migrate_request"); +configuration_list_nodes_request::configuration_list_nodes_request(const configuration_list_nodes_request& other160) { + status = other160.status; + __isset = other160.__isset; +} +configuration_list_nodes_request::configuration_list_nodes_request( configuration_list_nodes_request&& other161) { + status = std::move(other161.status); + __isset = std::move(other161.__isset); +} +configuration_list_nodes_request& configuration_list_nodes_request::operator=(const configuration_list_nodes_request& other162) { + status = other162.status; + __isset = other162.__isset; + return *this; +} +configuration_list_nodes_request& configuration_list_nodes_request::operator=(configuration_list_nodes_request&& other163) { + status = std::move(other163.status); + __isset = std::move(other163.__isset); + return *this; +} +void configuration_list_nodes_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_list_nodes_request("; + out << "status=" << to_string(status); + out << ")"; +} - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("origin_disk", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->origin_disk); - xfer += oprot->writeFieldEnd(); +configuration_cluster_info_request::~configuration_cluster_info_request() throw() { +} - xfer += oprot->writeFieldBegin("target_disk", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->target_disk); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(replica_disk_migrate_request &a, replica_disk_migrate_request &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.origin_disk, b.origin_disk); - swap(a.target_disk, b.target_disk); - swap(a.__isset, b.__isset); -} - -replica_disk_migrate_request::replica_disk_migrate_request( - const replica_disk_migrate_request &other325) -{ - pid = other325.pid; - origin_disk = other325.origin_disk; - target_disk = other325.target_disk; - __isset = other325.__isset; -} -replica_disk_migrate_request::replica_disk_migrate_request(replica_disk_migrate_request &&other326) -{ - pid = std::move(other326.pid); - origin_disk = std::move(other326.origin_disk); - target_disk = std::move(other326.target_disk); - __isset = std::move(other326.__isset); -} -replica_disk_migrate_request &replica_disk_migrate_request:: -operator=(const replica_disk_migrate_request &other327) -{ - pid = other327.pid; - origin_disk = other327.origin_disk; - target_disk = other327.target_disk; - __isset = other327.__isset; - return *this; -} -replica_disk_migrate_request &replica_disk_migrate_request:: -operator=(replica_disk_migrate_request &&other328) -{ - pid = std::move(other328.pid); - origin_disk = std::move(other328.origin_disk); - target_disk = std::move(other328.target_disk); - __isset = std::move(other328.__isset); - return *this; -} -void replica_disk_migrate_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "replica_disk_migrate_request("; - out << "pid=" << to_string(pid); - out << ", " - << "origin_disk=" << to_string(origin_disk); - out << ", " - << "target_disk=" << to_string(target_disk); - out << ")"; -} - -replica_disk_migrate_response::~replica_disk_migrate_response() throw() {} - -void replica_disk_migrate_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void replica_disk_migrate_response::__set_hint(const std::string &val) -{ - this->hint = val; - __isset.hint = true; -} - -uint32_t replica_disk_migrate_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint); - this->__isset.hint = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +uint32_t configuration_cluster_info_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - return xfer; -} + xfer += iprot->readStructBegin(fname); -uint32_t replica_disk_migrate_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_disk_migrate_response"); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - if (this->__isset.hint) { - xfer += oprot->writeFieldBegin("hint", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(replica_disk_migrate_response &a, replica_disk_migrate_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.hint, b.hint); - swap(a.__isset, b.__isset); -} - -replica_disk_migrate_response::replica_disk_migrate_response( - const replica_disk_migrate_response &other329) -{ - err = other329.err; - hint = other329.hint; - __isset = other329.__isset; -} -replica_disk_migrate_response::replica_disk_migrate_response( - replica_disk_migrate_response &&other330) -{ - err = std::move(other330.err); - hint = std::move(other330.hint); - __isset = std::move(other330.__isset); -} -replica_disk_migrate_response &replica_disk_migrate_response:: -operator=(const replica_disk_migrate_response &other331) -{ - err = other331.err; - hint = other331.hint; - __isset = other331.__isset; - return *this; -} -replica_disk_migrate_response &replica_disk_migrate_response:: -operator=(replica_disk_migrate_response &&other332) -{ - err = std::move(other332.err); - hint = std::move(other332.hint); - __isset = std::move(other332.__isset); - return *this; -} -void replica_disk_migrate_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "replica_disk_migrate_response("; - out << "err=" << to_string(err); - out << ", " - << "hint="; - (__isset.hint ? (out << to_string(hint)) : (out << "")); - out << ")"; -} - -query_app_info_request::~query_app_info_request() throw() {} - -void query_app_info_request::__set_meta_server(const ::dsn::rpc_address &val) -{ - this->meta_server = val; -} - -uint32_t query_app_info_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->meta_server.read(iprot); - this->__isset.meta_server = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_app_info_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_app_info_request"); - - xfer += oprot->writeFieldBegin("meta_server", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->meta_server.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_cluster_info_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_cluster_info_request"); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(query_app_info_request &a, query_app_info_request &b) -{ - using ::std::swap; - swap(a.meta_server, b.meta_server); - swap(a.__isset, b.__isset); +void swap(configuration_cluster_info_request &a, configuration_cluster_info_request &b) { + using ::std::swap; + (void) a; + (void) b; } -query_app_info_request::query_app_info_request(const query_app_info_request &other333) -{ - meta_server = other333.meta_server; - __isset = other333.__isset; +configuration_cluster_info_request::configuration_cluster_info_request(const configuration_cluster_info_request& other164) { + (void) other164; } -query_app_info_request::query_app_info_request(query_app_info_request &&other334) -{ - meta_server = std::move(other334.meta_server); - __isset = std::move(other334.__isset); +configuration_cluster_info_request::configuration_cluster_info_request( configuration_cluster_info_request&& other165) { + (void) other165; } -query_app_info_request &query_app_info_request::operator=(const query_app_info_request &other335) -{ - meta_server = other335.meta_server; - __isset = other335.__isset; - return *this; +configuration_cluster_info_request& configuration_cluster_info_request::operator=(const configuration_cluster_info_request& other166) { + (void) other166; + return *this; } -query_app_info_request &query_app_info_request::operator=(query_app_info_request &&other336) -{ - meta_server = std::move(other336.meta_server); - __isset = std::move(other336.__isset); - return *this; +configuration_cluster_info_request& configuration_cluster_info_request::operator=(configuration_cluster_info_request&& other167) { + (void) other167; + return *this; } -void query_app_info_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_app_info_request("; - out << "meta_server=" << to_string(meta_server); - out << ")"; +void configuration_cluster_info_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_cluster_info_request("; + out << ")"; } -query_app_info_response::~query_app_info_response() throw() {} -void query_app_info_response::__set_err(const ::dsn::error_code &val) { this->err = val; } +configuration_recall_app_request::~configuration_recall_app_request() throw() { +} + -void query_app_info_response::__set_apps(const std::vector<::dsn::app_info> &val) -{ - this->apps = val; +void configuration_recall_app_request::__set_app_id(const int32_t val) { + this->app_id = val; } -uint32_t query_app_info_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void configuration_recall_app_request::__set_new_app_name(const std::string& val) { + this->new_app_name = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t configuration_recall_app_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->apps.clear(); - uint32_t _size337; - ::apache::thrift::protocol::TType _etype340; - xfer += iprot->readListBegin(_etype340, _size337); - this->apps.resize(_size337); - uint32_t _i341; - for (_i341 = 0; _i341 < _size337; ++_i341) { - xfer += this->apps[_i341].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.apps = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->new_app_name); + this->__isset.new_app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_app_info_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_app_info_response"); +uint32_t configuration_recall_app_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_recall_app_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("apps", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->apps.size())); - std::vector<::dsn::app_info>::const_iterator _iter342; - for (_iter342 = this->apps.begin(); _iter342 != this->apps.end(); ++_iter342) { - xfer += (*_iter342).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("new_app_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->new_app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(query_app_info_response &a, query_app_info_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.apps, b.apps); - swap(a.__isset, b.__isset); +void swap(configuration_recall_app_request &a, configuration_recall_app_request &b) { + using ::std::swap; + swap(a.app_id, b.app_id); + swap(a.new_app_name, b.new_app_name); + swap(a.__isset, b.__isset); } -query_app_info_response::query_app_info_response(const query_app_info_response &other343) -{ - err = other343.err; - apps = other343.apps; - __isset = other343.__isset; +configuration_recall_app_request::configuration_recall_app_request(const configuration_recall_app_request& other168) { + app_id = other168.app_id; + new_app_name = other168.new_app_name; + __isset = other168.__isset; } -query_app_info_response::query_app_info_response(query_app_info_response &&other344) -{ - err = std::move(other344.err); - apps = std::move(other344.apps); - __isset = std::move(other344.__isset); +configuration_recall_app_request::configuration_recall_app_request( configuration_recall_app_request&& other169) { + app_id = std::move(other169.app_id); + new_app_name = std::move(other169.new_app_name); + __isset = std::move(other169.__isset); } -query_app_info_response &query_app_info_response::operator=(const query_app_info_response &other345) -{ - err = other345.err; - apps = other345.apps; - __isset = other345.__isset; - return *this; +configuration_recall_app_request& configuration_recall_app_request::operator=(const configuration_recall_app_request& other170) { + app_id = other170.app_id; + new_app_name = other170.new_app_name; + __isset = other170.__isset; + return *this; } -query_app_info_response &query_app_info_response::operator=(query_app_info_response &&other346) -{ - err = std::move(other346.err); - apps = std::move(other346.apps); - __isset = std::move(other346.__isset); - return *this; +configuration_recall_app_request& configuration_recall_app_request::operator=(configuration_recall_app_request&& other171) { + app_id = std::move(other171.app_id); + new_app_name = std::move(other171.new_app_name); + __isset = std::move(other171.__isset); + return *this; } -void query_app_info_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_app_info_response("; - out << "err=" << to_string(err); - out << ", " - << "apps=" << to_string(apps); - out << ")"; +void configuration_recall_app_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_recall_app_request("; + out << "app_id=" << to_string(app_id); + out << ", " << "new_app_name=" << to_string(new_app_name); + out << ")"; } -configuration_recovery_request::~configuration_recovery_request() throw() {} -void configuration_recovery_request::__set_recovery_set(const std::vector<::dsn::rpc_address> &val) -{ - this->recovery_set = val; +configuration_create_app_response::~configuration_create_app_response() throw() { } -void configuration_recovery_request::__set_skip_bad_nodes(const bool val) -{ - this->skip_bad_nodes = val; + +void configuration_create_app_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void configuration_recovery_request::__set_skip_lost_partitions(const bool val) -{ - this->skip_lost_partitions = val; +void configuration_create_app_response::__set_appid(const int32_t val) { + this->appid = val; } -uint32_t configuration_recovery_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t configuration_create_app_response::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->recovery_set.clear(); - uint32_t _size347; - ::apache::thrift::protocol::TType _etype350; - xfer += iprot->readListBegin(_etype350, _size347); - this->recovery_set.resize(_size347); - uint32_t _i351; - for (_i351 = 0; _i351 < _size347; ++_i351) { - xfer += this->recovery_set[_i351].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.recovery_set = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->skip_bad_nodes); - this->__isset.skip_bad_nodes = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->skip_lost_partitions); - this->__isset.skip_lost_partitions = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->appid); + this->__isset.appid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_recovery_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_recovery_request"); +uint32_t configuration_create_app_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_create_app_response"); - xfer += oprot->writeFieldBegin("recovery_set", ::apache::thrift::protocol::T_LIST, 1); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->recovery_set.size())); - std::vector<::dsn::rpc_address>::const_iterator _iter352; - for (_iter352 = this->recovery_set.begin(); _iter352 != this->recovery_set.end(); - ++_iter352) { - xfer += (*_iter352).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("skip_bad_nodes", ::apache::thrift::protocol::T_BOOL, 2); - xfer += oprot->writeBool(this->skip_bad_nodes); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->appid); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("skip_lost_partitions", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->skip_lost_partitions); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_recovery_request &a, configuration_recovery_request &b) -{ - using ::std::swap; - swap(a.recovery_set, b.recovery_set); - swap(a.skip_bad_nodes, b.skip_bad_nodes); - swap(a.skip_lost_partitions, b.skip_lost_partitions); - swap(a.__isset, b.__isset); -} - -configuration_recovery_request::configuration_recovery_request( - const configuration_recovery_request &other353) -{ - recovery_set = other353.recovery_set; - skip_bad_nodes = other353.skip_bad_nodes; - skip_lost_partitions = other353.skip_lost_partitions; - __isset = other353.__isset; -} -configuration_recovery_request::configuration_recovery_request( - configuration_recovery_request &&other354) -{ - recovery_set = std::move(other354.recovery_set); - skip_bad_nodes = std::move(other354.skip_bad_nodes); - skip_lost_partitions = std::move(other354.skip_lost_partitions); - __isset = std::move(other354.__isset); -} -configuration_recovery_request &configuration_recovery_request:: -operator=(const configuration_recovery_request &other355) -{ - recovery_set = other355.recovery_set; - skip_bad_nodes = other355.skip_bad_nodes; - skip_lost_partitions = other355.skip_lost_partitions; - __isset = other355.__isset; - return *this; -} -configuration_recovery_request &configuration_recovery_request:: -operator=(configuration_recovery_request &&other356) -{ - recovery_set = std::move(other356.recovery_set); - skip_bad_nodes = std::move(other356.skip_bad_nodes); - skip_lost_partitions = std::move(other356.skip_lost_partitions); - __isset = std::move(other356.__isset); - return *this; -} -void configuration_recovery_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_recovery_request("; - out << "recovery_set=" << to_string(recovery_set); - out << ", " - << "skip_bad_nodes=" << to_string(skip_bad_nodes); - out << ", " - << "skip_lost_partitions=" << to_string(skip_lost_partitions); - out << ")"; -} - -configuration_recovery_response::~configuration_recovery_response() throw() {} - -void configuration_recovery_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void configuration_recovery_response::__set_hint_message(const std::string &val) -{ - this->hint_message = val; -} - -uint32_t configuration_recovery_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_message); - this->__isset.hint_message = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void swap(configuration_create_app_response &a, configuration_create_app_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.appid, b.appid); + swap(a.__isset, b.__isset); +} + +configuration_create_app_response::configuration_create_app_response(const configuration_create_app_response& other172) { + err = other172.err; + appid = other172.appid; + __isset = other172.__isset; +} +configuration_create_app_response::configuration_create_app_response( configuration_create_app_response&& other173) { + err = std::move(other173.err); + appid = std::move(other173.appid); + __isset = std::move(other173.__isset); +} +configuration_create_app_response& configuration_create_app_response::operator=(const configuration_create_app_response& other174) { + err = other174.err; + appid = other174.appid; + __isset = other174.__isset; + return *this; +} +configuration_create_app_response& configuration_create_app_response::operator=(configuration_create_app_response&& other175) { + err = std::move(other175.err); + appid = std::move(other175.appid); + __isset = std::move(other175.__isset); + return *this; +} +void configuration_create_app_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_create_app_response("; + out << "err=" << to_string(err); + out << ", " << "appid=" << to_string(appid); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +configuration_meta_control_request::~configuration_meta_control_request() throw() { } -uint32_t configuration_recovery_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_recovery_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +void configuration_meta_control_request::__set_level(const meta_function_level::type val) { + this->level = val; +} - xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_message); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_meta_control_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_recovery_response &a, configuration_recovery_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_message, b.hint_message); - swap(a.__isset, b.__isset); -} - -configuration_recovery_response::configuration_recovery_response( - const configuration_recovery_response &other357) -{ - err = other357.err; - hint_message = other357.hint_message; - __isset = other357.__isset; -} -configuration_recovery_response::configuration_recovery_response( - configuration_recovery_response &&other358) -{ - err = std::move(other358.err); - hint_message = std::move(other358.hint_message); - __isset = std::move(other358.__isset); -} -configuration_recovery_response &configuration_recovery_response:: -operator=(const configuration_recovery_response &other359) -{ - err = other359.err; - hint_message = other359.hint_message; - __isset = other359.__isset; - return *this; -} -configuration_recovery_response &configuration_recovery_response:: -operator=(configuration_recovery_response &&other360) -{ - err = std::move(other360.err); - hint_message = std::move(other360.hint_message); - __isset = std::move(other360.__isset); - return *this; -} -void configuration_recovery_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_recovery_response("; - out << "err=" << to_string(err); - out << ", " - << "hint_message=" << to_string(hint_message); - out << ")"; -} - -policy_info::~policy_info() throw() {} - -void policy_info::__set_policy_name(const std::string &val) { this->policy_name = val; } - -void policy_info::__set_backup_provider_type(const std::string &val) -{ - this->backup_provider_type = val; -} - -uint32_t policy_info::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_provider_type); - this->__isset.backup_provider_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast176; + xfer += iprot->readI32(ecast176); + this->level = (meta_function_level::type)ecast176; + this->__isset.level = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t policy_info::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("policy_info"); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_meta_control_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_meta_control_request"); - xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->backup_provider_type); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("level", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->level); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(policy_info &a, policy_info &b) -{ - using ::std::swap; - swap(a.policy_name, b.policy_name); - swap(a.backup_provider_type, b.backup_provider_type); - swap(a.__isset, b.__isset); +void swap(configuration_meta_control_request &a, configuration_meta_control_request &b) { + using ::std::swap; + swap(a.level, b.level); + swap(a.__isset, b.__isset); } -policy_info::policy_info(const policy_info &other361) -{ - policy_name = other361.policy_name; - backup_provider_type = other361.backup_provider_type; - __isset = other361.__isset; +configuration_meta_control_request::configuration_meta_control_request(const configuration_meta_control_request& other177) { + level = other177.level; + __isset = other177.__isset; } -policy_info::policy_info(policy_info &&other362) -{ - policy_name = std::move(other362.policy_name); - backup_provider_type = std::move(other362.backup_provider_type); - __isset = std::move(other362.__isset); +configuration_meta_control_request::configuration_meta_control_request( configuration_meta_control_request&& other178) { + level = std::move(other178.level); + __isset = std::move(other178.__isset); } -policy_info &policy_info::operator=(const policy_info &other363) -{ - policy_name = other363.policy_name; - backup_provider_type = other363.backup_provider_type; - __isset = other363.__isset; - return *this; +configuration_meta_control_request& configuration_meta_control_request::operator=(const configuration_meta_control_request& other179) { + level = other179.level; + __isset = other179.__isset; + return *this; } -policy_info &policy_info::operator=(policy_info &&other364) -{ - policy_name = std::move(other364.policy_name); - backup_provider_type = std::move(other364.backup_provider_type); - __isset = std::move(other364.__isset); - return *this; +configuration_meta_control_request& configuration_meta_control_request::operator=(configuration_meta_control_request&& other180) { + level = std::move(other180.level); + __isset = std::move(other180.__isset); + return *this; } -void policy_info::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "policy_info("; - out << "policy_name=" << to_string(policy_name); - out << ", " - << "backup_provider_type=" << to_string(backup_provider_type); - out << ")"; +void configuration_meta_control_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_meta_control_request("; + out << "level=" << to_string(level); + out << ")"; } -configuration_restore_request::~configuration_restore_request() throw() {} - -void configuration_restore_request::__set_cluster_name(const std::string &val) -{ - this->cluster_name = val; -} -void configuration_restore_request::__set_policy_name(const std::string &val) -{ - this->policy_name = val; +configuration_meta_control_response::~configuration_meta_control_response() throw() { } -void configuration_restore_request::__set_time_stamp(const int64_t val) { this->time_stamp = val; } -void configuration_restore_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void configuration_restore_request::__set_app_id(const int32_t val) { this->app_id = val; } - -void configuration_restore_request::__set_new_app_name(const std::string &val) -{ - this->new_app_name = val; +void configuration_meta_control_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void configuration_restore_request::__set_backup_provider_name(const std::string &val) -{ - this->backup_provider_name = val; +void configuration_meta_control_response::__set_old_level(const meta_function_level::type val) { + this->old_level = val; } -void configuration_restore_request::__set_skip_bad_partition(const bool val) -{ - this->skip_bad_partition = val; -} +uint32_t configuration_meta_control_response::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t configuration_restore_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cluster_name); - this->__isset.cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->time_stamp); - this->__isset.time_stamp = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->new_app_name); - this->__isset.new_app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_provider_name); - this->__isset.backup_provider_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->skip_bad_partition); - this->__isset.skip_bad_partition = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast181; + xfer += iprot->readI32(ecast181); + this->old_level = (meta_function_level::type)ecast181; + this->__isset.old_level = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_restore_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_restore_request"); - - xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->cluster_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("time_stamp", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->time_stamp); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("new_app_name", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->new_app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_provider_name", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->backup_provider_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("skip_bad_partition", ::apache::thrift::protocol::T_BOOL, 8); - xfer += oprot->writeBool(this->skip_bad_partition); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_meta_control_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_meta_control_response"); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_restore_request &a, configuration_restore_request &b) -{ - using ::std::swap; - swap(a.cluster_name, b.cluster_name); - swap(a.policy_name, b.policy_name); - swap(a.time_stamp, b.time_stamp); - swap(a.app_name, b.app_name); - swap(a.app_id, b.app_id); - swap(a.new_app_name, b.new_app_name); - swap(a.backup_provider_name, b.backup_provider_name); - swap(a.skip_bad_partition, b.skip_bad_partition); - swap(a.__isset, b.__isset); -} - -configuration_restore_request::configuration_restore_request( - const configuration_restore_request &other365) -{ - cluster_name = other365.cluster_name; - policy_name = other365.policy_name; - time_stamp = other365.time_stamp; - app_name = other365.app_name; - app_id = other365.app_id; - new_app_name = other365.new_app_name; - backup_provider_name = other365.backup_provider_name; - skip_bad_partition = other365.skip_bad_partition; - __isset = other365.__isset; -} -configuration_restore_request::configuration_restore_request( - configuration_restore_request &&other366) -{ - cluster_name = std::move(other366.cluster_name); - policy_name = std::move(other366.policy_name); - time_stamp = std::move(other366.time_stamp); - app_name = std::move(other366.app_name); - app_id = std::move(other366.app_id); - new_app_name = std::move(other366.new_app_name); - backup_provider_name = std::move(other366.backup_provider_name); - skip_bad_partition = std::move(other366.skip_bad_partition); - __isset = std::move(other366.__isset); -} -configuration_restore_request &configuration_restore_request:: -operator=(const configuration_restore_request &other367) -{ - cluster_name = other367.cluster_name; - policy_name = other367.policy_name; - time_stamp = other367.time_stamp; - app_name = other367.app_name; - app_id = other367.app_id; - new_app_name = other367.new_app_name; - backup_provider_name = other367.backup_provider_name; - skip_bad_partition = other367.skip_bad_partition; - __isset = other367.__isset; - return *this; -} -configuration_restore_request &configuration_restore_request:: -operator=(configuration_restore_request &&other368) -{ - cluster_name = std::move(other368.cluster_name); - policy_name = std::move(other368.policy_name); - time_stamp = std::move(other368.time_stamp); - app_name = std::move(other368.app_name); - app_id = std::move(other368.app_id); - new_app_name = std::move(other368.new_app_name); - backup_provider_name = std::move(other368.backup_provider_name); - skip_bad_partition = std::move(other368.skip_bad_partition); - __isset = std::move(other368.__isset); - return *this; -} -void configuration_restore_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_restore_request("; - out << "cluster_name=" << to_string(cluster_name); - out << ", " - << "policy_name=" << to_string(policy_name); - out << ", " - << "time_stamp=" << to_string(time_stamp); - out << ", " - << "app_name=" << to_string(app_name); - out << ", " - << "app_id=" << to_string(app_id); - out << ", " - << "new_app_name=" << to_string(new_app_name); - out << ", " - << "backup_provider_name=" << to_string(backup_provider_name); - out << ", " - << "skip_bad_partition=" << to_string(skip_bad_partition); - out << ")"; -} - -backup_request::~backup_request() throw() {} - -void backup_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void backup_request::__set_policy(const policy_info &val) { this->policy = val; } - -void backup_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void backup_request::__set_backup_id(const int64_t val) { this->backup_id = val; } - -uint32_t backup_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->policy.read(iprot); - this->__isset.policy = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->backup_id); - this->__isset.backup_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("old_level", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->old_level); + xfer += oprot->writeFieldEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t backup_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("backup_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("policy", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->policy.write(oprot); - xfer += oprot->writeFieldEnd(); +void swap(configuration_meta_control_response &a, configuration_meta_control_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.old_level, b.old_level); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); +configuration_meta_control_response::configuration_meta_control_response(const configuration_meta_control_response& other182) { + err = other182.err; + old_level = other182.old_level; + __isset = other182.__isset; +} +configuration_meta_control_response::configuration_meta_control_response( configuration_meta_control_response&& other183) { + err = std::move(other183.err); + old_level = std::move(other183.old_level); + __isset = std::move(other183.__isset); +} +configuration_meta_control_response& configuration_meta_control_response::operator=(const configuration_meta_control_response& other184) { + err = other184.err; + old_level = other184.old_level; + __isset = other184.__isset; + return *this; +} +configuration_meta_control_response& configuration_meta_control_response::operator=(configuration_meta_control_response&& other185) { + err = std::move(other185.err); + old_level = std::move(other185.old_level); + __isset = std::move(other185.__isset); + return *this; +} +void configuration_meta_control_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_meta_control_response("; + out << "err=" << to_string(err); + out << ", " << "old_level=" << to_string(old_level); + out << ")"; +} - xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->backup_id); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(backup_request &a, backup_request &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.policy, b.policy); - swap(a.app_name, b.app_name); - swap(a.backup_id, b.backup_id); - swap(a.__isset, b.__isset); -} - -backup_request::backup_request(const backup_request &other369) -{ - pid = other369.pid; - policy = other369.policy; - app_name = other369.app_name; - backup_id = other369.backup_id; - __isset = other369.__isset; -} -backup_request::backup_request(backup_request &&other370) -{ - pid = std::move(other370.pid); - policy = std::move(other370.policy); - app_name = std::move(other370.app_name); - backup_id = std::move(other370.backup_id); - __isset = std::move(other370.__isset); -} -backup_request &backup_request::operator=(const backup_request &other371) -{ - pid = other371.pid; - policy = other371.policy; - app_name = other371.app_name; - backup_id = other371.backup_id; - __isset = other371.__isset; - return *this; -} -backup_request &backup_request::operator=(backup_request &&other372) -{ - pid = std::move(other372.pid); - policy = std::move(other372.policy); - app_name = std::move(other372.app_name); - backup_id = std::move(other372.backup_id); - __isset = std::move(other372.__isset); - return *this; -} -void backup_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "backup_request("; - out << "pid=" << to_string(pid); - out << ", " - << "policy=" << to_string(policy); - out << ", " - << "app_name=" << to_string(app_name); - out << ", " - << "backup_id=" << to_string(backup_id); - out << ")"; -} - -backup_response::~backup_response() throw() {} - -void backup_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void backup_response::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void backup_response::__set_progress(const int32_t val) { this->progress = val; } - -void backup_response::__set_policy_name(const std::string &val) { this->policy_name = val; } - -void backup_response::__set_backup_id(const int64_t val) { this->backup_id = val; } - -void backup_response::__set_checkpoint_total_size(const int64_t val) -{ - this->checkpoint_total_size = val; -} - -uint32_t backup_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->progress); - this->__isset.progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->backup_id); - this->__isset.backup_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->checkpoint_total_size); - this->__isset.checkpoint_total_size = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +configuration_proposal_action::~configuration_proposal_action() throw() { +} - xfer += iprot->readStructEnd(); - return xfer; +void configuration_proposal_action::__set_target(const ::dsn::rpc_address& val) { + this->target = val; } -uint32_t backup_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("backup_response"); +void configuration_proposal_action::__set_node(const ::dsn::rpc_address& val) { + this->node = val; +} - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +void configuration_proposal_action::__set_type(const config_type::type val) { + this->type = val; +} - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_proposal_action::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->progress); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->backup_id); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("checkpoint_total_size", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->checkpoint_total_size); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(backup_response &a, backup_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.pid, b.pid); - swap(a.progress, b.progress); - swap(a.policy_name, b.policy_name); - swap(a.backup_id, b.backup_id); - swap(a.checkpoint_total_size, b.checkpoint_total_size); - swap(a.__isset, b.__isset); -} - -backup_response::backup_response(const backup_response &other373) -{ - err = other373.err; - pid = other373.pid; - progress = other373.progress; - policy_name = other373.policy_name; - backup_id = other373.backup_id; - checkpoint_total_size = other373.checkpoint_total_size; - __isset = other373.__isset; -} -backup_response::backup_response(backup_response &&other374) -{ - err = std::move(other374.err); - pid = std::move(other374.pid); - progress = std::move(other374.progress); - policy_name = std::move(other374.policy_name); - backup_id = std::move(other374.backup_id); - checkpoint_total_size = std::move(other374.checkpoint_total_size); - __isset = std::move(other374.__isset); -} -backup_response &backup_response::operator=(const backup_response &other375) -{ - err = other375.err; - pid = other375.pid; - progress = other375.progress; - policy_name = other375.policy_name; - backup_id = other375.backup_id; - checkpoint_total_size = other375.checkpoint_total_size; - __isset = other375.__isset; - return *this; -} -backup_response &backup_response::operator=(backup_response &&other376) -{ - err = std::move(other376.err); - pid = std::move(other376.pid); - progress = std::move(other376.progress); - policy_name = std::move(other376.policy_name); - backup_id = std::move(other376.backup_id); - checkpoint_total_size = std::move(other376.checkpoint_total_size); - __isset = std::move(other376.__isset); - return *this; -} -void backup_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "backup_response("; - out << "err=" << to_string(err); - out << ", " - << "pid=" << to_string(pid); - out << ", " - << "progress=" << to_string(progress); - out << ", " - << "policy_name=" << to_string(policy_name); - out << ", " - << "backup_id=" << to_string(backup_id); - out << ", " - << "checkpoint_total_size=" << to_string(checkpoint_total_size); - out << ")"; -} - -backup_clear_request::~backup_clear_request() throw() {} - -void backup_clear_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void backup_clear_request::__set_policy_name(const std::string &val) { this->policy_name = val; } - -uint32_t backup_clear_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->target.read(iprot); + this->__isset.target = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast186; + xfer += iprot->readI32(ecast186); + this->type = (config_type::type)ecast186; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t backup_clear_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("backup_clear_request"); +uint32_t configuration_proposal_action::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_proposal_action"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("target", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->target.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(backup_clear_request &a, backup_clear_request &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.policy_name, b.policy_name); - swap(a.__isset, b.__isset); +void swap(configuration_proposal_action &a, configuration_proposal_action &b) { + using ::std::swap; + swap(a.target, b.target); + swap(a.node, b.node); + swap(a.type, b.type); + swap(a.__isset, b.__isset); } -backup_clear_request::backup_clear_request(const backup_clear_request &other377) -{ - pid = other377.pid; - policy_name = other377.policy_name; - __isset = other377.__isset; +configuration_proposal_action::configuration_proposal_action(const configuration_proposal_action& other187) { + target = other187.target; + node = other187.node; + type = other187.type; + __isset = other187.__isset; } -backup_clear_request::backup_clear_request(backup_clear_request &&other378) -{ - pid = std::move(other378.pid); - policy_name = std::move(other378.policy_name); - __isset = std::move(other378.__isset); +configuration_proposal_action::configuration_proposal_action( configuration_proposal_action&& other188) { + target = std::move(other188.target); + node = std::move(other188.node); + type = std::move(other188.type); + __isset = std::move(other188.__isset); } -backup_clear_request &backup_clear_request::operator=(const backup_clear_request &other379) -{ - pid = other379.pid; - policy_name = other379.policy_name; - __isset = other379.__isset; - return *this; +configuration_proposal_action& configuration_proposal_action::operator=(const configuration_proposal_action& other189) { + target = other189.target; + node = other189.node; + type = other189.type; + __isset = other189.__isset; + return *this; } -backup_clear_request &backup_clear_request::operator=(backup_clear_request &&other380) -{ - pid = std::move(other380.pid); - policy_name = std::move(other380.policy_name); - __isset = std::move(other380.__isset); - return *this; +configuration_proposal_action& configuration_proposal_action::operator=(configuration_proposal_action&& other190) { + target = std::move(other190.target); + node = std::move(other190.node); + type = std::move(other190.type); + __isset = std::move(other190.__isset); + return *this; } -void backup_clear_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "backup_clear_request("; - out << "pid=" << to_string(pid); - out << ", " - << "policy_name=" << to_string(policy_name); - out << ")"; +void configuration_proposal_action::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_proposal_action("; + out << "target=" << to_string(target); + out << ", " << "node=" << to_string(node); + out << ", " << "type=" << to_string(type); + out << ")"; } -configuration_modify_backup_policy_request::~configuration_modify_backup_policy_request() throw() {} -void configuration_modify_backup_policy_request::__set_policy_name(const std::string &val) -{ - this->policy_name = val; +configuration_balancer_request::~configuration_balancer_request() throw() { } -void configuration_modify_backup_policy_request::__set_add_appids(const std::vector &val) -{ - this->add_appids = val; - __isset.add_appids = true; -} -void configuration_modify_backup_policy_request::__set_removal_appids( - const std::vector &val) -{ - this->removal_appids = val; - __isset.removal_appids = true; +void configuration_balancer_request::__set_gpid(const ::dsn::gpid& val) { + this->gpid = val; } -void configuration_modify_backup_policy_request::__set_new_backup_interval_sec(const int64_t val) -{ - this->new_backup_interval_sec = val; - __isset.new_backup_interval_sec = true; +void configuration_balancer_request::__set_action_list(const std::vector & val) { + this->action_list = val; } -void configuration_modify_backup_policy_request::__set_backup_history_count_to_keep( - const int32_t val) -{ - this->backup_history_count_to_keep = val; - __isset.backup_history_count_to_keep = true; +void configuration_balancer_request::__set_force(const bool val) { + this->force = val; +__isset.force = true; } -void configuration_modify_backup_policy_request::__set_is_disable(const bool val) -{ - this->is_disable = val; - __isset.is_disable = true; +void configuration_balancer_request::__set_balance_type(const balancer_request_type::type val) { + this->balance_type = val; +__isset.balance_type = true; } -void configuration_modify_backup_policy_request::__set_start_time(const std::string &val) -{ - this->start_time = val; - __isset.start_time = true; -} +uint32_t configuration_balancer_request::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t -configuration_modify_backup_policy_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->add_appids.clear(); - uint32_t _size381; - ::apache::thrift::protocol::TType _etype384; - xfer += iprot->readListBegin(_etype384, _size381); - this->add_appids.resize(_size381); - uint32_t _i385; - for (_i385 = 0; _i385 < _size381; ++_i385) { - xfer += iprot->readI32(this->add_appids[_i385]); - } - xfer += iprot->readListEnd(); - } - this->__isset.add_appids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->removal_appids.clear(); - uint32_t _size386; - ::apache::thrift::protocol::TType _etype389; - xfer += iprot->readListBegin(_etype389, _size386); - this->removal_appids.resize(_size386); - uint32_t _i390; - for (_i390 = 0; _i390 < _size386; ++_i390) { - xfer += iprot->readI32(this->removal_appids[_i390]); - } - xfer += iprot->readListEnd(); - } - this->__isset.removal_appids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->new_backup_interval_sec); - this->__isset.new_backup_interval_sec = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->backup_history_count_to_keep); - this->__isset.backup_history_count_to_keep = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_disable); - this->__isset.is_disable = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->start_time); - this->__isset.start_time = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->gpid.read(iprot); + this->__isset.gpid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->action_list.clear(); + uint32_t _size191; + ::apache::thrift::protocol::TType _etype194; + xfer += iprot->readListBegin(_etype194, _size191); + this->action_list.resize(_size191); + uint32_t _i195; + for (_i195 = 0; _i195 < _size191; ++_i195) + { + xfer += this->action_list[_i195].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.action_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->force); + this->__isset.force = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast196; + xfer += iprot->readI32(ecast196); + this->balance_type = (balancer_request_type::type)ecast196; + this->__isset.balance_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_modify_backup_policy_request::write( - ::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_modify_backup_policy_request"); +uint32_t configuration_balancer_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_balancer_request"); - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("gpid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->gpid.write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.add_appids) { - xfer += oprot->writeFieldBegin("add_appids", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, - static_cast(this->add_appids.size())); - std::vector::const_iterator _iter391; - for (_iter391 = this->add_appids.begin(); _iter391 != this->add_appids.end(); - ++_iter391) { - xfer += oprot->writeI32((*_iter391)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.removal_appids) { - xfer += oprot->writeFieldBegin("removal_appids", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, - static_cast(this->removal_appids.size())); - std::vector::const_iterator _iter392; - for (_iter392 = this->removal_appids.begin(); _iter392 != this->removal_appids.end(); - ++_iter392) { - xfer += oprot->writeI32((*_iter392)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.new_backup_interval_sec) { - xfer += - oprot->writeFieldBegin("new_backup_interval_sec", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->new_backup_interval_sec); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.backup_history_count_to_keep) { - xfer += oprot->writeFieldBegin( - "backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->backup_history_count_to_keep); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_disable) { - xfer += oprot->writeFieldBegin("is_disable", ::apache::thrift::protocol::T_BOOL, 6); - xfer += oprot->writeBool(this->is_disable); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.start_time) { - xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->start_time); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_modify_backup_policy_request &a, - configuration_modify_backup_policy_request &b) -{ - using ::std::swap; - swap(a.policy_name, b.policy_name); - swap(a.add_appids, b.add_appids); - swap(a.removal_appids, b.removal_appids); - swap(a.new_backup_interval_sec, b.new_backup_interval_sec); - swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); - swap(a.is_disable, b.is_disable); - swap(a.start_time, b.start_time); - swap(a.__isset, b.__isset); -} - -configuration_modify_backup_policy_request::configuration_modify_backup_policy_request( - const configuration_modify_backup_policy_request &other393) -{ - policy_name = other393.policy_name; - add_appids = other393.add_appids; - removal_appids = other393.removal_appids; - new_backup_interval_sec = other393.new_backup_interval_sec; - backup_history_count_to_keep = other393.backup_history_count_to_keep; - is_disable = other393.is_disable; - start_time = other393.start_time; - __isset = other393.__isset; -} -configuration_modify_backup_policy_request::configuration_modify_backup_policy_request( - configuration_modify_backup_policy_request &&other394) -{ - policy_name = std::move(other394.policy_name); - add_appids = std::move(other394.add_appids); - removal_appids = std::move(other394.removal_appids); - new_backup_interval_sec = std::move(other394.new_backup_interval_sec); - backup_history_count_to_keep = std::move(other394.backup_history_count_to_keep); - is_disable = std::move(other394.is_disable); - start_time = std::move(other394.start_time); - __isset = std::move(other394.__isset); -} -configuration_modify_backup_policy_request &configuration_modify_backup_policy_request:: -operator=(const configuration_modify_backup_policy_request &other395) -{ - policy_name = other395.policy_name; - add_appids = other395.add_appids; - removal_appids = other395.removal_appids; - new_backup_interval_sec = other395.new_backup_interval_sec; - backup_history_count_to_keep = other395.backup_history_count_to_keep; - is_disable = other395.is_disable; - start_time = other395.start_time; - __isset = other395.__isset; - return *this; -} -configuration_modify_backup_policy_request &configuration_modify_backup_policy_request:: -operator=(configuration_modify_backup_policy_request &&other396) -{ - policy_name = std::move(other396.policy_name); - add_appids = std::move(other396.add_appids); - removal_appids = std::move(other396.removal_appids); - new_backup_interval_sec = std::move(other396.new_backup_interval_sec); - backup_history_count_to_keep = std::move(other396.backup_history_count_to_keep); - is_disable = std::move(other396.is_disable); - start_time = std::move(other396.start_time); - __isset = std::move(other396.__isset); - return *this; -} -void configuration_modify_backup_policy_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_modify_backup_policy_request("; - out << "policy_name=" << to_string(policy_name); - out << ", " - << "add_appids="; - (__isset.add_appids ? (out << to_string(add_appids)) : (out << "")); - out << ", " - << "removal_appids="; - (__isset.removal_appids ? (out << to_string(removal_appids)) : (out << "")); - out << ", " - << "new_backup_interval_sec="; - (__isset.new_backup_interval_sec ? (out << to_string(new_backup_interval_sec)) - : (out << "")); - out << ", " - << "backup_history_count_to_keep="; - (__isset.backup_history_count_to_keep ? (out << to_string(backup_history_count_to_keep)) - : (out << "")); - out << ", " - << "is_disable="; - (__isset.is_disable ? (out << to_string(is_disable)) : (out << "")); - out << ", " - << "start_time="; - (__isset.start_time ? (out << to_string(start_time)) : (out << "")); - out << ")"; -} - -configuration_modify_backup_policy_response::~configuration_modify_backup_policy_response() throw() -{ -} - -void configuration_modify_backup_policy_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; -} - -void configuration_modify_backup_policy_response::__set_hint_message(const std::string &val) -{ - this->hint_message = val; -} - -uint32_t -configuration_modify_backup_policy_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_message); - this->__isset.hint_message = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeFieldBegin("action_list", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->action_list.size())); + std::vector ::const_iterator _iter197; + for (_iter197 = this->action_list.begin(); _iter197 != this->action_list.end(); ++_iter197) + { + xfer += (*_iter197).write(oprot); } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_modify_backup_policy_response::write( - ::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_modify_backup_policy_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); + if (this->__isset.force) { + xfer += oprot->writeFieldBegin("force", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->force); xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_message); + } + if (this->__isset.balance_type) { + xfer += oprot->writeFieldBegin("balance_type", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->balance_type); xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_modify_backup_policy_response &a, - configuration_modify_backup_policy_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_message, b.hint_message); - swap(a.__isset, b.__isset); +void swap(configuration_balancer_request &a, configuration_balancer_request &b) { + using ::std::swap; + swap(a.gpid, b.gpid); + swap(a.action_list, b.action_list); + swap(a.force, b.force); + swap(a.balance_type, b.balance_type); + swap(a.__isset, b.__isset); } -configuration_modify_backup_policy_response::configuration_modify_backup_policy_response( - const configuration_modify_backup_policy_response &other397) -{ - err = other397.err; - hint_message = other397.hint_message; - __isset = other397.__isset; +configuration_balancer_request::configuration_balancer_request(const configuration_balancer_request& other198) { + gpid = other198.gpid; + action_list = other198.action_list; + force = other198.force; + balance_type = other198.balance_type; + __isset = other198.__isset; } -configuration_modify_backup_policy_response::configuration_modify_backup_policy_response( - configuration_modify_backup_policy_response &&other398) -{ - err = std::move(other398.err); - hint_message = std::move(other398.hint_message); - __isset = std::move(other398.__isset); +configuration_balancer_request::configuration_balancer_request( configuration_balancer_request&& other199) { + gpid = std::move(other199.gpid); + action_list = std::move(other199.action_list); + force = std::move(other199.force); + balance_type = std::move(other199.balance_type); + __isset = std::move(other199.__isset); } -configuration_modify_backup_policy_response &configuration_modify_backup_policy_response:: -operator=(const configuration_modify_backup_policy_response &other399) -{ - err = other399.err; - hint_message = other399.hint_message; - __isset = other399.__isset; - return *this; +configuration_balancer_request& configuration_balancer_request::operator=(const configuration_balancer_request& other200) { + gpid = other200.gpid; + action_list = other200.action_list; + force = other200.force; + balance_type = other200.balance_type; + __isset = other200.__isset; + return *this; } -configuration_modify_backup_policy_response &configuration_modify_backup_policy_response:: -operator=(configuration_modify_backup_policy_response &&other400) -{ - err = std::move(other400.err); - hint_message = std::move(other400.hint_message); - __isset = std::move(other400.__isset); - return *this; +configuration_balancer_request& configuration_balancer_request::operator=(configuration_balancer_request&& other201) { + gpid = std::move(other201.gpid); + action_list = std::move(other201.action_list); + force = std::move(other201.force); + balance_type = std::move(other201.balance_type); + __isset = std::move(other201.__isset); + return *this; } -void configuration_modify_backup_policy_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_modify_backup_policy_response("; - out << "err=" << to_string(err); - out << ", " - << "hint_message=" << to_string(hint_message); - out << ")"; +void configuration_balancer_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_balancer_request("; + out << "gpid=" << to_string(gpid); + out << ", " << "action_list=" << to_string(action_list); + out << ", " << "force="; (__isset.force ? (out << to_string(force)) : (out << "")); + out << ", " << "balance_type="; (__isset.balance_type ? (out << to_string(balance_type)) : (out << "")); + out << ")"; } -configuration_add_backup_policy_request::~configuration_add_backup_policy_request() throw() {} -void configuration_add_backup_policy_request::__set_backup_provider_type(const std::string &val) -{ - this->backup_provider_type = val; +configuration_balancer_response::~configuration_balancer_response() throw() { } -void configuration_add_backup_policy_request::__set_policy_name(const std::string &val) -{ - this->policy_name = val; -} -void configuration_add_backup_policy_request::__set_app_ids(const std::vector &val) -{ - this->app_ids = val; +void configuration_balancer_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void configuration_add_backup_policy_request::__set_backup_interval_seconds(const int64_t val) -{ - this->backup_interval_seconds = val; -} +uint32_t configuration_balancer_response::read(::apache::thrift::protocol::TProtocol* iprot) { -void configuration_add_backup_policy_request::__set_backup_history_count_to_keep(const int32_t val) -{ - this->backup_history_count_to_keep = val; -} + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); -void configuration_add_backup_policy_request::__set_start_time(const std::string &val) -{ - this->start_time = val; + return xfer; } -uint32_t configuration_add_backup_policy_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t configuration_balancer_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_balancer_response"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - using ::apache::thrift::protocol::TProtocolException; +void swap(configuration_balancer_response &a, configuration_balancer_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); +} - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_provider_type); - this->__isset.backup_provider_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->app_ids.clear(); - uint32_t _size401; - ::apache::thrift::protocol::TType _etype404; - xfer += iprot->readListBegin(_etype404, _size401); - this->app_ids.resize(_size401); - uint32_t _i405; - for (_i405 = 0; _i405 < _size401; ++_i405) { - xfer += iprot->readI32(this->app_ids[_i405]); - } - xfer += iprot->readListEnd(); - } - this->__isset.app_ids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->backup_interval_seconds); - this->__isset.backup_interval_seconds = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->backup_history_count_to_keep); - this->__isset.backup_history_count_to_keep = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->start_time); - this->__isset.start_time = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +configuration_balancer_response::configuration_balancer_response(const configuration_balancer_response& other202) { + err = other202.err; + __isset = other202.__isset; +} +configuration_balancer_response::configuration_balancer_response( configuration_balancer_response&& other203) { + err = std::move(other203.err); + __isset = std::move(other203.__isset); +} +configuration_balancer_response& configuration_balancer_response::operator=(const configuration_balancer_response& other204) { + err = other204.err; + __isset = other204.__isset; + return *this; +} +configuration_balancer_response& configuration_balancer_response::operator=(configuration_balancer_response&& other205) { + err = std::move(other205.err); + __isset = std::move(other205.__isset); + return *this; +} +void configuration_balancer_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_balancer_response("; + out << "err=" << to_string(err); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +configuration_drop_app_response::~configuration_drop_app_response() throw() { } -uint32_t -configuration_add_backup_policy_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_add_backup_policy_request"); - xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->backup_provider_type); - xfer += oprot->writeFieldEnd(); +void configuration_drop_app_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_drop_app_response::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, - static_cast(this->app_ids.size())); - std::vector::const_iterator _iter406; - for (_iter406 = this->app_ids.begin(); _iter406 != this->app_ids.end(); ++_iter406) { - xfer += oprot->writeI32((*_iter406)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("backup_interval_seconds", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->backup_interval_seconds); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin( - "backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->backup_history_count_to_keep); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->start_time); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_add_backup_policy_request &a, configuration_add_backup_policy_request &b) -{ - using ::std::swap; - swap(a.backup_provider_type, b.backup_provider_type); - swap(a.policy_name, b.policy_name); - swap(a.app_ids, b.app_ids); - swap(a.backup_interval_seconds, b.backup_interval_seconds); - swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); - swap(a.start_time, b.start_time); - swap(a.__isset, b.__isset); -} - -configuration_add_backup_policy_request::configuration_add_backup_policy_request( - const configuration_add_backup_policy_request &other407) -{ - backup_provider_type = other407.backup_provider_type; - policy_name = other407.policy_name; - app_ids = other407.app_ids; - backup_interval_seconds = other407.backup_interval_seconds; - backup_history_count_to_keep = other407.backup_history_count_to_keep; - start_time = other407.start_time; - __isset = other407.__isset; -} -configuration_add_backup_policy_request::configuration_add_backup_policy_request( - configuration_add_backup_policy_request &&other408) -{ - backup_provider_type = std::move(other408.backup_provider_type); - policy_name = std::move(other408.policy_name); - app_ids = std::move(other408.app_ids); - backup_interval_seconds = std::move(other408.backup_interval_seconds); - backup_history_count_to_keep = std::move(other408.backup_history_count_to_keep); - start_time = std::move(other408.start_time); - __isset = std::move(other408.__isset); -} -configuration_add_backup_policy_request &configuration_add_backup_policy_request:: -operator=(const configuration_add_backup_policy_request &other409) -{ - backup_provider_type = other409.backup_provider_type; - policy_name = other409.policy_name; - app_ids = other409.app_ids; - backup_interval_seconds = other409.backup_interval_seconds; - backup_history_count_to_keep = other409.backup_history_count_to_keep; - start_time = other409.start_time; - __isset = other409.__isset; - return *this; -} -configuration_add_backup_policy_request &configuration_add_backup_policy_request:: -operator=(configuration_add_backup_policy_request &&other410) -{ - backup_provider_type = std::move(other410.backup_provider_type); - policy_name = std::move(other410.policy_name); - app_ids = std::move(other410.app_ids); - backup_interval_seconds = std::move(other410.backup_interval_seconds); - backup_history_count_to_keep = std::move(other410.backup_history_count_to_keep); - start_time = std::move(other410.start_time); - __isset = std::move(other410.__isset); - return *this; -} -void configuration_add_backup_policy_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_add_backup_policy_request("; - out << "backup_provider_type=" << to_string(backup_provider_type); - out << ", " - << "policy_name=" << to_string(policy_name); - out << ", " - << "app_ids=" << to_string(app_ids); - out << ", " - << "backup_interval_seconds=" << to_string(backup_interval_seconds); - out << ", " - << "backup_history_count_to_keep=" << to_string(backup_history_count_to_keep); - out << ", " - << "start_time=" << to_string(start_time); - out << ")"; -} - -configuration_add_backup_policy_response::~configuration_add_backup_policy_response() throw() {} - -void configuration_add_backup_policy_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; -} - -void configuration_add_backup_policy_response::__set_hint_message(const std::string &val) -{ - this->hint_message = val; -} - -uint32_t -configuration_add_backup_policy_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_message); - this->__isset.hint_message = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_add_backup_policy_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_add_backup_policy_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_drop_app_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_drop_app_response"); - xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_message); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_add_backup_policy_response &a, configuration_add_backup_policy_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_message, b.hint_message); - swap(a.__isset, b.__isset); +void swap(configuration_drop_app_response &a, configuration_drop_app_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); } -configuration_add_backup_policy_response::configuration_add_backup_policy_response( - const configuration_add_backup_policy_response &other411) -{ - err = other411.err; - hint_message = other411.hint_message; - __isset = other411.__isset; +configuration_drop_app_response::configuration_drop_app_response(const configuration_drop_app_response& other206) { + err = other206.err; + __isset = other206.__isset; } -configuration_add_backup_policy_response::configuration_add_backup_policy_response( - configuration_add_backup_policy_response &&other412) -{ - err = std::move(other412.err); - hint_message = std::move(other412.hint_message); - __isset = std::move(other412.__isset); +configuration_drop_app_response::configuration_drop_app_response( configuration_drop_app_response&& other207) { + err = std::move(other207.err); + __isset = std::move(other207.__isset); } -configuration_add_backup_policy_response &configuration_add_backup_policy_response:: -operator=(const configuration_add_backup_policy_response &other413) -{ - err = other413.err; - hint_message = other413.hint_message; - __isset = other413.__isset; - return *this; +configuration_drop_app_response& configuration_drop_app_response::operator=(const configuration_drop_app_response& other208) { + err = other208.err; + __isset = other208.__isset; + return *this; } -configuration_add_backup_policy_response &configuration_add_backup_policy_response:: -operator=(configuration_add_backup_policy_response &&other414) -{ - err = std::move(other414.err); - hint_message = std::move(other414.hint_message); - __isset = std::move(other414.__isset); - return *this; +configuration_drop_app_response& configuration_drop_app_response::operator=(configuration_drop_app_response&& other209) { + err = std::move(other209.err); + __isset = std::move(other209.__isset); + return *this; } -void configuration_add_backup_policy_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_add_backup_policy_response("; - out << "err=" << to_string(err); - out << ", " - << "hint_message=" << to_string(hint_message); - out << ")"; +void configuration_drop_app_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_drop_app_response("; + out << "err=" << to_string(err); + out << ")"; } -policy_entry::~policy_entry() throw() {} -void policy_entry::__set_policy_name(const std::string &val) { this->policy_name = val; } - -void policy_entry::__set_backup_provider_type(const std::string &val) -{ - this->backup_provider_type = val; -} - -void policy_entry::__set_backup_interval_seconds(const std::string &val) -{ - this->backup_interval_seconds = val; +configuration_list_apps_response::~configuration_list_apps_response() throw() { } -void policy_entry::__set_app_ids(const std::set &val) { this->app_ids = val; } -void policy_entry::__set_backup_history_count_to_keep(const int32_t val) -{ - this->backup_history_count_to_keep = val; +void configuration_list_apps_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void policy_entry::__set_start_time(const std::string &val) { this->start_time = val; } +void configuration_list_apps_response::__set_infos(const std::vector< ::dsn::app_info> & val) { + this->infos = val; +} -void policy_entry::__set_is_disable(const bool val) { this->is_disable = val; } +uint32_t configuration_list_apps_response::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t policy_entry::read(::apache::thrift::protocol::TProtocol *iprot) -{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_provider_type); - this->__isset.backup_provider_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_interval_seconds); - this->__isset.backup_interval_seconds = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_SET) { - { - this->app_ids.clear(); - uint32_t _size415; - ::apache::thrift::protocol::TType _etype418; - xfer += iprot->readSetBegin(_etype418, _size415); - uint32_t _i419; - for (_i419 = 0; _i419 < _size415; ++_i419) { - int32_t _elem420; - xfer += iprot->readI32(_elem420); - this->app_ids.insert(_elem420); - } - xfer += iprot->readSetEnd(); - } - this->__isset.app_ids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->backup_history_count_to_keep); - this->__isset.backup_history_count_to_keep = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->start_time); - this->__isset.start_time = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_disable); - this->__isset.is_disable = true; - } else { - xfer += iprot->skip(ftype); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->infos.clear(); + uint32_t _size210; + ::apache::thrift::protocol::TType _etype213; + xfer += iprot->readListBegin(_etype213, _size210); + this->infos.resize(_size210); + uint32_t _i214; + for (_i214 = 0; _i214 < _size210; ++_i214) + { + xfer += this->infos[_i214].read(iprot); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.infos = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t policy_entry::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("policy_entry"); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->backup_provider_type); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_list_apps_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_list_apps_response"); - xfer += - oprot->writeFieldBegin("backup_interval_seconds", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->backup_interval_seconds); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_SET, 4); + xfer += oprot->writeFieldBegin("infos", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->infos.size())); + std::vector< ::dsn::app_info> ::const_iterator _iter215; + for (_iter215 = this->infos.begin(); _iter215 != this->infos.end(); ++_iter215) { - xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, - static_cast(this->app_ids.size())); - std::set::const_iterator _iter421; - for (_iter421 = this->app_ids.begin(); _iter421 != this->app_ids.end(); ++_iter421) { - xfer += oprot->writeI32((*_iter421)); - } - xfer += oprot->writeSetEnd(); + xfer += (*_iter215).write(oprot); } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin( - "backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->backup_history_count_to_keep); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->start_time); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("is_disable", ::apache::thrift::protocol::T_BOOL, 7); - xfer += oprot->writeBool(this->is_disable); - xfer += oprot->writeFieldEnd(); +void swap(configuration_list_apps_response &a, configuration_list_apps_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.infos, b.infos); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(policy_entry &a, policy_entry &b) -{ - using ::std::swap; - swap(a.policy_name, b.policy_name); - swap(a.backup_provider_type, b.backup_provider_type); - swap(a.backup_interval_seconds, b.backup_interval_seconds); - swap(a.app_ids, b.app_ids); - swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); - swap(a.start_time, b.start_time); - swap(a.is_disable, b.is_disable); - swap(a.__isset, b.__isset); -} - -policy_entry::policy_entry(const policy_entry &other422) -{ - policy_name = other422.policy_name; - backup_provider_type = other422.backup_provider_type; - backup_interval_seconds = other422.backup_interval_seconds; - app_ids = other422.app_ids; - backup_history_count_to_keep = other422.backup_history_count_to_keep; - start_time = other422.start_time; - is_disable = other422.is_disable; - __isset = other422.__isset; -} -policy_entry::policy_entry(policy_entry &&other423) -{ - policy_name = std::move(other423.policy_name); - backup_provider_type = std::move(other423.backup_provider_type); - backup_interval_seconds = std::move(other423.backup_interval_seconds); - app_ids = std::move(other423.app_ids); - backup_history_count_to_keep = std::move(other423.backup_history_count_to_keep); - start_time = std::move(other423.start_time); - is_disable = std::move(other423.is_disable); - __isset = std::move(other423.__isset); -} -policy_entry &policy_entry::operator=(const policy_entry &other424) -{ - policy_name = other424.policy_name; - backup_provider_type = other424.backup_provider_type; - backup_interval_seconds = other424.backup_interval_seconds; - app_ids = other424.app_ids; - backup_history_count_to_keep = other424.backup_history_count_to_keep; - start_time = other424.start_time; - is_disable = other424.is_disable; - __isset = other424.__isset; - return *this; -} -policy_entry &policy_entry::operator=(policy_entry &&other425) -{ - policy_name = std::move(other425.policy_name); - backup_provider_type = std::move(other425.backup_provider_type); - backup_interval_seconds = std::move(other425.backup_interval_seconds); - app_ids = std::move(other425.app_ids); - backup_history_count_to_keep = std::move(other425.backup_history_count_to_keep); - start_time = std::move(other425.start_time); - is_disable = std::move(other425.is_disable); - __isset = std::move(other425.__isset); - return *this; -} -void policy_entry::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "policy_entry("; - out << "policy_name=" << to_string(policy_name); - out << ", " - << "backup_provider_type=" << to_string(backup_provider_type); - out << ", " - << "backup_interval_seconds=" << to_string(backup_interval_seconds); - out << ", " - << "app_ids=" << to_string(app_ids); - out << ", " - << "backup_history_count_to_keep=" << to_string(backup_history_count_to_keep); - out << ", " - << "start_time=" << to_string(start_time); - out << ", " - << "is_disable=" << to_string(is_disable); - out << ")"; -} - -backup_entry::~backup_entry() throw() {} - -void backup_entry::__set_backup_id(const int64_t val) { this->backup_id = val; } - -void backup_entry::__set_start_time_ms(const int64_t val) { this->start_time_ms = val; } - -void backup_entry::__set_end_time_ms(const int64_t val) { this->end_time_ms = val; } - -void backup_entry::__set_app_ids(const std::set &val) { this->app_ids = val; } - -uint32_t backup_entry::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->backup_id); - this->__isset.backup_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->start_time_ms); - this->__isset.start_time_ms = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->end_time_ms); - this->__isset.end_time_ms = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_SET) { - { - this->app_ids.clear(); - uint32_t _size426; - ::apache::thrift::protocol::TType _etype429; - xfer += iprot->readSetBegin(_etype429, _size426); - uint32_t _i430; - for (_i430 = 0; _i430 < _size426; ++_i430) { - int32_t _elem431; - xfer += iprot->readI32(_elem431); - this->app_ids.insert(_elem431); - } - xfer += iprot->readSetEnd(); - } - this->__isset.app_ids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +configuration_list_apps_response::configuration_list_apps_response(const configuration_list_apps_response& other216) { + err = other216.err; + infos = other216.infos; + __isset = other216.__isset; +} +configuration_list_apps_response::configuration_list_apps_response( configuration_list_apps_response&& other217) { + err = std::move(other217.err); + infos = std::move(other217.infos); + __isset = std::move(other217.__isset); +} +configuration_list_apps_response& configuration_list_apps_response::operator=(const configuration_list_apps_response& other218) { + err = other218.err; + infos = other218.infos; + __isset = other218.__isset; + return *this; +} +configuration_list_apps_response& configuration_list_apps_response::operator=(configuration_list_apps_response&& other219) { + err = std::move(other219.err); + infos = std::move(other219.infos); + __isset = std::move(other219.__isset); + return *this; +} +void configuration_list_apps_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_list_apps_response("; + out << "err=" << to_string(err); + out << ", " << "infos=" << to_string(infos); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +configuration_list_nodes_response::~configuration_list_nodes_response() throw() { } -uint32_t backup_entry::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("backup_entry"); - - xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 1); - xfer += oprot->writeI64(this->backup_id); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("start_time_ms", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->start_time_ms); - xfer += oprot->writeFieldEnd(); +void configuration_list_nodes_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - xfer += oprot->writeFieldBegin("end_time_ms", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->end_time_ms); - xfer += oprot->writeFieldEnd(); +void configuration_list_nodes_response::__set_infos(const std::vector & val) { + this->infos = val; +} - xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_SET, 4); - { - xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, - static_cast(this->app_ids.size())); - std::set::const_iterator _iter432; - for (_iter432 = this->app_ids.begin(); _iter432 != this->app_ids.end(); ++_iter432) { - xfer += oprot->writeI32((*_iter432)); - } - xfer += oprot->writeSetEnd(); - } - xfer += oprot->writeFieldEnd(); +uint32_t configuration_list_nodes_response::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(backup_entry &a, backup_entry &b) -{ - using ::std::swap; - swap(a.backup_id, b.backup_id); - swap(a.start_time_ms, b.start_time_ms); - swap(a.end_time_ms, b.end_time_ms); - swap(a.app_ids, b.app_ids); - swap(a.__isset, b.__isset); -} - -backup_entry::backup_entry(const backup_entry &other433) -{ - backup_id = other433.backup_id; - start_time_ms = other433.start_time_ms; - end_time_ms = other433.end_time_ms; - app_ids = other433.app_ids; - __isset = other433.__isset; -} -backup_entry::backup_entry(backup_entry &&other434) -{ - backup_id = std::move(other434.backup_id); - start_time_ms = std::move(other434.start_time_ms); - end_time_ms = std::move(other434.end_time_ms); - app_ids = std::move(other434.app_ids); - __isset = std::move(other434.__isset); -} -backup_entry &backup_entry::operator=(const backup_entry &other435) -{ - backup_id = other435.backup_id; - start_time_ms = other435.start_time_ms; - end_time_ms = other435.end_time_ms; - app_ids = other435.app_ids; - __isset = other435.__isset; - return *this; -} -backup_entry &backup_entry::operator=(backup_entry &&other436) -{ - backup_id = std::move(other436.backup_id); - start_time_ms = std::move(other436.start_time_ms); - end_time_ms = std::move(other436.end_time_ms); - app_ids = std::move(other436.app_ids); - __isset = std::move(other436.__isset); - return *this; -} -void backup_entry::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "backup_entry("; - out << "backup_id=" << to_string(backup_id); - out << ", " - << "start_time_ms=" << to_string(start_time_ms); - out << ", " - << "end_time_ms=" << to_string(end_time_ms); - out << ", " - << "app_ids=" << to_string(app_ids); - out << ")"; -} - -configuration_query_backup_policy_request::~configuration_query_backup_policy_request() throw() {} - -void configuration_query_backup_policy_request::__set_policy_names( - const std::vector &val) -{ - this->policy_names = val; -} - -void configuration_query_backup_policy_request::__set_backup_info_count(const int32_t val) -{ - this->backup_info_count = val; -} - -uint32_t -configuration_query_backup_policy_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->policy_names.clear(); - uint32_t _size437; - ::apache::thrift::protocol::TType _etype440; - xfer += iprot->readListBegin(_etype440, _size437); - this->policy_names.resize(_size437); - uint32_t _i441; - for (_i441 = 0; _i441 < _size437; ++_i441) { - xfer += iprot->readString(this->policy_names[_i441]); - } - xfer += iprot->readListEnd(); - } - this->__isset.policy_names = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->backup_info_count); - this->__isset.backup_info_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructEnd(); + xfer += iprot->readStructBegin(fname); - return xfer; -} + using ::apache::thrift::protocol::TProtocolException; -uint32_t -configuration_query_backup_policy_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_backup_policy_request"); - xfer += oprot->writeFieldBegin("policy_names", ::apache::thrift::protocol::T_LIST, 1); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, - static_cast(this->policy_names.size())); - std::vector::const_iterator _iter442; - for (_iter442 = this->policy_names.begin(); _iter442 != this->policy_names.end(); - ++_iter442) { - xfer += oprot->writeString((*_iter442)); - } - xfer += oprot->writeListEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_info_count", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->backup_info_count); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_backup_policy_request &a, - configuration_query_backup_policy_request &b) -{ - using ::std::swap; - swap(a.policy_names, b.policy_names); - swap(a.backup_info_count, b.backup_info_count); - swap(a.__isset, b.__isset); -} - -configuration_query_backup_policy_request::configuration_query_backup_policy_request( - const configuration_query_backup_policy_request &other443) -{ - policy_names = other443.policy_names; - backup_info_count = other443.backup_info_count; - __isset = other443.__isset; -} -configuration_query_backup_policy_request::configuration_query_backup_policy_request( - configuration_query_backup_policy_request &&other444) -{ - policy_names = std::move(other444.policy_names); - backup_info_count = std::move(other444.backup_info_count); - __isset = std::move(other444.__isset); -} -configuration_query_backup_policy_request &configuration_query_backup_policy_request:: -operator=(const configuration_query_backup_policy_request &other445) -{ - policy_names = other445.policy_names; - backup_info_count = other445.backup_info_count; - __isset = other445.__isset; - return *this; -} -configuration_query_backup_policy_request &configuration_query_backup_policy_request:: -operator=(configuration_query_backup_policy_request &&other446) -{ - policy_names = std::move(other446.policy_names); - backup_info_count = std::move(other446.backup_info_count); - __isset = std::move(other446.__isset); - return *this; -} -void configuration_query_backup_policy_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_query_backup_policy_request("; - out << "policy_names=" << to_string(policy_names); - out << ", " - << "backup_info_count=" << to_string(backup_info_count); - out << ")"; -} - -configuration_query_backup_policy_response::~configuration_query_backup_policy_response() throw() {} - -void configuration_query_backup_policy_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; -} - -void configuration_query_backup_policy_response::__set_policys(const std::vector &val) -{ - this->policys = val; -} - -void configuration_query_backup_policy_response::__set_backup_infos( - const std::vector> &val) -{ - this->backup_infos = val; -} - -void configuration_query_backup_policy_response::__set_hint_msg(const std::string &val) -{ - this->hint_msg = val; - __isset.hint_msg = true; -} - -uint32_t -configuration_query_backup_policy_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->policys.clear(); - uint32_t _size447; - ::apache::thrift::protocol::TType _etype450; - xfer += iprot->readListBegin(_etype450, _size447); - this->policys.resize(_size447); - uint32_t _i451; - for (_i451 = 0; _i451 < _size447; ++_i451) { - xfer += this->policys[_i451].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.policys = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->backup_infos.clear(); - uint32_t _size452; - ::apache::thrift::protocol::TType _etype455; - xfer += iprot->readListBegin(_etype455, _size452); - this->backup_infos.resize(_size452); - uint32_t _i456; - for (_i456 = 0; _i456 < _size452; ++_i456) { - { - this->backup_infos[_i456].clear(); - uint32_t _size457; - ::apache::thrift::protocol::TType _etype460; - xfer += iprot->readListBegin(_etype460, _size457); - this->backup_infos[_i456].resize(_size457); - uint32_t _i461; - for (_i461 = 0; _i461 < _size457; ++_i461) { - xfer += this->backup_infos[_i456][_i461].read(iprot); - } - xfer += iprot->readListEnd(); - } - } - xfer += iprot->readListEnd(); - } - this->__isset.backup_infos = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->infos.clear(); + uint32_t _size220; + ::apache::thrift::protocol::TType _etype223; + xfer += iprot->readListBegin(_etype223, _size220); + this->infos.resize(_size220); + uint32_t _i224; + for (_i224 = 0; _i224 < _size220; ++_i224) + { + xfer += this->infos[_i224].read(iprot); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.infos = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_query_backup_policy_response::write( - ::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_backup_policy_response"); +uint32_t configuration_list_nodes_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_list_nodes_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("policys", ::apache::thrift::protocol::T_LIST, 2); + xfer += oprot->writeFieldBegin("infos", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->infos.size())); + std::vector ::const_iterator _iter225; + for (_iter225 = this->infos.begin(); _iter225 != this->infos.end(); ++_iter225) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->policys.size())); - std::vector::const_iterator _iter462; - for (_iter462 = this->policys.begin(); _iter462 != this->policys.end(); ++_iter462) { - xfer += (*_iter462).write(oprot); - } - xfer += oprot->writeListEnd(); + xfer += (*_iter225).write(oprot); } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("backup_infos", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, - static_cast(this->backup_infos.size())); - std::vector>::const_iterator _iter463; - for (_iter463 = this->backup_infos.begin(); _iter463 != this->backup_infos.end(); - ++_iter463) { - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast((*_iter463).size())); - std::vector::const_iterator _iter464; - for (_iter464 = (*_iter463).begin(); _iter464 != (*_iter463).end(); ++_iter464) { - xfer += (*_iter464).write(oprot); - } - xfer += oprot->writeListEnd(); - } - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - if (this->__isset.hint_msg) { - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->hint_msg); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_backup_policy_response &a, - configuration_query_backup_policy_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.policys, b.policys); - swap(a.backup_infos, b.backup_infos); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); -} - -configuration_query_backup_policy_response::configuration_query_backup_policy_response( - const configuration_query_backup_policy_response &other465) -{ - err = other465.err; - policys = other465.policys; - backup_infos = other465.backup_infos; - hint_msg = other465.hint_msg; - __isset = other465.__isset; -} -configuration_query_backup_policy_response::configuration_query_backup_policy_response( - configuration_query_backup_policy_response &&other466) -{ - err = std::move(other466.err); - policys = std::move(other466.policys); - backup_infos = std::move(other466.backup_infos); - hint_msg = std::move(other466.hint_msg); - __isset = std::move(other466.__isset); -} -configuration_query_backup_policy_response &configuration_query_backup_policy_response:: -operator=(const configuration_query_backup_policy_response &other467) -{ - err = other467.err; - policys = other467.policys; - backup_infos = other467.backup_infos; - hint_msg = other467.hint_msg; - __isset = other467.__isset; - return *this; -} -configuration_query_backup_policy_response &configuration_query_backup_policy_response:: -operator=(configuration_query_backup_policy_response &&other468) -{ - err = std::move(other468.err); - policys = std::move(other468.policys); - backup_infos = std::move(other468.backup_infos); - hint_msg = std::move(other468.hint_msg); - __isset = std::move(other468.__isset); - return *this; -} -void configuration_query_backup_policy_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_query_backup_policy_response("; - out << "err=" << to_string(err); - out << ", " - << "policys=" << to_string(policys); - out << ", " - << "backup_infos=" << to_string(backup_infos); - out << ", " - << "hint_msg="; - (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); - out << ")"; -} - -configuration_report_restore_status_request::~configuration_report_restore_status_request() throw() -{ -} - -void configuration_report_restore_status_request::__set_pid(const ::dsn::gpid &val) -{ - this->pid = val; -} - -void configuration_report_restore_status_request::__set_restore_status(const ::dsn::error_code &val) -{ - this->restore_status = val; -} - -void configuration_report_restore_status_request::__set_progress(const int32_t val) -{ - this->progress = val; -} - -void configuration_report_restore_status_request::__set_reason(const std::string &val) -{ - this->reason = val; - __isset.reason = true; -} - -uint32_t -configuration_report_restore_status_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->restore_status.read(iprot); - this->__isset.restore_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->progress); - this->__isset.progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->reason); - this->__isset.reason = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void swap(configuration_list_nodes_response &a, configuration_list_nodes_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.infos, b.infos); + swap(a.__isset, b.__isset); +} + +configuration_list_nodes_response::configuration_list_nodes_response(const configuration_list_nodes_response& other226) { + err = other226.err; + infos = other226.infos; + __isset = other226.__isset; +} +configuration_list_nodes_response::configuration_list_nodes_response( configuration_list_nodes_response&& other227) { + err = std::move(other227.err); + infos = std::move(other227.infos); + __isset = std::move(other227.__isset); +} +configuration_list_nodes_response& configuration_list_nodes_response::operator=(const configuration_list_nodes_response& other228) { + err = other228.err; + infos = other228.infos; + __isset = other228.__isset; + return *this; +} +configuration_list_nodes_response& configuration_list_nodes_response::operator=(configuration_list_nodes_response&& other229) { + err = std::move(other229.err); + infos = std::move(other229.infos); + __isset = std::move(other229.__isset); + return *this; +} +void configuration_list_nodes_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_list_nodes_response("; + out << "err=" << to_string(err); + out << ", " << "infos=" << to_string(infos); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +configuration_cluster_info_response::~configuration_cluster_info_response() throw() { } -uint32_t configuration_report_restore_status_request::write( - ::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_report_restore_status_request"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); +void configuration_cluster_info_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - xfer += oprot->writeFieldBegin("restore_status", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->restore_status.write(oprot); - xfer += oprot->writeFieldEnd(); +void configuration_cluster_info_response::__set_keys(const std::vector & val) { + this->keys = val; +} - xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->progress); - xfer += oprot->writeFieldEnd(); +void configuration_cluster_info_response::__set_values(const std::vector & val) { + this->values = val; +} - if (this->__isset.reason) { - xfer += oprot->writeFieldBegin("reason", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->reason); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_report_restore_status_request &a, - configuration_report_restore_status_request &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.restore_status, b.restore_status); - swap(a.progress, b.progress); - swap(a.reason, b.reason); - swap(a.__isset, b.__isset); -} - -configuration_report_restore_status_request::configuration_report_restore_status_request( - const configuration_report_restore_status_request &other469) -{ - pid = other469.pid; - restore_status = other469.restore_status; - progress = other469.progress; - reason = other469.reason; - __isset = other469.__isset; -} -configuration_report_restore_status_request::configuration_report_restore_status_request( - configuration_report_restore_status_request &&other470) -{ - pid = std::move(other470.pid); - restore_status = std::move(other470.restore_status); - progress = std::move(other470.progress); - reason = std::move(other470.reason); - __isset = std::move(other470.__isset); -} -configuration_report_restore_status_request &configuration_report_restore_status_request:: -operator=(const configuration_report_restore_status_request &other471) -{ - pid = other471.pid; - restore_status = other471.restore_status; - progress = other471.progress; - reason = other471.reason; - __isset = other471.__isset; - return *this; -} -configuration_report_restore_status_request &configuration_report_restore_status_request:: -operator=(configuration_report_restore_status_request &&other472) -{ - pid = std::move(other472.pid); - restore_status = std::move(other472.restore_status); - progress = std::move(other472.progress); - reason = std::move(other472.reason); - __isset = std::move(other472.__isset); - return *this; -} -void configuration_report_restore_status_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_report_restore_status_request("; - out << "pid=" << to_string(pid); - out << ", " - << "restore_status=" << to_string(restore_status); - out << ", " - << "progress=" << to_string(progress); - out << ", " - << "reason="; - (__isset.reason ? (out << to_string(reason)) : (out << "")); - out << ")"; -} - -configuration_report_restore_status_response:: - ~configuration_report_restore_status_response() throw() -{ -} - -void configuration_report_restore_status_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; -} - -uint32_t -configuration_report_restore_status_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +uint32_t configuration_cluster_info_response::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - return xfer; -} + xfer += iprot->readStructBegin(fname); -uint32_t configuration_report_restore_status_response::write( - ::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_report_restore_status_response"); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_report_restore_status_response &a, - configuration_report_restore_status_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); -} - -configuration_report_restore_status_response::configuration_report_restore_status_response( - const configuration_report_restore_status_response &other473) -{ - err = other473.err; - __isset = other473.__isset; -} -configuration_report_restore_status_response::configuration_report_restore_status_response( - configuration_report_restore_status_response &&other474) -{ - err = std::move(other474.err); - __isset = std::move(other474.__isset); -} -configuration_report_restore_status_response &configuration_report_restore_status_response:: -operator=(const configuration_report_restore_status_response &other475) -{ - err = other475.err; - __isset = other475.__isset; - return *this; -} -configuration_report_restore_status_response &configuration_report_restore_status_response:: -operator=(configuration_report_restore_status_response &&other476) -{ - err = std::move(other476.err); - __isset = std::move(other476.__isset); - return *this; -} -void configuration_report_restore_status_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_report_restore_status_response("; - out << "err=" << to_string(err); - out << ")"; -} - -configuration_query_restore_request::~configuration_query_restore_request() throw() {} - -void configuration_query_restore_request::__set_restore_app_id(const int32_t val) -{ - this->restore_app_id = val; -} - -uint32_t configuration_query_restore_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->restore_app_id); - this->__isset.restore_app_id = true; - } else { - xfer += iprot->skip(ftype); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->keys.clear(); + uint32_t _size230; + ::apache::thrift::protocol::TType _etype233; + xfer += iprot->readListBegin(_etype233, _size230); + this->keys.resize(_size230); + uint32_t _i234; + for (_i234 = 0; _i234 < _size230; ++_i234) + { + xfer += iprot->readString(this->keys[_i234]); + } + xfer += iprot->readListEnd(); + } + this->__isset.keys = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->values.clear(); + uint32_t _size235; + ::apache::thrift::protocol::TType _etype238; + xfer += iprot->readListBegin(_etype238, _size235); + this->values.resize(_size235); + uint32_t _i239; + for (_i239 = 0; _i239 < _size235; ++_i239) + { + xfer += iprot->readString(this->values[_i239]); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.values = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_query_restore_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_restore_request"); +uint32_t configuration_cluster_info_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_cluster_info_response"); - xfer += oprot->writeFieldBegin("restore_app_id", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->restore_app_id); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->keys.size())); + std::vector ::const_iterator _iter240; + for (_iter240 = this->keys.begin(); _iter240 != this->keys.end(); ++_iter240) + { + xfer += oprot->writeString((*_iter240)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); + std::vector ::const_iterator _iter241; + for (_iter241 = this->values.begin(); _iter241 != this->values.end(); ++_iter241) + { + xfer += oprot->writeString((*_iter241)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_query_restore_request &a, configuration_query_restore_request &b) -{ - using ::std::swap; - swap(a.restore_app_id, b.restore_app_id); - swap(a.__isset, b.__isset); +void swap(configuration_cluster_info_response &a, configuration_cluster_info_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.keys, b.keys); + swap(a.values, b.values); + swap(a.__isset, b.__isset); } -configuration_query_restore_request::configuration_query_restore_request( - const configuration_query_restore_request &other477) -{ - restore_app_id = other477.restore_app_id; - __isset = other477.__isset; +configuration_cluster_info_response::configuration_cluster_info_response(const configuration_cluster_info_response& other242) { + err = other242.err; + keys = other242.keys; + values = other242.values; + __isset = other242.__isset; } -configuration_query_restore_request::configuration_query_restore_request( - configuration_query_restore_request &&other478) -{ - restore_app_id = std::move(other478.restore_app_id); - __isset = std::move(other478.__isset); +configuration_cluster_info_response::configuration_cluster_info_response( configuration_cluster_info_response&& other243) { + err = std::move(other243.err); + keys = std::move(other243.keys); + values = std::move(other243.values); + __isset = std::move(other243.__isset); } -configuration_query_restore_request &configuration_query_restore_request:: -operator=(const configuration_query_restore_request &other479) -{ - restore_app_id = other479.restore_app_id; - __isset = other479.__isset; - return *this; +configuration_cluster_info_response& configuration_cluster_info_response::operator=(const configuration_cluster_info_response& other244) { + err = other244.err; + keys = other244.keys; + values = other244.values; + __isset = other244.__isset; + return *this; } -configuration_query_restore_request &configuration_query_restore_request:: -operator=(configuration_query_restore_request &&other480) -{ - restore_app_id = std::move(other480.restore_app_id); - __isset = std::move(other480.__isset); - return *this; +configuration_cluster_info_response& configuration_cluster_info_response::operator=(configuration_cluster_info_response&& other245) { + err = std::move(other245.err); + keys = std::move(other245.keys); + values = std::move(other245.values); + __isset = std::move(other245.__isset); + return *this; } -void configuration_query_restore_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_query_restore_request("; - out << "restore_app_id=" << to_string(restore_app_id); - out << ")"; +void configuration_cluster_info_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_cluster_info_response("; + out << "err=" << to_string(err); + out << ", " << "keys=" << to_string(keys); + out << ", " << "values=" << to_string(values); + out << ")"; } -configuration_query_restore_response::~configuration_query_restore_response() throw() {} -void configuration_query_restore_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; +configuration_recall_app_response::~configuration_recall_app_response() throw() { } -void configuration_query_restore_response::__set_restore_status( - const std::vector<::dsn::error_code> &val) -{ - this->restore_status = val; + +void configuration_recall_app_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void configuration_query_restore_response::__set_restore_progress(const std::vector &val) -{ - this->restore_progress = val; +void configuration_recall_app_response::__set_info(const ::dsn::app_info& val) { + this->info = val; } -uint32_t configuration_query_restore_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t configuration_recall_app_response::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->restore_status.clear(); - uint32_t _size481; - ::apache::thrift::protocol::TType _etype484; - xfer += iprot->readListBegin(_etype484, _size481); - this->restore_status.resize(_size481); - uint32_t _i485; - for (_i485 = 0; _i485 < _size481; ++_i485) { - xfer += this->restore_status[_i485].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.restore_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->restore_progress.clear(); - uint32_t _size486; - ::apache::thrift::protocol::TType _etype489; - xfer += iprot->readListBegin(_etype489, _size486); - this->restore_progress.resize(_size486); - uint32_t _i490; - for (_i490 = 0; _i490 < _size486; ++_i490) { - xfer += iprot->readI32(this->restore_progress[_i490]); - } - xfer += iprot->readListEnd(); - } - this->__isset.restore_progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->info.read(iprot); + this->__isset.info = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_query_restore_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_restore_response"); +uint32_t configuration_recall_app_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_recall_app_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("restore_status", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->restore_status.size())); - std::vector<::dsn::error_code>::const_iterator _iter491; - for (_iter491 = this->restore_status.begin(); _iter491 != this->restore_status.end(); - ++_iter491) { - xfer += (*_iter491).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("restore_progress", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, - static_cast(this->restore_progress.size())); - std::vector::const_iterator _iter492; - for (_iter492 = this->restore_progress.begin(); _iter492 != this->restore_progress.end(); - ++_iter492) { - xfer += oprot->writeI32((*_iter492)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->info.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_restore_response &a, configuration_query_restore_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.restore_status, b.restore_status); - swap(a.restore_progress, b.restore_progress); - swap(a.__isset, b.__isset); -} - -configuration_query_restore_response::configuration_query_restore_response( - const configuration_query_restore_response &other493) -{ - err = other493.err; - restore_status = other493.restore_status; - restore_progress = other493.restore_progress; - __isset = other493.__isset; -} -configuration_query_restore_response::configuration_query_restore_response( - configuration_query_restore_response &&other494) -{ - err = std::move(other494.err); - restore_status = std::move(other494.restore_status); - restore_progress = std::move(other494.restore_progress); - __isset = std::move(other494.__isset); -} -configuration_query_restore_response &configuration_query_restore_response:: -operator=(const configuration_query_restore_response &other495) -{ - err = other495.err; - restore_status = other495.restore_status; - restore_progress = other495.restore_progress; - __isset = other495.__isset; - return *this; -} -configuration_query_restore_response &configuration_query_restore_response:: -operator=(configuration_query_restore_response &&other496) -{ - err = std::move(other496.err); - restore_status = std::move(other496.restore_status); - restore_progress = std::move(other496.restore_progress); - __isset = std::move(other496.__isset); - return *this; -} -void configuration_query_restore_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_query_restore_response("; - out << "err=" << to_string(err); - out << ", " - << "restore_status=" << to_string(restore_status); - out << ", " - << "restore_progress=" << to_string(restore_progress); - out << ")"; -} - -file_meta::~file_meta() throw() {} - -void file_meta::__set_name(const std::string &val) { this->name = val; } - -void file_meta::__set_size(const int64_t val) { this->size = val; } - -void file_meta::__set_md5(const std::string &val) { this->md5 = val; } - -uint32_t file_meta::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->name); - this->__isset.name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->size); - this->__isset.size = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->md5); - this->__isset.md5 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += iprot->readStructEnd(); +void swap(configuration_recall_app_response &a, configuration_recall_app_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.info, b.info); + swap(a.__isset, b.__isset); +} - return xfer; +configuration_recall_app_response::configuration_recall_app_response(const configuration_recall_app_response& other246) { + err = other246.err; + info = other246.info; + __isset = other246.__isset; +} +configuration_recall_app_response::configuration_recall_app_response( configuration_recall_app_response&& other247) { + err = std::move(other247.err); + info = std::move(other247.info); + __isset = std::move(other247.__isset); +} +configuration_recall_app_response& configuration_recall_app_response::operator=(const configuration_recall_app_response& other248) { + err = other248.err; + info = other248.info; + __isset = other248.__isset; + return *this; +} +configuration_recall_app_response& configuration_recall_app_response::operator=(configuration_recall_app_response&& other249) { + err = std::move(other249.err); + info = std::move(other249.info); + __isset = std::move(other249.__isset); + return *this; +} +void configuration_recall_app_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_recall_app_response("; + out << "err=" << to_string(err); + out << ", " << "info=" << to_string(info); + out << ")"; } -uint32_t file_meta::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("file_meta"); - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->name); - xfer += oprot->writeFieldEnd(); +query_replica_decree_request::~query_replica_decree_request() throw() { +} - xfer += oprot->writeFieldBegin("size", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->size); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("md5", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->md5); - xfer += oprot->writeFieldEnd(); +void query_replica_decree_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; +void query_replica_decree_request::__set_node(const ::dsn::rpc_address& val) { + this->node = val; } -void swap(file_meta &a, file_meta &b) -{ - using ::std::swap; - swap(a.name, b.name); - swap(a.size, b.size); - swap(a.md5, b.md5); - swap(a.__isset, b.__isset); -} - -file_meta::file_meta(const file_meta &other497) -{ - name = other497.name; - size = other497.size; - md5 = other497.md5; - __isset = other497.__isset; -} -file_meta::file_meta(file_meta &&other498) -{ - name = std::move(other498.name); - size = std::move(other498.size); - md5 = std::move(other498.md5); - __isset = std::move(other498.__isset); -} -file_meta &file_meta::operator=(const file_meta &other499) -{ - name = other499.name; - size = other499.size; - md5 = other499.md5; - __isset = other499.__isset; - return *this; -} -file_meta &file_meta::operator=(file_meta &&other500) -{ - name = std::move(other500.name); - size = std::move(other500.size); - md5 = std::move(other500.md5); - __isset = std::move(other500.__isset); - return *this; -} -void file_meta::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "file_meta("; - out << "name=" << to_string(name); - out << ", " - << "size=" << to_string(size); - out << ", " - << "md5=" << to_string(md5); - out << ")"; -} - -configuration_update_app_env_request::~configuration_update_app_env_request() throw() {} - -void configuration_update_app_env_request::__set_app_name(const std::string &val) -{ - this->app_name = val; -} - -void configuration_update_app_env_request::__set_op(const app_env_operation::type val) -{ - this->op = val; -} - -void configuration_update_app_env_request::__set_keys(const std::vector &val) -{ - this->keys = val; - __isset.keys = true; -} - -void configuration_update_app_env_request::__set_values(const std::vector &val) -{ - this->values = val; - __isset.values = true; -} - -void configuration_update_app_env_request::__set_clear_prefix(const std::string &val) -{ - this->clear_prefix = val; - __isset.clear_prefix = true; -} - -uint32_t configuration_update_app_env_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast501; - xfer += iprot->readI32(ecast501); - this->op = (app_env_operation::type)ecast501; - this->__isset.op = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->keys.clear(); - uint32_t _size502; - ::apache::thrift::protocol::TType _etype505; - xfer += iprot->readListBegin(_etype505, _size502); - this->keys.resize(_size502); - uint32_t _i506; - for (_i506 = 0; _i506 < _size502; ++_i506) { - xfer += iprot->readString(this->keys[_i506]); - } - xfer += iprot->readListEnd(); - } - this->__isset.keys = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->values.clear(); - uint32_t _size507; - ::apache::thrift::protocol::TType _etype510; - xfer += iprot->readListBegin(_etype510, _size507); - this->values.resize(_size507); - uint32_t _i511; - for (_i511 = 0; _i511 < _size507; ++_i511) { - xfer += iprot->readString(this->values[_i511]); - } - xfer += iprot->readListEnd(); - } - this->__isset.values = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->clear_prefix); - this->__isset.clear_prefix = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); +uint32_t query_replica_decree_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_update_app_env_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_update_app_env_request"); +uint32_t query_replica_decree_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_replica_decree_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("op", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->op); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.keys) { - xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, - static_cast(this->keys.size())); - std::vector::const_iterator _iter512; - for (_iter512 = this->keys.begin(); _iter512 != this->keys.end(); ++_iter512) { - xfer += oprot->writeString((*_iter512)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(query_replica_decree_request &a, query_replica_decree_request &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.node, b.node); + swap(a.__isset, b.__isset); +} + +query_replica_decree_request::query_replica_decree_request(const query_replica_decree_request& other250) { + pid = other250.pid; + node = other250.node; + __isset = other250.__isset; +} +query_replica_decree_request::query_replica_decree_request( query_replica_decree_request&& other251) { + pid = std::move(other251.pid); + node = std::move(other251.node); + __isset = std::move(other251.__isset); +} +query_replica_decree_request& query_replica_decree_request::operator=(const query_replica_decree_request& other252) { + pid = other252.pid; + node = other252.node; + __isset = other252.__isset; + return *this; +} +query_replica_decree_request& query_replica_decree_request::operator=(query_replica_decree_request&& other253) { + pid = std::move(other253.pid); + node = std::move(other253.node); + __isset = std::move(other253.__isset); + return *this; +} +void query_replica_decree_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_replica_decree_request("; + out << "pid=" << to_string(pid); + out << ", " << "node=" << to_string(node); + out << ")"; +} + + +query_replica_decree_response::~query_replica_decree_response() throw() { +} + + +void query_replica_decree_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void query_replica_decree_response::__set_last_decree(const int64_t val) { + this->last_decree = val; +} + +uint32_t query_replica_decree_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - if (this->__isset.values) { - xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, - static_cast(this->values.size())); - std::vector::const_iterator _iter513; - for (_iter513 = this->values.begin(); _iter513 != this->values.end(); ++_iter513) { - xfer += oprot->writeString((*_iter513)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.clear_prefix) { - xfer += oprot->writeFieldBegin("clear_prefix", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->clear_prefix); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_update_app_env_request &a, configuration_update_app_env_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.op, b.op); - swap(a.keys, b.keys); - swap(a.values, b.values); - swap(a.clear_prefix, b.clear_prefix); - swap(a.__isset, b.__isset); -} - -configuration_update_app_env_request::configuration_update_app_env_request( - const configuration_update_app_env_request &other514) -{ - app_name = other514.app_name; - op = other514.op; - keys = other514.keys; - values = other514.values; - clear_prefix = other514.clear_prefix; - __isset = other514.__isset; -} -configuration_update_app_env_request::configuration_update_app_env_request( - configuration_update_app_env_request &&other515) -{ - app_name = std::move(other515.app_name); - op = std::move(other515.op); - keys = std::move(other515.keys); - values = std::move(other515.values); - clear_prefix = std::move(other515.clear_prefix); - __isset = std::move(other515.__isset); -} -configuration_update_app_env_request &configuration_update_app_env_request:: -operator=(const configuration_update_app_env_request &other516) -{ - app_name = other516.app_name; - op = other516.op; - keys = other516.keys; - values = other516.values; - clear_prefix = other516.clear_prefix; - __isset = other516.__isset; - return *this; -} -configuration_update_app_env_request &configuration_update_app_env_request:: -operator=(configuration_update_app_env_request &&other517) -{ - app_name = std::move(other517.app_name); - op = std::move(other517.op); - keys = std::move(other517.keys); - values = std::move(other517.values); - clear_prefix = std::move(other517.clear_prefix); - __isset = std::move(other517.__isset); - return *this; -} -void configuration_update_app_env_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_update_app_env_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "op=" << to_string(op); - out << ", " - << "keys="; - (__isset.keys ? (out << to_string(keys)) : (out << "")); - out << ", " - << "values="; - (__isset.values ? (out << to_string(values)) : (out << "")); - out << ", " - << "clear_prefix="; - (__isset.clear_prefix ? (out << to_string(clear_prefix)) : (out << "")); - out << ")"; -} - -configuration_update_app_env_response::~configuration_update_app_env_response() throw() {} - -void configuration_update_app_env_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; -} - -void configuration_update_app_env_response::__set_hint_message(const std::string &val) -{ - this->hint_message = val; -} - -uint32_t configuration_update_app_env_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_message); - this->__isset.hint_message = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_decree); + this->__isset.last_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_update_app_env_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_update_app_env_response"); +uint32_t query_replica_decree_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_replica_decree_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_message); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("last_decree", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->last_decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_update_app_env_response &a, configuration_update_app_env_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_message, b.hint_message); - swap(a.__isset, b.__isset); -} - -configuration_update_app_env_response::configuration_update_app_env_response( - const configuration_update_app_env_response &other518) -{ - err = other518.err; - hint_message = other518.hint_message; - __isset = other518.__isset; -} -configuration_update_app_env_response::configuration_update_app_env_response( - configuration_update_app_env_response &&other519) -{ - err = std::move(other519.err); - hint_message = std::move(other519.hint_message); - __isset = std::move(other519.__isset); -} -configuration_update_app_env_response &configuration_update_app_env_response:: -operator=(const configuration_update_app_env_response &other520) -{ - err = other520.err; - hint_message = other520.hint_message; - __isset = other520.__isset; - return *this; -} -configuration_update_app_env_response &configuration_update_app_env_response:: -operator=(configuration_update_app_env_response &&other521) -{ - err = std::move(other521.err); - hint_message = std::move(other521.hint_message); - __isset = std::move(other521.__isset); - return *this; -} -void configuration_update_app_env_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_update_app_env_response("; - out << "err=" << to_string(err); - out << ", " - << "hint_message=" << to_string(hint_message); - out << ")"; -} - -duplication_add_request::~duplication_add_request() throw() {} - -void duplication_add_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void duplication_add_request::__set_remote_cluster_name(const std::string &val) -{ - this->remote_cluster_name = val; -} - -void duplication_add_request::__set_freezed(const bool val) { this->freezed = val; } - -uint32_t duplication_add_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_cluster_name); - this->__isset.remote_cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->freezed); - this->__isset.freezed = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += iprot->readStructEnd(); +void swap(query_replica_decree_response &a, query_replica_decree_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.last_decree, b.last_decree); + swap(a.__isset, b.__isset); +} - return xfer; +query_replica_decree_response::query_replica_decree_response(const query_replica_decree_response& other254) { + err = other254.err; + last_decree = other254.last_decree; + __isset = other254.__isset; +} +query_replica_decree_response::query_replica_decree_response( query_replica_decree_response&& other255) { + err = std::move(other255.err); + last_decree = std::move(other255.last_decree); + __isset = std::move(other255.__isset); +} +query_replica_decree_response& query_replica_decree_response::operator=(const query_replica_decree_response& other256) { + err = other256.err; + last_decree = other256.last_decree; + __isset = other256.__isset; + return *this; +} +query_replica_decree_response& query_replica_decree_response::operator=(query_replica_decree_response&& other257) { + err = std::move(other257.err); + last_decree = std::move(other257.last_decree); + __isset = std::move(other257.__isset); + return *this; +} +void query_replica_decree_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_replica_decree_response("; + out << "err=" << to_string(err); + out << ", " << "last_decree=" << to_string(last_decree); + out << ")"; } -uint32_t duplication_add_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_add_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); +replica_info::~replica_info() throw() { +} - xfer += oprot->writeFieldBegin("remote_cluster_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->remote_cluster_name); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("freezed", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->freezed); - xfer += oprot->writeFieldEnd(); +void replica_info::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_add_request &a, duplication_add_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.remote_cluster_name, b.remote_cluster_name); - swap(a.freezed, b.freezed); - swap(a.__isset, b.__isset); -} - -duplication_add_request::duplication_add_request(const duplication_add_request &other522) -{ - app_name = other522.app_name; - remote_cluster_name = other522.remote_cluster_name; - freezed = other522.freezed; - __isset = other522.__isset; -} -duplication_add_request::duplication_add_request(duplication_add_request &&other523) -{ - app_name = std::move(other523.app_name); - remote_cluster_name = std::move(other523.remote_cluster_name); - freezed = std::move(other523.freezed); - __isset = std::move(other523.__isset); -} -duplication_add_request &duplication_add_request::operator=(const duplication_add_request &other524) -{ - app_name = other524.app_name; - remote_cluster_name = other524.remote_cluster_name; - freezed = other524.freezed; - __isset = other524.__isset; - return *this; -} -duplication_add_request &duplication_add_request::operator=(duplication_add_request &&other525) -{ - app_name = std::move(other525.app_name); - remote_cluster_name = std::move(other525.remote_cluster_name); - freezed = std::move(other525.freezed); - __isset = std::move(other525.__isset); - return *this; -} -void duplication_add_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_add_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "remote_cluster_name=" << to_string(remote_cluster_name); - out << ", " - << "freezed=" << to_string(freezed); - out << ")"; -} - -duplication_add_response::~duplication_add_response() throw() {} - -void duplication_add_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void duplication_add_response::__set_appid(const int32_t val) { this->appid = val; } - -void duplication_add_response::__set_dupid(const int32_t val) { this->dupid = val; } - -void duplication_add_response::__set_hint(const std::string &val) -{ - this->hint = val; - __isset.hint = true; -} - -uint32_t duplication_add_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->appid); - this->__isset.appid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->dupid); - this->__isset.dupid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint); - this->__isset.hint = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void replica_info::__set_ballot(const int64_t val) { + this->ballot = val; +} - xfer += iprot->readStructEnd(); +void replica_info::__set_status(const partition_status::type val) { + this->status = val; +} - return xfer; +void replica_info::__set_last_committed_decree(const int64_t val) { + this->last_committed_decree = val; } -uint32_t duplication_add_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_add_response"); +void replica_info::__set_last_prepared_decree(const int64_t val) { + this->last_prepared_decree = val; +} - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +void replica_info::__set_last_durable_decree(const int64_t val) { + this->last_durable_decree = val; +} - xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->appid); - xfer += oprot->writeFieldEnd(); +void replica_info::__set_app_type(const std::string& val) { + this->app_type = val; +} - xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->dupid); - xfer += oprot->writeFieldEnd(); +void replica_info::__set_disk_tag(const std::string& val) { + this->disk_tag = val; +} - if (this->__isset.hint) { - xfer += oprot->writeFieldBegin("hint", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->hint); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_add_response &a, duplication_add_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.appid, b.appid); - swap(a.dupid, b.dupid); - swap(a.hint, b.hint); - swap(a.__isset, b.__isset); -} - -duplication_add_response::duplication_add_response(const duplication_add_response &other526) -{ - err = other526.err; - appid = other526.appid; - dupid = other526.dupid; - hint = other526.hint; - __isset = other526.__isset; -} -duplication_add_response::duplication_add_response(duplication_add_response &&other527) -{ - err = std::move(other527.err); - appid = std::move(other527.appid); - dupid = std::move(other527.dupid); - hint = std::move(other527.hint); - __isset = std::move(other527.__isset); -} -duplication_add_response &duplication_add_response:: -operator=(const duplication_add_response &other528) -{ - err = other528.err; - appid = other528.appid; - dupid = other528.dupid; - hint = other528.hint; - __isset = other528.__isset; - return *this; -} -duplication_add_response &duplication_add_response::operator=(duplication_add_response &&other529) -{ - err = std::move(other529.err); - appid = std::move(other529.appid); - dupid = std::move(other529.dupid); - hint = std::move(other529.hint); - __isset = std::move(other529.__isset); - return *this; -} -void duplication_add_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_add_response("; - out << "err=" << to_string(err); - out << ", " - << "appid=" << to_string(appid); - out << ", " - << "dupid=" << to_string(dupid); - out << ", " - << "hint="; - (__isset.hint ? (out << to_string(hint)) : (out << "")); - out << ")"; -} - -duplication_modify_request::~duplication_modify_request() throw() {} - -void duplication_modify_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void duplication_modify_request::__set_dupid(const int32_t val) { this->dupid = val; } - -void duplication_modify_request::__set_status(const duplication_status::type val) -{ - this->status = val; - __isset.status = true; -} - -void duplication_modify_request::__set_fail_mode(const duplication_fail_mode::type val) -{ - this->fail_mode = val; - __isset.fail_mode = true; -} - -uint32_t duplication_modify_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->dupid); - this->__isset.dupid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast530; - xfer += iprot->readI32(ecast530); - this->status = (duplication_status::type)ecast530; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast531; - xfer += iprot->readI32(ecast531); - this->fail_mode = (duplication_fail_mode::type)ecast531; - this->__isset.fail_mode = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); +uint32_t replica_info::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast258; + xfer += iprot->readI32(ecast258); + this->status = (partition_status::type)ecast258; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_prepared_decree); + this->__isset.last_prepared_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_durable_decree); + this->__isset.last_durable_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_type); + this->__isset.app_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->disk_tag); + this->__isset.disk_tag = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t replica_info::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_info"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_prepared_decree", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->last_prepared_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_durable_decree", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->last_durable_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->app_type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("disk_tag", ::apache::thrift::protocol::T_STRING, 8); + xfer += oprot->writeString(this->disk_tag); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(replica_info &a, replica_info &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.ballot, b.ballot); + swap(a.status, b.status); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.last_prepared_decree, b.last_prepared_decree); + swap(a.last_durable_decree, b.last_durable_decree); + swap(a.app_type, b.app_type); + swap(a.disk_tag, b.disk_tag); + swap(a.__isset, b.__isset); +} + +replica_info::replica_info(const replica_info& other259) { + pid = other259.pid; + ballot = other259.ballot; + status = other259.status; + last_committed_decree = other259.last_committed_decree; + last_prepared_decree = other259.last_prepared_decree; + last_durable_decree = other259.last_durable_decree; + app_type = other259.app_type; + disk_tag = other259.disk_tag; + __isset = other259.__isset; +} +replica_info::replica_info( replica_info&& other260) { + pid = std::move(other260.pid); + ballot = std::move(other260.ballot); + status = std::move(other260.status); + last_committed_decree = std::move(other260.last_committed_decree); + last_prepared_decree = std::move(other260.last_prepared_decree); + last_durable_decree = std::move(other260.last_durable_decree); + app_type = std::move(other260.app_type); + disk_tag = std::move(other260.disk_tag); + __isset = std::move(other260.__isset); +} +replica_info& replica_info::operator=(const replica_info& other261) { + pid = other261.pid; + ballot = other261.ballot; + status = other261.status; + last_committed_decree = other261.last_committed_decree; + last_prepared_decree = other261.last_prepared_decree; + last_durable_decree = other261.last_durable_decree; + app_type = other261.app_type; + disk_tag = other261.disk_tag; + __isset = other261.__isset; + return *this; +} +replica_info& replica_info::operator=(replica_info&& other262) { + pid = std::move(other262.pid); + ballot = std::move(other262.ballot); + status = std::move(other262.status); + last_committed_decree = std::move(other262.last_committed_decree); + last_prepared_decree = std::move(other262.last_prepared_decree); + last_durable_decree = std::move(other262.last_durable_decree); + app_type = std::move(other262.app_type); + disk_tag = std::move(other262.disk_tag); + __isset = std::move(other262.__isset); + return *this; +} +void replica_info::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "replica_info("; + out << "pid=" << to_string(pid); + out << ", " << "ballot=" << to_string(ballot); + out << ", " << "status=" << to_string(status); + out << ", " << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " << "last_prepared_decree=" << to_string(last_prepared_decree); + out << ", " << "last_durable_decree=" << to_string(last_durable_decree); + out << ", " << "app_type=" << to_string(app_type); + out << ", " << "disk_tag=" << to_string(disk_tag); + out << ")"; +} + + +query_replica_info_request::~query_replica_info_request() throw() { +} + + +void query_replica_info_request::__set_node(const ::dsn::rpc_address& val) { + this->node = val; +} + +uint32_t query_replica_info_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t duplication_modify_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_modify_request"); +uint32_t query_replica_info_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_replica_info_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->dupid); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - if (this->__isset.status) { - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.fail_mode) { - xfer += oprot->writeFieldBegin("fail_mode", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->fail_mode); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_modify_request &a, duplication_modify_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.dupid, b.dupid); - swap(a.status, b.status); - swap(a.fail_mode, b.fail_mode); - swap(a.__isset, b.__isset); -} - -duplication_modify_request::duplication_modify_request(const duplication_modify_request &other532) -{ - app_name = other532.app_name; - dupid = other532.dupid; - status = other532.status; - fail_mode = other532.fail_mode; - __isset = other532.__isset; -} -duplication_modify_request::duplication_modify_request(duplication_modify_request &&other533) -{ - app_name = std::move(other533.app_name); - dupid = std::move(other533.dupid); - status = std::move(other533.status); - fail_mode = std::move(other533.fail_mode); - __isset = std::move(other533.__isset); -} -duplication_modify_request &duplication_modify_request:: -operator=(const duplication_modify_request &other534) -{ - app_name = other534.app_name; - dupid = other534.dupid; - status = other534.status; - fail_mode = other534.fail_mode; - __isset = other534.__isset; - return *this; -} -duplication_modify_request &duplication_modify_request:: -operator=(duplication_modify_request &&other535) -{ - app_name = std::move(other535.app_name); - dupid = std::move(other535.dupid); - status = std::move(other535.status); - fail_mode = std::move(other535.fail_mode); - __isset = std::move(other535.__isset); - return *this; -} -void duplication_modify_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_modify_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "dupid=" << to_string(dupid); - out << ", " - << "status="; - (__isset.status ? (out << to_string(status)) : (out << "")); - out << ", " - << "fail_mode="; - (__isset.fail_mode ? (out << to_string(fail_mode)) : (out << "")); - out << ")"; -} - -duplication_modify_response::~duplication_modify_response() throw() {} - -void duplication_modify_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void duplication_modify_response::__set_appid(const int32_t val) { this->appid = val; } - -uint32_t duplication_modify_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->appid); - this->__isset.appid = true; - } else { - xfer += iprot->skip(ftype); +void swap(query_replica_info_request &a, query_replica_info_request &b) { + using ::std::swap; + swap(a.node, b.node); + swap(a.__isset, b.__isset); +} + +query_replica_info_request::query_replica_info_request(const query_replica_info_request& other263) { + node = other263.node; + __isset = other263.__isset; +} +query_replica_info_request::query_replica_info_request( query_replica_info_request&& other264) { + node = std::move(other264.node); + __isset = std::move(other264.__isset); +} +query_replica_info_request& query_replica_info_request::operator=(const query_replica_info_request& other265) { + node = other265.node; + __isset = other265.__isset; + return *this; +} +query_replica_info_request& query_replica_info_request::operator=(query_replica_info_request&& other266) { + node = std::move(other266.node); + __isset = std::move(other266.__isset); + return *this; +} +void query_replica_info_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_replica_info_request("; + out << "node=" << to_string(node); + out << ")"; +} + + +query_replica_info_response::~query_replica_info_response() throw() { +} + + +void query_replica_info_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void query_replica_info_response::__set_replicas(const std::vector & val) { + this->replicas = val; +} + +uint32_t query_replica_info_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->replicas.clear(); + uint32_t _size267; + ::apache::thrift::protocol::TType _etype270; + xfer += iprot->readListBegin(_etype270, _size267); + this->replicas.resize(_size267); + uint32_t _i271; + for (_i271 = 0; _i271 < _size267; ++_i271) + { + xfer += this->replicas[_i271].read(iprot); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.replicas = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t duplication_modify_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_modify_response"); +uint32_t query_replica_info_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_replica_info_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->appid); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("replicas", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->replicas.size())); + std::vector ::const_iterator _iter272; + for (_iter272 = this->replicas.begin(); _iter272 != this->replicas.end(); ++_iter272) + { + xfer += (*_iter272).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(duplication_modify_response &a, duplication_modify_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.appid, b.appid); - swap(a.__isset, b.__isset); +void swap(query_replica_info_response &a, query_replica_info_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.replicas, b.replicas); + swap(a.__isset, b.__isset); } -duplication_modify_response::duplication_modify_response( - const duplication_modify_response &other536) -{ - err = other536.err; - appid = other536.appid; - __isset = other536.__isset; +query_replica_info_response::query_replica_info_response(const query_replica_info_response& other273) { + err = other273.err; + replicas = other273.replicas; + __isset = other273.__isset; } -duplication_modify_response::duplication_modify_response(duplication_modify_response &&other537) -{ - err = std::move(other537.err); - appid = std::move(other537.appid); - __isset = std::move(other537.__isset); +query_replica_info_response::query_replica_info_response( query_replica_info_response&& other274) { + err = std::move(other274.err); + replicas = std::move(other274.replicas); + __isset = std::move(other274.__isset); } -duplication_modify_response &duplication_modify_response:: -operator=(const duplication_modify_response &other538) -{ - err = other538.err; - appid = other538.appid; - __isset = other538.__isset; - return *this; +query_replica_info_response& query_replica_info_response::operator=(const query_replica_info_response& other275) { + err = other275.err; + replicas = other275.replicas; + __isset = other275.__isset; + return *this; } -duplication_modify_response &duplication_modify_response:: -operator=(duplication_modify_response &&other539) -{ - err = std::move(other539.err); - appid = std::move(other539.appid); - __isset = std::move(other539.__isset); - return *this; +query_replica_info_response& query_replica_info_response::operator=(query_replica_info_response&& other276) { + err = std::move(other276.err); + replicas = std::move(other276.replicas); + __isset = std::move(other276.__isset); + return *this; } -void duplication_modify_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_modify_response("; - out << "err=" << to_string(err); - out << ", " - << "appid=" << to_string(appid); - out << ")"; +void query_replica_info_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_replica_info_response("; + out << "err=" << to_string(err); + out << ", " << "replicas=" << to_string(replicas); + out << ")"; } -duplication_entry::~duplication_entry() throw() {} -void duplication_entry::__set_dupid(const int32_t val) { this->dupid = val; } +disk_info::~disk_info() throw() { +} -void duplication_entry::__set_status(const duplication_status::type val) { this->status = val; } -void duplication_entry::__set_remote(const std::string &val) { this->remote = val; } +void disk_info::__set_tag(const std::string& val) { + this->tag = val; +} -void duplication_entry::__set_create_ts(const int64_t val) { this->create_ts = val; } +void disk_info::__set_full_dir(const std::string& val) { + this->full_dir = val; +} -void duplication_entry::__set_progress(const std::map &val) -{ - this->progress = val; - __isset.progress = true; +void disk_info::__set_disk_capacity_mb(const int64_t val) { + this->disk_capacity_mb = val; } -void duplication_entry::__set_fail_mode(const duplication_fail_mode::type val) -{ - this->fail_mode = val; - __isset.fail_mode = true; +void disk_info::__set_disk_available_mb(const int64_t val) { + this->disk_available_mb = val; } -uint32_t duplication_entry::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void disk_info::__set_holding_primary_replicas(const std::map > & val) { + this->holding_primary_replicas = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +void disk_info::__set_holding_secondary_replicas(const std::map > & val) { + this->holding_secondary_replicas = val; +} - xfer += iprot->readStructBegin(fname); +uint32_t disk_info::read(::apache::thrift::protocol::TProtocol* iprot) { - using ::apache::thrift::protocol::TProtocolException; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->dupid); - this->__isset.dupid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast540; - xfer += iprot->readI32(ecast540); - this->status = (duplication_status::type)ecast540; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote); - this->__isset.remote = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->create_ts); - this->__isset.create_ts = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_MAP) { + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tag); + this->__isset.tag = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->full_dir); + this->__isset.full_dir = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->disk_capacity_mb); + this->__isset.disk_capacity_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->disk_available_mb); + this->__isset.disk_available_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->holding_primary_replicas.clear(); + uint32_t _size277; + ::apache::thrift::protocol::TType _ktype278; + ::apache::thrift::protocol::TType _vtype279; + xfer += iprot->readMapBegin(_ktype278, _vtype279, _size277); + uint32_t _i281; + for (_i281 = 0; _i281 < _size277; ++_i281) + { + int32_t _key282; + xfer += iprot->readI32(_key282); + std::set< ::dsn::gpid> & _val283 = this->holding_primary_replicas[_key282]; + { + _val283.clear(); + uint32_t _size284; + ::apache::thrift::protocol::TType _etype287; + xfer += iprot->readSetBegin(_etype287, _size284); + uint32_t _i288; + for (_i288 = 0; _i288 < _size284; ++_i288) { - this->progress.clear(); - uint32_t _size541; - ::apache::thrift::protocol::TType _ktype542; - ::apache::thrift::protocol::TType _vtype543; - xfer += iprot->readMapBegin(_ktype542, _vtype543, _size541); - uint32_t _i545; - for (_i545 = 0; _i545 < _size541; ++_i545) { - int32_t _key546; - xfer += iprot->readI32(_key546); - int64_t &_val547 = this->progress[_key546]; - xfer += iprot->readI64(_val547); - } - xfer += iprot->readMapEnd(); + ::dsn::gpid _elem289; + xfer += _elem289.read(iprot); + _val283.insert(_elem289); } - this->__isset.progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast548; - xfer += iprot->readI32(ecast548); - this->fail_mode = (duplication_fail_mode::type)ecast548; - this->__isset.fail_mode = true; - } else { - xfer += iprot->skip(ftype); + xfer += iprot->readSetEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.holding_primary_replicas = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->holding_secondary_replicas.clear(); + uint32_t _size290; + ::apache::thrift::protocol::TType _ktype291; + ::apache::thrift::protocol::TType _vtype292; + xfer += iprot->readMapBegin(_ktype291, _vtype292, _size290); + uint32_t _i294; + for (_i294 = 0; _i294 < _size290; ++_i294) + { + int32_t _key295; + xfer += iprot->readI32(_key295); + std::set< ::dsn::gpid> & _val296 = this->holding_secondary_replicas[_key295]; + { + _val296.clear(); + uint32_t _size297; + ::apache::thrift::protocol::TType _etype300; + xfer += iprot->readSetBegin(_etype300, _size297); + uint32_t _i301; + for (_i301 = 0; _i301 < _size297; ++_i301) + { + ::dsn::gpid _elem302; + xfer += _elem302.read(iprot); + _val296.insert(_elem302); + } + xfer += iprot->readSetEnd(); + } } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readMapEnd(); + } + this->__isset.holding_secondary_replicas = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t duplication_entry::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_entry"); +uint32_t disk_info::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("disk_info"); - xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->dupid); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("tag", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->tag); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("full_dir", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->full_dir); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("remote", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->remote); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("disk_capacity_mb", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->disk_capacity_mb); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("create_ts", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->create_ts); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("disk_available_mb", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->disk_available_mb); + xfer += oprot->writeFieldEnd(); - if (this->__isset.progress) { - xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_MAP, 5); + xfer += oprot->writeFieldBegin("holding_primary_replicas", ::apache::thrift::protocol::T_MAP, 5); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_SET, static_cast(this->holding_primary_replicas.size())); + std::map > ::const_iterator _iter303; + for (_iter303 = this->holding_primary_replicas.begin(); _iter303 != this->holding_primary_replicas.end(); ++_iter303) + { + xfer += oprot->writeI32(_iter303->first); + { + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter303->second.size())); + std::set< ::dsn::gpid> ::const_iterator _iter304; + for (_iter304 = _iter303->second.begin(); _iter304 != _iter303->second.end(); ++_iter304) { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, - ::apache::thrift::protocol::T_I64, - static_cast(this->progress.size())); - std::map::const_iterator _iter549; - for (_iter549 = this->progress.begin(); _iter549 != this->progress.end(); ++_iter549) { - xfer += oprot->writeI32(_iter549->first); - xfer += oprot->writeI64(_iter549->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.fail_mode) { - xfer += oprot->writeFieldBegin("fail_mode", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((int32_t)this->fail_mode); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_entry &a, duplication_entry &b) -{ - using ::std::swap; - swap(a.dupid, b.dupid); - swap(a.status, b.status); - swap(a.remote, b.remote); - swap(a.create_ts, b.create_ts); - swap(a.progress, b.progress); - swap(a.fail_mode, b.fail_mode); - swap(a.__isset, b.__isset); -} - -duplication_entry::duplication_entry(const duplication_entry &other550) -{ - dupid = other550.dupid; - status = other550.status; - remote = other550.remote; - create_ts = other550.create_ts; - progress = other550.progress; - fail_mode = other550.fail_mode; - __isset = other550.__isset; -} -duplication_entry::duplication_entry(duplication_entry &&other551) -{ - dupid = std::move(other551.dupid); - status = std::move(other551.status); - remote = std::move(other551.remote); - create_ts = std::move(other551.create_ts); - progress = std::move(other551.progress); - fail_mode = std::move(other551.fail_mode); - __isset = std::move(other551.__isset); -} -duplication_entry &duplication_entry::operator=(const duplication_entry &other552) -{ - dupid = other552.dupid; - status = other552.status; - remote = other552.remote; - create_ts = other552.create_ts; - progress = other552.progress; - fail_mode = other552.fail_mode; - __isset = other552.__isset; - return *this; -} -duplication_entry &duplication_entry::operator=(duplication_entry &&other553) -{ - dupid = std::move(other553.dupid); - status = std::move(other553.status); - remote = std::move(other553.remote); - create_ts = std::move(other553.create_ts); - progress = std::move(other553.progress); - fail_mode = std::move(other553.fail_mode); - __isset = std::move(other553.__isset); - return *this; -} -void duplication_entry::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_entry("; - out << "dupid=" << to_string(dupid); - out << ", " - << "status=" << to_string(status); - out << ", " - << "remote=" << to_string(remote); - out << ", " - << "create_ts=" << to_string(create_ts); - out << ", " - << "progress="; - (__isset.progress ? (out << to_string(progress)) : (out << "")); - out << ", " - << "fail_mode="; - (__isset.fail_mode ? (out << to_string(fail_mode)) : (out << "")); - out << ")"; -} - -duplication_query_request::~duplication_query_request() throw() {} - -void duplication_query_request::__set_app_name(const std::string &val) { this->app_name = val; } - -uint32_t duplication_query_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += (*_iter304).write(oprot); + } + xfer += oprot->writeSetEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("holding_secondary_replicas", ::apache::thrift::protocol::T_MAP, 6); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_SET, static_cast(this->holding_secondary_replicas.size())); + std::map > ::const_iterator _iter305; + for (_iter305 = this->holding_secondary_replicas.begin(); _iter305 != this->holding_secondary_replicas.end(); ++_iter305) + { + xfer += oprot->writeI32(_iter305->first); + { + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter305->second.size())); + std::set< ::dsn::gpid> ::const_iterator _iter306; + for (_iter306 = _iter305->second.begin(); _iter306 != _iter305->second.end(); ++_iter306) + { + xfer += (*_iter306).write(oprot); } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeSetEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(disk_info &a, disk_info &b) { + using ::std::swap; + swap(a.tag, b.tag); + swap(a.full_dir, b.full_dir); + swap(a.disk_capacity_mb, b.disk_capacity_mb); + swap(a.disk_available_mb, b.disk_available_mb); + swap(a.holding_primary_replicas, b.holding_primary_replicas); + swap(a.holding_secondary_replicas, b.holding_secondary_replicas); + swap(a.__isset, b.__isset); +} + +disk_info::disk_info(const disk_info& other307) { + tag = other307.tag; + full_dir = other307.full_dir; + disk_capacity_mb = other307.disk_capacity_mb; + disk_available_mb = other307.disk_available_mb; + holding_primary_replicas = other307.holding_primary_replicas; + holding_secondary_replicas = other307.holding_secondary_replicas; + __isset = other307.__isset; +} +disk_info::disk_info( disk_info&& other308) { + tag = std::move(other308.tag); + full_dir = std::move(other308.full_dir); + disk_capacity_mb = std::move(other308.disk_capacity_mb); + disk_available_mb = std::move(other308.disk_available_mb); + holding_primary_replicas = std::move(other308.holding_primary_replicas); + holding_secondary_replicas = std::move(other308.holding_secondary_replicas); + __isset = std::move(other308.__isset); +} +disk_info& disk_info::operator=(const disk_info& other309) { + tag = other309.tag; + full_dir = other309.full_dir; + disk_capacity_mb = other309.disk_capacity_mb; + disk_available_mb = other309.disk_available_mb; + holding_primary_replicas = other309.holding_primary_replicas; + holding_secondary_replicas = other309.holding_secondary_replicas; + __isset = other309.__isset; + return *this; +} +disk_info& disk_info::operator=(disk_info&& other310) { + tag = std::move(other310.tag); + full_dir = std::move(other310.full_dir); + disk_capacity_mb = std::move(other310.disk_capacity_mb); + disk_available_mb = std::move(other310.disk_available_mb); + holding_primary_replicas = std::move(other310.holding_primary_replicas); + holding_secondary_replicas = std::move(other310.holding_secondary_replicas); + __isset = std::move(other310.__isset); + return *this; +} +void disk_info::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "disk_info("; + out << "tag=" << to_string(tag); + out << ", " << "full_dir=" << to_string(full_dir); + out << ", " << "disk_capacity_mb=" << to_string(disk_capacity_mb); + out << ", " << "disk_available_mb=" << to_string(disk_available_mb); + out << ", " << "holding_primary_replicas=" << to_string(holding_primary_replicas); + out << ", " << "holding_secondary_replicas=" << to_string(holding_secondary_replicas); + out << ")"; +} + + +query_disk_info_request::~query_disk_info_request() throw() { +} + + +void query_disk_info_request::__set_node(const ::dsn::rpc_address& val) { + this->node = val; +} + +void query_disk_info_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +uint32_t query_disk_info_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t duplication_query_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_query_request"); +uint32_t query_disk_info_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_disk_info_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(duplication_query_request &a, duplication_query_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.__isset, b.__isset); +void swap(query_disk_info_request &a, query_disk_info_request &b) { + using ::std::swap; + swap(a.node, b.node); + swap(a.app_name, b.app_name); + swap(a.__isset, b.__isset); } -duplication_query_request::duplication_query_request(const duplication_query_request &other554) -{ - app_name = other554.app_name; - __isset = other554.__isset; +query_disk_info_request::query_disk_info_request(const query_disk_info_request& other311) { + node = other311.node; + app_name = other311.app_name; + __isset = other311.__isset; } -duplication_query_request::duplication_query_request(duplication_query_request &&other555) -{ - app_name = std::move(other555.app_name); - __isset = std::move(other555.__isset); +query_disk_info_request::query_disk_info_request( query_disk_info_request&& other312) { + node = std::move(other312.node); + app_name = std::move(other312.app_name); + __isset = std::move(other312.__isset); } -duplication_query_request &duplication_query_request:: -operator=(const duplication_query_request &other556) -{ - app_name = other556.app_name; - __isset = other556.__isset; - return *this; +query_disk_info_request& query_disk_info_request::operator=(const query_disk_info_request& other313) { + node = other313.node; + app_name = other313.app_name; + __isset = other313.__isset; + return *this; } -duplication_query_request &duplication_query_request:: -operator=(duplication_query_request &&other557) -{ - app_name = std::move(other557.app_name); - __isset = std::move(other557.__isset); - return *this; +query_disk_info_request& query_disk_info_request::operator=(query_disk_info_request&& other314) { + node = std::move(other314.node); + app_name = std::move(other314.app_name); + __isset = std::move(other314.__isset); + return *this; } -void duplication_query_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_query_request("; - out << "app_name=" << to_string(app_name); - out << ")"; +void query_disk_info_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_disk_info_request("; + out << "node=" << to_string(node); + out << ", " << "app_name=" << to_string(app_name); + out << ")"; } -duplication_query_response::~duplication_query_response() throw() {} -void duplication_query_response::__set_err(const ::dsn::error_code &val) { this->err = val; } +query_disk_info_response::~query_disk_info_response() throw() { +} -void duplication_query_response::__set_appid(const int32_t val) { this->appid = val; } -void duplication_query_response::__set_entry_list(const std::vector &val) -{ - this->entry_list = val; +void query_disk_info_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -uint32_t duplication_query_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void query_disk_info_response::__set_total_capacity_mb(const int64_t val) { + this->total_capacity_mb = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +void query_disk_info_response::__set_total_available_mb(const int64_t val) { + this->total_available_mb = val; +} - xfer += iprot->readStructBegin(fname); +void query_disk_info_response::__set_disk_infos(const std::vector & val) { + this->disk_infos = val; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t query_disk_info_response::read(::apache::thrift::protocol::TProtocol* iprot) { - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->appid); - this->__isset.appid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->entry_list.clear(); - uint32_t _size558; - ::apache::thrift::protocol::TType _etype561; - xfer += iprot->readListBegin(_etype561, _size558); - this->entry_list.resize(_size558); - uint32_t _i562; - for (_i562 = 0; _i562 < _size558; ++_i562) { - xfer += this->entry_list[_i562].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.entry_list = true; - } else { - xfer += iprot->skip(ftype); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->total_capacity_mb); + this->__isset.total_capacity_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->total_available_mb); + this->__isset.total_available_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->disk_infos.clear(); + uint32_t _size315; + ::apache::thrift::protocol::TType _etype318; + xfer += iprot->readListBegin(_etype318, _size315); + this->disk_infos.resize(_size315); + uint32_t _i319; + for (_i319 = 0; _i319 < _size315; ++_i319) + { + xfer += this->disk_infos[_i319].read(iprot); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.disk_infos = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t duplication_query_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_query_response"); +uint32_t query_disk_info_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_disk_info_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->appid); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("total_capacity_mb", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->total_capacity_mb); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("entry_list", ::apache::thrift::protocol::T_LIST, 4); + xfer += oprot->writeFieldBegin("total_available_mb", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->total_available_mb); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("disk_infos", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->disk_infos.size())); + std::vector ::const_iterator _iter320; + for (_iter320 = this->disk_infos.begin(); _iter320 != this->disk_infos.end(); ++_iter320) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->entry_list.size())); - std::vector::const_iterator _iter563; - for (_iter563 = this->entry_list.begin(); _iter563 != this->entry_list.end(); ++_iter563) { - xfer += (*_iter563).write(oprot); - } - xfer += oprot->writeListEnd(); + xfer += (*_iter320).write(oprot); } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_query_response &a, duplication_query_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.appid, b.appid); - swap(a.entry_list, b.entry_list); - swap(a.__isset, b.__isset); -} - -duplication_query_response::duplication_query_response(const duplication_query_response &other564) -{ - err = other564.err; - appid = other564.appid; - entry_list = other564.entry_list; - __isset = other564.__isset; -} -duplication_query_response::duplication_query_response(duplication_query_response &&other565) -{ - err = std::move(other565.err); - appid = std::move(other565.appid); - entry_list = std::move(other565.entry_list); - __isset = std::move(other565.__isset); -} -duplication_query_response &duplication_query_response:: -operator=(const duplication_query_response &other566) -{ - err = other566.err; - appid = other566.appid; - entry_list = other566.entry_list; - __isset = other566.__isset; - return *this; -} -duplication_query_response &duplication_query_response:: -operator=(duplication_query_response &&other567) -{ - err = std::move(other567.err); - appid = std::move(other567.appid); - entry_list = std::move(other567.entry_list); - __isset = std::move(other567.__isset); - return *this; -} -void duplication_query_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_query_response("; - out << "err=" << to_string(err); - out << ", " - << "appid=" << to_string(appid); - out << ", " - << "entry_list=" << to_string(entry_list); - out << ")"; -} - -duplication_confirm_entry::~duplication_confirm_entry() throw() {} - -void duplication_confirm_entry::__set_dupid(const int32_t val) { this->dupid = val; } - -void duplication_confirm_entry::__set_confirmed_decree(const int64_t val) -{ - this->confirmed_decree = val; -} - -uint32_t duplication_confirm_entry::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->dupid); - this->__isset.dupid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->confirmed_decree); - this->__isset.confirmed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(query_disk_info_response &a, query_disk_info_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.total_capacity_mb, b.total_capacity_mb); + swap(a.total_available_mb, b.total_available_mb); + swap(a.disk_infos, b.disk_infos); + swap(a.__isset, b.__isset); +} + +query_disk_info_response::query_disk_info_response(const query_disk_info_response& other321) { + err = other321.err; + total_capacity_mb = other321.total_capacity_mb; + total_available_mb = other321.total_available_mb; + disk_infos = other321.disk_infos; + __isset = other321.__isset; +} +query_disk_info_response::query_disk_info_response( query_disk_info_response&& other322) { + err = std::move(other322.err); + total_capacity_mb = std::move(other322.total_capacity_mb); + total_available_mb = std::move(other322.total_available_mb); + disk_infos = std::move(other322.disk_infos); + __isset = std::move(other322.__isset); +} +query_disk_info_response& query_disk_info_response::operator=(const query_disk_info_response& other323) { + err = other323.err; + total_capacity_mb = other323.total_capacity_mb; + total_available_mb = other323.total_available_mb; + disk_infos = other323.disk_infos; + __isset = other323.__isset; + return *this; +} +query_disk_info_response& query_disk_info_response::operator=(query_disk_info_response&& other324) { + err = std::move(other324.err); + total_capacity_mb = std::move(other324.total_capacity_mb); + total_available_mb = std::move(other324.total_available_mb); + disk_infos = std::move(other324.disk_infos); + __isset = std::move(other324.__isset); + return *this; +} +void query_disk_info_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_disk_info_response("; + out << "err=" << to_string(err); + out << ", " << "total_capacity_mb=" << to_string(total_capacity_mb); + out << ", " << "total_available_mb=" << to_string(total_available_mb); + out << ", " << "disk_infos=" << to_string(disk_infos); + out << ")"; +} + + +replica_disk_migrate_request::~replica_disk_migrate_request() throw() { +} + + +void replica_disk_migrate_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +void replica_disk_migrate_request::__set_origin_disk(const std::string& val) { + this->origin_disk = val; +} + +void replica_disk_migrate_request::__set_target_disk(const std::string& val) { + this->target_disk = val; +} + +uint32_t replica_disk_migrate_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->origin_disk); + this->__isset.origin_disk = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->target_disk); + this->__isset.target_disk = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t replica_disk_migrate_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_disk_migrate_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("origin_disk", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->origin_disk); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("target_disk", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->target_disk); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(replica_disk_migrate_request &a, replica_disk_migrate_request &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.origin_disk, b.origin_disk); + swap(a.target_disk, b.target_disk); + swap(a.__isset, b.__isset); +} + +replica_disk_migrate_request::replica_disk_migrate_request(const replica_disk_migrate_request& other325) { + pid = other325.pid; + origin_disk = other325.origin_disk; + target_disk = other325.target_disk; + __isset = other325.__isset; +} +replica_disk_migrate_request::replica_disk_migrate_request( replica_disk_migrate_request&& other326) { + pid = std::move(other326.pid); + origin_disk = std::move(other326.origin_disk); + target_disk = std::move(other326.target_disk); + __isset = std::move(other326.__isset); +} +replica_disk_migrate_request& replica_disk_migrate_request::operator=(const replica_disk_migrate_request& other327) { + pid = other327.pid; + origin_disk = other327.origin_disk; + target_disk = other327.target_disk; + __isset = other327.__isset; + return *this; +} +replica_disk_migrate_request& replica_disk_migrate_request::operator=(replica_disk_migrate_request&& other328) { + pid = std::move(other328.pid); + origin_disk = std::move(other328.origin_disk); + target_disk = std::move(other328.target_disk); + __isset = std::move(other328.__isset); + return *this; +} +void replica_disk_migrate_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "replica_disk_migrate_request("; + out << "pid=" << to_string(pid); + out << ", " << "origin_disk=" << to_string(origin_disk); + out << ", " << "target_disk=" << to_string(target_disk); + out << ")"; +} + + +replica_disk_migrate_response::~replica_disk_migrate_response() throw() { +} + + +void replica_disk_migrate_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void replica_disk_migrate_response::__set_hint(const std::string& val) { + this->hint = val; +__isset.hint = true; +} + +uint32_t replica_disk_migrate_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint); + this->__isset.hint = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t replica_disk_migrate_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_disk_migrate_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.hint) { + xfer += oprot->writeFieldBegin("hint", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(replica_disk_migrate_response &a, replica_disk_migrate_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.hint, b.hint); + swap(a.__isset, b.__isset); +} + +replica_disk_migrate_response::replica_disk_migrate_response(const replica_disk_migrate_response& other329) { + err = other329.err; + hint = other329.hint; + __isset = other329.__isset; +} +replica_disk_migrate_response::replica_disk_migrate_response( replica_disk_migrate_response&& other330) { + err = std::move(other330.err); + hint = std::move(other330.hint); + __isset = std::move(other330.__isset); +} +replica_disk_migrate_response& replica_disk_migrate_response::operator=(const replica_disk_migrate_response& other331) { + err = other331.err; + hint = other331.hint; + __isset = other331.__isset; + return *this; +} +replica_disk_migrate_response& replica_disk_migrate_response::operator=(replica_disk_migrate_response&& other332) { + err = std::move(other332.err); + hint = std::move(other332.hint); + __isset = std::move(other332.__isset); + return *this; +} +void replica_disk_migrate_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "replica_disk_migrate_response("; + out << "err=" << to_string(err); + out << ", " << "hint="; (__isset.hint ? (out << to_string(hint)) : (out << "")); + out << ")"; +} + + +query_app_info_request::~query_app_info_request() throw() { +} + + +void query_app_info_request::__set_meta_server(const ::dsn::rpc_address& val) { + this->meta_server = val; +} + +uint32_t query_app_info_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->meta_server.read(iprot); + this->__isset.meta_server = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t query_app_info_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_app_info_request"); + + xfer += oprot->writeFieldBegin("meta_server", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->meta_server.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(query_app_info_request &a, query_app_info_request &b) { + using ::std::swap; + swap(a.meta_server, b.meta_server); + swap(a.__isset, b.__isset); +} + +query_app_info_request::query_app_info_request(const query_app_info_request& other333) { + meta_server = other333.meta_server; + __isset = other333.__isset; +} +query_app_info_request::query_app_info_request( query_app_info_request&& other334) { + meta_server = std::move(other334.meta_server); + __isset = std::move(other334.__isset); +} +query_app_info_request& query_app_info_request::operator=(const query_app_info_request& other335) { + meta_server = other335.meta_server; + __isset = other335.__isset; + return *this; +} +query_app_info_request& query_app_info_request::operator=(query_app_info_request&& other336) { + meta_server = std::move(other336.meta_server); + __isset = std::move(other336.__isset); + return *this; +} +void query_app_info_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_app_info_request("; + out << "meta_server=" << to_string(meta_server); + out << ")"; +} + + +query_app_info_response::~query_app_info_response() throw() { +} + + +void query_app_info_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void query_app_info_response::__set_apps(const std::vector< ::dsn::app_info> & val) { + this->apps = val; +} + +uint32_t query_app_info_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->apps.clear(); + uint32_t _size337; + ::apache::thrift::protocol::TType _etype340; + xfer += iprot->readListBegin(_etype340, _size337); + this->apps.resize(_size337); + uint32_t _i341; + for (_i341 = 0; _i341 < _size337; ++_i341) + { + xfer += this->apps[_i341].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.apps = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t query_app_info_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_app_info_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("apps", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->apps.size())); + std::vector< ::dsn::app_info> ::const_iterator _iter342; + for (_iter342 = this->apps.begin(); _iter342 != this->apps.end(); ++_iter342) + { + xfer += (*_iter342).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(query_app_info_response &a, query_app_info_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.apps, b.apps); + swap(a.__isset, b.__isset); +} + +query_app_info_response::query_app_info_response(const query_app_info_response& other343) { + err = other343.err; + apps = other343.apps; + __isset = other343.__isset; +} +query_app_info_response::query_app_info_response( query_app_info_response&& other344) { + err = std::move(other344.err); + apps = std::move(other344.apps); + __isset = std::move(other344.__isset); +} +query_app_info_response& query_app_info_response::operator=(const query_app_info_response& other345) { + err = other345.err; + apps = other345.apps; + __isset = other345.__isset; + return *this; +} +query_app_info_response& query_app_info_response::operator=(query_app_info_response&& other346) { + err = std::move(other346.err); + apps = std::move(other346.apps); + __isset = std::move(other346.__isset); + return *this; +} +void query_app_info_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_app_info_response("; + out << "err=" << to_string(err); + out << ", " << "apps=" << to_string(apps); + out << ")"; +} + + +configuration_recovery_request::~configuration_recovery_request() throw() { +} + + +void configuration_recovery_request::__set_recovery_set(const std::vector< ::dsn::rpc_address> & val) { + this->recovery_set = val; +} + +void configuration_recovery_request::__set_skip_bad_nodes(const bool val) { + this->skip_bad_nodes = val; +} + +void configuration_recovery_request::__set_skip_lost_partitions(const bool val) { + this->skip_lost_partitions = val; +} + +uint32_t configuration_recovery_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->recovery_set.clear(); + uint32_t _size347; + ::apache::thrift::protocol::TType _etype350; + xfer += iprot->readListBegin(_etype350, _size347); + this->recovery_set.resize(_size347); + uint32_t _i351; + for (_i351 = 0; _i351 < _size347; ++_i351) + { + xfer += this->recovery_set[_i351].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.recovery_set = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->skip_bad_nodes); + this->__isset.skip_bad_nodes = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->skip_lost_partitions); + this->__isset.skip_lost_partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_recovery_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_recovery_request"); + + xfer += oprot->writeFieldBegin("recovery_set", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->recovery_set.size())); + std::vector< ::dsn::rpc_address> ::const_iterator _iter352; + for (_iter352 = this->recovery_set.begin(); _iter352 != this->recovery_set.end(); ++_iter352) + { + xfer += (*_iter352).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("skip_bad_nodes", ::apache::thrift::protocol::T_BOOL, 2); + xfer += oprot->writeBool(this->skip_bad_nodes); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("skip_lost_partitions", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->skip_lost_partitions); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_recovery_request &a, configuration_recovery_request &b) { + using ::std::swap; + swap(a.recovery_set, b.recovery_set); + swap(a.skip_bad_nodes, b.skip_bad_nodes); + swap(a.skip_lost_partitions, b.skip_lost_partitions); + swap(a.__isset, b.__isset); +} + +configuration_recovery_request::configuration_recovery_request(const configuration_recovery_request& other353) { + recovery_set = other353.recovery_set; + skip_bad_nodes = other353.skip_bad_nodes; + skip_lost_partitions = other353.skip_lost_partitions; + __isset = other353.__isset; +} +configuration_recovery_request::configuration_recovery_request( configuration_recovery_request&& other354) { + recovery_set = std::move(other354.recovery_set); + skip_bad_nodes = std::move(other354.skip_bad_nodes); + skip_lost_partitions = std::move(other354.skip_lost_partitions); + __isset = std::move(other354.__isset); +} +configuration_recovery_request& configuration_recovery_request::operator=(const configuration_recovery_request& other355) { + recovery_set = other355.recovery_set; + skip_bad_nodes = other355.skip_bad_nodes; + skip_lost_partitions = other355.skip_lost_partitions; + __isset = other355.__isset; + return *this; +} +configuration_recovery_request& configuration_recovery_request::operator=(configuration_recovery_request&& other356) { + recovery_set = std::move(other356.recovery_set); + skip_bad_nodes = std::move(other356.skip_bad_nodes); + skip_lost_partitions = std::move(other356.skip_lost_partitions); + __isset = std::move(other356.__isset); + return *this; +} +void configuration_recovery_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_recovery_request("; + out << "recovery_set=" << to_string(recovery_set); + out << ", " << "skip_bad_nodes=" << to_string(skip_bad_nodes); + out << ", " << "skip_lost_partitions=" << to_string(skip_lost_partitions); + out << ")"; +} + + +configuration_recovery_response::~configuration_recovery_response() throw() { +} + + +void configuration_recovery_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void configuration_recovery_response::__set_hint_message(const std::string& val) { + this->hint_message = val; +} + +uint32_t configuration_recovery_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_message); + this->__isset.hint_message = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_recovery_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_recovery_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_message); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_recovery_response &a, configuration_recovery_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_message, b.hint_message); + swap(a.__isset, b.__isset); +} + +configuration_recovery_response::configuration_recovery_response(const configuration_recovery_response& other357) { + err = other357.err; + hint_message = other357.hint_message; + __isset = other357.__isset; +} +configuration_recovery_response::configuration_recovery_response( configuration_recovery_response&& other358) { + err = std::move(other358.err); + hint_message = std::move(other358.hint_message); + __isset = std::move(other358.__isset); +} +configuration_recovery_response& configuration_recovery_response::operator=(const configuration_recovery_response& other359) { + err = other359.err; + hint_message = other359.hint_message; + __isset = other359.__isset; + return *this; +} +configuration_recovery_response& configuration_recovery_response::operator=(configuration_recovery_response&& other360) { + err = std::move(other360.err); + hint_message = std::move(other360.hint_message); + __isset = std::move(other360.__isset); + return *this; +} +void configuration_recovery_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_recovery_response("; + out << "err=" << to_string(err); + out << ", " << "hint_message=" << to_string(hint_message); + out << ")"; +} + + +policy_info::~policy_info() throw() { +} + + +void policy_info::__set_policy_name(const std::string& val) { + this->policy_name = val; +} + +void policy_info::__set_backup_provider_type(const std::string& val) { + this->backup_provider_type = val; +} + +uint32_t policy_info::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_provider_type); + this->__isset.backup_provider_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t policy_info::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("policy_info"); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->backup_provider_type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(policy_info &a, policy_info &b) { + using ::std::swap; + swap(a.policy_name, b.policy_name); + swap(a.backup_provider_type, b.backup_provider_type); + swap(a.__isset, b.__isset); +} + +policy_info::policy_info(const policy_info& other361) { + policy_name = other361.policy_name; + backup_provider_type = other361.backup_provider_type; + __isset = other361.__isset; +} +policy_info::policy_info( policy_info&& other362) { + policy_name = std::move(other362.policy_name); + backup_provider_type = std::move(other362.backup_provider_type); + __isset = std::move(other362.__isset); +} +policy_info& policy_info::operator=(const policy_info& other363) { + policy_name = other363.policy_name; + backup_provider_type = other363.backup_provider_type; + __isset = other363.__isset; + return *this; +} +policy_info& policy_info::operator=(policy_info&& other364) { + policy_name = std::move(other364.policy_name); + backup_provider_type = std::move(other364.backup_provider_type); + __isset = std::move(other364.__isset); + return *this; +} +void policy_info::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "policy_info("; + out << "policy_name=" << to_string(policy_name); + out << ", " << "backup_provider_type=" << to_string(backup_provider_type); + out << ")"; +} + + +configuration_restore_request::~configuration_restore_request() throw() { +} + + +void configuration_restore_request::__set_cluster_name(const std::string& val) { + this->cluster_name = val; +} + +void configuration_restore_request::__set_policy_name(const std::string& val) { + this->policy_name = val; +} + +void configuration_restore_request::__set_time_stamp(const int64_t val) { + this->time_stamp = val; +} + +void configuration_restore_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void configuration_restore_request::__set_app_id(const int32_t val) { + this->app_id = val; +} + +void configuration_restore_request::__set_new_app_name(const std::string& val) { + this->new_app_name = val; +} + +void configuration_restore_request::__set_backup_provider_name(const std::string& val) { + this->backup_provider_name = val; +} + +void configuration_restore_request::__set_skip_bad_partition(const bool val) { + this->skip_bad_partition = val; +} + +uint32_t configuration_restore_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cluster_name); + this->__isset.cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->time_stamp); + this->__isset.time_stamp = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->new_app_name); + this->__isset.new_app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_provider_name); + this->__isset.backup_provider_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->skip_bad_partition); + this->__isset.skip_bad_partition = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_restore_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_restore_request"); + + xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->cluster_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("time_stamp", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->time_stamp); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("new_app_name", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->new_app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_provider_name", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->backup_provider_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("skip_bad_partition", ::apache::thrift::protocol::T_BOOL, 8); + xfer += oprot->writeBool(this->skip_bad_partition); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_restore_request &a, configuration_restore_request &b) { + using ::std::swap; + swap(a.cluster_name, b.cluster_name); + swap(a.policy_name, b.policy_name); + swap(a.time_stamp, b.time_stamp); + swap(a.app_name, b.app_name); + swap(a.app_id, b.app_id); + swap(a.new_app_name, b.new_app_name); + swap(a.backup_provider_name, b.backup_provider_name); + swap(a.skip_bad_partition, b.skip_bad_partition); + swap(a.__isset, b.__isset); +} + +configuration_restore_request::configuration_restore_request(const configuration_restore_request& other365) { + cluster_name = other365.cluster_name; + policy_name = other365.policy_name; + time_stamp = other365.time_stamp; + app_name = other365.app_name; + app_id = other365.app_id; + new_app_name = other365.new_app_name; + backup_provider_name = other365.backup_provider_name; + skip_bad_partition = other365.skip_bad_partition; + __isset = other365.__isset; +} +configuration_restore_request::configuration_restore_request( configuration_restore_request&& other366) { + cluster_name = std::move(other366.cluster_name); + policy_name = std::move(other366.policy_name); + time_stamp = std::move(other366.time_stamp); + app_name = std::move(other366.app_name); + app_id = std::move(other366.app_id); + new_app_name = std::move(other366.new_app_name); + backup_provider_name = std::move(other366.backup_provider_name); + skip_bad_partition = std::move(other366.skip_bad_partition); + __isset = std::move(other366.__isset); +} +configuration_restore_request& configuration_restore_request::operator=(const configuration_restore_request& other367) { + cluster_name = other367.cluster_name; + policy_name = other367.policy_name; + time_stamp = other367.time_stamp; + app_name = other367.app_name; + app_id = other367.app_id; + new_app_name = other367.new_app_name; + backup_provider_name = other367.backup_provider_name; + skip_bad_partition = other367.skip_bad_partition; + __isset = other367.__isset; + return *this; +} +configuration_restore_request& configuration_restore_request::operator=(configuration_restore_request&& other368) { + cluster_name = std::move(other368.cluster_name); + policy_name = std::move(other368.policy_name); + time_stamp = std::move(other368.time_stamp); + app_name = std::move(other368.app_name); + app_id = std::move(other368.app_id); + new_app_name = std::move(other368.new_app_name); + backup_provider_name = std::move(other368.backup_provider_name); + skip_bad_partition = std::move(other368.skip_bad_partition); + __isset = std::move(other368.__isset); + return *this; +} +void configuration_restore_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_restore_request("; + out << "cluster_name=" << to_string(cluster_name); + out << ", " << "policy_name=" << to_string(policy_name); + out << ", " << "time_stamp=" << to_string(time_stamp); + out << ", " << "app_name=" << to_string(app_name); + out << ", " << "app_id=" << to_string(app_id); + out << ", " << "new_app_name=" << to_string(new_app_name); + out << ", " << "backup_provider_name=" << to_string(backup_provider_name); + out << ", " << "skip_bad_partition=" << to_string(skip_bad_partition); + out << ")"; +} + + +backup_request::~backup_request() throw() { +} + + +void backup_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +void backup_request::__set_policy(const policy_info& val) { + this->policy = val; +} + +void backup_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void backup_request::__set_backup_id(const int64_t val) { + this->backup_id = val; +} + +uint32_t backup_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->policy.read(iprot); + this->__isset.policy = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->backup_id); + this->__isset.backup_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t backup_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("backup_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("policy", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->policy.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->backup_id); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(backup_request &a, backup_request &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.policy, b.policy); + swap(a.app_name, b.app_name); + swap(a.backup_id, b.backup_id); + swap(a.__isset, b.__isset); +} + +backup_request::backup_request(const backup_request& other369) { + pid = other369.pid; + policy = other369.policy; + app_name = other369.app_name; + backup_id = other369.backup_id; + __isset = other369.__isset; +} +backup_request::backup_request( backup_request&& other370) { + pid = std::move(other370.pid); + policy = std::move(other370.policy); + app_name = std::move(other370.app_name); + backup_id = std::move(other370.backup_id); + __isset = std::move(other370.__isset); +} +backup_request& backup_request::operator=(const backup_request& other371) { + pid = other371.pid; + policy = other371.policy; + app_name = other371.app_name; + backup_id = other371.backup_id; + __isset = other371.__isset; + return *this; +} +backup_request& backup_request::operator=(backup_request&& other372) { + pid = std::move(other372.pid); + policy = std::move(other372.policy); + app_name = std::move(other372.app_name); + backup_id = std::move(other372.backup_id); + __isset = std::move(other372.__isset); + return *this; +} +void backup_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "backup_request("; + out << "pid=" << to_string(pid); + out << ", " << "policy=" << to_string(policy); + out << ", " << "app_name=" << to_string(app_name); + out << ", " << "backup_id=" << to_string(backup_id); + out << ")"; +} + + +backup_response::~backup_response() throw() { +} + + +void backup_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void backup_response::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +void backup_response::__set_progress(const int32_t val) { + this->progress = val; +} + +void backup_response::__set_policy_name(const std::string& val) { + this->policy_name = val; +} + +void backup_response::__set_backup_id(const int64_t val) { + this->backup_id = val; +} + +void backup_response::__set_checkpoint_total_size(const int64_t val) { + this->checkpoint_total_size = val; +} + +uint32_t backup_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->progress); + this->__isset.progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->backup_id); + this->__isset.backup_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->checkpoint_total_size); + this->__isset.checkpoint_total_size = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t backup_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("backup_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->progress); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->backup_id); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("checkpoint_total_size", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->checkpoint_total_size); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(backup_response &a, backup_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.pid, b.pid); + swap(a.progress, b.progress); + swap(a.policy_name, b.policy_name); + swap(a.backup_id, b.backup_id); + swap(a.checkpoint_total_size, b.checkpoint_total_size); + swap(a.__isset, b.__isset); +} + +backup_response::backup_response(const backup_response& other373) { + err = other373.err; + pid = other373.pid; + progress = other373.progress; + policy_name = other373.policy_name; + backup_id = other373.backup_id; + checkpoint_total_size = other373.checkpoint_total_size; + __isset = other373.__isset; +} +backup_response::backup_response( backup_response&& other374) { + err = std::move(other374.err); + pid = std::move(other374.pid); + progress = std::move(other374.progress); + policy_name = std::move(other374.policy_name); + backup_id = std::move(other374.backup_id); + checkpoint_total_size = std::move(other374.checkpoint_total_size); + __isset = std::move(other374.__isset); +} +backup_response& backup_response::operator=(const backup_response& other375) { + err = other375.err; + pid = other375.pid; + progress = other375.progress; + policy_name = other375.policy_name; + backup_id = other375.backup_id; + checkpoint_total_size = other375.checkpoint_total_size; + __isset = other375.__isset; + return *this; +} +backup_response& backup_response::operator=(backup_response&& other376) { + err = std::move(other376.err); + pid = std::move(other376.pid); + progress = std::move(other376.progress); + policy_name = std::move(other376.policy_name); + backup_id = std::move(other376.backup_id); + checkpoint_total_size = std::move(other376.checkpoint_total_size); + __isset = std::move(other376.__isset); + return *this; +} +void backup_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "backup_response("; + out << "err=" << to_string(err); + out << ", " << "pid=" << to_string(pid); + out << ", " << "progress=" << to_string(progress); + out << ", " << "policy_name=" << to_string(policy_name); + out << ", " << "backup_id=" << to_string(backup_id); + out << ", " << "checkpoint_total_size=" << to_string(checkpoint_total_size); + out << ")"; +} + + +backup_clear_request::~backup_clear_request() throw() { +} + + +void backup_clear_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +void backup_clear_request::__set_policy_name(const std::string& val) { + this->policy_name = val; +} + +uint32_t backup_clear_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t backup_clear_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("backup_clear_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(backup_clear_request &a, backup_clear_request &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.policy_name, b.policy_name); + swap(a.__isset, b.__isset); +} + +backup_clear_request::backup_clear_request(const backup_clear_request& other377) { + pid = other377.pid; + policy_name = other377.policy_name; + __isset = other377.__isset; +} +backup_clear_request::backup_clear_request( backup_clear_request&& other378) { + pid = std::move(other378.pid); + policy_name = std::move(other378.policy_name); + __isset = std::move(other378.__isset); +} +backup_clear_request& backup_clear_request::operator=(const backup_clear_request& other379) { + pid = other379.pid; + policy_name = other379.policy_name; + __isset = other379.__isset; + return *this; +} +backup_clear_request& backup_clear_request::operator=(backup_clear_request&& other380) { + pid = std::move(other380.pid); + policy_name = std::move(other380.policy_name); + __isset = std::move(other380.__isset); + return *this; +} +void backup_clear_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "backup_clear_request("; + out << "pid=" << to_string(pid); + out << ", " << "policy_name=" << to_string(policy_name); + out << ")"; +} + + +configuration_modify_backup_policy_request::~configuration_modify_backup_policy_request() throw() { +} + + +void configuration_modify_backup_policy_request::__set_policy_name(const std::string& val) { + this->policy_name = val; +} + +void configuration_modify_backup_policy_request::__set_add_appids(const std::vector & val) { + this->add_appids = val; +__isset.add_appids = true; +} + +void configuration_modify_backup_policy_request::__set_removal_appids(const std::vector & val) { + this->removal_appids = val; +__isset.removal_appids = true; +} + +void configuration_modify_backup_policy_request::__set_new_backup_interval_sec(const int64_t val) { + this->new_backup_interval_sec = val; +__isset.new_backup_interval_sec = true; +} + +void configuration_modify_backup_policy_request::__set_backup_history_count_to_keep(const int32_t val) { + this->backup_history_count_to_keep = val; +__isset.backup_history_count_to_keep = true; +} + +void configuration_modify_backup_policy_request::__set_is_disable(const bool val) { + this->is_disable = val; +__isset.is_disable = true; +} + +void configuration_modify_backup_policy_request::__set_start_time(const std::string& val) { + this->start_time = val; +__isset.start_time = true; +} + +uint32_t configuration_modify_backup_policy_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->add_appids.clear(); + uint32_t _size381; + ::apache::thrift::protocol::TType _etype384; + xfer += iprot->readListBegin(_etype384, _size381); + this->add_appids.resize(_size381); + uint32_t _i385; + for (_i385 = 0; _i385 < _size381; ++_i385) + { + xfer += iprot->readI32(this->add_appids[_i385]); + } + xfer += iprot->readListEnd(); + } + this->__isset.add_appids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->removal_appids.clear(); + uint32_t _size386; + ::apache::thrift::protocol::TType _etype389; + xfer += iprot->readListBegin(_etype389, _size386); + this->removal_appids.resize(_size386); + uint32_t _i390; + for (_i390 = 0; _i390 < _size386; ++_i390) + { + xfer += iprot->readI32(this->removal_appids[_i390]); + } + xfer += iprot->readListEnd(); + } + this->__isset.removal_appids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->new_backup_interval_sec); + this->__isset.new_backup_interval_sec = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->backup_history_count_to_keep); + this->__isset.backup_history_count_to_keep = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_disable); + this->__isset.is_disable = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->start_time); + this->__isset.start_time = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_modify_backup_policy_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_modify_backup_policy_request"); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.add_appids) { + xfer += oprot->writeFieldBegin("add_appids", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->add_appids.size())); + std::vector ::const_iterator _iter391; + for (_iter391 = this->add_appids.begin(); _iter391 != this->add_appids.end(); ++_iter391) + { + xfer += oprot->writeI32((*_iter391)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.removal_appids) { + xfer += oprot->writeFieldBegin("removal_appids", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->removal_appids.size())); + std::vector ::const_iterator _iter392; + for (_iter392 = this->removal_appids.begin(); _iter392 != this->removal_appids.end(); ++_iter392) + { + xfer += oprot->writeI32((*_iter392)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.new_backup_interval_sec) { + xfer += oprot->writeFieldBegin("new_backup_interval_sec", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->new_backup_interval_sec); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.backup_history_count_to_keep) { + xfer += oprot->writeFieldBegin("backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->backup_history_count_to_keep); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_disable) { + xfer += oprot->writeFieldBegin("is_disable", ::apache::thrift::protocol::T_BOOL, 6); + xfer += oprot->writeBool(this->is_disable); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.start_time) { + xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->start_time); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_modify_backup_policy_request &a, configuration_modify_backup_policy_request &b) { + using ::std::swap; + swap(a.policy_name, b.policy_name); + swap(a.add_appids, b.add_appids); + swap(a.removal_appids, b.removal_appids); + swap(a.new_backup_interval_sec, b.new_backup_interval_sec); + swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); + swap(a.is_disable, b.is_disable); + swap(a.start_time, b.start_time); + swap(a.__isset, b.__isset); +} + +configuration_modify_backup_policy_request::configuration_modify_backup_policy_request(const configuration_modify_backup_policy_request& other393) { + policy_name = other393.policy_name; + add_appids = other393.add_appids; + removal_appids = other393.removal_appids; + new_backup_interval_sec = other393.new_backup_interval_sec; + backup_history_count_to_keep = other393.backup_history_count_to_keep; + is_disable = other393.is_disable; + start_time = other393.start_time; + __isset = other393.__isset; +} +configuration_modify_backup_policy_request::configuration_modify_backup_policy_request( configuration_modify_backup_policy_request&& other394) { + policy_name = std::move(other394.policy_name); + add_appids = std::move(other394.add_appids); + removal_appids = std::move(other394.removal_appids); + new_backup_interval_sec = std::move(other394.new_backup_interval_sec); + backup_history_count_to_keep = std::move(other394.backup_history_count_to_keep); + is_disable = std::move(other394.is_disable); + start_time = std::move(other394.start_time); + __isset = std::move(other394.__isset); +} +configuration_modify_backup_policy_request& configuration_modify_backup_policy_request::operator=(const configuration_modify_backup_policy_request& other395) { + policy_name = other395.policy_name; + add_appids = other395.add_appids; + removal_appids = other395.removal_appids; + new_backup_interval_sec = other395.new_backup_interval_sec; + backup_history_count_to_keep = other395.backup_history_count_to_keep; + is_disable = other395.is_disable; + start_time = other395.start_time; + __isset = other395.__isset; + return *this; +} +configuration_modify_backup_policy_request& configuration_modify_backup_policy_request::operator=(configuration_modify_backup_policy_request&& other396) { + policy_name = std::move(other396.policy_name); + add_appids = std::move(other396.add_appids); + removal_appids = std::move(other396.removal_appids); + new_backup_interval_sec = std::move(other396.new_backup_interval_sec); + backup_history_count_to_keep = std::move(other396.backup_history_count_to_keep); + is_disable = std::move(other396.is_disable); + start_time = std::move(other396.start_time); + __isset = std::move(other396.__isset); + return *this; +} +void configuration_modify_backup_policy_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_modify_backup_policy_request("; + out << "policy_name=" << to_string(policy_name); + out << ", " << "add_appids="; (__isset.add_appids ? (out << to_string(add_appids)) : (out << "")); + out << ", " << "removal_appids="; (__isset.removal_appids ? (out << to_string(removal_appids)) : (out << "")); + out << ", " << "new_backup_interval_sec="; (__isset.new_backup_interval_sec ? (out << to_string(new_backup_interval_sec)) : (out << "")); + out << ", " << "backup_history_count_to_keep="; (__isset.backup_history_count_to_keep ? (out << to_string(backup_history_count_to_keep)) : (out << "")); + out << ", " << "is_disable="; (__isset.is_disable ? (out << to_string(is_disable)) : (out << "")); + out << ", " << "start_time="; (__isset.start_time ? (out << to_string(start_time)) : (out << "")); + out << ")"; +} + + +configuration_modify_backup_policy_response::~configuration_modify_backup_policy_response() throw() { +} + + +void configuration_modify_backup_policy_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void configuration_modify_backup_policy_response::__set_hint_message(const std::string& val) { + this->hint_message = val; +} + +uint32_t configuration_modify_backup_policy_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_message); + this->__isset.hint_message = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_modify_backup_policy_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_modify_backup_policy_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_message); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_modify_backup_policy_response &a, configuration_modify_backup_policy_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_message, b.hint_message); + swap(a.__isset, b.__isset); +} + +configuration_modify_backup_policy_response::configuration_modify_backup_policy_response(const configuration_modify_backup_policy_response& other397) { + err = other397.err; + hint_message = other397.hint_message; + __isset = other397.__isset; +} +configuration_modify_backup_policy_response::configuration_modify_backup_policy_response( configuration_modify_backup_policy_response&& other398) { + err = std::move(other398.err); + hint_message = std::move(other398.hint_message); + __isset = std::move(other398.__isset); +} +configuration_modify_backup_policy_response& configuration_modify_backup_policy_response::operator=(const configuration_modify_backup_policy_response& other399) { + err = other399.err; + hint_message = other399.hint_message; + __isset = other399.__isset; + return *this; +} +configuration_modify_backup_policy_response& configuration_modify_backup_policy_response::operator=(configuration_modify_backup_policy_response&& other400) { + err = std::move(other400.err); + hint_message = std::move(other400.hint_message); + __isset = std::move(other400.__isset); + return *this; +} +void configuration_modify_backup_policy_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_modify_backup_policy_response("; + out << "err=" << to_string(err); + out << ", " << "hint_message=" << to_string(hint_message); + out << ")"; +} + + +configuration_add_backup_policy_request::~configuration_add_backup_policy_request() throw() { +} + + +void configuration_add_backup_policy_request::__set_backup_provider_type(const std::string& val) { + this->backup_provider_type = val; +} + +void configuration_add_backup_policy_request::__set_policy_name(const std::string& val) { + this->policy_name = val; +} + +void configuration_add_backup_policy_request::__set_app_ids(const std::vector & val) { + this->app_ids = val; +} + +void configuration_add_backup_policy_request::__set_backup_interval_seconds(const int64_t val) { + this->backup_interval_seconds = val; +} + +void configuration_add_backup_policy_request::__set_backup_history_count_to_keep(const int32_t val) { + this->backup_history_count_to_keep = val; +} + +void configuration_add_backup_policy_request::__set_start_time(const std::string& val) { + this->start_time = val; +} + +uint32_t configuration_add_backup_policy_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_provider_type); + this->__isset.backup_provider_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->app_ids.clear(); + uint32_t _size401; + ::apache::thrift::protocol::TType _etype404; + xfer += iprot->readListBegin(_etype404, _size401); + this->app_ids.resize(_size401); + uint32_t _i405; + for (_i405 = 0; _i405 < _size401; ++_i405) + { + xfer += iprot->readI32(this->app_ids[_i405]); + } + xfer += iprot->readListEnd(); + } + this->__isset.app_ids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->backup_interval_seconds); + this->__isset.backup_interval_seconds = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->backup_history_count_to_keep); + this->__isset.backup_history_count_to_keep = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->start_time); + this->__isset.start_time = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_add_backup_policy_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_add_backup_policy_request"); + + xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->backup_provider_type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->app_ids.size())); + std::vector ::const_iterator _iter406; + for (_iter406 = this->app_ids.begin(); _iter406 != this->app_ids.end(); ++_iter406) + { + xfer += oprot->writeI32((*_iter406)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_interval_seconds", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->backup_interval_seconds); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->backup_history_count_to_keep); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->start_time); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_add_backup_policy_request &a, configuration_add_backup_policy_request &b) { + using ::std::swap; + swap(a.backup_provider_type, b.backup_provider_type); + swap(a.policy_name, b.policy_name); + swap(a.app_ids, b.app_ids); + swap(a.backup_interval_seconds, b.backup_interval_seconds); + swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); + swap(a.start_time, b.start_time); + swap(a.__isset, b.__isset); +} + +configuration_add_backup_policy_request::configuration_add_backup_policy_request(const configuration_add_backup_policy_request& other407) { + backup_provider_type = other407.backup_provider_type; + policy_name = other407.policy_name; + app_ids = other407.app_ids; + backup_interval_seconds = other407.backup_interval_seconds; + backup_history_count_to_keep = other407.backup_history_count_to_keep; + start_time = other407.start_time; + __isset = other407.__isset; +} +configuration_add_backup_policy_request::configuration_add_backup_policy_request( configuration_add_backup_policy_request&& other408) { + backup_provider_type = std::move(other408.backup_provider_type); + policy_name = std::move(other408.policy_name); + app_ids = std::move(other408.app_ids); + backup_interval_seconds = std::move(other408.backup_interval_seconds); + backup_history_count_to_keep = std::move(other408.backup_history_count_to_keep); + start_time = std::move(other408.start_time); + __isset = std::move(other408.__isset); +} +configuration_add_backup_policy_request& configuration_add_backup_policy_request::operator=(const configuration_add_backup_policy_request& other409) { + backup_provider_type = other409.backup_provider_type; + policy_name = other409.policy_name; + app_ids = other409.app_ids; + backup_interval_seconds = other409.backup_interval_seconds; + backup_history_count_to_keep = other409.backup_history_count_to_keep; + start_time = other409.start_time; + __isset = other409.__isset; + return *this; +} +configuration_add_backup_policy_request& configuration_add_backup_policy_request::operator=(configuration_add_backup_policy_request&& other410) { + backup_provider_type = std::move(other410.backup_provider_type); + policy_name = std::move(other410.policy_name); + app_ids = std::move(other410.app_ids); + backup_interval_seconds = std::move(other410.backup_interval_seconds); + backup_history_count_to_keep = std::move(other410.backup_history_count_to_keep); + start_time = std::move(other410.start_time); + __isset = std::move(other410.__isset); + return *this; +} +void configuration_add_backup_policy_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_add_backup_policy_request("; + out << "backup_provider_type=" << to_string(backup_provider_type); + out << ", " << "policy_name=" << to_string(policy_name); + out << ", " << "app_ids=" << to_string(app_ids); + out << ", " << "backup_interval_seconds=" << to_string(backup_interval_seconds); + out << ", " << "backup_history_count_to_keep=" << to_string(backup_history_count_to_keep); + out << ", " << "start_time=" << to_string(start_time); + out << ")"; +} + + +configuration_add_backup_policy_response::~configuration_add_backup_policy_response() throw() { +} + + +void configuration_add_backup_policy_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void configuration_add_backup_policy_response::__set_hint_message(const std::string& val) { + this->hint_message = val; +} + +uint32_t configuration_add_backup_policy_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_message); + this->__isset.hint_message = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_add_backup_policy_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_add_backup_policy_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_message); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_add_backup_policy_response &a, configuration_add_backup_policy_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_message, b.hint_message); + swap(a.__isset, b.__isset); +} + +configuration_add_backup_policy_response::configuration_add_backup_policy_response(const configuration_add_backup_policy_response& other411) { + err = other411.err; + hint_message = other411.hint_message; + __isset = other411.__isset; +} +configuration_add_backup_policy_response::configuration_add_backup_policy_response( configuration_add_backup_policy_response&& other412) { + err = std::move(other412.err); + hint_message = std::move(other412.hint_message); + __isset = std::move(other412.__isset); +} +configuration_add_backup_policy_response& configuration_add_backup_policy_response::operator=(const configuration_add_backup_policy_response& other413) { + err = other413.err; + hint_message = other413.hint_message; + __isset = other413.__isset; + return *this; +} +configuration_add_backup_policy_response& configuration_add_backup_policy_response::operator=(configuration_add_backup_policy_response&& other414) { + err = std::move(other414.err); + hint_message = std::move(other414.hint_message); + __isset = std::move(other414.__isset); + return *this; +} +void configuration_add_backup_policy_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_add_backup_policy_response("; + out << "err=" << to_string(err); + out << ", " << "hint_message=" << to_string(hint_message); + out << ")"; +} + + +policy_entry::~policy_entry() throw() { +} + + +void policy_entry::__set_policy_name(const std::string& val) { + this->policy_name = val; +} + +void policy_entry::__set_backup_provider_type(const std::string& val) { + this->backup_provider_type = val; +} + +void policy_entry::__set_backup_interval_seconds(const std::string& val) { + this->backup_interval_seconds = val; +} + +void policy_entry::__set_app_ids(const std::set & val) { + this->app_ids = val; +} + +void policy_entry::__set_backup_history_count_to_keep(const int32_t val) { + this->backup_history_count_to_keep = val; +} + +void policy_entry::__set_start_time(const std::string& val) { + this->start_time = val; +} + +void policy_entry::__set_is_disable(const bool val) { + this->is_disable = val; +} + +uint32_t policy_entry::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_provider_type); + this->__isset.backup_provider_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_interval_seconds); + this->__isset.backup_interval_seconds = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_SET) { + { + this->app_ids.clear(); + uint32_t _size415; + ::apache::thrift::protocol::TType _etype418; + xfer += iprot->readSetBegin(_etype418, _size415); + uint32_t _i419; + for (_i419 = 0; _i419 < _size415; ++_i419) + { + int32_t _elem420; + xfer += iprot->readI32(_elem420); + this->app_ids.insert(_elem420); + } + xfer += iprot->readSetEnd(); + } + this->__isset.app_ids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->backup_history_count_to_keep); + this->__isset.backup_history_count_to_keep = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->start_time); + this->__isset.start_time = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_disable); + this->__isset.is_disable = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t policy_entry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("policy_entry"); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->backup_provider_type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_interval_seconds", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->backup_interval_seconds); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_SET, 4); + { + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, static_cast(this->app_ids.size())); + std::set ::const_iterator _iter421; + for (_iter421 = this->app_ids.begin(); _iter421 != this->app_ids.end(); ++_iter421) + { + xfer += oprot->writeI32((*_iter421)); + } + xfer += oprot->writeSetEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->backup_history_count_to_keep); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->start_time); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("is_disable", ::apache::thrift::protocol::T_BOOL, 7); + xfer += oprot->writeBool(this->is_disable); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(policy_entry &a, policy_entry &b) { + using ::std::swap; + swap(a.policy_name, b.policy_name); + swap(a.backup_provider_type, b.backup_provider_type); + swap(a.backup_interval_seconds, b.backup_interval_seconds); + swap(a.app_ids, b.app_ids); + swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); + swap(a.start_time, b.start_time); + swap(a.is_disable, b.is_disable); + swap(a.__isset, b.__isset); +} + +policy_entry::policy_entry(const policy_entry& other422) { + policy_name = other422.policy_name; + backup_provider_type = other422.backup_provider_type; + backup_interval_seconds = other422.backup_interval_seconds; + app_ids = other422.app_ids; + backup_history_count_to_keep = other422.backup_history_count_to_keep; + start_time = other422.start_time; + is_disable = other422.is_disable; + __isset = other422.__isset; +} +policy_entry::policy_entry( policy_entry&& other423) { + policy_name = std::move(other423.policy_name); + backup_provider_type = std::move(other423.backup_provider_type); + backup_interval_seconds = std::move(other423.backup_interval_seconds); + app_ids = std::move(other423.app_ids); + backup_history_count_to_keep = std::move(other423.backup_history_count_to_keep); + start_time = std::move(other423.start_time); + is_disable = std::move(other423.is_disable); + __isset = std::move(other423.__isset); +} +policy_entry& policy_entry::operator=(const policy_entry& other424) { + policy_name = other424.policy_name; + backup_provider_type = other424.backup_provider_type; + backup_interval_seconds = other424.backup_interval_seconds; + app_ids = other424.app_ids; + backup_history_count_to_keep = other424.backup_history_count_to_keep; + start_time = other424.start_time; + is_disable = other424.is_disable; + __isset = other424.__isset; + return *this; +} +policy_entry& policy_entry::operator=(policy_entry&& other425) { + policy_name = std::move(other425.policy_name); + backup_provider_type = std::move(other425.backup_provider_type); + backup_interval_seconds = std::move(other425.backup_interval_seconds); + app_ids = std::move(other425.app_ids); + backup_history_count_to_keep = std::move(other425.backup_history_count_to_keep); + start_time = std::move(other425.start_time); + is_disable = std::move(other425.is_disable); + __isset = std::move(other425.__isset); + return *this; +} +void policy_entry::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "policy_entry("; + out << "policy_name=" << to_string(policy_name); + out << ", " << "backup_provider_type=" << to_string(backup_provider_type); + out << ", " << "backup_interval_seconds=" << to_string(backup_interval_seconds); + out << ", " << "app_ids=" << to_string(app_ids); + out << ", " << "backup_history_count_to_keep=" << to_string(backup_history_count_to_keep); + out << ", " << "start_time=" << to_string(start_time); + out << ", " << "is_disable=" << to_string(is_disable); + out << ")"; +} + + +backup_entry::~backup_entry() throw() { +} + + +void backup_entry::__set_backup_id(const int64_t val) { + this->backup_id = val; +} + +void backup_entry::__set_start_time_ms(const int64_t val) { + this->start_time_ms = val; +} + +void backup_entry::__set_end_time_ms(const int64_t val) { + this->end_time_ms = val; +} + +void backup_entry::__set_app_ids(const std::set & val) { + this->app_ids = val; +} + +uint32_t backup_entry::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->backup_id); + this->__isset.backup_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->start_time_ms); + this->__isset.start_time_ms = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->end_time_ms); + this->__isset.end_time_ms = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_SET) { + { + this->app_ids.clear(); + uint32_t _size426; + ::apache::thrift::protocol::TType _etype429; + xfer += iprot->readSetBegin(_etype429, _size426); + uint32_t _i430; + for (_i430 = 0; _i430 < _size426; ++_i430) + { + int32_t _elem431; + xfer += iprot->readI32(_elem431); + this->app_ids.insert(_elem431); + } + xfer += iprot->readSetEnd(); + } + this->__isset.app_ids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t backup_entry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("backup_entry"); + + xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->backup_id); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("start_time_ms", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->start_time_ms); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("end_time_ms", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->end_time_ms); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_SET, 4); + { + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, static_cast(this->app_ids.size())); + std::set ::const_iterator _iter432; + for (_iter432 = this->app_ids.begin(); _iter432 != this->app_ids.end(); ++_iter432) + { + xfer += oprot->writeI32((*_iter432)); + } + xfer += oprot->writeSetEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(backup_entry &a, backup_entry &b) { + using ::std::swap; + swap(a.backup_id, b.backup_id); + swap(a.start_time_ms, b.start_time_ms); + swap(a.end_time_ms, b.end_time_ms); + swap(a.app_ids, b.app_ids); + swap(a.__isset, b.__isset); +} + +backup_entry::backup_entry(const backup_entry& other433) { + backup_id = other433.backup_id; + start_time_ms = other433.start_time_ms; + end_time_ms = other433.end_time_ms; + app_ids = other433.app_ids; + __isset = other433.__isset; +} +backup_entry::backup_entry( backup_entry&& other434) { + backup_id = std::move(other434.backup_id); + start_time_ms = std::move(other434.start_time_ms); + end_time_ms = std::move(other434.end_time_ms); + app_ids = std::move(other434.app_ids); + __isset = std::move(other434.__isset); +} +backup_entry& backup_entry::operator=(const backup_entry& other435) { + backup_id = other435.backup_id; + start_time_ms = other435.start_time_ms; + end_time_ms = other435.end_time_ms; + app_ids = other435.app_ids; + __isset = other435.__isset; + return *this; +} +backup_entry& backup_entry::operator=(backup_entry&& other436) { + backup_id = std::move(other436.backup_id); + start_time_ms = std::move(other436.start_time_ms); + end_time_ms = std::move(other436.end_time_ms); + app_ids = std::move(other436.app_ids); + __isset = std::move(other436.__isset); + return *this; +} +void backup_entry::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "backup_entry("; + out << "backup_id=" << to_string(backup_id); + out << ", " << "start_time_ms=" << to_string(start_time_ms); + out << ", " << "end_time_ms=" << to_string(end_time_ms); + out << ", " << "app_ids=" << to_string(app_ids); + out << ")"; +} + + +configuration_query_backup_policy_request::~configuration_query_backup_policy_request() throw() { +} + + +void configuration_query_backup_policy_request::__set_policy_names(const std::vector & val) { + this->policy_names = val; +} + +void configuration_query_backup_policy_request::__set_backup_info_count(const int32_t val) { + this->backup_info_count = val; +} + +uint32_t configuration_query_backup_policy_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->policy_names.clear(); + uint32_t _size437; + ::apache::thrift::protocol::TType _etype440; + xfer += iprot->readListBegin(_etype440, _size437); + this->policy_names.resize(_size437); + uint32_t _i441; + for (_i441 = 0; _i441 < _size437; ++_i441) + { + xfer += iprot->readString(this->policy_names[_i441]); + } + xfer += iprot->readListEnd(); + } + this->__isset.policy_names = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->backup_info_count); + this->__isset.backup_info_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_query_backup_policy_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_backup_policy_request"); + + xfer += oprot->writeFieldBegin("policy_names", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->policy_names.size())); + std::vector ::const_iterator _iter442; + for (_iter442 = this->policy_names.begin(); _iter442 != this->policy_names.end(); ++_iter442) + { + xfer += oprot->writeString((*_iter442)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_info_count", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->backup_info_count); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_backup_policy_request &a, configuration_query_backup_policy_request &b) { + using ::std::swap; + swap(a.policy_names, b.policy_names); + swap(a.backup_info_count, b.backup_info_count); + swap(a.__isset, b.__isset); +} + +configuration_query_backup_policy_request::configuration_query_backup_policy_request(const configuration_query_backup_policy_request& other443) { + policy_names = other443.policy_names; + backup_info_count = other443.backup_info_count; + __isset = other443.__isset; +} +configuration_query_backup_policy_request::configuration_query_backup_policy_request( configuration_query_backup_policy_request&& other444) { + policy_names = std::move(other444.policy_names); + backup_info_count = std::move(other444.backup_info_count); + __isset = std::move(other444.__isset); +} +configuration_query_backup_policy_request& configuration_query_backup_policy_request::operator=(const configuration_query_backup_policy_request& other445) { + policy_names = other445.policy_names; + backup_info_count = other445.backup_info_count; + __isset = other445.__isset; + return *this; +} +configuration_query_backup_policy_request& configuration_query_backup_policy_request::operator=(configuration_query_backup_policy_request&& other446) { + policy_names = std::move(other446.policy_names); + backup_info_count = std::move(other446.backup_info_count); + __isset = std::move(other446.__isset); + return *this; +} +void configuration_query_backup_policy_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_query_backup_policy_request("; + out << "policy_names=" << to_string(policy_names); + out << ", " << "backup_info_count=" << to_string(backup_info_count); + out << ")"; +} + + +configuration_query_backup_policy_response::~configuration_query_backup_policy_response() throw() { +} + + +void configuration_query_backup_policy_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void configuration_query_backup_policy_response::__set_policys(const std::vector & val) { + this->policys = val; +} + +void configuration_query_backup_policy_response::__set_backup_infos(const std::vector > & val) { + this->backup_infos = val; +} + +void configuration_query_backup_policy_response::__set_hint_msg(const std::string& val) { + this->hint_msg = val; +__isset.hint_msg = true; +} + +uint32_t configuration_query_backup_policy_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->policys.clear(); + uint32_t _size447; + ::apache::thrift::protocol::TType _etype450; + xfer += iprot->readListBegin(_etype450, _size447); + this->policys.resize(_size447); + uint32_t _i451; + for (_i451 = 0; _i451 < _size447; ++_i451) + { + xfer += this->policys[_i451].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.policys = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->backup_infos.clear(); + uint32_t _size452; + ::apache::thrift::protocol::TType _etype455; + xfer += iprot->readListBegin(_etype455, _size452); + this->backup_infos.resize(_size452); + uint32_t _i456; + for (_i456 = 0; _i456 < _size452; ++_i456) + { + { + this->backup_infos[_i456].clear(); + uint32_t _size457; + ::apache::thrift::protocol::TType _etype460; + xfer += iprot->readListBegin(_etype460, _size457); + this->backup_infos[_i456].resize(_size457); + uint32_t _i461; + for (_i461 = 0; _i461 < _size457; ++_i461) + { + xfer += this->backup_infos[_i456][_i461].read(iprot); + } + xfer += iprot->readListEnd(); + } + } + xfer += iprot->readListEnd(); + } + this->__isset.backup_infos = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_query_backup_policy_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_backup_policy_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("policys", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->policys.size())); + std::vector ::const_iterator _iter462; + for (_iter462 = this->policys.begin(); _iter462 != this->policys.end(); ++_iter462) + { + xfer += (*_iter462).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_infos", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, static_cast(this->backup_infos.size())); + std::vector > ::const_iterator _iter463; + for (_iter463 = this->backup_infos.begin(); _iter463 != this->backup_infos.end(); ++_iter463) + { + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*_iter463).size())); + std::vector ::const_iterator _iter464; + for (_iter464 = (*_iter463).begin(); _iter464 != (*_iter463).end(); ++_iter464) + { + xfer += (*_iter464).write(oprot); + } + xfer += oprot->writeListEnd(); + } + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + if (this->__isset.hint_msg) { + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_backup_policy_response &a, configuration_query_backup_policy_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.policys, b.policys); + swap(a.backup_infos, b.backup_infos); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} + +configuration_query_backup_policy_response::configuration_query_backup_policy_response(const configuration_query_backup_policy_response& other465) { + err = other465.err; + policys = other465.policys; + backup_infos = other465.backup_infos; + hint_msg = other465.hint_msg; + __isset = other465.__isset; +} +configuration_query_backup_policy_response::configuration_query_backup_policy_response( configuration_query_backup_policy_response&& other466) { + err = std::move(other466.err); + policys = std::move(other466.policys); + backup_infos = std::move(other466.backup_infos); + hint_msg = std::move(other466.hint_msg); + __isset = std::move(other466.__isset); +} +configuration_query_backup_policy_response& configuration_query_backup_policy_response::operator=(const configuration_query_backup_policy_response& other467) { + err = other467.err; + policys = other467.policys; + backup_infos = other467.backup_infos; + hint_msg = other467.hint_msg; + __isset = other467.__isset; + return *this; +} +configuration_query_backup_policy_response& configuration_query_backup_policy_response::operator=(configuration_query_backup_policy_response&& other468) { + err = std::move(other468.err); + policys = std::move(other468.policys); + backup_infos = std::move(other468.backup_infos); + hint_msg = std::move(other468.hint_msg); + __isset = std::move(other468.__isset); + return *this; +} +void configuration_query_backup_policy_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_query_backup_policy_response("; + out << "err=" << to_string(err); + out << ", " << "policys=" << to_string(policys); + out << ", " << "backup_infos=" << to_string(backup_infos); + out << ", " << "hint_msg="; (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); + out << ")"; +} + + +configuration_report_restore_status_request::~configuration_report_restore_status_request() throw() { +} + + +void configuration_report_restore_status_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +void configuration_report_restore_status_request::__set_restore_status(const ::dsn::error_code& val) { + this->restore_status = val; +} + +void configuration_report_restore_status_request::__set_progress(const int32_t val) { + this->progress = val; +} + +void configuration_report_restore_status_request::__set_reason(const std::string& val) { + this->reason = val; +__isset.reason = true; +} + +uint32_t configuration_report_restore_status_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->restore_status.read(iprot); + this->__isset.restore_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->progress); + this->__isset.progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->reason); + this->__isset.reason = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_report_restore_status_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_report_restore_status_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("restore_status", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->restore_status.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->progress); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.reason) { + xfer += oprot->writeFieldBegin("reason", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->reason); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_report_restore_status_request &a, configuration_report_restore_status_request &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.restore_status, b.restore_status); + swap(a.progress, b.progress); + swap(a.reason, b.reason); + swap(a.__isset, b.__isset); +} + +configuration_report_restore_status_request::configuration_report_restore_status_request(const configuration_report_restore_status_request& other469) { + pid = other469.pid; + restore_status = other469.restore_status; + progress = other469.progress; + reason = other469.reason; + __isset = other469.__isset; +} +configuration_report_restore_status_request::configuration_report_restore_status_request( configuration_report_restore_status_request&& other470) { + pid = std::move(other470.pid); + restore_status = std::move(other470.restore_status); + progress = std::move(other470.progress); + reason = std::move(other470.reason); + __isset = std::move(other470.__isset); +} +configuration_report_restore_status_request& configuration_report_restore_status_request::operator=(const configuration_report_restore_status_request& other471) { + pid = other471.pid; + restore_status = other471.restore_status; + progress = other471.progress; + reason = other471.reason; + __isset = other471.__isset; + return *this; +} +configuration_report_restore_status_request& configuration_report_restore_status_request::operator=(configuration_report_restore_status_request&& other472) { + pid = std::move(other472.pid); + restore_status = std::move(other472.restore_status); + progress = std::move(other472.progress); + reason = std::move(other472.reason); + __isset = std::move(other472.__isset); + return *this; +} +void configuration_report_restore_status_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_report_restore_status_request("; + out << "pid=" << to_string(pid); + out << ", " << "restore_status=" << to_string(restore_status); + out << ", " << "progress=" << to_string(progress); + out << ", " << "reason="; (__isset.reason ? (out << to_string(reason)) : (out << "")); + out << ")"; +} + + +configuration_report_restore_status_response::~configuration_report_restore_status_response() throw() { +} + + +void configuration_report_restore_status_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +uint32_t configuration_report_restore_status_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_report_restore_status_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_report_restore_status_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_report_restore_status_response &a, configuration_report_restore_status_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); +} + +configuration_report_restore_status_response::configuration_report_restore_status_response(const configuration_report_restore_status_response& other473) { + err = other473.err; + __isset = other473.__isset; +} +configuration_report_restore_status_response::configuration_report_restore_status_response( configuration_report_restore_status_response&& other474) { + err = std::move(other474.err); + __isset = std::move(other474.__isset); +} +configuration_report_restore_status_response& configuration_report_restore_status_response::operator=(const configuration_report_restore_status_response& other475) { + err = other475.err; + __isset = other475.__isset; + return *this; +} +configuration_report_restore_status_response& configuration_report_restore_status_response::operator=(configuration_report_restore_status_response&& other476) { + err = std::move(other476.err); + __isset = std::move(other476.__isset); + return *this; +} +void configuration_report_restore_status_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_report_restore_status_response("; + out << "err=" << to_string(err); + out << ")"; +} + + +configuration_query_restore_request::~configuration_query_restore_request() throw() { +} + + +void configuration_query_restore_request::__set_restore_app_id(const int32_t val) { + this->restore_app_id = val; +} + +uint32_t configuration_query_restore_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->restore_app_id); + this->__isset.restore_app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_query_restore_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_restore_request"); + + xfer += oprot->writeFieldBegin("restore_app_id", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->restore_app_id); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_restore_request &a, configuration_query_restore_request &b) { + using ::std::swap; + swap(a.restore_app_id, b.restore_app_id); + swap(a.__isset, b.__isset); +} + +configuration_query_restore_request::configuration_query_restore_request(const configuration_query_restore_request& other477) { + restore_app_id = other477.restore_app_id; + __isset = other477.__isset; +} +configuration_query_restore_request::configuration_query_restore_request( configuration_query_restore_request&& other478) { + restore_app_id = std::move(other478.restore_app_id); + __isset = std::move(other478.__isset); +} +configuration_query_restore_request& configuration_query_restore_request::operator=(const configuration_query_restore_request& other479) { + restore_app_id = other479.restore_app_id; + __isset = other479.__isset; + return *this; +} +configuration_query_restore_request& configuration_query_restore_request::operator=(configuration_query_restore_request&& other480) { + restore_app_id = std::move(other480.restore_app_id); + __isset = std::move(other480.__isset); + return *this; +} +void configuration_query_restore_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_query_restore_request("; + out << "restore_app_id=" << to_string(restore_app_id); + out << ")"; +} + + +configuration_query_restore_response::~configuration_query_restore_response() throw() { +} + + +void configuration_query_restore_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void configuration_query_restore_response::__set_restore_status(const std::vector< ::dsn::error_code> & val) { + this->restore_status = val; +} + +void configuration_query_restore_response::__set_restore_progress(const std::vector & val) { + this->restore_progress = val; +} + +uint32_t configuration_query_restore_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->restore_status.clear(); + uint32_t _size481; + ::apache::thrift::protocol::TType _etype484; + xfer += iprot->readListBegin(_etype484, _size481); + this->restore_status.resize(_size481); + uint32_t _i485; + for (_i485 = 0; _i485 < _size481; ++_i485) + { + xfer += this->restore_status[_i485].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.restore_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->restore_progress.clear(); + uint32_t _size486; + ::apache::thrift::protocol::TType _etype489; + xfer += iprot->readListBegin(_etype489, _size486); + this->restore_progress.resize(_size486); + uint32_t _i490; + for (_i490 = 0; _i490 < _size486; ++_i490) + { + xfer += iprot->readI32(this->restore_progress[_i490]); + } + xfer += iprot->readListEnd(); + } + this->__isset.restore_progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_query_restore_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_restore_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("restore_status", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->restore_status.size())); + std::vector< ::dsn::error_code> ::const_iterator _iter491; + for (_iter491 = this->restore_status.begin(); _iter491 != this->restore_status.end(); ++_iter491) + { + xfer += (*_iter491).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("restore_progress", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->restore_progress.size())); + std::vector ::const_iterator _iter492; + for (_iter492 = this->restore_progress.begin(); _iter492 != this->restore_progress.end(); ++_iter492) + { + xfer += oprot->writeI32((*_iter492)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_restore_response &a, configuration_query_restore_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.restore_status, b.restore_status); + swap(a.restore_progress, b.restore_progress); + swap(a.__isset, b.__isset); +} + +configuration_query_restore_response::configuration_query_restore_response(const configuration_query_restore_response& other493) { + err = other493.err; + restore_status = other493.restore_status; + restore_progress = other493.restore_progress; + __isset = other493.__isset; +} +configuration_query_restore_response::configuration_query_restore_response( configuration_query_restore_response&& other494) { + err = std::move(other494.err); + restore_status = std::move(other494.restore_status); + restore_progress = std::move(other494.restore_progress); + __isset = std::move(other494.__isset); +} +configuration_query_restore_response& configuration_query_restore_response::operator=(const configuration_query_restore_response& other495) { + err = other495.err; + restore_status = other495.restore_status; + restore_progress = other495.restore_progress; + __isset = other495.__isset; + return *this; +} +configuration_query_restore_response& configuration_query_restore_response::operator=(configuration_query_restore_response&& other496) { + err = std::move(other496.err); + restore_status = std::move(other496.restore_status); + restore_progress = std::move(other496.restore_progress); + __isset = std::move(other496.__isset); + return *this; +} +void configuration_query_restore_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_query_restore_response("; + out << "err=" << to_string(err); + out << ", " << "restore_status=" << to_string(restore_status); + out << ", " << "restore_progress=" << to_string(restore_progress); + out << ")"; +} + + +file_meta::~file_meta() throw() { +} + + +void file_meta::__set_name(const std::string& val) { + this->name = val; +} + +void file_meta::__set_size(const int64_t val) { + this->size = val; +} + +void file_meta::__set_md5(const std::string& val) { + this->md5 = val; +} + +uint32_t file_meta::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->name); + this->__isset.name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->size); + this->__isset.size = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->md5); + this->__isset.md5 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t file_meta::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("file_meta"); + + xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("size", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->size); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("md5", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->md5); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(file_meta &a, file_meta &b) { + using ::std::swap; + swap(a.name, b.name); + swap(a.size, b.size); + swap(a.md5, b.md5); + swap(a.__isset, b.__isset); +} + +file_meta::file_meta(const file_meta& other497) { + name = other497.name; + size = other497.size; + md5 = other497.md5; + __isset = other497.__isset; +} +file_meta::file_meta( file_meta&& other498) { + name = std::move(other498.name); + size = std::move(other498.size); + md5 = std::move(other498.md5); + __isset = std::move(other498.__isset); +} +file_meta& file_meta::operator=(const file_meta& other499) { + name = other499.name; + size = other499.size; + md5 = other499.md5; + __isset = other499.__isset; + return *this; +} +file_meta& file_meta::operator=(file_meta&& other500) { + name = std::move(other500.name); + size = std::move(other500.size); + md5 = std::move(other500.md5); + __isset = std::move(other500.__isset); + return *this; +} +void file_meta::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "file_meta("; + out << "name=" << to_string(name); + out << ", " << "size=" << to_string(size); + out << ", " << "md5=" << to_string(md5); + out << ")"; +} + + +configuration_update_app_env_request::~configuration_update_app_env_request() throw() { +} + + +void configuration_update_app_env_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void configuration_update_app_env_request::__set_op(const app_env_operation::type val) { + this->op = val; +} + +void configuration_update_app_env_request::__set_keys(const std::vector & val) { + this->keys = val; +__isset.keys = true; +} + +void configuration_update_app_env_request::__set_values(const std::vector & val) { + this->values = val; +__isset.values = true; +} + +void configuration_update_app_env_request::__set_clear_prefix(const std::string& val) { + this->clear_prefix = val; +__isset.clear_prefix = true; +} + +uint32_t configuration_update_app_env_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast501; + xfer += iprot->readI32(ecast501); + this->op = (app_env_operation::type)ecast501; + this->__isset.op = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->keys.clear(); + uint32_t _size502; + ::apache::thrift::protocol::TType _etype505; + xfer += iprot->readListBegin(_etype505, _size502); + this->keys.resize(_size502); + uint32_t _i506; + for (_i506 = 0; _i506 < _size502; ++_i506) + { + xfer += iprot->readString(this->keys[_i506]); + } + xfer += iprot->readListEnd(); + } + this->__isset.keys = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->values.clear(); + uint32_t _size507; + ::apache::thrift::protocol::TType _etype510; + xfer += iprot->readListBegin(_etype510, _size507); + this->values.resize(_size507); + uint32_t _i511; + for (_i511 = 0; _i511 < _size507; ++_i511) + { + xfer += iprot->readString(this->values[_i511]); + } + xfer += iprot->readListEnd(); + } + this->__isset.values = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->clear_prefix); + this->__isset.clear_prefix = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_update_app_env_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_update_app_env_request"); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("op", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->op); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.keys) { + xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->keys.size())); + std::vector ::const_iterator _iter512; + for (_iter512 = this->keys.begin(); _iter512 != this->keys.end(); ++_iter512) + { + xfer += oprot->writeString((*_iter512)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.values) { + xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); + std::vector ::const_iterator _iter513; + for (_iter513 = this->values.begin(); _iter513 != this->values.end(); ++_iter513) + { + xfer += oprot->writeString((*_iter513)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.clear_prefix) { + xfer += oprot->writeFieldBegin("clear_prefix", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->clear_prefix); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_update_app_env_request &a, configuration_update_app_env_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.op, b.op); + swap(a.keys, b.keys); + swap(a.values, b.values); + swap(a.clear_prefix, b.clear_prefix); + swap(a.__isset, b.__isset); +} + +configuration_update_app_env_request::configuration_update_app_env_request(const configuration_update_app_env_request& other514) { + app_name = other514.app_name; + op = other514.op; + keys = other514.keys; + values = other514.values; + clear_prefix = other514.clear_prefix; + __isset = other514.__isset; +} +configuration_update_app_env_request::configuration_update_app_env_request( configuration_update_app_env_request&& other515) { + app_name = std::move(other515.app_name); + op = std::move(other515.op); + keys = std::move(other515.keys); + values = std::move(other515.values); + clear_prefix = std::move(other515.clear_prefix); + __isset = std::move(other515.__isset); +} +configuration_update_app_env_request& configuration_update_app_env_request::operator=(const configuration_update_app_env_request& other516) { + app_name = other516.app_name; + op = other516.op; + keys = other516.keys; + values = other516.values; + clear_prefix = other516.clear_prefix; + __isset = other516.__isset; + return *this; +} +configuration_update_app_env_request& configuration_update_app_env_request::operator=(configuration_update_app_env_request&& other517) { + app_name = std::move(other517.app_name); + op = std::move(other517.op); + keys = std::move(other517.keys); + values = std::move(other517.values); + clear_prefix = std::move(other517.clear_prefix); + __isset = std::move(other517.__isset); + return *this; +} +void configuration_update_app_env_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_update_app_env_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "op=" << to_string(op); + out << ", " << "keys="; (__isset.keys ? (out << to_string(keys)) : (out << "")); + out << ", " << "values="; (__isset.values ? (out << to_string(values)) : (out << "")); + out << ", " << "clear_prefix="; (__isset.clear_prefix ? (out << to_string(clear_prefix)) : (out << "")); + out << ")"; +} + + +configuration_update_app_env_response::~configuration_update_app_env_response() throw() { +} + + +void configuration_update_app_env_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void configuration_update_app_env_response::__set_hint_message(const std::string& val) { + this->hint_message = val; +} + +uint32_t configuration_update_app_env_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_message); + this->__isset.hint_message = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_update_app_env_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_update_app_env_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_message); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_update_app_env_response &a, configuration_update_app_env_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_message, b.hint_message); + swap(a.__isset, b.__isset); +} + +configuration_update_app_env_response::configuration_update_app_env_response(const configuration_update_app_env_response& other518) { + err = other518.err; + hint_message = other518.hint_message; + __isset = other518.__isset; +} +configuration_update_app_env_response::configuration_update_app_env_response( configuration_update_app_env_response&& other519) { + err = std::move(other519.err); + hint_message = std::move(other519.hint_message); + __isset = std::move(other519.__isset); +} +configuration_update_app_env_response& configuration_update_app_env_response::operator=(const configuration_update_app_env_response& other520) { + err = other520.err; + hint_message = other520.hint_message; + __isset = other520.__isset; + return *this; +} +configuration_update_app_env_response& configuration_update_app_env_response::operator=(configuration_update_app_env_response&& other521) { + err = std::move(other521.err); + hint_message = std::move(other521.hint_message); + __isset = std::move(other521.__isset); + return *this; +} +void configuration_update_app_env_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_update_app_env_response("; + out << "err=" << to_string(err); + out << ", " << "hint_message=" << to_string(hint_message); + out << ")"; +} + + +duplication_add_request::~duplication_add_request() throw() { +} + + +void duplication_add_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void duplication_add_request::__set_remote_cluster_name(const std::string& val) { + this->remote_cluster_name = val; +} + +void duplication_add_request::__set_freezed(const bool val) { + this->freezed = val; +} + +uint32_t duplication_add_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_cluster_name); + this->__isset.remote_cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->freezed); + this->__isset.freezed = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_add_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_add_request"); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("remote_cluster_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->remote_cluster_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("freezed", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->freezed); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_add_request &a, duplication_add_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.remote_cluster_name, b.remote_cluster_name); + swap(a.freezed, b.freezed); + swap(a.__isset, b.__isset); +} + +duplication_add_request::duplication_add_request(const duplication_add_request& other522) { + app_name = other522.app_name; + remote_cluster_name = other522.remote_cluster_name; + freezed = other522.freezed; + __isset = other522.__isset; +} +duplication_add_request::duplication_add_request( duplication_add_request&& other523) { + app_name = std::move(other523.app_name); + remote_cluster_name = std::move(other523.remote_cluster_name); + freezed = std::move(other523.freezed); + __isset = std::move(other523.__isset); +} +duplication_add_request& duplication_add_request::operator=(const duplication_add_request& other524) { + app_name = other524.app_name; + remote_cluster_name = other524.remote_cluster_name; + freezed = other524.freezed; + __isset = other524.__isset; + return *this; +} +duplication_add_request& duplication_add_request::operator=(duplication_add_request&& other525) { + app_name = std::move(other525.app_name); + remote_cluster_name = std::move(other525.remote_cluster_name); + freezed = std::move(other525.freezed); + __isset = std::move(other525.__isset); + return *this; +} +void duplication_add_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_add_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "remote_cluster_name=" << to_string(remote_cluster_name); + out << ", " << "freezed=" << to_string(freezed); + out << ")"; +} + + +duplication_add_response::~duplication_add_response() throw() { +} + + +void duplication_add_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void duplication_add_response::__set_appid(const int32_t val) { + this->appid = val; +} + +void duplication_add_response::__set_dupid(const int32_t val) { + this->dupid = val; +} + +void duplication_add_response::__set_hint(const std::string& val) { + this->hint = val; +__isset.hint = true; +} + +uint32_t duplication_add_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->appid); + this->__isset.appid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->dupid); + this->__isset.dupid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint); + this->__isset.hint = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_add_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_add_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->appid); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->dupid); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.hint) { + xfer += oprot->writeFieldBegin("hint", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->hint); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_add_response &a, duplication_add_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.appid, b.appid); + swap(a.dupid, b.dupid); + swap(a.hint, b.hint); + swap(a.__isset, b.__isset); +} + +duplication_add_response::duplication_add_response(const duplication_add_response& other526) { + err = other526.err; + appid = other526.appid; + dupid = other526.dupid; + hint = other526.hint; + __isset = other526.__isset; +} +duplication_add_response::duplication_add_response( duplication_add_response&& other527) { + err = std::move(other527.err); + appid = std::move(other527.appid); + dupid = std::move(other527.dupid); + hint = std::move(other527.hint); + __isset = std::move(other527.__isset); +} +duplication_add_response& duplication_add_response::operator=(const duplication_add_response& other528) { + err = other528.err; + appid = other528.appid; + dupid = other528.dupid; + hint = other528.hint; + __isset = other528.__isset; + return *this; +} +duplication_add_response& duplication_add_response::operator=(duplication_add_response&& other529) { + err = std::move(other529.err); + appid = std::move(other529.appid); + dupid = std::move(other529.dupid); + hint = std::move(other529.hint); + __isset = std::move(other529.__isset); + return *this; +} +void duplication_add_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_add_response("; + out << "err=" << to_string(err); + out << ", " << "appid=" << to_string(appid); + out << ", " << "dupid=" << to_string(dupid); + out << ", " << "hint="; (__isset.hint ? (out << to_string(hint)) : (out << "")); + out << ")"; +} + + +duplication_modify_request::~duplication_modify_request() throw() { +} + + +void duplication_modify_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void duplication_modify_request::__set_dupid(const int32_t val) { + this->dupid = val; +} + +void duplication_modify_request::__set_status(const duplication_status::type val) { + this->status = val; +__isset.status = true; +} + +void duplication_modify_request::__set_fail_mode(const duplication_fail_mode::type val) { + this->fail_mode = val; +__isset.fail_mode = true; +} + +uint32_t duplication_modify_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->dupid); + this->__isset.dupid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast530; + xfer += iprot->readI32(ecast530); + this->status = (duplication_status::type)ecast530; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast531; + xfer += iprot->readI32(ecast531); + this->fail_mode = (duplication_fail_mode::type)ecast531; + this->__isset.fail_mode = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_modify_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_modify_request"); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->dupid); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.status) { + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.fail_mode) { + xfer += oprot->writeFieldBegin("fail_mode", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->fail_mode); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_modify_request &a, duplication_modify_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.dupid, b.dupid); + swap(a.status, b.status); + swap(a.fail_mode, b.fail_mode); + swap(a.__isset, b.__isset); +} + +duplication_modify_request::duplication_modify_request(const duplication_modify_request& other532) { + app_name = other532.app_name; + dupid = other532.dupid; + status = other532.status; + fail_mode = other532.fail_mode; + __isset = other532.__isset; +} +duplication_modify_request::duplication_modify_request( duplication_modify_request&& other533) { + app_name = std::move(other533.app_name); + dupid = std::move(other533.dupid); + status = std::move(other533.status); + fail_mode = std::move(other533.fail_mode); + __isset = std::move(other533.__isset); +} +duplication_modify_request& duplication_modify_request::operator=(const duplication_modify_request& other534) { + app_name = other534.app_name; + dupid = other534.dupid; + status = other534.status; + fail_mode = other534.fail_mode; + __isset = other534.__isset; + return *this; +} +duplication_modify_request& duplication_modify_request::operator=(duplication_modify_request&& other535) { + app_name = std::move(other535.app_name); + dupid = std::move(other535.dupid); + status = std::move(other535.status); + fail_mode = std::move(other535.fail_mode); + __isset = std::move(other535.__isset); + return *this; +} +void duplication_modify_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_modify_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "dupid=" << to_string(dupid); + out << ", " << "status="; (__isset.status ? (out << to_string(status)) : (out << "")); + out << ", " << "fail_mode="; (__isset.fail_mode ? (out << to_string(fail_mode)) : (out << "")); + out << ")"; +} + + +duplication_modify_response::~duplication_modify_response() throw() { +} + + +void duplication_modify_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void duplication_modify_response::__set_appid(const int32_t val) { + this->appid = val; +} + +uint32_t duplication_modify_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->appid); + this->__isset.appid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_modify_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_modify_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->appid); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_modify_response &a, duplication_modify_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.appid, b.appid); + swap(a.__isset, b.__isset); +} + +duplication_modify_response::duplication_modify_response(const duplication_modify_response& other536) { + err = other536.err; + appid = other536.appid; + __isset = other536.__isset; +} +duplication_modify_response::duplication_modify_response( duplication_modify_response&& other537) { + err = std::move(other537.err); + appid = std::move(other537.appid); + __isset = std::move(other537.__isset); +} +duplication_modify_response& duplication_modify_response::operator=(const duplication_modify_response& other538) { + err = other538.err; + appid = other538.appid; + __isset = other538.__isset; + return *this; +} +duplication_modify_response& duplication_modify_response::operator=(duplication_modify_response&& other539) { + err = std::move(other539.err); + appid = std::move(other539.appid); + __isset = std::move(other539.__isset); + return *this; +} +void duplication_modify_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_modify_response("; + out << "err=" << to_string(err); + out << ", " << "appid=" << to_string(appid); + out << ")"; +} + + +duplication_entry::~duplication_entry() throw() { +} + + +void duplication_entry::__set_dupid(const int32_t val) { + this->dupid = val; +} + +void duplication_entry::__set_status(const duplication_status::type val) { + this->status = val; +} + +void duplication_entry::__set_remote(const std::string& val) { + this->remote = val; +} + +void duplication_entry::__set_create_ts(const int64_t val) { + this->create_ts = val; +} + +void duplication_entry::__set_progress(const std::map & val) { + this->progress = val; +__isset.progress = true; +} + +void duplication_entry::__set_fail_mode(const duplication_fail_mode::type val) { + this->fail_mode = val; +__isset.fail_mode = true; +} + +uint32_t duplication_entry::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->dupid); + this->__isset.dupid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast540; + xfer += iprot->readI32(ecast540); + this->status = (duplication_status::type)ecast540; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote); + this->__isset.remote = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->create_ts); + this->__isset.create_ts = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->progress.clear(); + uint32_t _size541; + ::apache::thrift::protocol::TType _ktype542; + ::apache::thrift::protocol::TType _vtype543; + xfer += iprot->readMapBegin(_ktype542, _vtype543, _size541); + uint32_t _i545; + for (_i545 = 0; _i545 < _size541; ++_i545) + { + int32_t _key546; + xfer += iprot->readI32(_key546); + int64_t& _val547 = this->progress[_key546]; + xfer += iprot->readI64(_val547); + } + xfer += iprot->readMapEnd(); + } + this->__isset.progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast548; + xfer += iprot->readI32(ecast548); + this->fail_mode = (duplication_fail_mode::type)ecast548; + this->__isset.fail_mode = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_entry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_entry"); + + xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->dupid); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("remote", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->remote); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("create_ts", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->create_ts); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.progress) { + xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_MAP, 5); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_I64, static_cast(this->progress.size())); + std::map ::const_iterator _iter549; + for (_iter549 = this->progress.begin(); _iter549 != this->progress.end(); ++_iter549) + { + xfer += oprot->writeI32(_iter549->first); + xfer += oprot->writeI64(_iter549->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.fail_mode) { + xfer += oprot->writeFieldBegin("fail_mode", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32((int32_t)this->fail_mode); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_entry &a, duplication_entry &b) { + using ::std::swap; + swap(a.dupid, b.dupid); + swap(a.status, b.status); + swap(a.remote, b.remote); + swap(a.create_ts, b.create_ts); + swap(a.progress, b.progress); + swap(a.fail_mode, b.fail_mode); + swap(a.__isset, b.__isset); +} + +duplication_entry::duplication_entry(const duplication_entry& other550) { + dupid = other550.dupid; + status = other550.status; + remote = other550.remote; + create_ts = other550.create_ts; + progress = other550.progress; + fail_mode = other550.fail_mode; + __isset = other550.__isset; +} +duplication_entry::duplication_entry( duplication_entry&& other551) { + dupid = std::move(other551.dupid); + status = std::move(other551.status); + remote = std::move(other551.remote); + create_ts = std::move(other551.create_ts); + progress = std::move(other551.progress); + fail_mode = std::move(other551.fail_mode); + __isset = std::move(other551.__isset); +} +duplication_entry& duplication_entry::operator=(const duplication_entry& other552) { + dupid = other552.dupid; + status = other552.status; + remote = other552.remote; + create_ts = other552.create_ts; + progress = other552.progress; + fail_mode = other552.fail_mode; + __isset = other552.__isset; + return *this; +} +duplication_entry& duplication_entry::operator=(duplication_entry&& other553) { + dupid = std::move(other553.dupid); + status = std::move(other553.status); + remote = std::move(other553.remote); + create_ts = std::move(other553.create_ts); + progress = std::move(other553.progress); + fail_mode = std::move(other553.fail_mode); + __isset = std::move(other553.__isset); + return *this; +} +void duplication_entry::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_entry("; + out << "dupid=" << to_string(dupid); + out << ", " << "status=" << to_string(status); + out << ", " << "remote=" << to_string(remote); + out << ", " << "create_ts=" << to_string(create_ts); + out << ", " << "progress="; (__isset.progress ? (out << to_string(progress)) : (out << "")); + out << ", " << "fail_mode="; (__isset.fail_mode ? (out << to_string(fail_mode)) : (out << "")); + out << ")"; +} + + +duplication_query_request::~duplication_query_request() throw() { +} + + +void duplication_query_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +uint32_t duplication_query_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_query_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_query_request"); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_query_request &a, duplication_query_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.__isset, b.__isset); +} + +duplication_query_request::duplication_query_request(const duplication_query_request& other554) { + app_name = other554.app_name; + __isset = other554.__isset; +} +duplication_query_request::duplication_query_request( duplication_query_request&& other555) { + app_name = std::move(other555.app_name); + __isset = std::move(other555.__isset); +} +duplication_query_request& duplication_query_request::operator=(const duplication_query_request& other556) { + app_name = other556.app_name; + __isset = other556.__isset; + return *this; +} +duplication_query_request& duplication_query_request::operator=(duplication_query_request&& other557) { + app_name = std::move(other557.app_name); + __isset = std::move(other557.__isset); + return *this; +} +void duplication_query_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_query_request("; + out << "app_name=" << to_string(app_name); + out << ")"; +} + + +duplication_query_response::~duplication_query_response() throw() { +} + + +void duplication_query_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void duplication_query_response::__set_appid(const int32_t val) { + this->appid = val; +} + +void duplication_query_response::__set_entry_list(const std::vector & val) { + this->entry_list = val; +} + +uint32_t duplication_query_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->appid); + this->__isset.appid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->entry_list.clear(); + uint32_t _size558; + ::apache::thrift::protocol::TType _etype561; + xfer += iprot->readListBegin(_etype561, _size558); + this->entry_list.resize(_size558); + uint32_t _i562; + for (_i562 = 0; _i562 < _size558; ++_i562) + { + xfer += this->entry_list[_i562].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.entry_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_query_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_query_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->appid); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("entry_list", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->entry_list.size())); + std::vector ::const_iterator _iter563; + for (_iter563 = this->entry_list.begin(); _iter563 != this->entry_list.end(); ++_iter563) + { + xfer += (*_iter563).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_query_response &a, duplication_query_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.appid, b.appid); + swap(a.entry_list, b.entry_list); + swap(a.__isset, b.__isset); +} + +duplication_query_response::duplication_query_response(const duplication_query_response& other564) { + err = other564.err; + appid = other564.appid; + entry_list = other564.entry_list; + __isset = other564.__isset; +} +duplication_query_response::duplication_query_response( duplication_query_response&& other565) { + err = std::move(other565.err); + appid = std::move(other565.appid); + entry_list = std::move(other565.entry_list); + __isset = std::move(other565.__isset); +} +duplication_query_response& duplication_query_response::operator=(const duplication_query_response& other566) { + err = other566.err; + appid = other566.appid; + entry_list = other566.entry_list; + __isset = other566.__isset; + return *this; +} +duplication_query_response& duplication_query_response::operator=(duplication_query_response&& other567) { + err = std::move(other567.err); + appid = std::move(other567.appid); + entry_list = std::move(other567.entry_list); + __isset = std::move(other567.__isset); + return *this; +} +void duplication_query_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_query_response("; + out << "err=" << to_string(err); + out << ", " << "appid=" << to_string(appid); + out << ", " << "entry_list=" << to_string(entry_list); + out << ")"; +} + + +duplication_confirm_entry::~duplication_confirm_entry() throw() { +} + + +void duplication_confirm_entry::__set_dupid(const int32_t val) { + this->dupid = val; +} + +void duplication_confirm_entry::__set_confirmed_decree(const int64_t val) { + this->confirmed_decree = val; +} + +uint32_t duplication_confirm_entry::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->dupid); + this->__isset.dupid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->confirmed_decree); + this->__isset.confirmed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_confirm_entry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_confirm_entry"); + + xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->dupid); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("confirmed_decree", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->confirmed_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_confirm_entry &a, duplication_confirm_entry &b) { + using ::std::swap; + swap(a.dupid, b.dupid); + swap(a.confirmed_decree, b.confirmed_decree); + swap(a.__isset, b.__isset); +} + +duplication_confirm_entry::duplication_confirm_entry(const duplication_confirm_entry& other568) { + dupid = other568.dupid; + confirmed_decree = other568.confirmed_decree; + __isset = other568.__isset; +} +duplication_confirm_entry::duplication_confirm_entry( duplication_confirm_entry&& other569) { + dupid = std::move(other569.dupid); + confirmed_decree = std::move(other569.confirmed_decree); + __isset = std::move(other569.__isset); +} +duplication_confirm_entry& duplication_confirm_entry::operator=(const duplication_confirm_entry& other570) { + dupid = other570.dupid; + confirmed_decree = other570.confirmed_decree; + __isset = other570.__isset; + return *this; +} +duplication_confirm_entry& duplication_confirm_entry::operator=(duplication_confirm_entry&& other571) { + dupid = std::move(other571.dupid); + confirmed_decree = std::move(other571.confirmed_decree); + __isset = std::move(other571.__isset); + return *this; +} +void duplication_confirm_entry::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_confirm_entry("; + out << "dupid=" << to_string(dupid); + out << ", " << "confirmed_decree=" << to_string(confirmed_decree); + out << ")"; +} + + +duplication_sync_request::~duplication_sync_request() throw() { +} + + +void duplication_sync_request::__set_node(const ::dsn::rpc_address& val) { + this->node = val; +} + +void duplication_sync_request::__set_confirm_list(const std::map< ::dsn::gpid, std::vector > & val) { + this->confirm_list = val; +} + +uint32_t duplication_sync_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->confirm_list.clear(); + uint32_t _size572; + ::apache::thrift::protocol::TType _ktype573; + ::apache::thrift::protocol::TType _vtype574; + xfer += iprot->readMapBegin(_ktype573, _vtype574, _size572); + uint32_t _i576; + for (_i576 = 0; _i576 < _size572; ++_i576) + { + ::dsn::gpid _key577; + xfer += _key577.read(iprot); + std::vector & _val578 = this->confirm_list[_key577]; + { + _val578.clear(); + uint32_t _size579; + ::apache::thrift::protocol::TType _etype582; + xfer += iprot->readListBegin(_etype582, _size579); + _val578.resize(_size579); + uint32_t _i583; + for (_i583 = 0; _i583 < _size579; ++_i583) + { + xfer += _val578[_i583].read(iprot); + } + xfer += iprot->readListEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.confirm_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_sync_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_sync_request"); + + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("confirm_list", ::apache::thrift::protocol::T_MAP, 2); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, ::apache::thrift::protocol::T_LIST, static_cast(this->confirm_list.size())); + std::map< ::dsn::gpid, std::vector > ::const_iterator _iter584; + for (_iter584 = this->confirm_list.begin(); _iter584 != this->confirm_list.end(); ++_iter584) + { + xfer += _iter584->first.write(oprot); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter584->second.size())); + std::vector ::const_iterator _iter585; + for (_iter585 = _iter584->second.begin(); _iter585 != _iter584->second.end(); ++_iter585) + { + xfer += (*_iter585).write(oprot); + } + xfer += oprot->writeListEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_sync_request &a, duplication_sync_request &b) { + using ::std::swap; + swap(a.node, b.node); + swap(a.confirm_list, b.confirm_list); + swap(a.__isset, b.__isset); +} + +duplication_sync_request::duplication_sync_request(const duplication_sync_request& other586) { + node = other586.node; + confirm_list = other586.confirm_list; + __isset = other586.__isset; +} +duplication_sync_request::duplication_sync_request( duplication_sync_request&& other587) { + node = std::move(other587.node); + confirm_list = std::move(other587.confirm_list); + __isset = std::move(other587.__isset); +} +duplication_sync_request& duplication_sync_request::operator=(const duplication_sync_request& other588) { + node = other588.node; + confirm_list = other588.confirm_list; + __isset = other588.__isset; + return *this; +} +duplication_sync_request& duplication_sync_request::operator=(duplication_sync_request&& other589) { + node = std::move(other589.node); + confirm_list = std::move(other589.confirm_list); + __isset = std::move(other589.__isset); + return *this; +} +void duplication_sync_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_sync_request("; + out << "node=" << to_string(node); + out << ", " << "confirm_list=" << to_string(confirm_list); + out << ")"; +} + + +duplication_sync_response::~duplication_sync_response() throw() { +} + + +void duplication_sync_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void duplication_sync_response::__set_dup_map(const std::map > & val) { + this->dup_map = val; +} + +uint32_t duplication_sync_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->dup_map.clear(); + uint32_t _size590; + ::apache::thrift::protocol::TType _ktype591; + ::apache::thrift::protocol::TType _vtype592; + xfer += iprot->readMapBegin(_ktype591, _vtype592, _size590); + uint32_t _i594; + for (_i594 = 0; _i594 < _size590; ++_i594) + { + int32_t _key595; + xfer += iprot->readI32(_key595); + std::map & _val596 = this->dup_map[_key595]; + { + _val596.clear(); + uint32_t _size597; + ::apache::thrift::protocol::TType _ktype598; + ::apache::thrift::protocol::TType _vtype599; + xfer += iprot->readMapBegin(_ktype598, _vtype599, _size597); + uint32_t _i601; + for (_i601 = 0; _i601 < _size597; ++_i601) + { + int32_t _key602; + xfer += iprot->readI32(_key602); + duplication_entry& _val603 = _val596[_key602]; + xfer += _val603.read(iprot); + } + xfer += iprot->readMapEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.dup_map = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t duplication_sync_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_sync_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dup_map", ::apache::thrift::protocol::T_MAP, 2); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_MAP, static_cast(this->dup_map.size())); + std::map > ::const_iterator _iter604; + for (_iter604 = this->dup_map.begin(); _iter604 != this->dup_map.end(); ++_iter604) + { + xfer += oprot->writeI32(_iter604->first); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRUCT, static_cast(_iter604->second.size())); + std::map ::const_iterator _iter605; + for (_iter605 = _iter604->second.begin(); _iter605 != _iter604->second.end(); ++_iter605) + { + xfer += oprot->writeI32(_iter605->first); + xfer += _iter605->second.write(oprot); + } + xfer += oprot->writeMapEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_sync_response &a, duplication_sync_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.dup_map, b.dup_map); + swap(a.__isset, b.__isset); +} + +duplication_sync_response::duplication_sync_response(const duplication_sync_response& other606) { + err = other606.err; + dup_map = other606.dup_map; + __isset = other606.__isset; +} +duplication_sync_response::duplication_sync_response( duplication_sync_response&& other607) { + err = std::move(other607.err); + dup_map = std::move(other607.dup_map); + __isset = std::move(other607.__isset); +} +duplication_sync_response& duplication_sync_response::operator=(const duplication_sync_response& other608) { + err = other608.err; + dup_map = other608.dup_map; + __isset = other608.__isset; + return *this; +} +duplication_sync_response& duplication_sync_response::operator=(duplication_sync_response&& other609) { + err = std::move(other609.err); + dup_map = std::move(other609.dup_map); + __isset = std::move(other609.__isset); + return *this; +} +void duplication_sync_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "duplication_sync_response("; + out << "err=" << to_string(err); + out << ", " << "dup_map=" << to_string(dup_map); + out << ")"; +} + + +ddd_diagnose_request::~ddd_diagnose_request() throw() { +} + + +void ddd_diagnose_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +uint32_t ddd_diagnose_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ddd_diagnose_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ddd_diagnose_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ddd_diagnose_request &a, ddd_diagnose_request &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.__isset, b.__isset); +} + +ddd_diagnose_request::ddd_diagnose_request(const ddd_diagnose_request& other610) { + pid = other610.pid; + __isset = other610.__isset; +} +ddd_diagnose_request::ddd_diagnose_request( ddd_diagnose_request&& other611) { + pid = std::move(other611.pid); + __isset = std::move(other611.__isset); +} +ddd_diagnose_request& ddd_diagnose_request::operator=(const ddd_diagnose_request& other612) { + pid = other612.pid; + __isset = other612.__isset; + return *this; +} +ddd_diagnose_request& ddd_diagnose_request::operator=(ddd_diagnose_request&& other613) { + pid = std::move(other613.pid); + __isset = std::move(other613.__isset); + return *this; +} +void ddd_diagnose_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ddd_diagnose_request("; + out << "pid=" << to_string(pid); + out << ")"; +} + + +ddd_node_info::~ddd_node_info() throw() { +} + + +void ddd_node_info::__set_node(const ::dsn::rpc_address& val) { + this->node = val; +} + +void ddd_node_info::__set_drop_time_ms(const int64_t val) { + this->drop_time_ms = val; +} + +void ddd_node_info::__set_is_alive(const bool val) { + this->is_alive = val; +} + +void ddd_node_info::__set_is_collected(const bool val) { + this->is_collected = val; +} + +void ddd_node_info::__set_ballot(const int64_t val) { + this->ballot = val; +} + +void ddd_node_info::__set_last_committed_decree(const int64_t val) { + this->last_committed_decree = val; +} + +void ddd_node_info::__set_last_prepared_decree(const int64_t val) { + this->last_prepared_decree = val; +} + +uint32_t ddd_node_info::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->drop_time_ms); + this->__isset.drop_time_ms = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_alive); + this->__isset.is_alive = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_collected); + this->__isset.is_collected = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_prepared_decree); + this->__isset.last_prepared_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ddd_node_info::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ddd_node_info"); + + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("drop_time_ms", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->drop_time_ms); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("is_alive", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->is_alive); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("is_collected", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->is_collected); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_prepared_decree", ::apache::thrift::protocol::T_I64, 7); + xfer += oprot->writeI64(this->last_prepared_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ddd_node_info &a, ddd_node_info &b) { + using ::std::swap; + swap(a.node, b.node); + swap(a.drop_time_ms, b.drop_time_ms); + swap(a.is_alive, b.is_alive); + swap(a.is_collected, b.is_collected); + swap(a.ballot, b.ballot); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.last_prepared_decree, b.last_prepared_decree); + swap(a.__isset, b.__isset); +} + +ddd_node_info::ddd_node_info(const ddd_node_info& other614) { + node = other614.node; + drop_time_ms = other614.drop_time_ms; + is_alive = other614.is_alive; + is_collected = other614.is_collected; + ballot = other614.ballot; + last_committed_decree = other614.last_committed_decree; + last_prepared_decree = other614.last_prepared_decree; + __isset = other614.__isset; +} +ddd_node_info::ddd_node_info( ddd_node_info&& other615) { + node = std::move(other615.node); + drop_time_ms = std::move(other615.drop_time_ms); + is_alive = std::move(other615.is_alive); + is_collected = std::move(other615.is_collected); + ballot = std::move(other615.ballot); + last_committed_decree = std::move(other615.last_committed_decree); + last_prepared_decree = std::move(other615.last_prepared_decree); + __isset = std::move(other615.__isset); +} +ddd_node_info& ddd_node_info::operator=(const ddd_node_info& other616) { + node = other616.node; + drop_time_ms = other616.drop_time_ms; + is_alive = other616.is_alive; + is_collected = other616.is_collected; + ballot = other616.ballot; + last_committed_decree = other616.last_committed_decree; + last_prepared_decree = other616.last_prepared_decree; + __isset = other616.__isset; + return *this; +} +ddd_node_info& ddd_node_info::operator=(ddd_node_info&& other617) { + node = std::move(other617.node); + drop_time_ms = std::move(other617.drop_time_ms); + is_alive = std::move(other617.is_alive); + is_collected = std::move(other617.is_collected); + ballot = std::move(other617.ballot); + last_committed_decree = std::move(other617.last_committed_decree); + last_prepared_decree = std::move(other617.last_prepared_decree); + __isset = std::move(other617.__isset); + return *this; +} +void ddd_node_info::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ddd_node_info("; + out << "node=" << to_string(node); + out << ", " << "drop_time_ms=" << to_string(drop_time_ms); + out << ", " << "is_alive=" << to_string(is_alive); + out << ", " << "is_collected=" << to_string(is_collected); + out << ", " << "ballot=" << to_string(ballot); + out << ", " << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " << "last_prepared_decree=" << to_string(last_prepared_decree); + out << ")"; +} + + +ddd_partition_info::~ddd_partition_info() throw() { +} + + +void ddd_partition_info::__set_config(const ::dsn::partition_configuration& val) { + this->config = val; +} + +void ddd_partition_info::__set_dropped(const std::vector & val) { + this->dropped = val; +} + +void ddd_partition_info::__set_reason(const std::string& val) { + this->reason = val; +} + +uint32_t ddd_partition_info::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->dropped.clear(); + uint32_t _size618; + ::apache::thrift::protocol::TType _etype621; + xfer += iprot->readListBegin(_etype621, _size618); + this->dropped.resize(_size618); + uint32_t _i622; + for (_i622 = 0; _i622 < _size618; ++_i622) + { + xfer += this->dropped[_i622].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.dropped = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->reason); + this->__isset.reason = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ddd_partition_info::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ddd_partition_info"); + + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dropped", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->dropped.size())); + std::vector ::const_iterator _iter623; + for (_iter623 = this->dropped.begin(); _iter623 != this->dropped.end(); ++_iter623) + { + xfer += (*_iter623).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("reason", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->reason); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ddd_partition_info &a, ddd_partition_info &b) { + using ::std::swap; + swap(a.config, b.config); + swap(a.dropped, b.dropped); + swap(a.reason, b.reason); + swap(a.__isset, b.__isset); +} + +ddd_partition_info::ddd_partition_info(const ddd_partition_info& other624) { + config = other624.config; + dropped = other624.dropped; + reason = other624.reason; + __isset = other624.__isset; +} +ddd_partition_info::ddd_partition_info( ddd_partition_info&& other625) { + config = std::move(other625.config); + dropped = std::move(other625.dropped); + reason = std::move(other625.reason); + __isset = std::move(other625.__isset); +} +ddd_partition_info& ddd_partition_info::operator=(const ddd_partition_info& other626) { + config = other626.config; + dropped = other626.dropped; + reason = other626.reason; + __isset = other626.__isset; + return *this; +} +ddd_partition_info& ddd_partition_info::operator=(ddd_partition_info&& other627) { + config = std::move(other627.config); + dropped = std::move(other627.dropped); + reason = std::move(other627.reason); + __isset = std::move(other627.__isset); + return *this; +} +void ddd_partition_info::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ddd_partition_info("; + out << "config=" << to_string(config); + out << ", " << "dropped=" << to_string(dropped); + out << ", " << "reason=" << to_string(reason); + out << ")"; +} + + +ddd_diagnose_response::~ddd_diagnose_response() throw() { +} + + +void ddd_diagnose_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void ddd_diagnose_response::__set_partitions(const std::vector & val) { + this->partitions = val; +} + +uint32_t ddd_diagnose_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions.clear(); + uint32_t _size628; + ::apache::thrift::protocol::TType _etype631; + xfer += iprot->readListBegin(_etype631, _size628); + this->partitions.resize(_size628); + uint32_t _i632; + for (_i632 = 0; _i632 < _size628; ++_i632) + { + xfer += this->partitions[_i632].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ddd_diagnose_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ddd_diagnose_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); + std::vector ::const_iterator _iter633; + for (_iter633 = this->partitions.begin(); _iter633 != this->partitions.end(); ++_iter633) + { + xfer += (*_iter633).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ddd_diagnose_response &a, ddd_diagnose_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.partitions, b.partitions); + swap(a.__isset, b.__isset); +} + +ddd_diagnose_response::ddd_diagnose_response(const ddd_diagnose_response& other634) { + err = other634.err; + partitions = other634.partitions; + __isset = other634.__isset; +} +ddd_diagnose_response::ddd_diagnose_response( ddd_diagnose_response&& other635) { + err = std::move(other635.err); + partitions = std::move(other635.partitions); + __isset = std::move(other635.__isset); +} +ddd_diagnose_response& ddd_diagnose_response::operator=(const ddd_diagnose_response& other636) { + err = other636.err; + partitions = other636.partitions; + __isset = other636.__isset; + return *this; +} +ddd_diagnose_response& ddd_diagnose_response::operator=(ddd_diagnose_response&& other637) { + err = std::move(other637.err); + partitions = std::move(other637.partitions); + __isset = std::move(other637.__isset); + return *this; +} +void ddd_diagnose_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ddd_diagnose_response("; + out << "err=" << to_string(err); + out << ", " << "partitions=" << to_string(partitions); + out << ")"; +} + + +start_partition_split_request::~start_partition_split_request() throw() { +} + + +void start_partition_split_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void start_partition_split_request::__set_new_partition_count(const int32_t val) { + this->new_partition_count = val; +} + +uint32_t start_partition_split_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->new_partition_count); + this->__isset.new_partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t start_partition_split_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("start_partition_split_request"); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("new_partition_count", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->new_partition_count); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(start_partition_split_request &a, start_partition_split_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.new_partition_count, b.new_partition_count); + swap(a.__isset, b.__isset); +} + +start_partition_split_request::start_partition_split_request(const start_partition_split_request& other638) { + app_name = other638.app_name; + new_partition_count = other638.new_partition_count; + __isset = other638.__isset; +} +start_partition_split_request::start_partition_split_request( start_partition_split_request&& other639) { + app_name = std::move(other639.app_name); + new_partition_count = std::move(other639.new_partition_count); + __isset = std::move(other639.__isset); +} +start_partition_split_request& start_partition_split_request::operator=(const start_partition_split_request& other640) { + app_name = other640.app_name; + new_partition_count = other640.new_partition_count; + __isset = other640.__isset; + return *this; +} +start_partition_split_request& start_partition_split_request::operator=(start_partition_split_request&& other641) { + app_name = std::move(other641.app_name); + new_partition_count = std::move(other641.new_partition_count); + __isset = std::move(other641.__isset); + return *this; +} +void start_partition_split_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "start_partition_split_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "new_partition_count=" << to_string(new_partition_count); + out << ")"; +} + + +start_partition_split_response::~start_partition_split_response() throw() { +} + + +void start_partition_split_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void start_partition_split_response::__set_hint_msg(const std::string& val) { + this->hint_msg = val; +} + +uint32_t start_partition_split_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t start_partition_split_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("start_partition_split_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(start_partition_split_response &a, start_partition_split_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} + +start_partition_split_response::start_partition_split_response(const start_partition_split_response& other642) { + err = other642.err; + hint_msg = other642.hint_msg; + __isset = other642.__isset; +} +start_partition_split_response::start_partition_split_response( start_partition_split_response&& other643) { + err = std::move(other643.err); + hint_msg = std::move(other643.hint_msg); + __isset = std::move(other643.__isset); +} +start_partition_split_response& start_partition_split_response::operator=(const start_partition_split_response& other644) { + err = other644.err; + hint_msg = other644.hint_msg; + __isset = other644.__isset; + return *this; +} +start_partition_split_response& start_partition_split_response::operator=(start_partition_split_response&& other645) { + err = std::move(other645.err); + hint_msg = std::move(other645.hint_msg); + __isset = std::move(other645.__isset); + return *this; +} +void start_partition_split_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "start_partition_split_response("; + out << "err=" << to_string(err); + out << ", " << "hint_msg=" << to_string(hint_msg); + out << ")"; +} + + +notify_catch_up_request::~notify_catch_up_request() throw() { +} + + +void notify_catch_up_request::__set_parent_gpid(const ::dsn::gpid& val) { + this->parent_gpid = val; +} + +void notify_catch_up_request::__set_child_gpid(const ::dsn::gpid& val) { + this->child_gpid = val; +} + +void notify_catch_up_request::__set_child_ballot(const int64_t val) { + this->child_ballot = val; +} + +void notify_catch_up_request::__set_child_address(const ::dsn::rpc_address& val) { + this->child_address = val; +} + +uint32_t notify_catch_up_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->parent_gpid.read(iprot); + this->__isset.parent_gpid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_gpid.read(iprot); + this->__isset.child_gpid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->child_ballot); + this->__isset.child_ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_address.read(iprot); + this->__isset.child_address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t notify_catch_up_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("notify_catch_up_request"); + + xfer += oprot->writeFieldBegin("parent_gpid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->parent_gpid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("child_gpid", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->child_gpid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("child_ballot", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->child_ballot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("child_address", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->child_address.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(notify_catch_up_request &a, notify_catch_up_request &b) { + using ::std::swap; + swap(a.parent_gpid, b.parent_gpid); + swap(a.child_gpid, b.child_gpid); + swap(a.child_ballot, b.child_ballot); + swap(a.child_address, b.child_address); + swap(a.__isset, b.__isset); +} + +notify_catch_up_request::notify_catch_up_request(const notify_catch_up_request& other646) { + parent_gpid = other646.parent_gpid; + child_gpid = other646.child_gpid; + child_ballot = other646.child_ballot; + child_address = other646.child_address; + __isset = other646.__isset; +} +notify_catch_up_request::notify_catch_up_request( notify_catch_up_request&& other647) { + parent_gpid = std::move(other647.parent_gpid); + child_gpid = std::move(other647.child_gpid); + child_ballot = std::move(other647.child_ballot); + child_address = std::move(other647.child_address); + __isset = std::move(other647.__isset); +} +notify_catch_up_request& notify_catch_up_request::operator=(const notify_catch_up_request& other648) { + parent_gpid = other648.parent_gpid; + child_gpid = other648.child_gpid; + child_ballot = other648.child_ballot; + child_address = other648.child_address; + __isset = other648.__isset; + return *this; +} +notify_catch_up_request& notify_catch_up_request::operator=(notify_catch_up_request&& other649) { + parent_gpid = std::move(other649.parent_gpid); + child_gpid = std::move(other649.child_gpid); + child_ballot = std::move(other649.child_ballot); + child_address = std::move(other649.child_address); + __isset = std::move(other649.__isset); + return *this; +} +void notify_catch_up_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "notify_catch_up_request("; + out << "parent_gpid=" << to_string(parent_gpid); + out << ", " << "child_gpid=" << to_string(child_gpid); + out << ", " << "child_ballot=" << to_string(child_ballot); + out << ", " << "child_address=" << to_string(child_address); + out << ")"; +} + + +notify_cacth_up_response::~notify_cacth_up_response() throw() { +} + + +void notify_cacth_up_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +uint32_t notify_cacth_up_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t notify_cacth_up_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("notify_cacth_up_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(notify_cacth_up_response &a, notify_cacth_up_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); +} + +notify_cacth_up_response::notify_cacth_up_response(const notify_cacth_up_response& other650) { + err = other650.err; + __isset = other650.__isset; +} +notify_cacth_up_response::notify_cacth_up_response( notify_cacth_up_response&& other651) { + err = std::move(other651.err); + __isset = std::move(other651.__isset); +} +notify_cacth_up_response& notify_cacth_up_response::operator=(const notify_cacth_up_response& other652) { + err = other652.err; + __isset = other652.__isset; + return *this; +} +notify_cacth_up_response& notify_cacth_up_response::operator=(notify_cacth_up_response&& other653) { + err = std::move(other653.err); + __isset = std::move(other653.__isset); + return *this; +} +void notify_cacth_up_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "notify_cacth_up_response("; + out << "err=" << to_string(err); + out << ")"; +} + + +update_child_group_partition_count_request::~update_child_group_partition_count_request() throw() { +} + + +void update_child_group_partition_count_request::__set_target_address(const ::dsn::rpc_address& val) { + this->target_address = val; +} + +void update_child_group_partition_count_request::__set_new_partition_count(const int32_t val) { + this->new_partition_count = val; +} + +void update_child_group_partition_count_request::__set_child_pid(const ::dsn::gpid& val) { + this->child_pid = val; +} + +void update_child_group_partition_count_request::__set_ballot(const int64_t val) { + this->ballot = val; +} + +uint32_t update_child_group_partition_count_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->target_address.read(iprot); + this->__isset.target_address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->new_partition_count); + this->__isset.new_partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_pid.read(iprot); + this->__isset.child_pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t update_child_group_partition_count_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("update_child_group_partition_count_request"); + + xfer += oprot->writeFieldBegin("target_address", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->target_address.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("new_partition_count", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->new_partition_count); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("child_pid", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->child_pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(update_child_group_partition_count_request &a, update_child_group_partition_count_request &b) { + using ::std::swap; + swap(a.target_address, b.target_address); + swap(a.new_partition_count, b.new_partition_count); + swap(a.child_pid, b.child_pid); + swap(a.ballot, b.ballot); + swap(a.__isset, b.__isset); +} + +update_child_group_partition_count_request::update_child_group_partition_count_request(const update_child_group_partition_count_request& other654) { + target_address = other654.target_address; + new_partition_count = other654.new_partition_count; + child_pid = other654.child_pid; + ballot = other654.ballot; + __isset = other654.__isset; +} +update_child_group_partition_count_request::update_child_group_partition_count_request( update_child_group_partition_count_request&& other655) { + target_address = std::move(other655.target_address); + new_partition_count = std::move(other655.new_partition_count); + child_pid = std::move(other655.child_pid); + ballot = std::move(other655.ballot); + __isset = std::move(other655.__isset); +} +update_child_group_partition_count_request& update_child_group_partition_count_request::operator=(const update_child_group_partition_count_request& other656) { + target_address = other656.target_address; + new_partition_count = other656.new_partition_count; + child_pid = other656.child_pid; + ballot = other656.ballot; + __isset = other656.__isset; + return *this; +} +update_child_group_partition_count_request& update_child_group_partition_count_request::operator=(update_child_group_partition_count_request&& other657) { + target_address = std::move(other657.target_address); + new_partition_count = std::move(other657.new_partition_count); + child_pid = std::move(other657.child_pid); + ballot = std::move(other657.ballot); + __isset = std::move(other657.__isset); + return *this; +} +void update_child_group_partition_count_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "update_child_group_partition_count_request("; + out << "target_address=" << to_string(target_address); + out << ", " << "new_partition_count=" << to_string(new_partition_count); + out << ", " << "child_pid=" << to_string(child_pid); + out << ", " << "ballot=" << to_string(ballot); + out << ")"; +} + + +update_child_group_partition_count_response::~update_child_group_partition_count_response() throw() { +} + + +void update_child_group_partition_count_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +uint32_t update_child_group_partition_count_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t update_child_group_partition_count_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("update_child_group_partition_count_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(update_child_group_partition_count_response &a, update_child_group_partition_count_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); +} + +update_child_group_partition_count_response::update_child_group_partition_count_response(const update_child_group_partition_count_response& other658) { + err = other658.err; + __isset = other658.__isset; +} +update_child_group_partition_count_response::update_child_group_partition_count_response( update_child_group_partition_count_response&& other659) { + err = std::move(other659.err); + __isset = std::move(other659.__isset); +} +update_child_group_partition_count_response& update_child_group_partition_count_response::operator=(const update_child_group_partition_count_response& other660) { + err = other660.err; + __isset = other660.__isset; + return *this; +} +update_child_group_partition_count_response& update_child_group_partition_count_response::operator=(update_child_group_partition_count_response&& other661) { + err = std::move(other661.err); + __isset = std::move(other661.__isset); + return *this; +} +void update_child_group_partition_count_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "update_child_group_partition_count_response("; + out << "err=" << to_string(err); + out << ")"; +} + + +register_child_request::~register_child_request() throw() { +} + + +void register_child_request::__set_app(const ::dsn::app_info& val) { + this->app = val; +} + +void register_child_request::__set_parent_config(const ::dsn::partition_configuration& val) { + this->parent_config = val; +} + +void register_child_request::__set_child_config(const ::dsn::partition_configuration& val) { + this->child_config = val; +} + +void register_child_request::__set_primary_address(const ::dsn::rpc_address& val) { + this->primary_address = val; +} + +uint32_t register_child_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->app.read(iprot); + this->__isset.app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->parent_config.read(iprot); + this->__isset.parent_config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_config.read(iprot); + this->__isset.child_config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->primary_address.read(iprot); + this->__isset.primary_address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t register_child_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("register_child_request"); + + xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->app.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("parent_config", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->parent_config.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("child_config", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->child_config.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("primary_address", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->primary_address.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(register_child_request &a, register_child_request &b) { + using ::std::swap; + swap(a.app, b.app); + swap(a.parent_config, b.parent_config); + swap(a.child_config, b.child_config); + swap(a.primary_address, b.primary_address); + swap(a.__isset, b.__isset); +} + +register_child_request::register_child_request(const register_child_request& other662) { + app = other662.app; + parent_config = other662.parent_config; + child_config = other662.child_config; + primary_address = other662.primary_address; + __isset = other662.__isset; +} +register_child_request::register_child_request( register_child_request&& other663) { + app = std::move(other663.app); + parent_config = std::move(other663.parent_config); + child_config = std::move(other663.child_config); + primary_address = std::move(other663.primary_address); + __isset = std::move(other663.__isset); +} +register_child_request& register_child_request::operator=(const register_child_request& other664) { + app = other664.app; + parent_config = other664.parent_config; + child_config = other664.child_config; + primary_address = other664.primary_address; + __isset = other664.__isset; + return *this; +} +register_child_request& register_child_request::operator=(register_child_request&& other665) { + app = std::move(other665.app); + parent_config = std::move(other665.parent_config); + child_config = std::move(other665.child_config); + primary_address = std::move(other665.primary_address); + __isset = std::move(other665.__isset); + return *this; +} +void register_child_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "register_child_request("; + out << "app=" << to_string(app); + out << ", " << "parent_config=" << to_string(parent_config); + out << ", " << "child_config=" << to_string(child_config); + out << ", " << "primary_address=" << to_string(primary_address); + out << ")"; +} + + +register_child_response::~register_child_response() throw() { +} + + +void register_child_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void register_child_response::__set_app(const ::dsn::app_info& val) { + this->app = val; +} + +void register_child_response::__set_parent_config(const ::dsn::partition_configuration& val) { + this->parent_config = val; +} + +void register_child_response::__set_child_config(const ::dsn::partition_configuration& val) { + this->child_config = val; +} + +uint32_t register_child_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->app.read(iprot); + this->__isset.app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->parent_config.read(iprot); + this->__isset.parent_config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_config.read(iprot); + this->__isset.child_config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t duplication_confirm_entry::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_confirm_entry"); +uint32_t register_child_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("register_child_response"); - xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->dupid); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("confirmed_decree", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->confirmed_decree); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->app.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_confirm_entry &a, duplication_confirm_entry &b) -{ - using ::std::swap; - swap(a.dupid, b.dupid); - swap(a.confirmed_decree, b.confirmed_decree); - swap(a.__isset, b.__isset); -} - -duplication_confirm_entry::duplication_confirm_entry(const duplication_confirm_entry &other568) -{ - dupid = other568.dupid; - confirmed_decree = other568.confirmed_decree; - __isset = other568.__isset; -} -duplication_confirm_entry::duplication_confirm_entry(duplication_confirm_entry &&other569) -{ - dupid = std::move(other569.dupid); - confirmed_decree = std::move(other569.confirmed_decree); - __isset = std::move(other569.__isset); -} -duplication_confirm_entry &duplication_confirm_entry:: -operator=(const duplication_confirm_entry &other570) -{ - dupid = other570.dupid; - confirmed_decree = other570.confirmed_decree; - __isset = other570.__isset; - return *this; -} -duplication_confirm_entry &duplication_confirm_entry:: -operator=(duplication_confirm_entry &&other571) -{ - dupid = std::move(other571.dupid); - confirmed_decree = std::move(other571.confirmed_decree); - __isset = std::move(other571.__isset); - return *this; -} -void duplication_confirm_entry::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_confirm_entry("; - out << "dupid=" << to_string(dupid); - out << ", " - << "confirmed_decree=" << to_string(confirmed_decree); - out << ")"; -} - -duplication_sync_request::~duplication_sync_request() throw() {} - -void duplication_sync_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } - -void duplication_sync_request::__set_confirm_list( - const std::map<::dsn::gpid, std::vector> &val) -{ - this->confirm_list = val; -} - -uint32_t duplication_sync_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->confirm_list.clear(); - uint32_t _size572; - ::apache::thrift::protocol::TType _ktype573; - ::apache::thrift::protocol::TType _vtype574; - xfer += iprot->readMapBegin(_ktype573, _vtype574, _size572); - uint32_t _i576; - for (_i576 = 0; _i576 < _size572; ++_i576) { - ::dsn::gpid _key577; - xfer += _key577.read(iprot); - std::vector &_val578 = - this->confirm_list[_key577]; - { - _val578.clear(); - uint32_t _size579; - ::apache::thrift::protocol::TType _etype582; - xfer += iprot->readListBegin(_etype582, _size579); - _val578.resize(_size579); - uint32_t _i583; - for (_i583 = 0; _i583 < _size579; ++_i583) { - xfer += _val578[_i583].read(iprot); - } - xfer += iprot->readListEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.confirm_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldBegin("parent_config", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->parent_config.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("child_config", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->child_config.write(oprot); + xfer += oprot->writeFieldEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t duplication_sync_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_sync_request"); +void swap(register_child_response &a, register_child_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.app, b.app); + swap(a.parent_config, b.parent_config); + swap(a.child_config, b.child_config); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); +register_child_response::register_child_response(const register_child_response& other666) { + err = other666.err; + app = other666.app; + parent_config = other666.parent_config; + child_config = other666.child_config; + __isset = other666.__isset; +} +register_child_response::register_child_response( register_child_response&& other667) { + err = std::move(other667.err); + app = std::move(other667.app); + parent_config = std::move(other667.parent_config); + child_config = std::move(other667.child_config); + __isset = std::move(other667.__isset); +} +register_child_response& register_child_response::operator=(const register_child_response& other668) { + err = other668.err; + app = other668.app; + parent_config = other668.parent_config; + child_config = other668.child_config; + __isset = other668.__isset; + return *this; +} +register_child_response& register_child_response::operator=(register_child_response&& other669) { + err = std::move(other669.err); + app = std::move(other669.app); + parent_config = std::move(other669.parent_config); + child_config = std::move(other669.child_config); + __isset = std::move(other669.__isset); + return *this; +} +void register_child_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "register_child_response("; + out << "err=" << to_string(err); + out << ", " << "app=" << to_string(app); + out << ", " << "parent_config=" << to_string(parent_config); + out << ", " << "child_config=" << to_string(child_config); + out << ")"; +} - xfer += oprot->writeFieldBegin("confirm_list", ::apache::thrift::protocol::T_MAP, 2); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, - ::apache::thrift::protocol::T_LIST, - static_cast(this->confirm_list.size())); - std::map<::dsn::gpid, std::vector>::const_iterator _iter584; - for (_iter584 = this->confirm_list.begin(); _iter584 != this->confirm_list.end(); - ++_iter584) { - xfer += _iter584->first.write(oprot); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(_iter584->second.size())); - std::vector::const_iterator _iter585; - for (_iter585 = _iter584->second.begin(); _iter585 != _iter584->second.end(); - ++_iter585) { - xfer += (*_iter585).write(oprot); - } - xfer += oprot->writeListEnd(); - } - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_sync_request &a, duplication_sync_request &b) -{ - using ::std::swap; - swap(a.node, b.node); - swap(a.confirm_list, b.confirm_list); - swap(a.__isset, b.__isset); -} - -duplication_sync_request::duplication_sync_request(const duplication_sync_request &other586) -{ - node = other586.node; - confirm_list = other586.confirm_list; - __isset = other586.__isset; -} -duplication_sync_request::duplication_sync_request(duplication_sync_request &&other587) -{ - node = std::move(other587.node); - confirm_list = std::move(other587.confirm_list); - __isset = std::move(other587.__isset); -} -duplication_sync_request &duplication_sync_request:: -operator=(const duplication_sync_request &other588) -{ - node = other588.node; - confirm_list = other588.confirm_list; - __isset = other588.__isset; - return *this; -} -duplication_sync_request &duplication_sync_request::operator=(duplication_sync_request &&other589) -{ - node = std::move(other589.node); - confirm_list = std::move(other589.confirm_list); - __isset = std::move(other589.__isset); - return *this; -} -void duplication_sync_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_sync_request("; - out << "node=" << to_string(node); - out << ", " - << "confirm_list=" << to_string(confirm_list); - out << ")"; -} - -duplication_sync_response::~duplication_sync_response() throw() {} - -void duplication_sync_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void duplication_sync_response::__set_dup_map( - const std::map> &val) -{ - this->dup_map = val; -} - -uint32_t duplication_sync_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->dup_map.clear(); - uint32_t _size590; - ::apache::thrift::protocol::TType _ktype591; - ::apache::thrift::protocol::TType _vtype592; - xfer += iprot->readMapBegin(_ktype591, _vtype592, _size590); - uint32_t _i594; - for (_i594 = 0; _i594 < _size590; ++_i594) { - int32_t _key595; - xfer += iprot->readI32(_key595); - std::map &_val596 = this->dup_map[_key595]; - { - _val596.clear(); - uint32_t _size597; - ::apache::thrift::protocol::TType _ktype598; - ::apache::thrift::protocol::TType _vtype599; - xfer += iprot->readMapBegin(_ktype598, _vtype599, _size597); - uint32_t _i601; - for (_i601 = 0; _i601 < _size597; ++_i601) { - int32_t _key602; - xfer += iprot->readI32(_key602); - duplication_entry &_val603 = _val596[_key602]; - xfer += _val603.read(iprot); - } - xfer += iprot->readMapEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.dup_map = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +bulk_load_metadata::~bulk_load_metadata() throw() { +} + - xfer += iprot->readStructEnd(); +void bulk_load_metadata::__set_files(const std::vector & val) { + this->files = val; +} - return xfer; +void bulk_load_metadata::__set_file_total_size(const int64_t val) { + this->file_total_size = val; } -uint32_t duplication_sync_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_sync_response"); +uint32_t bulk_load_metadata::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("dup_map", ::apache::thrift::protocol::T_MAP, 2); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, - ::apache::thrift::protocol::T_MAP, - static_cast(this->dup_map.size())); - std::map>::const_iterator _iter604; - for (_iter604 = this->dup_map.begin(); _iter604 != this->dup_map.end(); ++_iter604) { - xfer += oprot->writeI32(_iter604->first); + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->files.clear(); + uint32_t _size670; + ::apache::thrift::protocol::TType _etype673; + xfer += iprot->readListBegin(_etype673, _size670); + this->files.resize(_size670); + uint32_t _i674; + for (_i674 = 0; _i674 < _size670; ++_i674) { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, - ::apache::thrift::protocol::T_STRUCT, - static_cast(_iter604->second.size())); - std::map::const_iterator _iter605; - for (_iter605 = _iter604->second.begin(); _iter605 != _iter604->second.end(); - ++_iter605) { - xfer += oprot->writeI32(_iter605->first); - xfer += _iter605->second.write(oprot); - } - xfer += oprot->writeMapEnd(); - } - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_sync_response &a, duplication_sync_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.dup_map, b.dup_map); - swap(a.__isset, b.__isset); -} - -duplication_sync_response::duplication_sync_response(const duplication_sync_response &other606) -{ - err = other606.err; - dup_map = other606.dup_map; - __isset = other606.__isset; -} -duplication_sync_response::duplication_sync_response(duplication_sync_response &&other607) -{ - err = std::move(other607.err); - dup_map = std::move(other607.dup_map); - __isset = std::move(other607.__isset); -} -duplication_sync_response &duplication_sync_response:: -operator=(const duplication_sync_response &other608) -{ - err = other608.err; - dup_map = other608.dup_map; - __isset = other608.__isset; - return *this; -} -duplication_sync_response &duplication_sync_response:: -operator=(duplication_sync_response &&other609) -{ - err = std::move(other609.err); - dup_map = std::move(other609.dup_map); - __isset = std::move(other609.__isset); - return *this; -} -void duplication_sync_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "duplication_sync_response("; - out << "err=" << to_string(err); - out << ", " - << "dup_map=" << to_string(dup_map); - out << ")"; -} - -ddd_diagnose_request::~ddd_diagnose_request() throw() {} - -void ddd_diagnose_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -uint32_t ddd_diagnose_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += this->files[_i674].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.files = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->file_total_size); + this->__isset.file_total_size = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t ddd_diagnose_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ddd_diagnose_request"); +uint32_t bulk_load_metadata::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("bulk_load_metadata"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->files.size())); + std::vector ::const_iterator _iter675; + for (_iter675 = this->files.begin(); _iter675 != this->files.end(); ++_iter675) + { + xfer += (*_iter675).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("file_total_size", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->file_total_size); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(ddd_diagnose_request &a, ddd_diagnose_request &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.__isset, b.__isset); +void swap(bulk_load_metadata &a, bulk_load_metadata &b) { + using ::std::swap; + swap(a.files, b.files); + swap(a.file_total_size, b.file_total_size); + swap(a.__isset, b.__isset); } -ddd_diagnose_request::ddd_diagnose_request(const ddd_diagnose_request &other610) -{ - pid = other610.pid; - __isset = other610.__isset; +bulk_load_metadata::bulk_load_metadata(const bulk_load_metadata& other676) { + files = other676.files; + file_total_size = other676.file_total_size; + __isset = other676.__isset; } -ddd_diagnose_request::ddd_diagnose_request(ddd_diagnose_request &&other611) -{ - pid = std::move(other611.pid); - __isset = std::move(other611.__isset); +bulk_load_metadata::bulk_load_metadata( bulk_load_metadata&& other677) { + files = std::move(other677.files); + file_total_size = std::move(other677.file_total_size); + __isset = std::move(other677.__isset); } -ddd_diagnose_request &ddd_diagnose_request::operator=(const ddd_diagnose_request &other612) -{ - pid = other612.pid; - __isset = other612.__isset; - return *this; +bulk_load_metadata& bulk_load_metadata::operator=(const bulk_load_metadata& other678) { + files = other678.files; + file_total_size = other678.file_total_size; + __isset = other678.__isset; + return *this; } -ddd_diagnose_request &ddd_diagnose_request::operator=(ddd_diagnose_request &&other613) -{ - pid = std::move(other613.pid); - __isset = std::move(other613.__isset); - return *this; +bulk_load_metadata& bulk_load_metadata::operator=(bulk_load_metadata&& other679) { + files = std::move(other679.files); + file_total_size = std::move(other679.file_total_size); + __isset = std::move(other679.__isset); + return *this; } -void ddd_diagnose_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "ddd_diagnose_request("; - out << "pid=" << to_string(pid); - out << ")"; +void bulk_load_metadata::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "bulk_load_metadata("; + out << "files=" << to_string(files); + out << ", " << "file_total_size=" << to_string(file_total_size); + out << ")"; } -ddd_node_info::~ddd_node_info() throw() {} -void ddd_node_info::__set_node(const ::dsn::rpc_address &val) { this->node = val; } - -void ddd_node_info::__set_drop_time_ms(const int64_t val) { this->drop_time_ms = val; } +start_bulk_load_request::~start_bulk_load_request() throw() { +} -void ddd_node_info::__set_is_alive(const bool val) { this->is_alive = val; } -void ddd_node_info::__set_is_collected(const bool val) { this->is_collected = val; } +void start_bulk_load_request::__set_app_name(const std::string& val) { + this->app_name = val; +} -void ddd_node_info::__set_ballot(const int64_t val) { this->ballot = val; } +void start_bulk_load_request::__set_cluster_name(const std::string& val) { + this->cluster_name = val; +} -void ddd_node_info::__set_last_committed_decree(const int64_t val) -{ - this->last_committed_decree = val; +void start_bulk_load_request::__set_file_provider_type(const std::string& val) { + this->file_provider_type = val; } -void ddd_node_info::__set_last_prepared_decree(const int64_t val) -{ - this->last_prepared_decree = val; +void start_bulk_load_request::__set_remote_root_path(const std::string& val) { + this->remote_root_path = val; } -uint32_t ddd_node_info::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t start_bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->drop_time_ms); - this->__isset.drop_time_ms = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_alive); - this->__isset.is_alive = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_collected); - this->__isset.is_collected = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_prepared_decree); - this->__isset.last_prepared_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cluster_name); + this->__isset.cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->file_provider_type); + this->__isset.file_provider_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_root_path); + this->__isset.remote_root_path = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t ddd_node_info::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ddd_node_info"); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t start_bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("start_bulk_load_request"); - xfer += oprot->writeFieldBegin("drop_time_ms", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->drop_time_ms); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("is_alive", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->is_alive); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->cluster_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("is_collected", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool(this->is_collected); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("file_provider_type", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->file_provider_type); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->remote_root_path); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("last_prepared_decree", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->last_prepared_decree); - xfer += oprot->writeFieldEnd(); +void swap(start_bulk_load_request &a, start_bulk_load_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.cluster_name, b.cluster_name); + swap(a.file_provider_type, b.file_provider_type); + swap(a.remote_root_path, b.remote_root_path); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ddd_node_info &a, ddd_node_info &b) -{ - using ::std::swap; - swap(a.node, b.node); - swap(a.drop_time_ms, b.drop_time_ms); - swap(a.is_alive, b.is_alive); - swap(a.is_collected, b.is_collected); - swap(a.ballot, b.ballot); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.last_prepared_decree, b.last_prepared_decree); - swap(a.__isset, b.__isset); -} - -ddd_node_info::ddd_node_info(const ddd_node_info &other614) -{ - node = other614.node; - drop_time_ms = other614.drop_time_ms; - is_alive = other614.is_alive; - is_collected = other614.is_collected; - ballot = other614.ballot; - last_committed_decree = other614.last_committed_decree; - last_prepared_decree = other614.last_prepared_decree; - __isset = other614.__isset; -} -ddd_node_info::ddd_node_info(ddd_node_info &&other615) -{ - node = std::move(other615.node); - drop_time_ms = std::move(other615.drop_time_ms); - is_alive = std::move(other615.is_alive); - is_collected = std::move(other615.is_collected); - ballot = std::move(other615.ballot); - last_committed_decree = std::move(other615.last_committed_decree); - last_prepared_decree = std::move(other615.last_prepared_decree); - __isset = std::move(other615.__isset); -} -ddd_node_info &ddd_node_info::operator=(const ddd_node_info &other616) -{ - node = other616.node; - drop_time_ms = other616.drop_time_ms; - is_alive = other616.is_alive; - is_collected = other616.is_collected; - ballot = other616.ballot; - last_committed_decree = other616.last_committed_decree; - last_prepared_decree = other616.last_prepared_decree; - __isset = other616.__isset; - return *this; -} -ddd_node_info &ddd_node_info::operator=(ddd_node_info &&other617) -{ - node = std::move(other617.node); - drop_time_ms = std::move(other617.drop_time_ms); - is_alive = std::move(other617.is_alive); - is_collected = std::move(other617.is_collected); - ballot = std::move(other617.ballot); - last_committed_decree = std::move(other617.last_committed_decree); - last_prepared_decree = std::move(other617.last_prepared_decree); - __isset = std::move(other617.__isset); - return *this; -} -void ddd_node_info::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "ddd_node_info("; - out << "node=" << to_string(node); - out << ", " - << "drop_time_ms=" << to_string(drop_time_ms); - out << ", " - << "is_alive=" << to_string(is_alive); - out << ", " - << "is_collected=" << to_string(is_collected); - out << ", " - << "ballot=" << to_string(ballot); - out << ", " - << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " - << "last_prepared_decree=" << to_string(last_prepared_decree); - out << ")"; -} - -ddd_partition_info::~ddd_partition_info() throw() {} - -void ddd_partition_info::__set_config(const ::dsn::partition_configuration &val) -{ - this->config = val; -} - -void ddd_partition_info::__set_dropped(const std::vector &val) -{ - this->dropped = val; -} - -void ddd_partition_info::__set_reason(const std::string &val) { this->reason = val; } - -uint32_t ddd_partition_info::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->dropped.clear(); - uint32_t _size618; - ::apache::thrift::protocol::TType _etype621; - xfer += iprot->readListBegin(_etype621, _size618); - this->dropped.resize(_size618); - uint32_t _i622; - for (_i622 = 0; _i622 < _size618; ++_i622) { - xfer += this->dropped[_i622].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.dropped = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->reason); - this->__isset.reason = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +start_bulk_load_request::start_bulk_load_request(const start_bulk_load_request& other680) { + app_name = other680.app_name; + cluster_name = other680.cluster_name; + file_provider_type = other680.file_provider_type; + remote_root_path = other680.remote_root_path; + __isset = other680.__isset; +} +start_bulk_load_request::start_bulk_load_request( start_bulk_load_request&& other681) { + app_name = std::move(other681.app_name); + cluster_name = std::move(other681.cluster_name); + file_provider_type = std::move(other681.file_provider_type); + remote_root_path = std::move(other681.remote_root_path); + __isset = std::move(other681.__isset); +} +start_bulk_load_request& start_bulk_load_request::operator=(const start_bulk_load_request& other682) { + app_name = other682.app_name; + cluster_name = other682.cluster_name; + file_provider_type = other682.file_provider_type; + remote_root_path = other682.remote_root_path; + __isset = other682.__isset; + return *this; +} +start_bulk_load_request& start_bulk_load_request::operator=(start_bulk_load_request&& other683) { + app_name = std::move(other683.app_name); + cluster_name = std::move(other683.cluster_name); + file_provider_type = std::move(other683.file_provider_type); + remote_root_path = std::move(other683.remote_root_path); + __isset = std::move(other683.__isset); + return *this; +} +void start_bulk_load_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "start_bulk_load_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "cluster_name=" << to_string(cluster_name); + out << ", " << "file_provider_type=" << to_string(file_provider_type); + out << ", " << "remote_root_path=" << to_string(remote_root_path); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +start_bulk_load_response::~start_bulk_load_response() throw() { } -uint32_t ddd_partition_info::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ddd_partition_info"); - - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("dropped", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->dropped.size())); - std::vector::const_iterator _iter623; - for (_iter623 = this->dropped.begin(); _iter623 != this->dropped.end(); ++_iter623) { - xfer += (*_iter623).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); +void start_bulk_load_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - xfer += oprot->writeFieldBegin("reason", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->reason); - xfer += oprot->writeFieldEnd(); +void start_bulk_load_response::__set_hint_msg(const std::string& val) { + this->hint_msg = val; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ddd_partition_info &a, ddd_partition_info &b) -{ - using ::std::swap; - swap(a.config, b.config); - swap(a.dropped, b.dropped); - swap(a.reason, b.reason); - swap(a.__isset, b.__isset); -} - -ddd_partition_info::ddd_partition_info(const ddd_partition_info &other624) -{ - config = other624.config; - dropped = other624.dropped; - reason = other624.reason; - __isset = other624.__isset; -} -ddd_partition_info::ddd_partition_info(ddd_partition_info &&other625) -{ - config = std::move(other625.config); - dropped = std::move(other625.dropped); - reason = std::move(other625.reason); - __isset = std::move(other625.__isset); -} -ddd_partition_info &ddd_partition_info::operator=(const ddd_partition_info &other626) -{ - config = other626.config; - dropped = other626.dropped; - reason = other626.reason; - __isset = other626.__isset; - return *this; -} -ddd_partition_info &ddd_partition_info::operator=(ddd_partition_info &&other627) -{ - config = std::move(other627.config); - dropped = std::move(other627.dropped); - reason = std::move(other627.reason); - __isset = std::move(other627.__isset); - return *this; -} -void ddd_partition_info::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "ddd_partition_info("; - out << "config=" << to_string(config); - out << ", " - << "dropped=" << to_string(dropped); - out << ", " - << "reason=" << to_string(reason); - out << ")"; -} - -ddd_diagnose_response::~ddd_diagnose_response() throw() {} - -void ddd_diagnose_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void ddd_diagnose_response::__set_partitions(const std::vector &val) -{ - this->partitions = val; -} - -uint32_t ddd_diagnose_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partitions.clear(); - uint32_t _size628; - ::apache::thrift::protocol::TType _etype631; - xfer += iprot->readListBegin(_etype631, _size628); - this->partitions.resize(_size628); - uint32_t _i632; - for (_i632 = 0; _i632 < _size628; ++_i632) { - xfer += this->partitions[_i632].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.partitions = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +uint32_t start_bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - return xfer; -} + xfer += iprot->readStructBegin(fname); -uint32_t ddd_diagnose_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ddd_diagnose_response"); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->partitions.size())); - std::vector::const_iterator _iter633; - for (_iter633 = this->partitions.begin(); _iter633 != this->partitions.end(); ++_iter633) { - xfer += (*_iter633).write(oprot); - } - xfer += oprot->writeListEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ddd_diagnose_response &a, ddd_diagnose_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.partitions, b.partitions); - swap(a.__isset, b.__isset); -} - -ddd_diagnose_response::ddd_diagnose_response(const ddd_diagnose_response &other634) -{ - err = other634.err; - partitions = other634.partitions; - __isset = other634.__isset; -} -ddd_diagnose_response::ddd_diagnose_response(ddd_diagnose_response &&other635) -{ - err = std::move(other635.err); - partitions = std::move(other635.partitions); - __isset = std::move(other635.__isset); -} -ddd_diagnose_response &ddd_diagnose_response::operator=(const ddd_diagnose_response &other636) -{ - err = other636.err; - partitions = other636.partitions; - __isset = other636.__isset; - return *this; -} -ddd_diagnose_response &ddd_diagnose_response::operator=(ddd_diagnose_response &&other637) -{ - err = std::move(other637.err); - partitions = std::move(other637.partitions); - __isset = std::move(other637.__isset); - return *this; -} -void ddd_diagnose_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "ddd_diagnose_response("; - out << "err=" << to_string(err); - out << ", " - << "partitions=" << to_string(partitions); - out << ")"; -} - -start_partition_split_request::~start_partition_split_request() throw() {} - -void start_partition_split_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void start_partition_split_request::__set_new_partition_count(const int32_t val) -{ - this->new_partition_count = val; -} - -uint32_t start_partition_split_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->new_partition_count); - this->__isset.new_partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t start_partition_split_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("start_partition_split_request"); +uint32_t start_bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("start_bulk_load_response"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("new_partition_count", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->new_partition_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(start_partition_split_request &a, start_partition_split_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.new_partition_count, b.new_partition_count); - swap(a.__isset, b.__isset); -} - -start_partition_split_request::start_partition_split_request( - const start_partition_split_request &other638) -{ - app_name = other638.app_name; - new_partition_count = other638.new_partition_count; - __isset = other638.__isset; -} -start_partition_split_request::start_partition_split_request( - start_partition_split_request &&other639) -{ - app_name = std::move(other639.app_name); - new_partition_count = std::move(other639.new_partition_count); - __isset = std::move(other639.__isset); -} -start_partition_split_request &start_partition_split_request:: -operator=(const start_partition_split_request &other640) -{ - app_name = other640.app_name; - new_partition_count = other640.new_partition_count; - __isset = other640.__isset; - return *this; -} -start_partition_split_request &start_partition_split_request:: -operator=(start_partition_split_request &&other641) -{ - app_name = std::move(other641.app_name); - new_partition_count = std::move(other641.new_partition_count); - __isset = std::move(other641.__isset); - return *this; -} -void start_partition_split_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "start_partition_split_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "new_partition_count=" << to_string(new_partition_count); - out << ")"; -} - -start_partition_split_response::~start_partition_split_response() throw() {} - -void start_partition_split_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void start_partition_split_response::__set_hint_msg(const std::string &val) -{ - this->hint_msg = val; -} - -uint32_t start_partition_split_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += iprot->readStructEnd(); +void swap(start_bulk_load_response &a, start_bulk_load_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} - return xfer; +start_bulk_load_response::start_bulk_load_response(const start_bulk_load_response& other684) { + err = other684.err; + hint_msg = other684.hint_msg; + __isset = other684.__isset; +} +start_bulk_load_response::start_bulk_load_response( start_bulk_load_response&& other685) { + err = std::move(other685.err); + hint_msg = std::move(other685.hint_msg); + __isset = std::move(other685.__isset); +} +start_bulk_load_response& start_bulk_load_response::operator=(const start_bulk_load_response& other686) { + err = other686.err; + hint_msg = other686.hint_msg; + __isset = other686.__isset; + return *this; +} +start_bulk_load_response& start_bulk_load_response::operator=(start_bulk_load_response&& other687) { + err = std::move(other687.err); + hint_msg = std::move(other687.hint_msg); + __isset = std::move(other687.__isset); + return *this; +} +void start_bulk_load_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "start_bulk_load_response("; + out << "err=" << to_string(err); + out << ", " << "hint_msg=" << to_string(hint_msg); + out << ")"; } -uint32_t start_partition_split_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("start_partition_split_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +partition_bulk_load_state::~partition_bulk_load_state() throw() { +} - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_msg); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(start_partition_split_response &a, start_partition_split_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); -} - -start_partition_split_response::start_partition_split_response( - const start_partition_split_response &other642) -{ - err = other642.err; - hint_msg = other642.hint_msg; - __isset = other642.__isset; -} -start_partition_split_response::start_partition_split_response( - start_partition_split_response &&other643) -{ - err = std::move(other643.err); - hint_msg = std::move(other643.hint_msg); - __isset = std::move(other643.__isset); -} -start_partition_split_response &start_partition_split_response:: -operator=(const start_partition_split_response &other644) -{ - err = other644.err; - hint_msg = other644.hint_msg; - __isset = other644.__isset; - return *this; -} -start_partition_split_response &start_partition_split_response:: -operator=(start_partition_split_response &&other645) -{ - err = std::move(other645.err); - hint_msg = std::move(other645.hint_msg); - __isset = std::move(other645.__isset); - return *this; -} -void start_partition_split_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "start_partition_split_response("; - out << "err=" << to_string(err); - out << ", " - << "hint_msg=" << to_string(hint_msg); - out << ")"; -} - -notify_catch_up_request::~notify_catch_up_request() throw() {} - -void notify_catch_up_request::__set_parent_gpid(const ::dsn::gpid &val) { this->parent_gpid = val; } - -void notify_catch_up_request::__set_child_gpid(const ::dsn::gpid &val) { this->child_gpid = val; } - -void notify_catch_up_request::__set_child_ballot(const int64_t val) { this->child_ballot = val; } - -void notify_catch_up_request::__set_child_address(const ::dsn::rpc_address &val) -{ - this->child_address = val; -} - -uint32_t notify_catch_up_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->parent_gpid.read(iprot); - this->__isset.parent_gpid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_gpid.read(iprot); - this->__isset.child_gpid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->child_ballot); - this->__isset.child_ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_address.read(iprot); - this->__isset.child_address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void partition_bulk_load_state::__set_download_progress(const int32_t val) { + this->download_progress = val; +__isset.download_progress = true; +} - xfer += iprot->readStructEnd(); +void partition_bulk_load_state::__set_download_status(const ::dsn::error_code& val) { + this->download_status = val; +__isset.download_status = true; +} - return xfer; +void partition_bulk_load_state::__set_ingest_status(const ingestion_status::type val) { + this->ingest_status = val; +__isset.ingest_status = true; } -uint32_t notify_catch_up_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("notify_catch_up_request"); +void partition_bulk_load_state::__set_is_cleaned_up(const bool val) { + this->is_cleaned_up = val; +__isset.is_cleaned_up = true; +} - xfer += oprot->writeFieldBegin("parent_gpid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->parent_gpid.write(oprot); - xfer += oprot->writeFieldEnd(); +void partition_bulk_load_state::__set_is_paused(const bool val) { + this->is_paused = val; +__isset.is_paused = true; +} - xfer += oprot->writeFieldBegin("child_gpid", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->child_gpid.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t partition_bulk_load_state::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("child_ballot", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->child_ballot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("child_address", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->child_address.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(notify_catch_up_request &a, notify_catch_up_request &b) -{ - using ::std::swap; - swap(a.parent_gpid, b.parent_gpid); - swap(a.child_gpid, b.child_gpid); - swap(a.child_ballot, b.child_ballot); - swap(a.child_address, b.child_address); - swap(a.__isset, b.__isset); -} - -notify_catch_up_request::notify_catch_up_request(const notify_catch_up_request &other646) -{ - parent_gpid = other646.parent_gpid; - child_gpid = other646.child_gpid; - child_ballot = other646.child_ballot; - child_address = other646.child_address; - __isset = other646.__isset; -} -notify_catch_up_request::notify_catch_up_request(notify_catch_up_request &&other647) -{ - parent_gpid = std::move(other647.parent_gpid); - child_gpid = std::move(other647.child_gpid); - child_ballot = std::move(other647.child_ballot); - child_address = std::move(other647.child_address); - __isset = std::move(other647.__isset); -} -notify_catch_up_request ¬ify_catch_up_request::operator=(const notify_catch_up_request &other648) -{ - parent_gpid = other648.parent_gpid; - child_gpid = other648.child_gpid; - child_ballot = other648.child_ballot; - child_address = other648.child_address; - __isset = other648.__isset; - return *this; -} -notify_catch_up_request ¬ify_catch_up_request::operator=(notify_catch_up_request &&other649) -{ - parent_gpid = std::move(other649.parent_gpid); - child_gpid = std::move(other649.child_gpid); - child_ballot = std::move(other649.child_ballot); - child_address = std::move(other649.child_address); - __isset = std::move(other649.__isset); - return *this; -} -void notify_catch_up_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "notify_catch_up_request("; - out << "parent_gpid=" << to_string(parent_gpid); - out << ", " - << "child_gpid=" << to_string(child_gpid); - out << ", " - << "child_ballot=" << to_string(child_ballot); - out << ", " - << "child_address=" << to_string(child_address); - out << ")"; -} - -notify_cacth_up_response::~notify_cacth_up_response() throw() {} - -void notify_cacth_up_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -uint32_t notify_cacth_up_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + using ::apache::thrift::protocol::TProtocolException; - xfer += iprot->readStructEnd(); - return xfer; + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->download_progress); + this->__isset.download_progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->download_status.read(iprot); + this->__isset.download_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast688; + xfer += iprot->readI32(ecast688); + this->ingest_status = (ingestion_status::type)ecast688; + this->__isset.ingest_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_cleaned_up); + this->__isset.is_cleaned_up = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_paused); + this->__isset.is_paused = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; } -uint32_t notify_cacth_up_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("notify_cacth_up_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); +uint32_t partition_bulk_load_state::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("partition_bulk_load_state"); + + if (this->__isset.download_progress) { + xfer += oprot->writeFieldBegin("download_progress", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->download_progress); xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + } + if (this->__isset.download_status) { + xfer += oprot->writeFieldBegin("download_status", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->download_status.write(oprot); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.ingest_status) { + xfer += oprot->writeFieldBegin("ingest_status", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->ingest_status); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_cleaned_up) { + xfer += oprot->writeFieldBegin("is_cleaned_up", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->is_cleaned_up); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_paused) { + xfer += oprot->writeFieldBegin("is_paused", ::apache::thrift::protocol::T_BOOL, 5); + xfer += oprot->writeBool(this->is_paused); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(notify_cacth_up_response &a, notify_cacth_up_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); +void swap(partition_bulk_load_state &a, partition_bulk_load_state &b) { + using ::std::swap; + swap(a.download_progress, b.download_progress); + swap(a.download_status, b.download_status); + swap(a.ingest_status, b.ingest_status); + swap(a.is_cleaned_up, b.is_cleaned_up); + swap(a.is_paused, b.is_paused); + swap(a.__isset, b.__isset); } -notify_cacth_up_response::notify_cacth_up_response(const notify_cacth_up_response &other650) -{ - err = other650.err; - __isset = other650.__isset; +partition_bulk_load_state::partition_bulk_load_state(const partition_bulk_load_state& other689) { + download_progress = other689.download_progress; + download_status = other689.download_status; + ingest_status = other689.ingest_status; + is_cleaned_up = other689.is_cleaned_up; + is_paused = other689.is_paused; + __isset = other689.__isset; } -notify_cacth_up_response::notify_cacth_up_response(notify_cacth_up_response &&other651) -{ - err = std::move(other651.err); - __isset = std::move(other651.__isset); +partition_bulk_load_state::partition_bulk_load_state( partition_bulk_load_state&& other690) { + download_progress = std::move(other690.download_progress); + download_status = std::move(other690.download_status); + ingest_status = std::move(other690.ingest_status); + is_cleaned_up = std::move(other690.is_cleaned_up); + is_paused = std::move(other690.is_paused); + __isset = std::move(other690.__isset); } -notify_cacth_up_response ¬ify_cacth_up_response:: -operator=(const notify_cacth_up_response &other652) -{ - err = other652.err; - __isset = other652.__isset; - return *this; +partition_bulk_load_state& partition_bulk_load_state::operator=(const partition_bulk_load_state& other691) { + download_progress = other691.download_progress; + download_status = other691.download_status; + ingest_status = other691.ingest_status; + is_cleaned_up = other691.is_cleaned_up; + is_paused = other691.is_paused; + __isset = other691.__isset; + return *this; } -notify_cacth_up_response ¬ify_cacth_up_response::operator=(notify_cacth_up_response &&other653) -{ - err = std::move(other653.err); - __isset = std::move(other653.__isset); - return *this; +partition_bulk_load_state& partition_bulk_load_state::operator=(partition_bulk_load_state&& other692) { + download_progress = std::move(other692.download_progress); + download_status = std::move(other692.download_status); + ingest_status = std::move(other692.ingest_status); + is_cleaned_up = std::move(other692.is_cleaned_up); + is_paused = std::move(other692.is_paused); + __isset = std::move(other692.__isset); + return *this; } -void notify_cacth_up_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "notify_cacth_up_response("; - out << "err=" << to_string(err); - out << ")"; +void partition_bulk_load_state::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "partition_bulk_load_state("; + out << "download_progress="; (__isset.download_progress ? (out << to_string(download_progress)) : (out << "")); + out << ", " << "download_status="; (__isset.download_status ? (out << to_string(download_status)) : (out << "")); + out << ", " << "ingest_status="; (__isset.ingest_status ? (out << to_string(ingest_status)) : (out << "")); + out << ", " << "is_cleaned_up="; (__isset.is_cleaned_up ? (out << to_string(is_cleaned_up)) : (out << "")); + out << ", " << "is_paused="; (__isset.is_paused ? (out << to_string(is_paused)) : (out << "")); + out << ")"; } -update_child_group_partition_count_request::~update_child_group_partition_count_request() throw() {} -void update_child_group_partition_count_request::__set_target_address(const ::dsn::rpc_address &val) -{ - this->target_address = val; +bulk_load_request::~bulk_load_request() throw() { } -void update_child_group_partition_count_request::__set_new_partition_count(const int32_t val) -{ - this->new_partition_count = val; -} -void update_child_group_partition_count_request::__set_child_pid(const ::dsn::gpid &val) -{ - this->child_pid = val; +void bulk_load_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; } -void update_child_group_partition_count_request::__set_ballot(const int64_t val) -{ - this->ballot = val; +void bulk_load_request::__set_app_name(const std::string& val) { + this->app_name = val; } -uint32_t -update_child_group_partition_count_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void bulk_load_request::__set_primary_addr(const ::dsn::rpc_address& val) { + this->primary_addr = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +void bulk_load_request::__set_remote_provider_name(const std::string& val) { + this->remote_provider_name = val; +} - xfer += iprot->readStructBegin(fname); +void bulk_load_request::__set_cluster_name(const std::string& val) { + this->cluster_name = val; +} - using ::apache::thrift::protocol::TProtocolException; +void bulk_load_request::__set_ballot(const int64_t val) { + this->ballot = val; +} - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->target_address.read(iprot); - this->__isset.target_address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->new_partition_count); - this->__isset.new_partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_pid.read(iprot); - this->__isset.child_pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +void bulk_load_request::__set_meta_bulk_load_status(const bulk_load_status::type val) { + this->meta_bulk_load_status = val; +} - xfer += iprot->readStructEnd(); +void bulk_load_request::__set_query_bulk_load_metadata(const bool val) { + this->query_bulk_load_metadata = val; +} - return xfer; +void bulk_load_request::__set_remote_root_path(const std::string& val) { + this->remote_root_path = val; } -uint32_t update_child_group_partition_count_request::write( - ::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("update_child_group_partition_count_request"); +uint32_t bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("target_address", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->target_address.write(oprot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("new_partition_count", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->new_partition_count); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("child_pid", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->child_pid.write(oprot); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(update_child_group_partition_count_request &a, - update_child_group_partition_count_request &b) -{ - using ::std::swap; - swap(a.target_address, b.target_address); - swap(a.new_partition_count, b.new_partition_count); - swap(a.child_pid, b.child_pid); - swap(a.ballot, b.ballot); - swap(a.__isset, b.__isset); -} - -update_child_group_partition_count_request::update_child_group_partition_count_request( - const update_child_group_partition_count_request &other654) -{ - target_address = other654.target_address; - new_partition_count = other654.new_partition_count; - child_pid = other654.child_pid; - ballot = other654.ballot; - __isset = other654.__isset; -} -update_child_group_partition_count_request::update_child_group_partition_count_request( - update_child_group_partition_count_request &&other655) -{ - target_address = std::move(other655.target_address); - new_partition_count = std::move(other655.new_partition_count); - child_pid = std::move(other655.child_pid); - ballot = std::move(other655.ballot); - __isset = std::move(other655.__isset); -} -update_child_group_partition_count_request &update_child_group_partition_count_request:: -operator=(const update_child_group_partition_count_request &other656) -{ - target_address = other656.target_address; - new_partition_count = other656.new_partition_count; - child_pid = other656.child_pid; - ballot = other656.ballot; - __isset = other656.__isset; - return *this; -} -update_child_group_partition_count_request &update_child_group_partition_count_request:: -operator=(update_child_group_partition_count_request &&other657) -{ - target_address = std::move(other657.target_address); - new_partition_count = std::move(other657.new_partition_count); - child_pid = std::move(other657.child_pid); - ballot = std::move(other657.ballot); - __isset = std::move(other657.__isset); - return *this; -} -void update_child_group_partition_count_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "update_child_group_partition_count_request("; - out << "target_address=" << to_string(target_address); - out << ", " - << "new_partition_count=" << to_string(new_partition_count); - out << ", " - << "child_pid=" << to_string(child_pid); - out << ", " - << "ballot=" << to_string(ballot); - out << ")"; -} - -update_child_group_partition_count_response::~update_child_group_partition_count_response() throw() -{ -} - -void update_child_group_partition_count_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; -} - -uint32_t -update_child_group_partition_count_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - - xfer += iprot->readStructEnd(); - - return xfer; + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->primary_addr.read(iprot); + this->__isset.primary_addr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_provider_name); + this->__isset.remote_provider_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cluster_name); + this->__isset.cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast693; + xfer += iprot->readI32(ecast693); + this->meta_bulk_load_status = (bulk_load_status::type)ecast693; + this->__isset.meta_bulk_load_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->query_bulk_load_metadata); + this->__isset.query_bulk_load_metadata = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_root_path); + this->__isset.remote_root_path = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("bulk_load_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("primary_addr", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->primary_addr.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("remote_provider_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->remote_provider_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->cluster_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("meta_bulk_load_status", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32((int32_t)this->meta_bulk_load_status); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("query_bulk_load_metadata", ::apache::thrift::protocol::T_BOOL, 8); + xfer += oprot->writeBool(this->query_bulk_load_metadata); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 9); + xfer += oprot->writeString(this->remote_root_path); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(bulk_load_request &a, bulk_load_request &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.app_name, b.app_name); + swap(a.primary_addr, b.primary_addr); + swap(a.remote_provider_name, b.remote_provider_name); + swap(a.cluster_name, b.cluster_name); + swap(a.ballot, b.ballot); + swap(a.meta_bulk_load_status, b.meta_bulk_load_status); + swap(a.query_bulk_load_metadata, b.query_bulk_load_metadata); + swap(a.remote_root_path, b.remote_root_path); + swap(a.__isset, b.__isset); } -uint32_t update_child_group_partition_count_response::write( - ::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("update_child_group_partition_count_response"); +bulk_load_request::bulk_load_request(const bulk_load_request& other694) { + pid = other694.pid; + app_name = other694.app_name; + primary_addr = other694.primary_addr; + remote_provider_name = other694.remote_provider_name; + cluster_name = other694.cluster_name; + ballot = other694.ballot; + meta_bulk_load_status = other694.meta_bulk_load_status; + query_bulk_load_metadata = other694.query_bulk_load_metadata; + remote_root_path = other694.remote_root_path; + __isset = other694.__isset; +} +bulk_load_request::bulk_load_request( bulk_load_request&& other695) { + pid = std::move(other695.pid); + app_name = std::move(other695.app_name); + primary_addr = std::move(other695.primary_addr); + remote_provider_name = std::move(other695.remote_provider_name); + cluster_name = std::move(other695.cluster_name); + ballot = std::move(other695.ballot); + meta_bulk_load_status = std::move(other695.meta_bulk_load_status); + query_bulk_load_metadata = std::move(other695.query_bulk_load_metadata); + remote_root_path = std::move(other695.remote_root_path); + __isset = std::move(other695.__isset); +} +bulk_load_request& bulk_load_request::operator=(const bulk_load_request& other696) { + pid = other696.pid; + app_name = other696.app_name; + primary_addr = other696.primary_addr; + remote_provider_name = other696.remote_provider_name; + cluster_name = other696.cluster_name; + ballot = other696.ballot; + meta_bulk_load_status = other696.meta_bulk_load_status; + query_bulk_load_metadata = other696.query_bulk_load_metadata; + remote_root_path = other696.remote_root_path; + __isset = other696.__isset; + return *this; +} +bulk_load_request& bulk_load_request::operator=(bulk_load_request&& other697) { + pid = std::move(other697.pid); + app_name = std::move(other697.app_name); + primary_addr = std::move(other697.primary_addr); + remote_provider_name = std::move(other697.remote_provider_name); + cluster_name = std::move(other697.cluster_name); + ballot = std::move(other697.ballot); + meta_bulk_load_status = std::move(other697.meta_bulk_load_status); + query_bulk_load_metadata = std::move(other697.query_bulk_load_metadata); + remote_root_path = std::move(other697.remote_root_path); + __isset = std::move(other697.__isset); + return *this; +} +void bulk_load_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "bulk_load_request("; + out << "pid=" << to_string(pid); + out << ", " << "app_name=" << to_string(app_name); + out << ", " << "primary_addr=" << to_string(primary_addr); + out << ", " << "remote_provider_name=" << to_string(remote_provider_name); + out << ", " << "cluster_name=" << to_string(cluster_name); + out << ", " << "ballot=" << to_string(ballot); + out << ", " << "meta_bulk_load_status=" << to_string(meta_bulk_load_status); + out << ", " << "query_bulk_load_metadata=" << to_string(query_bulk_load_metadata); + out << ", " << "remote_root_path=" << to_string(remote_root_path); + out << ")"; +} - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; +bulk_load_response::~bulk_load_response() throw() { } -void swap(update_child_group_partition_count_response &a, - update_child_group_partition_count_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); -} -update_child_group_partition_count_response::update_child_group_partition_count_response( - const update_child_group_partition_count_response &other658) -{ - err = other658.err; - __isset = other658.__isset; +void bulk_load_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -update_child_group_partition_count_response::update_child_group_partition_count_response( - update_child_group_partition_count_response &&other659) -{ - err = std::move(other659.err); - __isset = std::move(other659.__isset); + +void bulk_load_response::__set_pid(const ::dsn::gpid& val) { + this->pid = val; } -update_child_group_partition_count_response &update_child_group_partition_count_response:: -operator=(const update_child_group_partition_count_response &other660) -{ - err = other660.err; - __isset = other660.__isset; - return *this; + +void bulk_load_response::__set_app_name(const std::string& val) { + this->app_name = val; } -update_child_group_partition_count_response &update_child_group_partition_count_response:: -operator=(update_child_group_partition_count_response &&other661) -{ - err = std::move(other661.err); - __isset = std::move(other661.__isset); - return *this; + +void bulk_load_response::__set_primary_bulk_load_status(const bulk_load_status::type val) { + this->primary_bulk_load_status = val; } -void update_child_group_partition_count_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "update_child_group_partition_count_response("; - out << "err=" << to_string(err); - out << ")"; + +void bulk_load_response::__set_group_bulk_load_state(const std::map< ::dsn::rpc_address, partition_bulk_load_state> & val) { + this->group_bulk_load_state = val; } -register_child_request::~register_child_request() throw() {} +void bulk_load_response::__set_metadata(const bulk_load_metadata& val) { + this->metadata = val; +__isset.metadata = true; +} -void register_child_request::__set_app(const ::dsn::app_info &val) { this->app = val; } +void bulk_load_response::__set_total_download_progress(const int32_t val) { + this->total_download_progress = val; +__isset.total_download_progress = true; +} -void register_child_request::__set_parent_config(const ::dsn::partition_configuration &val) -{ - this->parent_config = val; +void bulk_load_response::__set_is_group_ingestion_finished(const bool val) { + this->is_group_ingestion_finished = val; +__isset.is_group_ingestion_finished = true; } -void register_child_request::__set_child_config(const ::dsn::partition_configuration &val) -{ - this->child_config = val; +void bulk_load_response::__set_is_group_bulk_load_context_cleaned_up(const bool val) { + this->is_group_bulk_load_context_cleaned_up = val; +__isset.is_group_bulk_load_context_cleaned_up = true; } -void register_child_request::__set_primary_address(const ::dsn::rpc_address &val) -{ - this->primary_address = val; +void bulk_load_response::__set_is_group_bulk_load_paused(const bool val) { + this->is_group_bulk_load_paused = val; +__isset.is_group_bulk_load_paused = true; } -uint32_t register_child_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->app.read(iprot); - this->__isset.app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->parent_config.read(iprot); - this->__isset.parent_config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_config.read(iprot); - this->__isset.child_config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->primary_address.read(iprot); - this->__isset.primary_address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast698; + xfer += iprot->readI32(ecast698); + this->primary_bulk_load_status = (bulk_load_status::type)ecast698; + this->__isset.primary_bulk_load_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->group_bulk_load_state.clear(); + uint32_t _size699; + ::apache::thrift::protocol::TType _ktype700; + ::apache::thrift::protocol::TType _vtype701; + xfer += iprot->readMapBegin(_ktype700, _vtype701, _size699); + uint32_t _i703; + for (_i703 = 0; _i703 < _size699; ++_i703) + { + ::dsn::rpc_address _key704; + xfer += _key704.read(iprot); + partition_bulk_load_state& _val705 = this->group_bulk_load_state[_key704]; + xfer += _val705.read(iprot); + } + xfer += iprot->readMapEnd(); + } + this->__isset.group_bulk_load_state = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->metadata.read(iprot); + this->__isset.metadata = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->total_download_progress); + this->__isset.total_download_progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_group_ingestion_finished); + this->__isset.is_group_ingestion_finished = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_group_bulk_load_context_cleaned_up); + this->__isset.is_group_bulk_load_context_cleaned_up = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 10: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_group_bulk_load_paused); + this->__isset.is_group_bulk_load_paused = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t register_child_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("register_child_request"); +uint32_t bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("bulk_load_response"); - xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->app.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("parent_config", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->parent_config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("child_config", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->child_config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("primary_address", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->primary_address.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("primary_bulk_load_status", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->primary_bulk_load_status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(register_child_request &a, register_child_request &b) -{ - using ::std::swap; - swap(a.app, b.app); - swap(a.parent_config, b.parent_config); - swap(a.child_config, b.child_config); - swap(a.primary_address, b.primary_address); - swap(a.__isset, b.__isset); -} - -register_child_request::register_child_request(const register_child_request &other662) -{ - app = other662.app; - parent_config = other662.parent_config; - child_config = other662.child_config; - primary_address = other662.primary_address; - __isset = other662.__isset; -} -register_child_request::register_child_request(register_child_request &&other663) -{ - app = std::move(other663.app); - parent_config = std::move(other663.parent_config); - child_config = std::move(other663.child_config); - primary_address = std::move(other663.primary_address); - __isset = std::move(other663.__isset); -} -register_child_request ®ister_child_request::operator=(const register_child_request &other664) -{ - app = other664.app; - parent_config = other664.parent_config; - child_config = other664.child_config; - primary_address = other664.primary_address; - __isset = other664.__isset; - return *this; -} -register_child_request ®ister_child_request::operator=(register_child_request &&other665) -{ - app = std::move(other665.app); - parent_config = std::move(other665.parent_config); - child_config = std::move(other665.child_config); - primary_address = std::move(other665.primary_address); - __isset = std::move(other665.__isset); - return *this; -} -void register_child_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "register_child_request("; - out << "app=" << to_string(app); - out << ", " - << "parent_config=" << to_string(parent_config); - out << ", " - << "child_config=" << to_string(child_config); - out << ", " - << "primary_address=" << to_string(primary_address); - out << ")"; -} - -register_child_response::~register_child_response() throw() {} - -void register_child_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void register_child_response::__set_app(const ::dsn::app_info &val) { this->app = val; } - -void register_child_response::__set_parent_config(const ::dsn::partition_configuration &val) -{ - this->parent_config = val; -} - -void register_child_response::__set_child_config(const ::dsn::partition_configuration &val) -{ - this->child_config = val; -} - -uint32_t register_child_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->app.read(iprot); - this->__isset.app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->parent_config.read(iprot); - this->__isset.parent_config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_config.read(iprot); - this->__isset.child_config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeFieldBegin("group_bulk_load_state", ::apache::thrift::protocol::T_MAP, 5); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, ::apache::thrift::protocol::T_STRUCT, static_cast(this->group_bulk_load_state.size())); + std::map< ::dsn::rpc_address, partition_bulk_load_state> ::const_iterator _iter706; + for (_iter706 = this->group_bulk_load_state.begin(); _iter706 != this->group_bulk_load_state.end(); ++_iter706) + { + xfer += _iter706->first.write(oprot); + xfer += _iter706->second.write(oprot); } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + if (this->__isset.metadata) { + xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->metadata.write(oprot); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.total_download_progress) { + xfer += oprot->writeFieldBegin("total_download_progress", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32(this->total_download_progress); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_group_ingestion_finished) { + xfer += oprot->writeFieldBegin("is_group_ingestion_finished", ::apache::thrift::protocol::T_BOOL, 8); + xfer += oprot->writeBool(this->is_group_ingestion_finished); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_group_bulk_load_context_cleaned_up) { + xfer += oprot->writeFieldBegin("is_group_bulk_load_context_cleaned_up", ::apache::thrift::protocol::T_BOOL, 9); + xfer += oprot->writeBool(this->is_group_bulk_load_context_cleaned_up); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_group_bulk_load_paused) { + xfer += oprot->writeFieldBegin("is_group_bulk_load_paused", ::apache::thrift::protocol::T_BOOL, 10); + xfer += oprot->writeBool(this->is_group_bulk_load_paused); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(bulk_load_response &a, bulk_load_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.pid, b.pid); + swap(a.app_name, b.app_name); + swap(a.primary_bulk_load_status, b.primary_bulk_load_status); + swap(a.group_bulk_load_state, b.group_bulk_load_state); + swap(a.metadata, b.metadata); + swap(a.total_download_progress, b.total_download_progress); + swap(a.is_group_ingestion_finished, b.is_group_ingestion_finished); + swap(a.is_group_bulk_load_context_cleaned_up, b.is_group_bulk_load_context_cleaned_up); + swap(a.is_group_bulk_load_paused, b.is_group_bulk_load_paused); + swap(a.__isset, b.__isset); +} + +bulk_load_response::bulk_load_response(const bulk_load_response& other707) { + err = other707.err; + pid = other707.pid; + app_name = other707.app_name; + primary_bulk_load_status = other707.primary_bulk_load_status; + group_bulk_load_state = other707.group_bulk_load_state; + metadata = other707.metadata; + total_download_progress = other707.total_download_progress; + is_group_ingestion_finished = other707.is_group_ingestion_finished; + is_group_bulk_load_context_cleaned_up = other707.is_group_bulk_load_context_cleaned_up; + is_group_bulk_load_paused = other707.is_group_bulk_load_paused; + __isset = other707.__isset; +} +bulk_load_response::bulk_load_response( bulk_load_response&& other708) { + err = std::move(other708.err); + pid = std::move(other708.pid); + app_name = std::move(other708.app_name); + primary_bulk_load_status = std::move(other708.primary_bulk_load_status); + group_bulk_load_state = std::move(other708.group_bulk_load_state); + metadata = std::move(other708.metadata); + total_download_progress = std::move(other708.total_download_progress); + is_group_ingestion_finished = std::move(other708.is_group_ingestion_finished); + is_group_bulk_load_context_cleaned_up = std::move(other708.is_group_bulk_load_context_cleaned_up); + is_group_bulk_load_paused = std::move(other708.is_group_bulk_load_paused); + __isset = std::move(other708.__isset); +} +bulk_load_response& bulk_load_response::operator=(const bulk_load_response& other709) { + err = other709.err; + pid = other709.pid; + app_name = other709.app_name; + primary_bulk_load_status = other709.primary_bulk_load_status; + group_bulk_load_state = other709.group_bulk_load_state; + metadata = other709.metadata; + total_download_progress = other709.total_download_progress; + is_group_ingestion_finished = other709.is_group_ingestion_finished; + is_group_bulk_load_context_cleaned_up = other709.is_group_bulk_load_context_cleaned_up; + is_group_bulk_load_paused = other709.is_group_bulk_load_paused; + __isset = other709.__isset; + return *this; +} +bulk_load_response& bulk_load_response::operator=(bulk_load_response&& other710) { + err = std::move(other710.err); + pid = std::move(other710.pid); + app_name = std::move(other710.app_name); + primary_bulk_load_status = std::move(other710.primary_bulk_load_status); + group_bulk_load_state = std::move(other710.group_bulk_load_state); + metadata = std::move(other710.metadata); + total_download_progress = std::move(other710.total_download_progress); + is_group_ingestion_finished = std::move(other710.is_group_ingestion_finished); + is_group_bulk_load_context_cleaned_up = std::move(other710.is_group_bulk_load_context_cleaned_up); + is_group_bulk_load_paused = std::move(other710.is_group_bulk_load_paused); + __isset = std::move(other710.__isset); + return *this; +} +void bulk_load_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "bulk_load_response("; + out << "err=" << to_string(err); + out << ", " << "pid=" << to_string(pid); + out << ", " << "app_name=" << to_string(app_name); + out << ", " << "primary_bulk_load_status=" << to_string(primary_bulk_load_status); + out << ", " << "group_bulk_load_state=" << to_string(group_bulk_load_state); + out << ", " << "metadata="; (__isset.metadata ? (out << to_string(metadata)) : (out << "")); + out << ", " << "total_download_progress="; (__isset.total_download_progress ? (out << to_string(total_download_progress)) : (out << "")); + out << ", " << "is_group_ingestion_finished="; (__isset.is_group_ingestion_finished ? (out << to_string(is_group_ingestion_finished)) : (out << "")); + out << ", " << "is_group_bulk_load_context_cleaned_up="; (__isset.is_group_bulk_load_context_cleaned_up ? (out << to_string(is_group_bulk_load_context_cleaned_up)) : (out << "")); + out << ", " << "is_group_bulk_load_paused="; (__isset.is_group_bulk_load_paused ? (out << to_string(is_group_bulk_load_paused)) : (out << "")); + out << ")"; +} + + +group_bulk_load_request::~group_bulk_load_request() throw() { +} + + +void group_bulk_load_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void group_bulk_load_request::__set_target_address(const ::dsn::rpc_address& val) { + this->target_address = val; +} + +void group_bulk_load_request::__set_config(const replica_configuration& val) { + this->config = val; +} + +void group_bulk_load_request::__set_provider_name(const std::string& val) { + this->provider_name = val; +} + +void group_bulk_load_request::__set_cluster_name(const std::string& val) { + this->cluster_name = val; +} - return xfer; +void group_bulk_load_request::__set_meta_bulk_load_status(const bulk_load_status::type val) { + this->meta_bulk_load_status = val; } -uint32_t register_child_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("register_child_response"); +void group_bulk_load_request::__set_remote_root_path(const std::string& val) { + this->remote_root_path = val; +} - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t group_bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->app.write(oprot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("parent_config", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->parent_config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("child_config", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->child_config.write(oprot); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(register_child_response &a, register_child_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.app, b.app); - swap(a.parent_config, b.parent_config); - swap(a.child_config, b.child_config); - swap(a.__isset, b.__isset); -} - -register_child_response::register_child_response(const register_child_response &other666) -{ - err = other666.err; - app = other666.app; - parent_config = other666.parent_config; - child_config = other666.child_config; - __isset = other666.__isset; -} -register_child_response::register_child_response(register_child_response &&other667) -{ - err = std::move(other667.err); - app = std::move(other667.app); - parent_config = std::move(other667.parent_config); - child_config = std::move(other667.child_config); - __isset = std::move(other667.__isset); -} -register_child_response ®ister_child_response::operator=(const register_child_response &other668) -{ - err = other668.err; - app = other668.app; - parent_config = other668.parent_config; - child_config = other668.child_config; - __isset = other668.__isset; - return *this; -} -register_child_response ®ister_child_response::operator=(register_child_response &&other669) -{ - err = std::move(other669.err); - app = std::move(other669.app); - parent_config = std::move(other669.parent_config); - child_config = std::move(other669.child_config); - __isset = std::move(other669.__isset); - return *this; -} -void register_child_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "register_child_response("; - out << "err=" << to_string(err); - out << ", " - << "app=" << to_string(app); - out << ", " - << "parent_config=" << to_string(parent_config); - out << ", " - << "child_config=" << to_string(child_config); - out << ")"; -} - -bulk_load_metadata::~bulk_load_metadata() throw() {} - -void bulk_load_metadata::__set_files(const std::vector &val) { this->files = val; } - -void bulk_load_metadata::__set_file_total_size(const int64_t val) { this->file_total_size = val; } - -uint32_t bulk_load_metadata::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->files.clear(); - uint32_t _size670; - ::apache::thrift::protocol::TType _etype673; - xfer += iprot->readListBegin(_etype673, _size670); - this->files.resize(_size670); - uint32_t _i674; - for (_i674 = 0; _i674 < _size670; ++_i674) { - xfer += this->files[_i674].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.files = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->file_total_size); - this->__isset.file_total_size = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->target_address.read(iprot); + this->__isset.target_address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->provider_name); + this->__isset.provider_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cluster_name); + this->__isset.cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast711; + xfer += iprot->readI32(ecast711); + this->meta_bulk_load_status = (bulk_load_status::type)ecast711; + this->__isset.meta_bulk_load_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_root_path); + this->__isset.remote_root_path = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t group_bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("group_bulk_load_request"); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("target_address", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->target_address.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("provider_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->provider_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->cluster_name); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("meta_bulk_load_status", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((int32_t)this->meta_bulk_load_status); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->remote_root_path); + xfer += oprot->writeFieldEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t bulk_load_metadata::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("bulk_load_metadata"); +void swap(group_bulk_load_request &a, group_bulk_load_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.target_address, b.target_address); + swap(a.config, b.config); + swap(a.provider_name, b.provider_name); + swap(a.cluster_name, b.cluster_name); + swap(a.meta_bulk_load_status, b.meta_bulk_load_status); + swap(a.remote_root_path, b.remote_root_path); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 1); +group_bulk_load_request::group_bulk_load_request(const group_bulk_load_request& other712) { + app_name = other712.app_name; + target_address = other712.target_address; + config = other712.config; + provider_name = other712.provider_name; + cluster_name = other712.cluster_name; + meta_bulk_load_status = other712.meta_bulk_load_status; + remote_root_path = other712.remote_root_path; + __isset = other712.__isset; +} +group_bulk_load_request::group_bulk_load_request( group_bulk_load_request&& other713) { + app_name = std::move(other713.app_name); + target_address = std::move(other713.target_address); + config = std::move(other713.config); + provider_name = std::move(other713.provider_name); + cluster_name = std::move(other713.cluster_name); + meta_bulk_load_status = std::move(other713.meta_bulk_load_status); + remote_root_path = std::move(other713.remote_root_path); + __isset = std::move(other713.__isset); +} +group_bulk_load_request& group_bulk_load_request::operator=(const group_bulk_load_request& other714) { + app_name = other714.app_name; + target_address = other714.target_address; + config = other714.config; + provider_name = other714.provider_name; + cluster_name = other714.cluster_name; + meta_bulk_load_status = other714.meta_bulk_load_status; + remote_root_path = other714.remote_root_path; + __isset = other714.__isset; + return *this; +} +group_bulk_load_request& group_bulk_load_request::operator=(group_bulk_load_request&& other715) { + app_name = std::move(other715.app_name); + target_address = std::move(other715.target_address); + config = std::move(other715.config); + provider_name = std::move(other715.provider_name); + cluster_name = std::move(other715.cluster_name); + meta_bulk_load_status = std::move(other715.meta_bulk_load_status); + remote_root_path = std::move(other715.remote_root_path); + __isset = std::move(other715.__isset); + return *this; +} +void group_bulk_load_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "group_bulk_load_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "target_address=" << to_string(target_address); + out << ", " << "config=" << to_string(config); + out << ", " << "provider_name=" << to_string(provider_name); + out << ", " << "cluster_name=" << to_string(cluster_name); + out << ", " << "meta_bulk_load_status=" << to_string(meta_bulk_load_status); + out << ", " << "remote_root_path=" << to_string(remote_root_path); + out << ")"; +} + + +group_bulk_load_response::~group_bulk_load_response() throw() { +} + + +void group_bulk_load_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} + +void group_bulk_load_response::__set_status(const bulk_load_status::type val) { + this->status = val; +} + +void group_bulk_load_response::__set_bulk_load_state(const partition_bulk_load_state& val) { + this->bulk_load_state = val; +} + +uint32_t group_bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->files.size())); - std::vector::const_iterator _iter675; - for (_iter675 = this->files.begin(); _iter675 != this->files.end(); ++_iter675) { - xfer += (*_iter675).write(oprot); - } - xfer += oprot->writeListEnd(); + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast716; + xfer += iprot->readI32(ecast716); + this->status = (bulk_load_status::type)ecast716; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->bulk_load_state.read(iprot); + this->__isset.bulk_load_state = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - xfer += oprot->writeFieldEnd(); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} - xfer += oprot->writeFieldBegin("file_total_size", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->file_total_size); - xfer += oprot->writeFieldEnd(); +uint32_t group_bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("group_bulk_load_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("bulk_load_state", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->bulk_load_state.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(bulk_load_metadata &a, bulk_load_metadata &b) -{ - using ::std::swap; - swap(a.files, b.files); - swap(a.file_total_size, b.file_total_size); - swap(a.__isset, b.__isset); +void swap(group_bulk_load_response &a, group_bulk_load_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.status, b.status); + swap(a.bulk_load_state, b.bulk_load_state); + swap(a.__isset, b.__isset); } -bulk_load_metadata::bulk_load_metadata(const bulk_load_metadata &other676) -{ - files = other676.files; - file_total_size = other676.file_total_size; - __isset = other676.__isset; +group_bulk_load_response::group_bulk_load_response(const group_bulk_load_response& other717) { + err = other717.err; + status = other717.status; + bulk_load_state = other717.bulk_load_state; + __isset = other717.__isset; } -bulk_load_metadata::bulk_load_metadata(bulk_load_metadata &&other677) -{ - files = std::move(other677.files); - file_total_size = std::move(other677.file_total_size); - __isset = std::move(other677.__isset); +group_bulk_load_response::group_bulk_load_response( group_bulk_load_response&& other718) { + err = std::move(other718.err); + status = std::move(other718.status); + bulk_load_state = std::move(other718.bulk_load_state); + __isset = std::move(other718.__isset); } -bulk_load_metadata &bulk_load_metadata::operator=(const bulk_load_metadata &other678) -{ - files = other678.files; - file_total_size = other678.file_total_size; - __isset = other678.__isset; - return *this; +group_bulk_load_response& group_bulk_load_response::operator=(const group_bulk_load_response& other719) { + err = other719.err; + status = other719.status; + bulk_load_state = other719.bulk_load_state; + __isset = other719.__isset; + return *this; } -bulk_load_metadata &bulk_load_metadata::operator=(bulk_load_metadata &&other679) -{ - files = std::move(other679.files); - file_total_size = std::move(other679.file_total_size); - __isset = std::move(other679.__isset); - return *this; +group_bulk_load_response& group_bulk_load_response::operator=(group_bulk_load_response&& other720) { + err = std::move(other720.err); + status = std::move(other720.status); + bulk_load_state = std::move(other720.bulk_load_state); + __isset = std::move(other720.__isset); + return *this; } -void bulk_load_metadata::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "bulk_load_metadata("; - out << "files=" << to_string(files); - out << ", " - << "file_total_size=" << to_string(file_total_size); - out << ")"; +void group_bulk_load_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "group_bulk_load_response("; + out << "err=" << to_string(err); + out << ", " << "status=" << to_string(status); + out << ", " << "bulk_load_state=" << to_string(bulk_load_state); + out << ")"; } -start_bulk_load_request::~start_bulk_load_request() throw() {} -void start_bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void start_bulk_load_request::__set_cluster_name(const std::string &val) -{ - this->cluster_name = val; +ingestion_request::~ingestion_request() throw() { } -void start_bulk_load_request::__set_file_provider_type(const std::string &val) -{ - this->file_provider_type = val; -} -void start_bulk_load_request::__set_remote_root_path(const std::string &val) -{ - this->remote_root_path = val; +void ingestion_request::__set_app_name(const std::string& val) { + this->app_name = val; } -uint32_t start_bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cluster_name); - this->__isset.cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->file_provider_type); - this->__isset.file_provider_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_root_path); - this->__isset.remote_root_path = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; +void ingestion_request::__set_metadata(const bulk_load_metadata& val) { + this->metadata = val; } -uint32_t start_bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("start_bulk_load_request"); +uint32_t ingestion_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->cluster_name); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("file_provider_type", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->file_provider_type); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->remote_root_path); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(start_bulk_load_request &a, start_bulk_load_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.cluster_name, b.cluster_name); - swap(a.file_provider_type, b.file_provider_type); - swap(a.remote_root_path, b.remote_root_path); - swap(a.__isset, b.__isset); -} - -start_bulk_load_request::start_bulk_load_request(const start_bulk_load_request &other680) -{ - app_name = other680.app_name; - cluster_name = other680.cluster_name; - file_provider_type = other680.file_provider_type; - remote_root_path = other680.remote_root_path; - __isset = other680.__isset; -} -start_bulk_load_request::start_bulk_load_request(start_bulk_load_request &&other681) -{ - app_name = std::move(other681.app_name); - cluster_name = std::move(other681.cluster_name); - file_provider_type = std::move(other681.file_provider_type); - remote_root_path = std::move(other681.remote_root_path); - __isset = std::move(other681.__isset); -} -start_bulk_load_request &start_bulk_load_request::operator=(const start_bulk_load_request &other682) -{ - app_name = other682.app_name; - cluster_name = other682.cluster_name; - file_provider_type = other682.file_provider_type; - remote_root_path = other682.remote_root_path; - __isset = other682.__isset; - return *this; -} -start_bulk_load_request &start_bulk_load_request::operator=(start_bulk_load_request &&other683) -{ - app_name = std::move(other683.app_name); - cluster_name = std::move(other683.cluster_name); - file_provider_type = std::move(other683.file_provider_type); - remote_root_path = std::move(other683.remote_root_path); - __isset = std::move(other683.__isset); - return *this; -} -void start_bulk_load_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "start_bulk_load_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "cluster_name=" << to_string(cluster_name); - out << ", " - << "file_provider_type=" << to_string(file_provider_type); - out << ", " - << "remote_root_path=" << to_string(remote_root_path); - out << ")"; -} - -start_bulk_load_response::~start_bulk_load_response() throw() {} - -void start_bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void start_bulk_load_response::__set_hint_msg(const std::string &val) { this->hint_msg = val; } - -uint32_t start_bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->metadata.read(iprot); + this->__isset.metadata = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t start_bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("start_bulk_load_response"); +uint32_t ingestion_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ingestion_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_msg); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->metadata.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(start_bulk_load_response &a, start_bulk_load_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); +void swap(ingestion_request &a, ingestion_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.metadata, b.metadata); + swap(a.__isset, b.__isset); } -start_bulk_load_response::start_bulk_load_response(const start_bulk_load_response &other684) -{ - err = other684.err; - hint_msg = other684.hint_msg; - __isset = other684.__isset; +ingestion_request::ingestion_request(const ingestion_request& other721) { + app_name = other721.app_name; + metadata = other721.metadata; + __isset = other721.__isset; } -start_bulk_load_response::start_bulk_load_response(start_bulk_load_response &&other685) -{ - err = std::move(other685.err); - hint_msg = std::move(other685.hint_msg); - __isset = std::move(other685.__isset); +ingestion_request::ingestion_request( ingestion_request&& other722) { + app_name = std::move(other722.app_name); + metadata = std::move(other722.metadata); + __isset = std::move(other722.__isset); } -start_bulk_load_response &start_bulk_load_response:: -operator=(const start_bulk_load_response &other686) -{ - err = other686.err; - hint_msg = other686.hint_msg; - __isset = other686.__isset; - return *this; +ingestion_request& ingestion_request::operator=(const ingestion_request& other723) { + app_name = other723.app_name; + metadata = other723.metadata; + __isset = other723.__isset; + return *this; } -start_bulk_load_response &start_bulk_load_response::operator=(start_bulk_load_response &&other687) -{ - err = std::move(other687.err); - hint_msg = std::move(other687.hint_msg); - __isset = std::move(other687.__isset); - return *this; +ingestion_request& ingestion_request::operator=(ingestion_request&& other724) { + app_name = std::move(other724.app_name); + metadata = std::move(other724.metadata); + __isset = std::move(other724.__isset); + return *this; } -void start_bulk_load_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "start_bulk_load_response("; - out << "err=" << to_string(err); - out << ", " - << "hint_msg=" << to_string(hint_msg); - out << ")"; +void ingestion_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ingestion_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "metadata=" << to_string(metadata); + out << ")"; } -partition_bulk_load_state::~partition_bulk_load_state() throw() {} -void partition_bulk_load_state::__set_download_progress(const int32_t val) -{ - this->download_progress = val; - __isset.download_progress = true; +ingestion_response::~ingestion_response() throw() { } -void partition_bulk_load_state::__set_download_status(const ::dsn::error_code &val) -{ - this->download_status = val; - __isset.download_status = true; -} -void partition_bulk_load_state::__set_ingest_status(const ingestion_status::type val) -{ - this->ingest_status = val; - __isset.ingest_status = true; +void ingestion_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void partition_bulk_load_state::__set_is_cleaned_up(const bool val) -{ - this->is_cleaned_up = val; - __isset.is_cleaned_up = true; +void ingestion_response::__set_rocksdb_error(const int32_t val) { + this->rocksdb_error = val; } -void partition_bulk_load_state::__set_is_paused(const bool val) -{ - this->is_paused = val; - __isset.is_paused = true; -} +uint32_t ingestion_response::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t partition_bulk_load_state::read(::apache::thrift::protocol::TProtocol *iprot) -{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->download_progress); - this->__isset.download_progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->download_status.read(iprot); - this->__isset.download_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast688; - xfer += iprot->readI32(ecast688); - this->ingest_status = (ingestion_status::type)ecast688; - this->__isset.ingest_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_cleaned_up); - this->__isset.is_cleaned_up = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_paused); - this->__isset.is_paused = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t partition_bulk_load_state::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("partition_bulk_load_state"); - - if (this->__isset.download_progress) { - xfer += oprot->writeFieldBegin("download_progress", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->download_progress); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.download_status) { - xfer += oprot->writeFieldBegin("download_status", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->download_status.write(oprot); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.ingest_status) { - xfer += oprot->writeFieldBegin("ingest_status", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->ingest_status); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_cleaned_up) { - xfer += oprot->writeFieldBegin("is_cleaned_up", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool(this->is_cleaned_up); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_paused) { - xfer += oprot->writeFieldBegin("is_paused", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->is_paused); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(partition_bulk_load_state &a, partition_bulk_load_state &b) -{ - using ::std::swap; - swap(a.download_progress, b.download_progress); - swap(a.download_status, b.download_status); - swap(a.ingest_status, b.ingest_status); - swap(a.is_cleaned_up, b.is_cleaned_up); - swap(a.is_paused, b.is_paused); - swap(a.__isset, b.__isset); -} - -partition_bulk_load_state::partition_bulk_load_state(const partition_bulk_load_state &other689) -{ - download_progress = other689.download_progress; - download_status = other689.download_status; - ingest_status = other689.ingest_status; - is_cleaned_up = other689.is_cleaned_up; - is_paused = other689.is_paused; - __isset = other689.__isset; -} -partition_bulk_load_state::partition_bulk_load_state(partition_bulk_load_state &&other690) -{ - download_progress = std::move(other690.download_progress); - download_status = std::move(other690.download_status); - ingest_status = std::move(other690.ingest_status); - is_cleaned_up = std::move(other690.is_cleaned_up); - is_paused = std::move(other690.is_paused); - __isset = std::move(other690.__isset); -} -partition_bulk_load_state &partition_bulk_load_state:: -operator=(const partition_bulk_load_state &other691) -{ - download_progress = other691.download_progress; - download_status = other691.download_status; - ingest_status = other691.ingest_status; - is_cleaned_up = other691.is_cleaned_up; - is_paused = other691.is_paused; - __isset = other691.__isset; - return *this; -} -partition_bulk_load_state &partition_bulk_load_state:: -operator=(partition_bulk_load_state &&other692) -{ - download_progress = std::move(other692.download_progress); - download_status = std::move(other692.download_status); - ingest_status = std::move(other692.ingest_status); - is_cleaned_up = std::move(other692.is_cleaned_up); - is_paused = std::move(other692.is_paused); - __isset = std::move(other692.__isset); - return *this; -} -void partition_bulk_load_state::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "partition_bulk_load_state("; - out << "download_progress="; - (__isset.download_progress ? (out << to_string(download_progress)) : (out << "")); - out << ", " - << "download_status="; - (__isset.download_status ? (out << to_string(download_status)) : (out << "")); - out << ", " - << "ingest_status="; - (__isset.ingest_status ? (out << to_string(ingest_status)) : (out << "")); - out << ", " - << "is_cleaned_up="; - (__isset.is_cleaned_up ? (out << to_string(is_cleaned_up)) : (out << "")); - out << ", " - << "is_paused="; - (__isset.is_paused ? (out << to_string(is_paused)) : (out << "")); - out << ")"; -} - -bulk_load_request::~bulk_load_request() throw() {} - -void bulk_load_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void bulk_load_request::__set_primary_addr(const ::dsn::rpc_address &val) -{ - this->primary_addr = val; -} - -void bulk_load_request::__set_remote_provider_name(const std::string &val) -{ - this->remote_provider_name = val; -} - -void bulk_load_request::__set_cluster_name(const std::string &val) { this->cluster_name = val; } - -void bulk_load_request::__set_ballot(const int64_t val) { this->ballot = val; } - -void bulk_load_request::__set_meta_bulk_load_status(const bulk_load_status::type val) -{ - this->meta_bulk_load_status = val; -} - -void bulk_load_request::__set_query_bulk_load_metadata(const bool val) -{ - this->query_bulk_load_metadata = val; -} - -void bulk_load_request::__set_remote_root_path(const std::string &val) -{ - this->remote_root_path = val; -} - -uint32_t bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->primary_addr.read(iprot); - this->__isset.primary_addr = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_provider_name); - this->__isset.remote_provider_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cluster_name); - this->__isset.cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast693; - xfer += iprot->readI32(ecast693); - this->meta_bulk_load_status = (bulk_load_status::type)ecast693; - this->__isset.meta_bulk_load_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->query_bulk_load_metadata); - this->__isset.query_bulk_load_metadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_root_path); - this->__isset.remote_root_path = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->rocksdb_error); + this->__isset.rocksdb_error = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("bulk_load_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); +uint32_t ingestion_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ingestion_response"); - xfer += oprot->writeFieldBegin("primary_addr", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->primary_addr.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("remote_provider_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->remote_provider_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("rocksdb_error", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->rocksdb_error); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->cluster_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); +void swap(ingestion_response &a, ingestion_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.rocksdb_error, b.rocksdb_error); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("meta_bulk_load_status", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((int32_t)this->meta_bulk_load_status); - xfer += oprot->writeFieldEnd(); +ingestion_response::ingestion_response(const ingestion_response& other725) { + err = other725.err; + rocksdb_error = other725.rocksdb_error; + __isset = other725.__isset; +} +ingestion_response::ingestion_response( ingestion_response&& other726) { + err = std::move(other726.err); + rocksdb_error = std::move(other726.rocksdb_error); + __isset = std::move(other726.__isset); +} +ingestion_response& ingestion_response::operator=(const ingestion_response& other727) { + err = other727.err; + rocksdb_error = other727.rocksdb_error; + __isset = other727.__isset; + return *this; +} +ingestion_response& ingestion_response::operator=(ingestion_response&& other728) { + err = std::move(other728.err); + rocksdb_error = std::move(other728.rocksdb_error); + __isset = std::move(other728.__isset); + return *this; +} +void ingestion_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "ingestion_response("; + out << "err=" << to_string(err); + out << ", " << "rocksdb_error=" << to_string(rocksdb_error); + out << ")"; +} - xfer += - oprot->writeFieldBegin("query_bulk_load_metadata", ::apache::thrift::protocol::T_BOOL, 8); - xfer += oprot->writeBool(this->query_bulk_load_metadata); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 9); - xfer += oprot->writeString(this->remote_root_path); - xfer += oprot->writeFieldEnd(); +control_bulk_load_request::~control_bulk_load_request() throw() { +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(bulk_load_request &a, bulk_load_request &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.app_name, b.app_name); - swap(a.primary_addr, b.primary_addr); - swap(a.remote_provider_name, b.remote_provider_name); - swap(a.cluster_name, b.cluster_name); - swap(a.ballot, b.ballot); - swap(a.meta_bulk_load_status, b.meta_bulk_load_status); - swap(a.query_bulk_load_metadata, b.query_bulk_load_metadata); - swap(a.remote_root_path, b.remote_root_path); - swap(a.__isset, b.__isset); -} - -bulk_load_request::bulk_load_request(const bulk_load_request &other694) -{ - pid = other694.pid; - app_name = other694.app_name; - primary_addr = other694.primary_addr; - remote_provider_name = other694.remote_provider_name; - cluster_name = other694.cluster_name; - ballot = other694.ballot; - meta_bulk_load_status = other694.meta_bulk_load_status; - query_bulk_load_metadata = other694.query_bulk_load_metadata; - remote_root_path = other694.remote_root_path; - __isset = other694.__isset; -} -bulk_load_request::bulk_load_request(bulk_load_request &&other695) -{ - pid = std::move(other695.pid); - app_name = std::move(other695.app_name); - primary_addr = std::move(other695.primary_addr); - remote_provider_name = std::move(other695.remote_provider_name); - cluster_name = std::move(other695.cluster_name); - ballot = std::move(other695.ballot); - meta_bulk_load_status = std::move(other695.meta_bulk_load_status); - query_bulk_load_metadata = std::move(other695.query_bulk_load_metadata); - remote_root_path = std::move(other695.remote_root_path); - __isset = std::move(other695.__isset); -} -bulk_load_request &bulk_load_request::operator=(const bulk_load_request &other696) -{ - pid = other696.pid; - app_name = other696.app_name; - primary_addr = other696.primary_addr; - remote_provider_name = other696.remote_provider_name; - cluster_name = other696.cluster_name; - ballot = other696.ballot; - meta_bulk_load_status = other696.meta_bulk_load_status; - query_bulk_load_metadata = other696.query_bulk_load_metadata; - remote_root_path = other696.remote_root_path; - __isset = other696.__isset; - return *this; -} -bulk_load_request &bulk_load_request::operator=(bulk_load_request &&other697) -{ - pid = std::move(other697.pid); - app_name = std::move(other697.app_name); - primary_addr = std::move(other697.primary_addr); - remote_provider_name = std::move(other697.remote_provider_name); - cluster_name = std::move(other697.cluster_name); - ballot = std::move(other697.ballot); - meta_bulk_load_status = std::move(other697.meta_bulk_load_status); - query_bulk_load_metadata = std::move(other697.query_bulk_load_metadata); - remote_root_path = std::move(other697.remote_root_path); - __isset = std::move(other697.__isset); - return *this; -} -void bulk_load_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "bulk_load_request("; - out << "pid=" << to_string(pid); - out << ", " - << "app_name=" << to_string(app_name); - out << ", " - << "primary_addr=" << to_string(primary_addr); - out << ", " - << "remote_provider_name=" << to_string(remote_provider_name); - out << ", " - << "cluster_name=" << to_string(cluster_name); - out << ", " - << "ballot=" << to_string(ballot); - out << ", " - << "meta_bulk_load_status=" << to_string(meta_bulk_load_status); - out << ", " - << "query_bulk_load_metadata=" << to_string(query_bulk_load_metadata); - out << ", " - << "remote_root_path=" << to_string(remote_root_path); - out << ")"; -} - -bulk_load_response::~bulk_load_response() throw() {} - -void bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void bulk_load_response::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -void bulk_load_response::__set_app_name(const std::string &val) { this->app_name = val; } - -void bulk_load_response::__set_primary_bulk_load_status(const bulk_load_status::type val) -{ - this->primary_bulk_load_status = val; -} - -void bulk_load_response::__set_group_bulk_load_state( - const std::map<::dsn::rpc_address, partition_bulk_load_state> &val) -{ - this->group_bulk_load_state = val; -} - -void bulk_load_response::__set_metadata(const bulk_load_metadata &val) -{ - this->metadata = val; - __isset.metadata = true; -} - -void bulk_load_response::__set_total_download_progress(const int32_t val) -{ - this->total_download_progress = val; - __isset.total_download_progress = true; -} - -void bulk_load_response::__set_is_group_ingestion_finished(const bool val) -{ - this->is_group_ingestion_finished = val; - __isset.is_group_ingestion_finished = true; -} - -void bulk_load_response::__set_is_group_bulk_load_context_cleaned_up(const bool val) -{ - this->is_group_bulk_load_context_cleaned_up = val; - __isset.is_group_bulk_load_context_cleaned_up = true; -} - -void bulk_load_response::__set_is_group_bulk_load_paused(const bool val) -{ - this->is_group_bulk_load_paused = val; - __isset.is_group_bulk_load_paused = true; -} - -uint32_t bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast698; - xfer += iprot->readI32(ecast698); - this->primary_bulk_load_status = (bulk_load_status::type)ecast698; - this->__isset.primary_bulk_load_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->group_bulk_load_state.clear(); - uint32_t _size699; - ::apache::thrift::protocol::TType _ktype700; - ::apache::thrift::protocol::TType _vtype701; - xfer += iprot->readMapBegin(_ktype700, _vtype701, _size699); - uint32_t _i703; - for (_i703 = 0; _i703 < _size699; ++_i703) { - ::dsn::rpc_address _key704; - xfer += _key704.read(iprot); - partition_bulk_load_state &_val705 = this->group_bulk_load_state[_key704]; - xfer += _val705.read(iprot); - } - xfer += iprot->readMapEnd(); - } - this->__isset.group_bulk_load_state = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->metadata.read(iprot); - this->__isset.metadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->total_download_progress); - this->__isset.total_download_progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_group_ingestion_finished); - this->__isset.is_group_ingestion_finished = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_group_bulk_load_context_cleaned_up); - this->__isset.is_group_bulk_load_context_cleaned_up = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_group_bulk_load_paused); - this->__isset.is_group_bulk_load_paused = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); +void control_bulk_load_request::__set_app_name(const std::string& val) { + this->app_name = val; +} - return xfer; +void control_bulk_load_request::__set_type(const bulk_load_control_type::type val) { + this->type = val; } -uint32_t bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("bulk_load_response"); +uint32_t control_bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += - oprot->writeFieldBegin("primary_bulk_load_status", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->primary_bulk_load_status); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("group_bulk_load_state", ::apache::thrift::protocol::T_MAP, 5); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, - ::apache::thrift::protocol::T_STRUCT, - static_cast(this->group_bulk_load_state.size())); - std::map<::dsn::rpc_address, partition_bulk_load_state>::const_iterator _iter706; - for (_iter706 = this->group_bulk_load_state.begin(); - _iter706 != this->group_bulk_load_state.end(); - ++_iter706) { - xfer += _iter706->first.write(oprot); - xfer += _iter706->second.write(oprot); - } - xfer += oprot->writeMapEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - xfer += oprot->writeFieldEnd(); - - if (this->__isset.metadata) { - xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->metadata.write(oprot); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.total_download_progress) { - xfer += - oprot->writeFieldBegin("total_download_progress", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32(this->total_download_progress); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_group_ingestion_finished) { - xfer += oprot->writeFieldBegin( - "is_group_ingestion_finished", ::apache::thrift::protocol::T_BOOL, 8); - xfer += oprot->writeBool(this->is_group_ingestion_finished); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_group_bulk_load_context_cleaned_up) { - xfer += oprot->writeFieldBegin( - "is_group_bulk_load_context_cleaned_up", ::apache::thrift::protocol::T_BOOL, 9); - xfer += oprot->writeBool(this->is_group_bulk_load_context_cleaned_up); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_group_bulk_load_paused) { - xfer += oprot->writeFieldBegin( - "is_group_bulk_load_paused", ::apache::thrift::protocol::T_BOOL, 10); - xfer += oprot->writeBool(this->is_group_bulk_load_paused); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(bulk_load_response &a, bulk_load_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.pid, b.pid); - swap(a.app_name, b.app_name); - swap(a.primary_bulk_load_status, b.primary_bulk_load_status); - swap(a.group_bulk_load_state, b.group_bulk_load_state); - swap(a.metadata, b.metadata); - swap(a.total_download_progress, b.total_download_progress); - swap(a.is_group_ingestion_finished, b.is_group_ingestion_finished); - swap(a.is_group_bulk_load_context_cleaned_up, b.is_group_bulk_load_context_cleaned_up); - swap(a.is_group_bulk_load_paused, b.is_group_bulk_load_paused); - swap(a.__isset, b.__isset); -} - -bulk_load_response::bulk_load_response(const bulk_load_response &other707) -{ - err = other707.err; - pid = other707.pid; - app_name = other707.app_name; - primary_bulk_load_status = other707.primary_bulk_load_status; - group_bulk_load_state = other707.group_bulk_load_state; - metadata = other707.metadata; - total_download_progress = other707.total_download_progress; - is_group_ingestion_finished = other707.is_group_ingestion_finished; - is_group_bulk_load_context_cleaned_up = other707.is_group_bulk_load_context_cleaned_up; - is_group_bulk_load_paused = other707.is_group_bulk_load_paused; - __isset = other707.__isset; -} -bulk_load_response::bulk_load_response(bulk_load_response &&other708) -{ - err = std::move(other708.err); - pid = std::move(other708.pid); - app_name = std::move(other708.app_name); - primary_bulk_load_status = std::move(other708.primary_bulk_load_status); - group_bulk_load_state = std::move(other708.group_bulk_load_state); - metadata = std::move(other708.metadata); - total_download_progress = std::move(other708.total_download_progress); - is_group_ingestion_finished = std::move(other708.is_group_ingestion_finished); - is_group_bulk_load_context_cleaned_up = - std::move(other708.is_group_bulk_load_context_cleaned_up); - is_group_bulk_load_paused = std::move(other708.is_group_bulk_load_paused); - __isset = std::move(other708.__isset); -} -bulk_load_response &bulk_load_response::operator=(const bulk_load_response &other709) -{ - err = other709.err; - pid = other709.pid; - app_name = other709.app_name; - primary_bulk_load_status = other709.primary_bulk_load_status; - group_bulk_load_state = other709.group_bulk_load_state; - metadata = other709.metadata; - total_download_progress = other709.total_download_progress; - is_group_ingestion_finished = other709.is_group_ingestion_finished; - is_group_bulk_load_context_cleaned_up = other709.is_group_bulk_load_context_cleaned_up; - is_group_bulk_load_paused = other709.is_group_bulk_load_paused; - __isset = other709.__isset; - return *this; -} -bulk_load_response &bulk_load_response::operator=(bulk_load_response &&other710) -{ - err = std::move(other710.err); - pid = std::move(other710.pid); - app_name = std::move(other710.app_name); - primary_bulk_load_status = std::move(other710.primary_bulk_load_status); - group_bulk_load_state = std::move(other710.group_bulk_load_state); - metadata = std::move(other710.metadata); - total_download_progress = std::move(other710.total_download_progress); - is_group_ingestion_finished = std::move(other710.is_group_ingestion_finished); - is_group_bulk_load_context_cleaned_up = - std::move(other710.is_group_bulk_load_context_cleaned_up); - is_group_bulk_load_paused = std::move(other710.is_group_bulk_load_paused); - __isset = std::move(other710.__isset); - return *this; -} -void bulk_load_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "bulk_load_response("; - out << "err=" << to_string(err); - out << ", " - << "pid=" << to_string(pid); - out << ", " - << "app_name=" << to_string(app_name); - out << ", " - << "primary_bulk_load_status=" << to_string(primary_bulk_load_status); - out << ", " - << "group_bulk_load_state=" << to_string(group_bulk_load_state); - out << ", " - << "metadata="; - (__isset.metadata ? (out << to_string(metadata)) : (out << "")); - out << ", " - << "total_download_progress="; - (__isset.total_download_progress ? (out << to_string(total_download_progress)) - : (out << "")); - out << ", " - << "is_group_ingestion_finished="; - (__isset.is_group_ingestion_finished ? (out << to_string(is_group_ingestion_finished)) - : (out << "")); - out << ", " - << "is_group_bulk_load_context_cleaned_up="; - (__isset.is_group_bulk_load_context_cleaned_up - ? (out << to_string(is_group_bulk_load_context_cleaned_up)) - : (out << "")); - out << ", " - << "is_group_bulk_load_paused="; - (__isset.is_group_bulk_load_paused ? (out << to_string(is_group_bulk_load_paused)) - : (out << "")); - out << ")"; -} - -group_bulk_load_request::~group_bulk_load_request() throw() {} - -void group_bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void group_bulk_load_request::__set_target_address(const ::dsn::rpc_address &val) -{ - this->target_address = val; -} - -void group_bulk_load_request::__set_config(const replica_configuration &val) { this->config = val; } - -void group_bulk_load_request::__set_provider_name(const std::string &val) -{ - this->provider_name = val; -} - -void group_bulk_load_request::__set_cluster_name(const std::string &val) -{ - this->cluster_name = val; -} - -void group_bulk_load_request::__set_meta_bulk_load_status(const bulk_load_status::type val) -{ - this->meta_bulk_load_status = val; -} - -void group_bulk_load_request::__set_remote_root_path(const std::string &val) -{ - this->remote_root_path = val; -} - -uint32_t group_bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->target_address.read(iprot); - this->__isset.target_address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->provider_name); - this->__isset.provider_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cluster_name); - this->__isset.cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast711; - xfer += iprot->readI32(ecast711); - this->meta_bulk_load_status = (bulk_load_status::type)ecast711; - this->__isset.meta_bulk_load_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_root_path); - this->__isset.remote_root_path = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast729; + xfer += iprot->readI32(ecast729); + this->type = (bulk_load_control_type::type)ecast729; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t group_bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("group_bulk_load_request"); +uint32_t control_bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("control_bulk_load_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("target_address", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->target_address.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("provider_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->provider_name); - xfer += oprot->writeFieldEnd(); +void swap(control_bulk_load_request &a, control_bulk_load_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.type, b.type); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->cluster_name); - xfer += oprot->writeFieldEnd(); +control_bulk_load_request::control_bulk_load_request(const control_bulk_load_request& other730) { + app_name = other730.app_name; + type = other730.type; + __isset = other730.__isset; +} +control_bulk_load_request::control_bulk_load_request( control_bulk_load_request&& other731) { + app_name = std::move(other731.app_name); + type = std::move(other731.type); + __isset = std::move(other731.__isset); +} +control_bulk_load_request& control_bulk_load_request::operator=(const control_bulk_load_request& other732) { + app_name = other732.app_name; + type = other732.type; + __isset = other732.__isset; + return *this; +} +control_bulk_load_request& control_bulk_load_request::operator=(control_bulk_load_request&& other733) { + app_name = std::move(other733.app_name); + type = std::move(other733.type); + __isset = std::move(other733.__isset); + return *this; +} +void control_bulk_load_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "control_bulk_load_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "type=" << to_string(type); + out << ")"; +} - xfer += oprot->writeFieldBegin("meta_bulk_load_status", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((int32_t)this->meta_bulk_load_status); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->remote_root_path); - xfer += oprot->writeFieldEnd(); +control_bulk_load_response::~control_bulk_load_response() throw() { +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(group_bulk_load_request &a, group_bulk_load_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.target_address, b.target_address); - swap(a.config, b.config); - swap(a.provider_name, b.provider_name); - swap(a.cluster_name, b.cluster_name); - swap(a.meta_bulk_load_status, b.meta_bulk_load_status); - swap(a.remote_root_path, b.remote_root_path); - swap(a.__isset, b.__isset); -} - -group_bulk_load_request::group_bulk_load_request(const group_bulk_load_request &other712) -{ - app_name = other712.app_name; - target_address = other712.target_address; - config = other712.config; - provider_name = other712.provider_name; - cluster_name = other712.cluster_name; - meta_bulk_load_status = other712.meta_bulk_load_status; - remote_root_path = other712.remote_root_path; - __isset = other712.__isset; -} -group_bulk_load_request::group_bulk_load_request(group_bulk_load_request &&other713) -{ - app_name = std::move(other713.app_name); - target_address = std::move(other713.target_address); - config = std::move(other713.config); - provider_name = std::move(other713.provider_name); - cluster_name = std::move(other713.cluster_name); - meta_bulk_load_status = std::move(other713.meta_bulk_load_status); - remote_root_path = std::move(other713.remote_root_path); - __isset = std::move(other713.__isset); -} -group_bulk_load_request &group_bulk_load_request::operator=(const group_bulk_load_request &other714) -{ - app_name = other714.app_name; - target_address = other714.target_address; - config = other714.config; - provider_name = other714.provider_name; - cluster_name = other714.cluster_name; - meta_bulk_load_status = other714.meta_bulk_load_status; - remote_root_path = other714.remote_root_path; - __isset = other714.__isset; - return *this; -} -group_bulk_load_request &group_bulk_load_request::operator=(group_bulk_load_request &&other715) -{ - app_name = std::move(other715.app_name); - target_address = std::move(other715.target_address); - config = std::move(other715.config); - provider_name = std::move(other715.provider_name); - cluster_name = std::move(other715.cluster_name); - meta_bulk_load_status = std::move(other715.meta_bulk_load_status); - remote_root_path = std::move(other715.remote_root_path); - __isset = std::move(other715.__isset); - return *this; -} -void group_bulk_load_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "group_bulk_load_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "target_address=" << to_string(target_address); - out << ", " - << "config=" << to_string(config); - out << ", " - << "provider_name=" << to_string(provider_name); - out << ", " - << "cluster_name=" << to_string(cluster_name); - out << ", " - << "meta_bulk_load_status=" << to_string(meta_bulk_load_status); - out << ", " - << "remote_root_path=" << to_string(remote_root_path); - out << ")"; -} - -group_bulk_load_response::~group_bulk_load_response() throw() {} - -void group_bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void group_bulk_load_response::__set_status(const bulk_load_status::type val) -{ - this->status = val; -} - -void group_bulk_load_response::__set_bulk_load_state(const partition_bulk_load_state &val) -{ - this->bulk_load_state = val; -} - -uint32_t group_bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast716; - xfer += iprot->readI32(ecast716); - this->status = (bulk_load_status::type)ecast716; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->bulk_load_state.read(iprot); - this->__isset.bulk_load_state = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); +void control_bulk_load_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - return xfer; +void control_bulk_load_response::__set_hint_msg(const std::string& val) { + this->hint_msg = val; +__isset.hint_msg = true; } -uint32_t group_bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("group_bulk_load_response"); +uint32_t control_bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("bulk_load_state", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->bulk_load_state.write(oprot); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(group_bulk_load_response &a, group_bulk_load_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.status, b.status); - swap(a.bulk_load_state, b.bulk_load_state); - swap(a.__isset, b.__isset); -} - -group_bulk_load_response::group_bulk_load_response(const group_bulk_load_response &other717) -{ - err = other717.err; - status = other717.status; - bulk_load_state = other717.bulk_load_state; - __isset = other717.__isset; -} -group_bulk_load_response::group_bulk_load_response(group_bulk_load_response &&other718) -{ - err = std::move(other718.err); - status = std::move(other718.status); - bulk_load_state = std::move(other718.bulk_load_state); - __isset = std::move(other718.__isset); -} -group_bulk_load_response &group_bulk_load_response:: -operator=(const group_bulk_load_response &other719) -{ - err = other719.err; - status = other719.status; - bulk_load_state = other719.bulk_load_state; - __isset = other719.__isset; - return *this; -} -group_bulk_load_response &group_bulk_load_response::operator=(group_bulk_load_response &&other720) -{ - err = std::move(other720.err); - status = std::move(other720.status); - bulk_load_state = std::move(other720.bulk_load_state); - __isset = std::move(other720.__isset); - return *this; -} -void group_bulk_load_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "group_bulk_load_response("; - out << "err=" << to_string(err); - out << ", " - << "status=" << to_string(status); - out << ", " - << "bulk_load_state=" << to_string(bulk_load_state); - out << ")"; -} - -ingestion_request::~ingestion_request() throw() {} - -void ingestion_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void ingestion_request::__set_metadata(const bulk_load_metadata &val) { this->metadata = val; } - -uint32_t ingestion_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->metadata.read(iprot); - this->__isset.metadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t ingestion_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ingestion_request"); +uint32_t control_bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("control_bulk_load_response"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->metadata.write(oprot); + if (this->__isset.hint_msg) { + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_msg); xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ingestion_request &a, ingestion_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.metadata, b.metadata); - swap(a.__isset, b.__isset); -} - -ingestion_request::ingestion_request(const ingestion_request &other721) -{ - app_name = other721.app_name; - metadata = other721.metadata; - __isset = other721.__isset; -} -ingestion_request::ingestion_request(ingestion_request &&other722) -{ - app_name = std::move(other722.app_name); - metadata = std::move(other722.metadata); - __isset = std::move(other722.__isset); -} -ingestion_request &ingestion_request::operator=(const ingestion_request &other723) -{ - app_name = other723.app_name; - metadata = other723.metadata; - __isset = other723.__isset; - return *this; -} -ingestion_request &ingestion_request::operator=(ingestion_request &&other724) -{ - app_name = std::move(other724.app_name); - metadata = std::move(other724.metadata); - __isset = std::move(other724.__isset); - return *this; -} -void ingestion_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "ingestion_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "metadata=" << to_string(metadata); - out << ")"; -} - -ingestion_response::~ingestion_response() throw() {} - -void ingestion_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void ingestion_response::__set_rocksdb_error(const int32_t val) { this->rocksdb_error = val; } - -uint32_t ingestion_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->rocksdb_error); - this->__isset.rocksdb_error = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t ingestion_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ingestion_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("rocksdb_error", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->rocksdb_error); - xfer += oprot->writeFieldEnd(); +void swap(control_bulk_load_response &a, control_bulk_load_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ingestion_response &a, ingestion_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.rocksdb_error, b.rocksdb_error); - swap(a.__isset, b.__isset); -} - -ingestion_response::ingestion_response(const ingestion_response &other725) -{ - err = other725.err; - rocksdb_error = other725.rocksdb_error; - __isset = other725.__isset; -} -ingestion_response::ingestion_response(ingestion_response &&other726) -{ - err = std::move(other726.err); - rocksdb_error = std::move(other726.rocksdb_error); - __isset = std::move(other726.__isset); -} -ingestion_response &ingestion_response::operator=(const ingestion_response &other727) -{ - err = other727.err; - rocksdb_error = other727.rocksdb_error; - __isset = other727.__isset; - return *this; -} -ingestion_response &ingestion_response::operator=(ingestion_response &&other728) -{ - err = std::move(other728.err); - rocksdb_error = std::move(other728.rocksdb_error); - __isset = std::move(other728.__isset); - return *this; -} -void ingestion_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "ingestion_response("; - out << "err=" << to_string(err); - out << ", " - << "rocksdb_error=" << to_string(rocksdb_error); - out << ")"; -} - -control_bulk_load_request::~control_bulk_load_request() throw() {} - -void control_bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } - -void control_bulk_load_request::__set_type(const bulk_load_control_type::type val) -{ - this->type = val; -} - -uint32_t control_bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast729; - xfer += iprot->readI32(ecast729); - this->type = (bulk_load_control_type::type)ecast729; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +control_bulk_load_response::control_bulk_load_response(const control_bulk_load_response& other734) { + err = other734.err; + hint_msg = other734.hint_msg; + __isset = other734.__isset; +} +control_bulk_load_response::control_bulk_load_response( control_bulk_load_response&& other735) { + err = std::move(other735.err); + hint_msg = std::move(other735.hint_msg); + __isset = std::move(other735.__isset); +} +control_bulk_load_response& control_bulk_load_response::operator=(const control_bulk_load_response& other736) { + err = other736.err; + hint_msg = other736.hint_msg; + __isset = other736.__isset; + return *this; +} +control_bulk_load_response& control_bulk_load_response::operator=(control_bulk_load_response&& other737) { + err = std::move(other737.err); + hint_msg = std::move(other737.hint_msg); + __isset = std::move(other737.__isset); + return *this; +} +void control_bulk_load_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "control_bulk_load_response("; + out << "err=" << to_string(err); + out << ", " << "hint_msg="; (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); + out << ")"; +} - xfer += iprot->readStructEnd(); - return xfer; +query_bulk_load_request::~query_bulk_load_request() throw() { } -uint32_t control_bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("control_bulk_load_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); +void query_bulk_load_request::__set_app_name(const std::string& val) { + this->app_name = val; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(control_bulk_load_request &a, control_bulk_load_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.type, b.type); - swap(a.__isset, b.__isset); -} - -control_bulk_load_request::control_bulk_load_request(const control_bulk_load_request &other730) -{ - app_name = other730.app_name; - type = other730.type; - __isset = other730.__isset; -} -control_bulk_load_request::control_bulk_load_request(control_bulk_load_request &&other731) -{ - app_name = std::move(other731.app_name); - type = std::move(other731.type); - __isset = std::move(other731.__isset); -} -control_bulk_load_request &control_bulk_load_request:: -operator=(const control_bulk_load_request &other732) -{ - app_name = other732.app_name; - type = other732.type; - __isset = other732.__isset; - return *this; -} -control_bulk_load_request &control_bulk_load_request:: -operator=(control_bulk_load_request &&other733) -{ - app_name = std::move(other733.app_name); - type = std::move(other733.type); - __isset = std::move(other733.__isset); - return *this; -} -void control_bulk_load_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "control_bulk_load_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "type=" << to_string(type); - out << ")"; -} - -control_bulk_load_response::~control_bulk_load_response() throw() {} - -void control_bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void control_bulk_load_response::__set_hint_msg(const std::string &val) -{ - this->hint_msg = val; - __isset.hint_msg = true; -} - -uint32_t control_bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } +uint32_t query_bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructEnd(); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - return xfer; -} + xfer += iprot->readStructBegin(fname); -uint32_t control_bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("control_bulk_load_response"); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - if (this->__isset.hint_msg) { - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_msg); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(control_bulk_load_response &a, control_bulk_load_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); -} - -control_bulk_load_response::control_bulk_load_response(const control_bulk_load_response &other734) -{ - err = other734.err; - hint_msg = other734.hint_msg; - __isset = other734.__isset; -} -control_bulk_load_response::control_bulk_load_response(control_bulk_load_response &&other735) -{ - err = std::move(other735.err); - hint_msg = std::move(other735.hint_msg); - __isset = std::move(other735.__isset); -} -control_bulk_load_response &control_bulk_load_response:: -operator=(const control_bulk_load_response &other736) -{ - err = other736.err; - hint_msg = other736.hint_msg; - __isset = other736.__isset; - return *this; -} -control_bulk_load_response &control_bulk_load_response:: -operator=(control_bulk_load_response &&other737) -{ - err = std::move(other737.err); - hint_msg = std::move(other737.hint_msg); - __isset = std::move(other737.__isset); - return *this; -} -void control_bulk_load_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "control_bulk_load_response("; - out << "err=" << to_string(err); - out << ", " - << "hint_msg="; - (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); - out << ")"; -} - -query_bulk_load_request::~query_bulk_load_request() throw() {} - -void query_bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } - -uint32_t query_bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_bulk_load_request"); +uint32_t query_bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_bulk_load_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(query_bulk_load_request &a, query_bulk_load_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.__isset, b.__isset); +void swap(query_bulk_load_request &a, query_bulk_load_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.__isset, b.__isset); } -query_bulk_load_request::query_bulk_load_request(const query_bulk_load_request &other738) -{ - app_name = other738.app_name; - __isset = other738.__isset; +query_bulk_load_request::query_bulk_load_request(const query_bulk_load_request& other738) { + app_name = other738.app_name; + __isset = other738.__isset; } -query_bulk_load_request::query_bulk_load_request(query_bulk_load_request &&other739) -{ - app_name = std::move(other739.app_name); - __isset = std::move(other739.__isset); +query_bulk_load_request::query_bulk_load_request( query_bulk_load_request&& other739) { + app_name = std::move(other739.app_name); + __isset = std::move(other739.__isset); } -query_bulk_load_request &query_bulk_load_request::operator=(const query_bulk_load_request &other740) -{ - app_name = other740.app_name; - __isset = other740.__isset; - return *this; +query_bulk_load_request& query_bulk_load_request::operator=(const query_bulk_load_request& other740) { + app_name = other740.app_name; + __isset = other740.__isset; + return *this; } -query_bulk_load_request &query_bulk_load_request::operator=(query_bulk_load_request &&other741) -{ - app_name = std::move(other741.app_name); - __isset = std::move(other741.__isset); - return *this; +query_bulk_load_request& query_bulk_load_request::operator=(query_bulk_load_request&& other741) { + app_name = std::move(other741.app_name); + __isset = std::move(other741.__isset); + return *this; } -void query_bulk_load_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_bulk_load_request("; - out << "app_name=" << to_string(app_name); - out << ")"; +void query_bulk_load_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_bulk_load_request("; + out << "app_name=" << to_string(app_name); + out << ")"; } -query_bulk_load_response::~query_bulk_load_response() throw() {} -void query_bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } +query_bulk_load_response::~query_bulk_load_response() throw() { +} -void query_bulk_load_response::__set_app_name(const std::string &val) { this->app_name = val; } -void query_bulk_load_response::__set_app_status(const bulk_load_status::type val) -{ - this->app_status = val; +void query_bulk_load_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void query_bulk_load_response::__set_partitions_status( - const std::vector &val) -{ - this->partitions_status = val; +void query_bulk_load_response::__set_app_name(const std::string& val) { + this->app_name = val; } -void query_bulk_load_response::__set_max_replica_count(const int32_t val) -{ - this->max_replica_count = val; +void query_bulk_load_response::__set_app_status(const bulk_load_status::type val) { + this->app_status = val; } -void query_bulk_load_response::__set_bulk_load_states( - const std::vector> &val) -{ - this->bulk_load_states = val; +void query_bulk_load_response::__set_partitions_status(const std::vector & val) { + this->partitions_status = val; } -void query_bulk_load_response::__set_hint_msg(const std::string &val) -{ - this->hint_msg = val; - __isset.hint_msg = true; +void query_bulk_load_response::__set_max_replica_count(const int32_t val) { + this->max_replica_count = val; } -uint32_t query_bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void query_bulk_load_response::__set_bulk_load_states(const std::vector > & val) { + this->bulk_load_states = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +void query_bulk_load_response::__set_hint_msg(const std::string& val) { + this->hint_msg = val; +__isset.hint_msg = true; +} - xfer += iprot->readStructBegin(fname); +uint32_t query_bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { - using ::apache::thrift::protocol::TProtocolException; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast742; - xfer += iprot->readI32(ecast742); - this->app_status = (bulk_load_status::type)ecast742; - this->__isset.app_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partitions_status.clear(); - uint32_t _size743; - ::apache::thrift::protocol::TType _etype746; - xfer += iprot->readListBegin(_etype746, _size743); - this->partitions_status.resize(_size743); - uint32_t _i747; - for (_i747 = 0; _i747 < _size743; ++_i747) { - int32_t ecast748; - xfer += iprot->readI32(ecast748); - this->partitions_status[_i747] = (bulk_load_status::type)ecast748; - } - xfer += iprot->readListEnd(); - } - this->__isset.partitions_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->max_replica_count); - this->__isset.max_replica_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_LIST) { + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast742; + xfer += iprot->readI32(ecast742); + this->app_status = (bulk_load_status::type)ecast742; + this->__isset.app_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions_status.clear(); + uint32_t _size743; + ::apache::thrift::protocol::TType _etype746; + xfer += iprot->readListBegin(_etype746, _size743); + this->partitions_status.resize(_size743); + uint32_t _i747; + for (_i747 = 0; _i747 < _size743; ++_i747) + { + int32_t ecast748; + xfer += iprot->readI32(ecast748); + this->partitions_status[_i747] = (bulk_load_status::type)ecast748; + } + xfer += iprot->readListEnd(); + } + this->__isset.partitions_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->max_replica_count); + this->__isset.max_replica_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->bulk_load_states.clear(); + uint32_t _size749; + ::apache::thrift::protocol::TType _etype752; + xfer += iprot->readListBegin(_etype752, _size749); + this->bulk_load_states.resize(_size749); + uint32_t _i753; + for (_i753 = 0; _i753 < _size749; ++_i753) + { + { + this->bulk_load_states[_i753].clear(); + uint32_t _size754; + ::apache::thrift::protocol::TType _ktype755; + ::apache::thrift::protocol::TType _vtype756; + xfer += iprot->readMapBegin(_ktype755, _vtype756, _size754); + uint32_t _i758; + for (_i758 = 0; _i758 < _size754; ++_i758) { - this->bulk_load_states.clear(); - uint32_t _size749; - ::apache::thrift::protocol::TType _etype752; - xfer += iprot->readListBegin(_etype752, _size749); - this->bulk_load_states.resize(_size749); - uint32_t _i753; - for (_i753 = 0; _i753 < _size749; ++_i753) { - { - this->bulk_load_states[_i753].clear(); - uint32_t _size754; - ::apache::thrift::protocol::TType _ktype755; - ::apache::thrift::protocol::TType _vtype756; - xfer += iprot->readMapBegin(_ktype755, _vtype756, _size754); - uint32_t _i758; - for (_i758 = 0; _i758 < _size754; ++_i758) { - ::dsn::rpc_address _key759; - xfer += _key759.read(iprot); - partition_bulk_load_state &_val760 = - this->bulk_load_states[_i753][_key759]; - xfer += _val760.read(iprot); - } - xfer += iprot->readMapEnd(); - } - } - xfer += iprot->readListEnd(); + ::dsn::rpc_address _key759; + xfer += _key759.read(iprot); + partition_bulk_load_state& _val760 = this->bulk_load_states[_i753][_key759]; + xfer += _val760.read(iprot); } - this->__isset.bulk_load_states = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); + xfer += iprot->readMapEnd(); + } + } + xfer += iprot->readListEnd(); + } + this->__isset.bulk_load_states = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_bulk_load_response"); +uint32_t query_bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_bulk_load_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_status", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->app_status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_status", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->app_status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partitions_status", ::apache::thrift::protocol::T_LIST, 4); + xfer += oprot->writeFieldBegin("partitions_status", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->partitions_status.size())); + std::vector ::const_iterator _iter761; + for (_iter761 = this->partitions_status.begin(); _iter761 != this->partitions_status.end(); ++_iter761) + { + xfer += oprot->writeI32((int32_t)(*_iter761)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->max_replica_count); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("bulk_load_states", ::apache::thrift::protocol::T_LIST, 6); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_MAP, static_cast(this->bulk_load_states.size())); + std::vector > ::const_iterator _iter762; + for (_iter762 = this->bulk_load_states.begin(); _iter762 != this->bulk_load_states.end(); ++_iter762) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, - static_cast(this->partitions_status.size())); - std::vector::const_iterator _iter761; - for (_iter761 = this->partitions_status.begin(); _iter761 != this->partitions_status.end(); - ++_iter761) { - xfer += oprot->writeI32((int32_t)(*_iter761)); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, ::apache::thrift::protocol::T_STRUCT, static_cast((*_iter762).size())); + std::map< ::dsn::rpc_address, partition_bulk_load_state> ::const_iterator _iter763; + for (_iter763 = (*_iter762).begin(); _iter763 != (*_iter762).end(); ++_iter763) + { + xfer += _iter763->first.write(oprot); + xfer += _iter763->second.write(oprot); } - xfer += oprot->writeListEnd(); + xfer += oprot->writeMapEnd(); + } } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->max_replica_count); + if (this->__isset.hint_msg) { + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->hint_msg); xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("bulk_load_states", ::apache::thrift::protocol::T_LIST, 6); +void swap(query_bulk_load_response &a, query_bulk_load_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.app_name, b.app_name); + swap(a.app_status, b.app_status); + swap(a.partitions_status, b.partitions_status); + swap(a.max_replica_count, b.max_replica_count); + swap(a.bulk_load_states, b.bulk_load_states); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} + +query_bulk_load_response::query_bulk_load_response(const query_bulk_load_response& other764) { + err = other764.err; + app_name = other764.app_name; + app_status = other764.app_status; + partitions_status = other764.partitions_status; + max_replica_count = other764.max_replica_count; + bulk_load_states = other764.bulk_load_states; + hint_msg = other764.hint_msg; + __isset = other764.__isset; +} +query_bulk_load_response::query_bulk_load_response( query_bulk_load_response&& other765) { + err = std::move(other765.err); + app_name = std::move(other765.app_name); + app_status = std::move(other765.app_status); + partitions_status = std::move(other765.partitions_status); + max_replica_count = std::move(other765.max_replica_count); + bulk_load_states = std::move(other765.bulk_load_states); + hint_msg = std::move(other765.hint_msg); + __isset = std::move(other765.__isset); +} +query_bulk_load_response& query_bulk_load_response::operator=(const query_bulk_load_response& other766) { + err = other766.err; + app_name = other766.app_name; + app_status = other766.app_status; + partitions_status = other766.partitions_status; + max_replica_count = other766.max_replica_count; + bulk_load_states = other766.bulk_load_states; + hint_msg = other766.hint_msg; + __isset = other766.__isset; + return *this; +} +query_bulk_load_response& query_bulk_load_response::operator=(query_bulk_load_response&& other767) { + err = std::move(other767.err); + app_name = std::move(other767.app_name); + app_status = std::move(other767.app_status); + partitions_status = std::move(other767.partitions_status); + max_replica_count = std::move(other767.max_replica_count); + bulk_load_states = std::move(other767.bulk_load_states); + hint_msg = std::move(other767.hint_msg); + __isset = std::move(other767.__isset); + return *this; +} +void query_bulk_load_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "query_bulk_load_response("; + out << "err=" << to_string(err); + out << ", " << "app_name=" << to_string(app_name); + out << ", " << "app_status=" << to_string(app_status); + out << ", " << "partitions_status=" << to_string(partitions_status); + out << ", " << "max_replica_count=" << to_string(max_replica_count); + out << ", " << "bulk_load_states=" << to_string(bulk_load_states); + out << ", " << "hint_msg="; (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); + out << ")"; +} + + +detect_hotkey_request::~detect_hotkey_request() throw() { +} + + +void detect_hotkey_request::__set_type(const hotkey_type::type val) { + this->type = val; +} + +void detect_hotkey_request::__set_action(const detect_action::type val) { + this->action = val; +} + +void detect_hotkey_request::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} + +uint32_t detect_hotkey_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_MAP, - static_cast(this->bulk_load_states.size())); - std::vector>::const_iterator - _iter762; - for (_iter762 = this->bulk_load_states.begin(); _iter762 != this->bulk_load_states.end(); - ++_iter762) { - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, - ::apache::thrift::protocol::T_STRUCT, - static_cast((*_iter762).size())); - std::map<::dsn::rpc_address, partition_bulk_load_state>::const_iterator _iter763; - for (_iter763 = (*_iter762).begin(); _iter763 != (*_iter762).end(); ++_iter763) { - xfer += _iter763->first.write(oprot); - xfer += _iter763->second.write(oprot); - } - xfer += oprot->writeMapEnd(); - } - } - xfer += oprot->writeListEnd(); + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast768; + xfer += iprot->readI32(ecast768); + this->type = (hotkey_type::type)ecast768; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast769; + xfer += iprot->readI32(ecast769); + this->action = (detect_action::type)ecast769; + this->__isset.action = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - xfer += oprot->writeFieldEnd(); + xfer += iprot->readFieldEnd(); + } - if (this->__isset.hint_msg) { - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->hint_msg); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_bulk_load_response &a, query_bulk_load_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.app_name, b.app_name); - swap(a.app_status, b.app_status); - swap(a.partitions_status, b.partitions_status); - swap(a.max_replica_count, b.max_replica_count); - swap(a.bulk_load_states, b.bulk_load_states); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); -} - -query_bulk_load_response::query_bulk_load_response(const query_bulk_load_response &other764) -{ - err = other764.err; - app_name = other764.app_name; - app_status = other764.app_status; - partitions_status = other764.partitions_status; - max_replica_count = other764.max_replica_count; - bulk_load_states = other764.bulk_load_states; - hint_msg = other764.hint_msg; - __isset = other764.__isset; -} -query_bulk_load_response::query_bulk_load_response(query_bulk_load_response &&other765) -{ - err = std::move(other765.err); - app_name = std::move(other765.app_name); - app_status = std::move(other765.app_status); - partitions_status = std::move(other765.partitions_status); - max_replica_count = std::move(other765.max_replica_count); - bulk_load_states = std::move(other765.bulk_load_states); - hint_msg = std::move(other765.hint_msg); - __isset = std::move(other765.__isset); -} -query_bulk_load_response &query_bulk_load_response:: -operator=(const query_bulk_load_response &other766) -{ - err = other766.err; - app_name = other766.app_name; - app_status = other766.app_status; - partitions_status = other766.partitions_status; - max_replica_count = other766.max_replica_count; - bulk_load_states = other766.bulk_load_states; - hint_msg = other766.hint_msg; - __isset = other766.__isset; - return *this; -} -query_bulk_load_response &query_bulk_load_response::operator=(query_bulk_load_response &&other767) -{ - err = std::move(other767.err); - app_name = std::move(other767.app_name); - app_status = std::move(other767.app_status); - partitions_status = std::move(other767.partitions_status); - max_replica_count = std::move(other767.max_replica_count); - bulk_load_states = std::move(other767.bulk_load_states); - hint_msg = std::move(other767.hint_msg); - __isset = std::move(other767.__isset); - return *this; -} -void query_bulk_load_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "query_bulk_load_response("; - out << "err=" << to_string(err); - out << ", " - << "app_name=" << to_string(app_name); - out << ", " - << "app_status=" << to_string(app_status); - out << ", " - << "partitions_status=" << to_string(partitions_status); - out << ", " - << "max_replica_count=" << to_string(max_replica_count); - out << ", " - << "bulk_load_states=" << to_string(bulk_load_states); - out << ", " - << "hint_msg="; - (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); - out << ")"; -} - -detect_hotkey_request::~detect_hotkey_request() throw() {} - -void detect_hotkey_request::__set_type(const hotkey_type::type val) { this->type = val; } - -void detect_hotkey_request::__set_action(const detect_action::type val) { this->action = val; } - -void detect_hotkey_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - -uint32_t detect_hotkey_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast768; - xfer += iprot->readI32(ecast768); - this->type = (hotkey_type::type)ecast768; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast769; - xfer += iprot->readI32(ecast769); - this->action = (detect_action::type)ecast769; - this->__isset.action = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += iprot->readStructEnd(); + + return xfer; +} - xfer += iprot->readStructEnd(); +uint32_t detect_hotkey_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("detect_hotkey_request"); - return xfer; + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("action", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->action); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t detect_hotkey_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("detect_hotkey_request"); +void swap(detect_hotkey_request &a, detect_hotkey_request &b) { + using ::std::swap; + swap(a.type, b.type); + swap(a.action, b.action); + swap(a.pid, b.pid); + swap(a.__isset, b.__isset); +} - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); +detect_hotkey_request::detect_hotkey_request(const detect_hotkey_request& other770) { + type = other770.type; + action = other770.action; + pid = other770.pid; + __isset = other770.__isset; +} +detect_hotkey_request::detect_hotkey_request( detect_hotkey_request&& other771) { + type = std::move(other771.type); + action = std::move(other771.action); + pid = std::move(other771.pid); + __isset = std::move(other771.__isset); +} +detect_hotkey_request& detect_hotkey_request::operator=(const detect_hotkey_request& other772) { + type = other772.type; + action = other772.action; + pid = other772.pid; + __isset = other772.__isset; + return *this; +} +detect_hotkey_request& detect_hotkey_request::operator=(detect_hotkey_request&& other773) { + type = std::move(other773.type); + action = std::move(other773.action); + pid = std::move(other773.pid); + __isset = std::move(other773.__isset); + return *this; +} +void detect_hotkey_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "detect_hotkey_request("; + out << "type=" << to_string(type); + out << ", " << "action=" << to_string(action); + out << ", " << "pid=" << to_string(pid); + out << ")"; +} - xfer += oprot->writeFieldBegin("action", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->action); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); +detect_hotkey_response::~detect_hotkey_response() throw() { +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(detect_hotkey_request &a, detect_hotkey_request &b) -{ - using ::std::swap; - swap(a.type, b.type); - swap(a.action, b.action); - swap(a.pid, b.pid); - swap(a.__isset, b.__isset); -} - -detect_hotkey_request::detect_hotkey_request(const detect_hotkey_request &other770) -{ - type = other770.type; - action = other770.action; - pid = other770.pid; - __isset = other770.__isset; -} -detect_hotkey_request::detect_hotkey_request(detect_hotkey_request &&other771) -{ - type = std::move(other771.type); - action = std::move(other771.action); - pid = std::move(other771.pid); - __isset = std::move(other771.__isset); -} -detect_hotkey_request &detect_hotkey_request::operator=(const detect_hotkey_request &other772) -{ - type = other772.type; - action = other772.action; - pid = other772.pid; - __isset = other772.__isset; - return *this; -} -detect_hotkey_request &detect_hotkey_request::operator=(detect_hotkey_request &&other773) -{ - type = std::move(other773.type); - action = std::move(other773.action); - pid = std::move(other773.pid); - __isset = std::move(other773.__isset); - return *this; -} -void detect_hotkey_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "detect_hotkey_request("; - out << "type=" << to_string(type); - out << ", " - << "action=" << to_string(action); - out << ", " - << "pid=" << to_string(pid); - out << ")"; -} - -detect_hotkey_response::~detect_hotkey_response() throw() {} - -void detect_hotkey_response::__set_err(const ::dsn::error_code &val) { this->err = val; } - -void detect_hotkey_response::__set_err_hint(const std::string &val) -{ - this->err_hint = val; - __isset.err_hint = true; -} - -uint32_t detect_hotkey_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->err_hint); - this->__isset.err_hint = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); +void detect_hotkey_response::__set_err(const ::dsn::error_code& val) { + this->err = val; +} - return xfer; +void detect_hotkey_response::__set_err_hint(const std::string& val) { + this->err_hint = val; +__isset.err_hint = true; } -uint32_t detect_hotkey_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("detect_hotkey_response"); +void detect_hotkey_response::__set_hotkey_result(const std::string& val) { + this->hotkey_result = val; +__isset.hotkey_result = true; +} - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t detect_hotkey_response::read(::apache::thrift::protocol::TProtocol* iprot) { - if (this->__isset.err_hint) { - xfer += oprot->writeFieldBegin("err_hint", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->err_hint); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(detect_hotkey_response &a, detect_hotkey_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.err_hint, b.err_hint); - swap(a.__isset, b.__isset); -} - -detect_hotkey_response::detect_hotkey_response(const detect_hotkey_response &other774) -{ - err = other774.err; - err_hint = other774.err_hint; - __isset = other774.__isset; -} -detect_hotkey_response::detect_hotkey_response(detect_hotkey_response &&other775) -{ - err = std::move(other775.err); - err_hint = std::move(other775.err_hint); - __isset = std::move(other775.__isset); -} -detect_hotkey_response &detect_hotkey_response::operator=(const detect_hotkey_response &other776) -{ - err = other776.err; - err_hint = other776.err_hint; - __isset = other776.__isset; - return *this; -} -detect_hotkey_response &detect_hotkey_response::operator=(detect_hotkey_response &&other777) -{ - err = std::move(other777.err); - err_hint = std::move(other777.err_hint); - __isset = std::move(other777.__isset); - return *this; -} -void detect_hotkey_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "detect_hotkey_response("; - out << "err=" << to_string(err); - out << ", " - << "err_hint="; - (__isset.err_hint ? (out << to_string(err_hint)) : (out << "")); - out << ")"; -} -} -} // namespace + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->err_hint); + this->__isset.err_hint = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hotkey_result); + this->__isset.hotkey_result = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t detect_hotkey_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("detect_hotkey_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.err_hint) { + xfer += oprot->writeFieldBegin("err_hint", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->err_hint); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.hotkey_result) { + xfer += oprot->writeFieldBegin("hotkey_result", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->hotkey_result); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(detect_hotkey_response &a, detect_hotkey_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.err_hint, b.err_hint); + swap(a.hotkey_result, b.hotkey_result); + swap(a.__isset, b.__isset); +} + +detect_hotkey_response::detect_hotkey_response(const detect_hotkey_response& other774) { + err = other774.err; + err_hint = other774.err_hint; + hotkey_result = other774.hotkey_result; + __isset = other774.__isset; +} +detect_hotkey_response::detect_hotkey_response( detect_hotkey_response&& other775) { + err = std::move(other775.err); + err_hint = std::move(other775.err_hint); + hotkey_result = std::move(other775.hotkey_result); + __isset = std::move(other775.__isset); +} +detect_hotkey_response& detect_hotkey_response::operator=(const detect_hotkey_response& other776) { + err = other776.err; + err_hint = other776.err_hint; + hotkey_result = other776.hotkey_result; + __isset = other776.__isset; + return *this; +} +detect_hotkey_response& detect_hotkey_response::operator=(detect_hotkey_response&& other777) { + err = std::move(other777.err); + err_hint = std::move(other777.err_hint); + hotkey_result = std::move(other777.hotkey_result); + __isset = std::move(other777.__isset); + return *this; +} +void detect_hotkey_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "detect_hotkey_response("; + out << "err=" << to_string(err); + out << ", " << "err_hint="; (__isset.err_hint ? (out << to_string(err_hint)) : (out << "")); + out << ", " << "hotkey_result="; (__isset.hotkey_result ? (out << to_string(hotkey_result)) : (out << "")); + out << ")"; +} + +}} // namespace diff --git a/src/remote_cmd/command_types.cpp b/src/remote_cmd/command_types.cpp index c429a42f86..51b52d45b7 100644 --- a/src/remote_cmd/command_types.cpp +++ b/src/remote_cmd/command_types.cpp @@ -11,144 +11,143 @@ #include -namespace dsn { -namespace dist { -namespace cmd { +namespace dsn { namespace dist { namespace cmd { -command::~command() throw() {} -void command::__set_cmd(const std::string &val) { this->cmd = val; } +command::~command() throw() { +} + -void command::__set_arguments(const std::vector &val) { this->arguments = val; } +void command::__set_cmd(const std::string& val) { + this->cmd = val; +} -uint32_t command::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void command::__set_arguments(const std::vector & val) { + this->arguments = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t command::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cmd); + this->__isset.cmd = true; + } else { + xfer += iprot->skip(ftype); } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cmd); - this->__isset.cmd = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->arguments.clear(); - uint32_t _size0; - ::apache::thrift::protocol::TType _etype3; - xfer += iprot->readListBegin(_etype3, _size0); - this->arguments.resize(_size0); - uint32_t _i4; - for (_i4 = 0; _i4 < _size0; ++_i4) { - xfer += iprot->readString(this->arguments[_i4]); - } - xfer += iprot->readListEnd(); - } - this->__isset.arguments = true; - } else { - xfer += iprot->skip(ftype); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->arguments.clear(); + uint32_t _size0; + ::apache::thrift::protocol::TType _etype3; + xfer += iprot->readListBegin(_etype3, _size0); + this->arguments.resize(_size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) + { + xfer += iprot->readString(this->arguments[_i4]); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.arguments = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t command::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("command"); +uint32_t command::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("command"); - xfer += oprot->writeFieldBegin("cmd", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->cmd); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("cmd", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->cmd); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("arguments", ::apache::thrift::protocol::T_LIST, 2); + xfer += oprot->writeFieldBegin("arguments", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->arguments.size())); + std::vector ::const_iterator _iter5; + for (_iter5 = this->arguments.begin(); _iter5 != this->arguments.end(); ++_iter5) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, - static_cast(this->arguments.size())); - std::vector::const_iterator _iter5; - for (_iter5 = this->arguments.begin(); _iter5 != this->arguments.end(); ++_iter5) { - xfer += oprot->writeString((*_iter5)); - } - xfer += oprot->writeListEnd(); + xfer += oprot->writeString((*_iter5)); } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(command &a, command &b) -{ - using ::std::swap; - swap(a.cmd, b.cmd); - swap(a.arguments, b.arguments); - swap(a.__isset, b.__isset); +void swap(command &a, command &b) { + using ::std::swap; + swap(a.cmd, b.cmd); + swap(a.arguments, b.arguments); + swap(a.__isset, b.__isset); } -command::command(const command &other6) -{ - cmd = other6.cmd; - arguments = other6.arguments; - __isset = other6.__isset; +command::command(const command& other6) { + cmd = other6.cmd; + arguments = other6.arguments; + __isset = other6.__isset; } -command::command(command &&other7) -{ - cmd = std::move(other7.cmd); - arguments = std::move(other7.arguments); - __isset = std::move(other7.__isset); +command::command( command&& other7) { + cmd = std::move(other7.cmd); + arguments = std::move(other7.arguments); + __isset = std::move(other7.__isset); } -command &command::operator=(const command &other8) -{ - cmd = other8.cmd; - arguments = other8.arguments; - __isset = other8.__isset; - return *this; +command& command::operator=(const command& other8) { + cmd = other8.cmd; + arguments = other8.arguments; + __isset = other8.__isset; + return *this; } -command &command::operator=(command &&other9) -{ - cmd = std::move(other9.cmd); - arguments = std::move(other9.arguments); - __isset = std::move(other9.__isset); - return *this; +command& command::operator=(command&& other9) { + cmd = std::move(other9.cmd); + arguments = std::move(other9.arguments); + __isset = std::move(other9.__isset); + return *this; } -void command::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "command("; - out << "cmd=" << to_string(cmd); - out << ", " - << "arguments=" << to_string(arguments); - out << ")"; +void command::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "command("; + out << "cmd=" << to_string(cmd); + out << ", " << "arguments=" << to_string(arguments); + out << ")"; } -} -} -} // namespace + +}}} // namespace diff --git a/src/remote_cmd/command_types.h b/src/remote_cmd/command_types.h index 8e7c342c8f..6df2c230e0 100644 --- a/src/remote_cmd/command_types.h +++ b/src/remote_cmd/command_types.h @@ -16,65 +16,65 @@ #include -namespace dsn { -namespace dist { -namespace cmd { + +namespace dsn { namespace dist { namespace cmd { class command; -typedef struct _command__isset -{ - _command__isset() : cmd(false), arguments(false) {} - bool cmd : 1; - bool arguments : 1; +typedef struct _command__isset { + _command__isset() : cmd(false), arguments(false) {} + bool cmd :1; + bool arguments :1; } _command__isset; -class command -{ -public: - command(const command &); - command(command &&); - command &operator=(const command &); - command &operator=(command &&); - command() : cmd() {} +class command { + public: + + command(const command&); + command(command&&); + command& operator=(const command&); + command& operator=(command&&); + command() : cmd() { + } - virtual ~command() throw(); - std::string cmd; - std::vector arguments; + virtual ~command() throw(); + std::string cmd; + std::vector arguments; - _command__isset __isset; + _command__isset __isset; - void __set_cmd(const std::string &val); + void __set_cmd(const std::string& val); - void __set_arguments(const std::vector &val); + void __set_arguments(const std::vector & val); - bool operator==(const command &rhs) const - { - if (!(cmd == rhs.cmd)) - return false; - if (!(arguments == rhs.arguments)) - return false; - return true; - } - bool operator!=(const command &rhs) const { return !(*this == rhs); } + bool operator == (const command & rhs) const + { + if (!(cmd == rhs.cmd)) + return false; + if (!(arguments == rhs.arguments)) + return false; + return true; + } + bool operator != (const command &rhs) const { + return !(*this == rhs); + } - bool operator<(const command &) const; + bool operator < (const command & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(command &a, command &b); -inline std::ostream &operator<<(std::ostream &out, const command &obj) +inline std::ostream& operator<<(std::ostream& out, const command& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -} -} -} // namespace + +}}} // namespace #endif diff --git a/src/replica/replica_stub.cpp b/src/replica/replica_stub.cpp index a9e709d775..b8a35c2e44 100644 --- a/src/replica/replica_stub.cpp +++ b/src/replica/replica_stub.cpp @@ -717,11 +717,12 @@ void replica_stub::initialize(const replication_options &opts, bool clear /* = f if (now_time_ms < dsn::utils::process_start_millis() + delay_time_ms) { uint64_t delay = dsn::utils::process_start_millis() + delay_time_ms - now_time_ms; ddebug("delay for %" PRIu64 "ms to make failure detector timeout", delay); - tasking::enqueue(LPC_REPLICA_SERVER_DELAY_START, - &_tracker, - [this]() { this->initialize_start(); }, - 0, - std::chrono::milliseconds(delay)); + tasking::enqueue( + LPC_REPLICA_SERVER_DELAY_START, + &_tracker, + [this]() { this->initialize_start(); }, + 0, + std::chrono::milliseconds(delay)); } else { initialize_start(); } @@ -734,16 +735,16 @@ void replica_stub::initialize_start() { // start timer for configuration sync if (!_options.config_sync_disabled) { - _config_sync_timer_task = - tasking::enqueue_timer(LPC_QUERY_CONFIGURATION_ALL, - &_tracker, - [this]() { - zauto_lock l(_state_lock); - this->query_configuration_by_node(); - }, - std::chrono::milliseconds(_options.config_sync_interval_ms), - 0, - std::chrono::milliseconds(_options.config_sync_interval_ms)); + _config_sync_timer_task = tasking::enqueue_timer( + LPC_QUERY_CONFIGURATION_ALL, + &_tracker, + [this]() { + zauto_lock l(_state_lock); + this->query_configuration_by_node(); + }, + std::chrono::milliseconds(_options.config_sync_interval_ms), + 0, + std::chrono::milliseconds(_options.config_sync_interval_ms)); } #ifdef DSN_ENABLE_GPERF @@ -1308,15 +1309,16 @@ void replica_stub::on_node_query_reply(error_code err, int delay_ms = 500; ddebug("resend query node partitions request after %d ms for resp.err = ERR_BUSY", delay_ms); - _config_query_task = tasking::enqueue(LPC_QUERY_CONFIGURATION_ALL, - &_tracker, - [this]() { - zauto_lock l(_state_lock); - _config_query_task = nullptr; - this->query_configuration_by_node(); - }, - 0, - std::chrono::milliseconds(delay_ms)); + _config_query_task = tasking::enqueue( + LPC_QUERY_CONFIGURATION_ALL, + &_tracker, + [this]() { + zauto_lock l(_state_lock); + _config_query_task = nullptr; + this->query_configuration_by_node(); + }, + 0, + std::chrono::milliseconds(delay_ms)); return; } if (resp.err != ERR_OK) { @@ -1540,11 +1542,12 @@ void replica_stub::init_gc_for_test() { dassert(_options.gc_disabled, ""); - _gc_timer_task = tasking::enqueue(LPC_GARBAGE_COLLECT_LOGS_AND_REPLICAS, - &_tracker, - [this] { on_gc(); }, - 0, - std::chrono::milliseconds(_options.gc_interval_ms)); + _gc_timer_task = tasking::enqueue( + LPC_GARBAGE_COLLECT_LOGS_AND_REPLICAS, + &_tracker, + [this] { on_gc(); }, + 0, + std::chrono::milliseconds(_options.gc_interval_ms)); } void replica_stub::on_gc_replica(replica_stub_ptr this_, gpid id) @@ -2010,11 +2013,12 @@ ::dsn::task_ptr replica_stub::begin_close_replica(replica_ptr r) app_info a_info = *(r->get_app_info()); replica_info r_info; get_replica_info(r_info, r); - task_ptr task = tasking::enqueue(LPC_CLOSE_REPLICA, - &_tracker, - [=]() { close_replica(r); }, - 0, - std::chrono::milliseconds(delay_ms)); + task_ptr task = tasking::enqueue( + LPC_CLOSE_REPLICA, + &_tracker, + [=]() { close_replica(r); }, + 0, + std::chrono::milliseconds(delay_ms)); _closing_replicas[id] = std::make_tuple(task, r, std::move(a_info), std::move(r_info)); _counter_replicas_closing_count->increment(); return task; @@ -2361,20 +2365,21 @@ replica_stub::exec_command_on_replica(const std::vector &args, std::map> results; // id => status,result for (auto &kv : choosed_rs) { replica_ptr rep = kv.second; - task_ptr tsk = tasking::enqueue(LPC_EXEC_COMMAND_ON_REPLICA, - rep->tracker(), - [rep, &func, &results_lock, &results]() { - partition_status::type status = rep->status(); - if (status != partition_status::PS_PRIMARY && - status != partition_status::PS_SECONDARY) - return; - std::string result = func(rep); - ::dsn::zauto_lock l(results_lock); - auto &value = results[rep->get_gpid()]; - value.first = status; - value.second = result; - }, - rep->get_gpid().thread_hash()); + task_ptr tsk = tasking::enqueue( + LPC_EXEC_COMMAND_ON_REPLICA, + rep->tracker(), + [rep, &func, &results_lock, &results]() { + partition_status::type status = rep->status(); + if (status != partition_status::PS_PRIMARY && + status != partition_status::PS_SECONDARY) + return; + std::string result = func(rep); + ::dsn::zauto_lock l(results_lock); + auto &value = results[rep->get_gpid()]; + value.first = status; + value.second = result; + }, + rep->get_gpid().thread_hash()); tasks.emplace_back(std::move(tsk)); } @@ -2691,10 +2696,11 @@ replica_stub::split_replica_exec(dsn::task_code code, gpid pid, local_execution FAIL_POINT_INJECT_F("replica_stub_split_replica_exec", [](dsn::string_view) { return ERR_OK; }); replica_ptr replica = pid.get_app_id() == 0 ? nullptr : get_replica(pid); if (replica && handler) { - tasking::enqueue(code, - replica.get()->tracker(), - [handler, replica]() { handler(replica->get_split_manager()); }, - pid.thread_hash()); + tasking::enqueue( + code, + replica.get()->tracker(), + [handler, replica]() { handler(replica->get_split_manager()); }, + pid.thread_hash()); return ERR_OK; } dwarn_f("replica({}) is invalid", pid); @@ -2788,7 +2794,6 @@ void replica_stub::on_group_bulk_load(group_bulk_load_rpc rpc) } } -// TODO: (Tangyanzhao) implement it later void replica_stub::on_detect_hotkey(detect_hotkey_rpc rpc) { const auto &request = rpc.request(); diff --git a/src/replication.thrift b/src/replication.thrift index 0625a14641..a1f4226082 100644 --- a/src/replication.thrift +++ b/src/replication.thrift @@ -1144,7 +1144,8 @@ enum hotkey_type enum detect_action { START, - STOP + STOP, + QUERY } enum disk_migration_status { @@ -1167,6 +1168,7 @@ struct detect_hotkey_response { // - ERR_SERVICE_ALREADY_EXIST: hotkey detection is running now 1: dsn.error_code err; 2: optional string err_hint; + 3: optional string hotkey_result; } /* diff --git a/src/runtime/dsn.layer2_types.cpp b/src/runtime/dsn.layer2_types.cpp index b078062bb5..5a4582a4db 100644 --- a/src/runtime/dsn.layer2_types.cpp +++ b/src/runtime/dsn.layer2_types.cpp @@ -13,1298 +13,1259 @@ namespace dsn { -int _kapp_statusValues[] = {app_status::AS_INVALID, - app_status::AS_AVAILABLE, - app_status::AS_CREATING, - app_status::AS_CREATE_FAILED, - app_status::AS_DROPPING, - app_status::AS_DROP_FAILED, - app_status::AS_DROPPED, - app_status::AS_RECALLING}; -const char *_kapp_statusNames[] = {"AS_INVALID", - "AS_AVAILABLE", - "AS_CREATING", - "AS_CREATE_FAILED", - "AS_DROPPING", - "AS_DROP_FAILED", - "AS_DROPPED", - "AS_RECALLING"}; -const std::map _app_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(8, _kapp_statusValues, _kapp_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); +int _kapp_statusValues[] = { + app_status::AS_INVALID, + app_status::AS_AVAILABLE, + app_status::AS_CREATING, + app_status::AS_CREATE_FAILED, + app_status::AS_DROPPING, + app_status::AS_DROP_FAILED, + app_status::AS_DROPPED, + app_status::AS_RECALLING +}; +const char* _kapp_statusNames[] = { + "AS_INVALID", + "AS_AVAILABLE", + "AS_CREATING", + "AS_CREATE_FAILED", + "AS_DROPPING", + "AS_DROP_FAILED", + "AS_DROPPED", + "AS_RECALLING" +}; +const std::map _app_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kapp_statusValues, _kapp_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + + +partition_configuration::~partition_configuration() throw() { +} -partition_configuration::~partition_configuration() throw() {} -void partition_configuration::__set_pid(const ::dsn::gpid &val) { this->pid = val; } +void partition_configuration::__set_pid(const ::dsn::gpid& val) { + this->pid = val; +} -void partition_configuration::__set_ballot(const int64_t val) { this->ballot = val; } +void partition_configuration::__set_ballot(const int64_t val) { + this->ballot = val; +} -void partition_configuration::__set_max_replica_count(const int32_t val) -{ - this->max_replica_count = val; +void partition_configuration::__set_max_replica_count(const int32_t val) { + this->max_replica_count = val; } -void partition_configuration::__set_primary(const ::dsn::rpc_address &val) { this->primary = val; } +void partition_configuration::__set_primary(const ::dsn::rpc_address& val) { + this->primary = val; +} -void partition_configuration::__set_secondaries(const std::vector<::dsn::rpc_address> &val) -{ - this->secondaries = val; +void partition_configuration::__set_secondaries(const std::vector< ::dsn::rpc_address> & val) { + this->secondaries = val; } -void partition_configuration::__set_last_drops(const std::vector<::dsn::rpc_address> &val) -{ - this->last_drops = val; +void partition_configuration::__set_last_drops(const std::vector< ::dsn::rpc_address> & val) { + this->last_drops = val; } -void partition_configuration::__set_last_committed_decree(const int64_t val) -{ - this->last_committed_decree = val; +void partition_configuration::__set_last_committed_decree(const int64_t val) { + this->last_committed_decree = val; } -void partition_configuration::__set_partition_flags(const int32_t val) -{ - this->partition_flags = val; +void partition_configuration::__set_partition_flags(const int32_t val) { + this->partition_flags = val; } -uint32_t partition_configuration::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t partition_configuration::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->max_replica_count); - this->__isset.max_replica_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->primary.read(iprot); - this->__isset.primary = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->secondaries.clear(); - uint32_t _size0; - ::apache::thrift::protocol::TType _etype3; - xfer += iprot->readListBegin(_etype3, _size0); - this->secondaries.resize(_size0); - uint32_t _i4; - for (_i4 = 0; _i4 < _size0; ++_i4) { - xfer += this->secondaries[_i4].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.secondaries = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->last_drops.clear(); - uint32_t _size5; - ::apache::thrift::protocol::TType _etype8; - xfer += iprot->readListBegin(_etype8, _size5); - this->last_drops.resize(_size5); - uint32_t _i9; - for (_i9 = 0; _i9 < _size5; ++_i9) { - xfer += this->last_drops[_i9].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.last_drops = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->max_replica_count); + this->__isset.max_replica_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->primary.read(iprot); + this->__isset.primary = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->secondaries.clear(); + uint32_t _size0; + ::apache::thrift::protocol::TType _etype3; + xfer += iprot->readListBegin(_etype3, _size0); + this->secondaries.resize(_size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) + { + xfer += this->secondaries[_i4].read(iprot); } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_flags); - this->__isset.partition_flags = true; - } else { - xfer += iprot->skip(ftype); + xfer += iprot->readListEnd(); + } + this->__isset.secondaries = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->last_drops.clear(); + uint32_t _size5; + ::apache::thrift::protocol::TType _etype8; + xfer += iprot->readListBegin(_etype8, _size5); + this->last_drops.resize(_size5); + uint32_t _i9; + for (_i9 = 0; _i9 < _size5; ++_i9) + { + xfer += this->last_drops[_i9].read(iprot); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.last_drops = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_flags); + this->__isset.partition_flags = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t partition_configuration::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("partition_configuration"); +uint32_t partition_configuration::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("partition_configuration"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->max_replica_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->max_replica_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("primary", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->primary.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("primary", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->primary.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("secondaries", ::apache::thrift::protocol::T_LIST, 5); + xfer += oprot->writeFieldBegin("secondaries", ::apache::thrift::protocol::T_LIST, 5); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->secondaries.size())); + std::vector< ::dsn::rpc_address> ::const_iterator _iter10; + for (_iter10 = this->secondaries.begin(); _iter10 != this->secondaries.end(); ++_iter10) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->secondaries.size())); - std::vector<::dsn::rpc_address>::const_iterator _iter10; - for (_iter10 = this->secondaries.begin(); _iter10 != this->secondaries.end(); ++_iter10) { - xfer += (*_iter10).write(oprot); - } - xfer += oprot->writeListEnd(); + xfer += (*_iter10).write(oprot); } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_drops", ::apache::thrift::protocol::T_LIST, 6); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_drops", ::apache::thrift::protocol::T_LIST, 6); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->last_drops.size())); + std::vector< ::dsn::rpc_address> ::const_iterator _iter11; + for (_iter11 = this->last_drops.begin(); _iter11 != this->last_drops.end(); ++_iter11) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->last_drops.size())); - std::vector<::dsn::rpc_address>::const_iterator _iter11; - for (_iter11 = this->last_drops.begin(); _iter11 != this->last_drops.end(); ++_iter11) { - xfer += (*_iter11).write(oprot); - } - xfer += oprot->writeListEnd(); + xfer += (*_iter11).write(oprot); } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 7); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partition_flags", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32(this->partition_flags); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("partition_flags", ::apache::thrift::protocol::T_I32, 8); + xfer += oprot->writeI32(this->partition_flags); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(partition_configuration &a, partition_configuration &b) { + using ::std::swap; + swap(a.pid, b.pid); + swap(a.ballot, b.ballot); + swap(a.max_replica_count, b.max_replica_count); + swap(a.primary, b.primary); + swap(a.secondaries, b.secondaries); + swap(a.last_drops, b.last_drops); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.partition_flags, b.partition_flags); + swap(a.__isset, b.__isset); +} + +partition_configuration::partition_configuration(const partition_configuration& other12) { + pid = other12.pid; + ballot = other12.ballot; + max_replica_count = other12.max_replica_count; + primary = other12.primary; + secondaries = other12.secondaries; + last_drops = other12.last_drops; + last_committed_decree = other12.last_committed_decree; + partition_flags = other12.partition_flags; + __isset = other12.__isset; +} +partition_configuration::partition_configuration( partition_configuration&& other13) { + pid = std::move(other13.pid); + ballot = std::move(other13.ballot); + max_replica_count = std::move(other13.max_replica_count); + primary = std::move(other13.primary); + secondaries = std::move(other13.secondaries); + last_drops = std::move(other13.last_drops); + last_committed_decree = std::move(other13.last_committed_decree); + partition_flags = std::move(other13.partition_flags); + __isset = std::move(other13.__isset); +} +partition_configuration& partition_configuration::operator=(const partition_configuration& other14) { + pid = other14.pid; + ballot = other14.ballot; + max_replica_count = other14.max_replica_count; + primary = other14.primary; + secondaries = other14.secondaries; + last_drops = other14.last_drops; + last_committed_decree = other14.last_committed_decree; + partition_flags = other14.partition_flags; + __isset = other14.__isset; + return *this; +} +partition_configuration& partition_configuration::operator=(partition_configuration&& other15) { + pid = std::move(other15.pid); + ballot = std::move(other15.ballot); + max_replica_count = std::move(other15.max_replica_count); + primary = std::move(other15.primary); + secondaries = std::move(other15.secondaries); + last_drops = std::move(other15.last_drops); + last_committed_decree = std::move(other15.last_committed_decree); + partition_flags = std::move(other15.partition_flags); + __isset = std::move(other15.__isset); + return *this; +} +void partition_configuration::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "partition_configuration("; + out << "pid=" << to_string(pid); + out << ", " << "ballot=" << to_string(ballot); + out << ", " << "max_replica_count=" << to_string(max_replica_count); + out << ", " << "primary=" << to_string(primary); + out << ", " << "secondaries=" << to_string(secondaries); + out << ", " << "last_drops=" << to_string(last_drops); + out << ", " << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " << "partition_flags=" << to_string(partition_flags); + out << ")"; +} + + +configuration_query_by_index_request::~configuration_query_by_index_request() throw() { +} + + +void configuration_query_by_index_request::__set_app_name(const std::string& val) { + this->app_name = val; +} + +void configuration_query_by_index_request::__set_partition_indices(const std::vector & val) { + this->partition_indices = val; +} + +uint32_t configuration_query_by_index_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(partition_configuration &a, partition_configuration &b) -{ - using ::std::swap; - swap(a.pid, b.pid); - swap(a.ballot, b.ballot); - swap(a.max_replica_count, b.max_replica_count); - swap(a.primary, b.primary); - swap(a.secondaries, b.secondaries); - swap(a.last_drops, b.last_drops); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.partition_flags, b.partition_flags); - swap(a.__isset, b.__isset); -} - -partition_configuration::partition_configuration(const partition_configuration &other12) -{ - pid = other12.pid; - ballot = other12.ballot; - max_replica_count = other12.max_replica_count; - primary = other12.primary; - secondaries = other12.secondaries; - last_drops = other12.last_drops; - last_committed_decree = other12.last_committed_decree; - partition_flags = other12.partition_flags; - __isset = other12.__isset; -} -partition_configuration::partition_configuration(partition_configuration &&other13) -{ - pid = std::move(other13.pid); - ballot = std::move(other13.ballot); - max_replica_count = std::move(other13.max_replica_count); - primary = std::move(other13.primary); - secondaries = std::move(other13.secondaries); - last_drops = std::move(other13.last_drops); - last_committed_decree = std::move(other13.last_committed_decree); - partition_flags = std::move(other13.partition_flags); - __isset = std::move(other13.__isset); -} -partition_configuration &partition_configuration::operator=(const partition_configuration &other14) -{ - pid = other14.pid; - ballot = other14.ballot; - max_replica_count = other14.max_replica_count; - primary = other14.primary; - secondaries = other14.secondaries; - last_drops = other14.last_drops; - last_committed_decree = other14.last_committed_decree; - partition_flags = other14.partition_flags; - __isset = other14.__isset; - return *this; -} -partition_configuration &partition_configuration::operator=(partition_configuration &&other15) -{ - pid = std::move(other15.pid); - ballot = std::move(other15.ballot); - max_replica_count = std::move(other15.max_replica_count); - primary = std::move(other15.primary); - secondaries = std::move(other15.secondaries); - last_drops = std::move(other15.last_drops); - last_committed_decree = std::move(other15.last_committed_decree); - partition_flags = std::move(other15.partition_flags); - __isset = std::move(other15.__isset); - return *this; -} -void partition_configuration::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "partition_configuration("; - out << "pid=" << to_string(pid); - out << ", " - << "ballot=" << to_string(ballot); - out << ", " - << "max_replica_count=" << to_string(max_replica_count); - out << ", " - << "primary=" << to_string(primary); - out << ", " - << "secondaries=" << to_string(secondaries); - out << ", " - << "last_drops=" << to_string(last_drops); - out << ", " - << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " - << "partition_flags=" << to_string(partition_flags); - out << ")"; -} - -configuration_query_by_index_request::~configuration_query_by_index_request() throw() {} - -void configuration_query_by_index_request::__set_app_name(const std::string &val) -{ - this->app_name = val; -} - -void configuration_query_by_index_request::__set_partition_indices(const std::vector &val) -{ - this->partition_indices = val; -} - -uint32_t configuration_query_by_index_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partition_indices.clear(); - uint32_t _size16; - ::apache::thrift::protocol::TType _etype19; - xfer += iprot->readListBegin(_etype19, _size16); - this->partition_indices.resize(_size16); - uint32_t _i20; - for (_i20 = 0; _i20 < _size16; ++_i20) { - xfer += iprot->readI32(this->partition_indices[_i20]); - } - xfer += iprot->readListEnd(); - } - this->__isset.partition_indices = true; - } else { - xfer += iprot->skip(ftype); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partition_indices.clear(); + uint32_t _size16; + ::apache::thrift::protocol::TType _etype19; + xfer += iprot->readListBegin(_etype19, _size16); + this->partition_indices.resize(_size16); + uint32_t _i20; + for (_i20 = 0; _i20 < _size16; ++_i20) + { + xfer += iprot->readI32(this->partition_indices[_i20]); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.partition_indices = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_query_by_index_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_by_index_request"); +uint32_t configuration_query_by_index_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_by_index_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partition_indices", ::apache::thrift::protocol::T_LIST, 2); + xfer += oprot->writeFieldBegin("partition_indices", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->partition_indices.size())); + std::vector ::const_iterator _iter21; + for (_iter21 = this->partition_indices.begin(); _iter21 != this->partition_indices.end(); ++_iter21) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, - static_cast(this->partition_indices.size())); - std::vector::const_iterator _iter21; - for (_iter21 = this->partition_indices.begin(); _iter21 != this->partition_indices.end(); - ++_iter21) { - xfer += oprot->writeI32((*_iter21)); - } - xfer += oprot->writeListEnd(); + xfer += oprot->writeI32((*_iter21)); } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_query_by_index_request &a, configuration_query_by_index_request &b) -{ - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.partition_indices, b.partition_indices); - swap(a.__isset, b.__isset); +void swap(configuration_query_by_index_request &a, configuration_query_by_index_request &b) { + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.partition_indices, b.partition_indices); + swap(a.__isset, b.__isset); } -configuration_query_by_index_request::configuration_query_by_index_request( - const configuration_query_by_index_request &other22) -{ - app_name = other22.app_name; - partition_indices = other22.partition_indices; - __isset = other22.__isset; +configuration_query_by_index_request::configuration_query_by_index_request(const configuration_query_by_index_request& other22) { + app_name = other22.app_name; + partition_indices = other22.partition_indices; + __isset = other22.__isset; +} +configuration_query_by_index_request::configuration_query_by_index_request( configuration_query_by_index_request&& other23) { + app_name = std::move(other23.app_name); + partition_indices = std::move(other23.partition_indices); + __isset = std::move(other23.__isset); } -configuration_query_by_index_request::configuration_query_by_index_request( - configuration_query_by_index_request &&other23) -{ - app_name = std::move(other23.app_name); - partition_indices = std::move(other23.partition_indices); - __isset = std::move(other23.__isset); +configuration_query_by_index_request& configuration_query_by_index_request::operator=(const configuration_query_by_index_request& other24) { + app_name = other24.app_name; + partition_indices = other24.partition_indices; + __isset = other24.__isset; + return *this; } -configuration_query_by_index_request &configuration_query_by_index_request:: -operator=(const configuration_query_by_index_request &other24) -{ - app_name = other24.app_name; - partition_indices = other24.partition_indices; - __isset = other24.__isset; - return *this; +configuration_query_by_index_request& configuration_query_by_index_request::operator=(configuration_query_by_index_request&& other25) { + app_name = std::move(other25.app_name); + partition_indices = std::move(other25.partition_indices); + __isset = std::move(other25.__isset); + return *this; } -configuration_query_by_index_request &configuration_query_by_index_request:: -operator=(configuration_query_by_index_request &&other25) -{ - app_name = std::move(other25.app_name); - partition_indices = std::move(other25.partition_indices); - __isset = std::move(other25.__isset); - return *this; +void configuration_query_by_index_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_query_by_index_request("; + out << "app_name=" << to_string(app_name); + out << ", " << "partition_indices=" << to_string(partition_indices); + out << ")"; } -void configuration_query_by_index_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_query_by_index_request("; - out << "app_name=" << to_string(app_name); - out << ", " - << "partition_indices=" << to_string(partition_indices); - out << ")"; + + +configuration_query_by_index_response::~configuration_query_by_index_response() throw() { } -configuration_query_by_index_response::~configuration_query_by_index_response() throw() {} -void configuration_query_by_index_response::__set_err(const ::dsn::error_code &val) -{ - this->err = val; +void configuration_query_by_index_response::__set_err(const ::dsn::error_code& val) { + this->err = val; } -void configuration_query_by_index_response::__set_app_id(const int32_t val) { this->app_id = val; } +void configuration_query_by_index_response::__set_app_id(const int32_t val) { + this->app_id = val; +} -void configuration_query_by_index_response::__set_partition_count(const int32_t val) -{ - this->partition_count = val; +void configuration_query_by_index_response::__set_partition_count(const int32_t val) { + this->partition_count = val; } -void configuration_query_by_index_response::__set_is_stateful(const bool val) -{ - this->is_stateful = val; +void configuration_query_by_index_response::__set_is_stateful(const bool val) { + this->is_stateful = val; } -void configuration_query_by_index_response::__set_partitions( - const std::vector &val) -{ - this->partitions = val; +void configuration_query_by_index_response::__set_partitions(const std::vector & val) { + this->partitions = val; } -uint32_t configuration_query_by_index_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t configuration_query_by_index_response::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_count); - this->__isset.partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_stateful); - this->__isset.is_stateful = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partitions.clear(); - uint32_t _size26; - ::apache::thrift::protocol::TType _etype29; - xfer += iprot->readListBegin(_etype29, _size26); - this->partitions.resize(_size26); - uint32_t _i30; - for (_i30 = 0; _i30 < _size26; ++_i30) { - xfer += this->partitions[_i30].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.partitions = true; - } else { - xfer += iprot->skip(ftype); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_count); + this->__isset.partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_stateful); + this->__isset.is_stateful = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions.clear(); + uint32_t _size26; + ::apache::thrift::protocol::TType _etype29; + xfer += iprot->readListBegin(_etype29, _size26); + this->partitions.resize(_size26); + uint32_t _i30; + for (_i30 = 0; _i30 < _size26; ++_i30) + { + xfer += this->partitions[_i30].read(iprot); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readListEnd(); + } + this->__isset.partitions = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t -configuration_query_by_index_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_by_index_response"); +uint32_t configuration_query_by_index_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_by_index_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->partition_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->partition_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool(this->is_stateful); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->is_stateful); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 5); + xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 5); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); + std::vector ::const_iterator _iter31; + for (_iter31 = this->partitions.begin(); _iter31 != this->partitions.end(); ++_iter31) { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, - static_cast(this->partitions.size())); - std::vector::const_iterator _iter31; - for (_iter31 = this->partitions.begin(); _iter31 != this->partitions.end(); ++_iter31) { - xfer += (*_iter31).write(oprot); - } - xfer += oprot->writeListEnd(); + xfer += (*_iter31).write(oprot); } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_by_index_response &a, configuration_query_by_index_response &b) -{ - using ::std::swap; - swap(a.err, b.err); - swap(a.app_id, b.app_id); - swap(a.partition_count, b.partition_count); - swap(a.is_stateful, b.is_stateful); - swap(a.partitions, b.partitions); - swap(a.__isset, b.__isset); +void swap(configuration_query_by_index_response &a, configuration_query_by_index_response &b) { + using ::std::swap; + swap(a.err, b.err); + swap(a.app_id, b.app_id); + swap(a.partition_count, b.partition_count); + swap(a.is_stateful, b.is_stateful); + swap(a.partitions, b.partitions); + swap(a.__isset, b.__isset); } -configuration_query_by_index_response::configuration_query_by_index_response( - const configuration_query_by_index_response &other32) -{ - err = other32.err; - app_id = other32.app_id; - partition_count = other32.partition_count; - is_stateful = other32.is_stateful; - partitions = other32.partitions; - __isset = other32.__isset; +configuration_query_by_index_response::configuration_query_by_index_response(const configuration_query_by_index_response& other32) { + err = other32.err; + app_id = other32.app_id; + partition_count = other32.partition_count; + is_stateful = other32.is_stateful; + partitions = other32.partitions; + __isset = other32.__isset; +} +configuration_query_by_index_response::configuration_query_by_index_response( configuration_query_by_index_response&& other33) { + err = std::move(other33.err); + app_id = std::move(other33.app_id); + partition_count = std::move(other33.partition_count); + is_stateful = std::move(other33.is_stateful); + partitions = std::move(other33.partitions); + __isset = std::move(other33.__isset); } -configuration_query_by_index_response::configuration_query_by_index_response( - configuration_query_by_index_response &&other33) -{ - err = std::move(other33.err); - app_id = std::move(other33.app_id); - partition_count = std::move(other33.partition_count); - is_stateful = std::move(other33.is_stateful); - partitions = std::move(other33.partitions); - __isset = std::move(other33.__isset); +configuration_query_by_index_response& configuration_query_by_index_response::operator=(const configuration_query_by_index_response& other34) { + err = other34.err; + app_id = other34.app_id; + partition_count = other34.partition_count; + is_stateful = other34.is_stateful; + partitions = other34.partitions; + __isset = other34.__isset; + return *this; } -configuration_query_by_index_response &configuration_query_by_index_response:: -operator=(const configuration_query_by_index_response &other34) -{ - err = other34.err; - app_id = other34.app_id; - partition_count = other34.partition_count; - is_stateful = other34.is_stateful; - partitions = other34.partitions; - __isset = other34.__isset; - return *this; +configuration_query_by_index_response& configuration_query_by_index_response::operator=(configuration_query_by_index_response&& other35) { + err = std::move(other35.err); + app_id = std::move(other35.app_id); + partition_count = std::move(other35.partition_count); + is_stateful = std::move(other35.is_stateful); + partitions = std::move(other35.partitions); + __isset = std::move(other35.__isset); + return *this; } -configuration_query_by_index_response &configuration_query_by_index_response:: -operator=(configuration_query_by_index_response &&other35) -{ - err = std::move(other35.err); - app_id = std::move(other35.app_id); - partition_count = std::move(other35.partition_count); - is_stateful = std::move(other35.is_stateful); - partitions = std::move(other35.partitions); - __isset = std::move(other35.__isset); - return *this; +void configuration_query_by_index_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "configuration_query_by_index_response("; + out << "err=" << to_string(err); + out << ", " << "app_id=" << to_string(app_id); + out << ", " << "partition_count=" << to_string(partition_count); + out << ", " << "is_stateful=" << to_string(is_stateful); + out << ", " << "partitions=" << to_string(partitions); + out << ")"; } -void configuration_query_by_index_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "configuration_query_by_index_response("; - out << "err=" << to_string(err); - out << ", " - << "app_id=" << to_string(app_id); - out << ", " - << "partition_count=" << to_string(partition_count); - out << ", " - << "is_stateful=" << to_string(is_stateful); - out << ", " - << "partitions=" << to_string(partitions); - out << ")"; + + +app_info::~app_info() throw() { } -app_info::~app_info() throw() {} -void app_info::__set_status(const app_status::type val) { this->status = val; } +void app_info::__set_status(const app_status::type val) { + this->status = val; +} + +void app_info::__set_app_type(const std::string& val) { + this->app_type = val; +} -void app_info::__set_app_type(const std::string &val) { this->app_type = val; } +void app_info::__set_app_name(const std::string& val) { + this->app_name = val; +} -void app_info::__set_app_name(const std::string &val) { this->app_name = val; } +void app_info::__set_app_id(const int32_t val) { + this->app_id = val; +} -void app_info::__set_app_id(const int32_t val) { this->app_id = val; } +void app_info::__set_partition_count(const int32_t val) { + this->partition_count = val; +} -void app_info::__set_partition_count(const int32_t val) { this->partition_count = val; } +void app_info::__set_envs(const std::map & val) { + this->envs = val; +} -void app_info::__set_envs(const std::map &val) { this->envs = val; } +void app_info::__set_is_stateful(const bool val) { + this->is_stateful = val; +} -void app_info::__set_is_stateful(const bool val) { this->is_stateful = val; } +void app_info::__set_max_replica_count(const int32_t val) { + this->max_replica_count = val; +} -void app_info::__set_max_replica_count(const int32_t val) { this->max_replica_count = val; } +void app_info::__set_expire_second(const int64_t val) { + this->expire_second = val; +} -void app_info::__set_expire_second(const int64_t val) { this->expire_second = val; } +void app_info::__set_create_second(const int64_t val) { + this->create_second = val; +} -void app_info::__set_create_second(const int64_t val) { this->create_second = val; } +void app_info::__set_drop_second(const int64_t val) { + this->drop_second = val; +} -void app_info::__set_drop_second(const int64_t val) { this->drop_second = val; } +void app_info::__set_duplicating(const bool val) { + this->duplicating = val; +__isset.duplicating = true; +} -void app_info::__set_duplicating(const bool val) -{ - this->duplicating = val; - __isset.duplicating = true; +void app_info::__set_init_partition_count(const int32_t val) { + this->init_partition_count = val; } -void app_info::__set_init_partition_count(const int32_t val) { this->init_partition_count = val; } - -void app_info::__set_is_bulk_loading(const bool val) -{ - this->is_bulk_loading = val; - __isset.is_bulk_loading = true; +void app_info::__set_is_bulk_loading(const bool val) { + this->is_bulk_loading = val; +__isset.is_bulk_loading = true; } -uint32_t app_info::read(::apache::thrift::protocol::TProtocol *iprot) -{ +uint32_t app_info::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast36; + xfer += iprot->readI32(ecast36); + this->status = (app_status::type)ecast36; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast36; - xfer += iprot->readI32(ecast36); - this->status = (app_status::type)ecast36; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_type); - this->__isset.app_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_count); - this->__isset.partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->envs.clear(); - uint32_t _size37; - ::apache::thrift::protocol::TType _ktype38; - ::apache::thrift::protocol::TType _vtype39; - xfer += iprot->readMapBegin(_ktype38, _vtype39, _size37); - uint32_t _i41; - for (_i41 = 0; _i41 < _size37; ++_i41) { - std::string _key42; - xfer += iprot->readString(_key42); - std::string &_val43 = this->envs[_key42]; - xfer += iprot->readString(_val43); - } - xfer += iprot->readMapEnd(); - } - this->__isset.envs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_stateful); - this->__isset.is_stateful = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->max_replica_count); - this->__isset.max_replica_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->expire_second); - this->__isset.expire_second = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->create_second); - this->__isset.create_second = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->drop_second); - this->__isset.drop_second = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 12: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->duplicating); - this->__isset.duplicating = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 13: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->init_partition_count); - this->__isset.init_partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 14: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_bulk_loading); - this->__isset.is_bulk_loading = true; - } else { - xfer += iprot->skip(ftype); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_type); + this->__isset.app_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_count); + this->__isset.partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->envs.clear(); + uint32_t _size37; + ::apache::thrift::protocol::TType _ktype38; + ::apache::thrift::protocol::TType _vtype39; + xfer += iprot->readMapBegin(_ktype38, _vtype39, _size37); + uint32_t _i41; + for (_i41 = 0; _i41 < _size37; ++_i41) + { + std::string _key42; + xfer += iprot->readString(_key42); + std::string& _val43 = this->envs[_key42]; + xfer += iprot->readString(_val43); } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readMapEnd(); + } + this->__isset.envs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_stateful); + this->__isset.is_stateful = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->max_replica_count); + this->__isset.max_replica_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->expire_second); + this->__isset.expire_second = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 10: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->create_second); + this->__isset.create_second = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 11: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->drop_second); + this->__isset.drop_second = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 12: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->duplicating); + this->__isset.duplicating = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + case 13: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->init_partition_count); + this->__isset.init_partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 14: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_bulk_loading); + this->__isset.is_bulk_loading = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t app_info::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("app_info"); +uint32_t app_info::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("app_info"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->app_type); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->app_type); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->partition_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->partition_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("envs", ::apache::thrift::protocol::T_MAP, 6); + xfer += oprot->writeFieldBegin("envs", ::apache::thrift::protocol::T_MAP, 6); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->envs.size())); + std::map ::const_iterator _iter44; + for (_iter44 = this->envs.begin(); _iter44 != this->envs.end(); ++_iter44) { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, - ::apache::thrift::protocol::T_STRING, - static_cast(this->envs.size())); - std::map::const_iterator _iter44; - for (_iter44 = this->envs.begin(); _iter44 != this->envs.end(); ++_iter44) { - xfer += oprot->writeString(_iter44->first); - xfer += oprot->writeString(_iter44->second); - } - xfer += oprot->writeMapEnd(); + xfer += oprot->writeString(_iter44->first); + xfer += oprot->writeString(_iter44->second); } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 7); - xfer += oprot->writeBool(this->is_stateful); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 7); + xfer += oprot->writeBool(this->is_stateful); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32(this->max_replica_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 8); + xfer += oprot->writeI32(this->max_replica_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("expire_second", ::apache::thrift::protocol::T_I64, 9); - xfer += oprot->writeI64(this->expire_second); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("expire_second", ::apache::thrift::protocol::T_I64, 9); + xfer += oprot->writeI64(this->expire_second); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("create_second", ::apache::thrift::protocol::T_I64, 10); - xfer += oprot->writeI64(this->create_second); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("create_second", ::apache::thrift::protocol::T_I64, 10); + xfer += oprot->writeI64(this->create_second); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("drop_second", ::apache::thrift::protocol::T_I64, 11); - xfer += oprot->writeI64(this->drop_second); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("drop_second", ::apache::thrift::protocol::T_I64, 11); + xfer += oprot->writeI64(this->drop_second); + xfer += oprot->writeFieldEnd(); - if (this->__isset.duplicating) { - xfer += oprot->writeFieldBegin("duplicating", ::apache::thrift::protocol::T_BOOL, 12); - xfer += oprot->writeBool(this->duplicating); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldBegin("init_partition_count", ::apache::thrift::protocol::T_I32, 13); - xfer += oprot->writeI32(this->init_partition_count); + if (this->__isset.duplicating) { + xfer += oprot->writeFieldBegin("duplicating", ::apache::thrift::protocol::T_BOOL, 12); + xfer += oprot->writeBool(this->duplicating); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldBegin("init_partition_count", ::apache::thrift::protocol::T_I32, 13); + xfer += oprot->writeI32(this->init_partition_count); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.is_bulk_loading) { + xfer += oprot->writeFieldBegin("is_bulk_loading", ::apache::thrift::protocol::T_BOOL, 14); + xfer += oprot->writeBool(this->is_bulk_loading); xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(app_info &a, app_info &b) { + using ::std::swap; + swap(a.status, b.status); + swap(a.app_type, b.app_type); + swap(a.app_name, b.app_name); + swap(a.app_id, b.app_id); + swap(a.partition_count, b.partition_count); + swap(a.envs, b.envs); + swap(a.is_stateful, b.is_stateful); + swap(a.max_replica_count, b.max_replica_count); + swap(a.expire_second, b.expire_second); + swap(a.create_second, b.create_second); + swap(a.drop_second, b.drop_second); + swap(a.duplicating, b.duplicating); + swap(a.init_partition_count, b.init_partition_count); + swap(a.is_bulk_loading, b.is_bulk_loading); + swap(a.__isset, b.__isset); +} + +app_info::app_info(const app_info& other45) { + status = other45.status; + app_type = other45.app_type; + app_name = other45.app_name; + app_id = other45.app_id; + partition_count = other45.partition_count; + envs = other45.envs; + is_stateful = other45.is_stateful; + max_replica_count = other45.max_replica_count; + expire_second = other45.expire_second; + create_second = other45.create_second; + drop_second = other45.drop_second; + duplicating = other45.duplicating; + init_partition_count = other45.init_partition_count; + is_bulk_loading = other45.is_bulk_loading; + __isset = other45.__isset; +} +app_info::app_info( app_info&& other46) { + status = std::move(other46.status); + app_type = std::move(other46.app_type); + app_name = std::move(other46.app_name); + app_id = std::move(other46.app_id); + partition_count = std::move(other46.partition_count); + envs = std::move(other46.envs); + is_stateful = std::move(other46.is_stateful); + max_replica_count = std::move(other46.max_replica_count); + expire_second = std::move(other46.expire_second); + create_second = std::move(other46.create_second); + drop_second = std::move(other46.drop_second); + duplicating = std::move(other46.duplicating); + init_partition_count = std::move(other46.init_partition_count); + is_bulk_loading = std::move(other46.is_bulk_loading); + __isset = std::move(other46.__isset); +} +app_info& app_info::operator=(const app_info& other47) { + status = other47.status; + app_type = other47.app_type; + app_name = other47.app_name; + app_id = other47.app_id; + partition_count = other47.partition_count; + envs = other47.envs; + is_stateful = other47.is_stateful; + max_replica_count = other47.max_replica_count; + expire_second = other47.expire_second; + create_second = other47.create_second; + drop_second = other47.drop_second; + duplicating = other47.duplicating; + init_partition_count = other47.init_partition_count; + is_bulk_loading = other47.is_bulk_loading; + __isset = other47.__isset; + return *this; +} +app_info& app_info::operator=(app_info&& other48) { + status = std::move(other48.status); + app_type = std::move(other48.app_type); + app_name = std::move(other48.app_name); + app_id = std::move(other48.app_id); + partition_count = std::move(other48.partition_count); + envs = std::move(other48.envs); + is_stateful = std::move(other48.is_stateful); + max_replica_count = std::move(other48.max_replica_count); + expire_second = std::move(other48.expire_second); + create_second = std::move(other48.create_second); + drop_second = std::move(other48.drop_second); + duplicating = std::move(other48.duplicating); + init_partition_count = std::move(other48.init_partition_count); + is_bulk_loading = std::move(other48.is_bulk_loading); + __isset = std::move(other48.__isset); + return *this; +} +void app_info::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "app_info("; + out << "status=" << to_string(status); + out << ", " << "app_type=" << to_string(app_type); + out << ", " << "app_name=" << to_string(app_name); + out << ", " << "app_id=" << to_string(app_id); + out << ", " << "partition_count=" << to_string(partition_count); + out << ", " << "envs=" << to_string(envs); + out << ", " << "is_stateful=" << to_string(is_stateful); + out << ", " << "max_replica_count=" << to_string(max_replica_count); + out << ", " << "expire_second=" << to_string(expire_second); + out << ", " << "create_second=" << to_string(create_second); + out << ", " << "drop_second=" << to_string(drop_second); + out << ", " << "duplicating="; (__isset.duplicating ? (out << to_string(duplicating)) : (out << "")); + out << ", " << "init_partition_count=" << to_string(init_partition_count); + out << ", " << "is_bulk_loading="; (__isset.is_bulk_loading ? (out << to_string(is_bulk_loading)) : (out << "")); + out << ")"; +} - if (this->__isset.is_bulk_loading) { - xfer += oprot->writeFieldBegin("is_bulk_loading", ::apache::thrift::protocol::T_BOOL, 14); - xfer += oprot->writeBool(this->is_bulk_loading); - xfer += oprot->writeFieldEnd(); + +thrift_request_meta_v1::~thrift_request_meta_v1() throw() { +} + + +void thrift_request_meta_v1::__set_app_id(const int32_t val) { + this->app_id = val; +__isset.app_id = true; +} + +void thrift_request_meta_v1::__set_partition_index(const int32_t val) { + this->partition_index = val; +__isset.partition_index = true; +} + +void thrift_request_meta_v1::__set_client_timeout(const int32_t val) { + this->client_timeout = val; +__isset.client_timeout = true; +} + +void thrift_request_meta_v1::__set_client_partition_hash(const int64_t val) { + this->client_partition_hash = val; +__isset.client_partition_hash = true; +} + +void thrift_request_meta_v1::__set_is_backup_request(const bool val) { + this->is_backup_request = val; +__isset.is_backup_request = true; +} + +uint32_t thrift_request_meta_v1::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(app_info &a, app_info &b) -{ - using ::std::swap; - swap(a.status, b.status); - swap(a.app_type, b.app_type); - swap(a.app_name, b.app_name); - swap(a.app_id, b.app_id); - swap(a.partition_count, b.partition_count); - swap(a.envs, b.envs); - swap(a.is_stateful, b.is_stateful); - swap(a.max_replica_count, b.max_replica_count); - swap(a.expire_second, b.expire_second); - swap(a.create_second, b.create_second); - swap(a.drop_second, b.drop_second); - swap(a.duplicating, b.duplicating); - swap(a.init_partition_count, b.init_partition_count); - swap(a.is_bulk_loading, b.is_bulk_loading); - swap(a.__isset, b.__isset); -} - -app_info::app_info(const app_info &other45) -{ - status = other45.status; - app_type = other45.app_type; - app_name = other45.app_name; - app_id = other45.app_id; - partition_count = other45.partition_count; - envs = other45.envs; - is_stateful = other45.is_stateful; - max_replica_count = other45.max_replica_count; - expire_second = other45.expire_second; - create_second = other45.create_second; - drop_second = other45.drop_second; - duplicating = other45.duplicating; - init_partition_count = other45.init_partition_count; - is_bulk_loading = other45.is_bulk_loading; - __isset = other45.__isset; -} -app_info::app_info(app_info &&other46) -{ - status = std::move(other46.status); - app_type = std::move(other46.app_type); - app_name = std::move(other46.app_name); - app_id = std::move(other46.app_id); - partition_count = std::move(other46.partition_count); - envs = std::move(other46.envs); - is_stateful = std::move(other46.is_stateful); - max_replica_count = std::move(other46.max_replica_count); - expire_second = std::move(other46.expire_second); - create_second = std::move(other46.create_second); - drop_second = std::move(other46.drop_second); - duplicating = std::move(other46.duplicating); - init_partition_count = std::move(other46.init_partition_count); - is_bulk_loading = std::move(other46.is_bulk_loading); - __isset = std::move(other46.__isset); -} -app_info &app_info::operator=(const app_info &other47) -{ - status = other47.status; - app_type = other47.app_type; - app_name = other47.app_name; - app_id = other47.app_id; - partition_count = other47.partition_count; - envs = other47.envs; - is_stateful = other47.is_stateful; - max_replica_count = other47.max_replica_count; - expire_second = other47.expire_second; - create_second = other47.create_second; - drop_second = other47.drop_second; - duplicating = other47.duplicating; - init_partition_count = other47.init_partition_count; - is_bulk_loading = other47.is_bulk_loading; - __isset = other47.__isset; - return *this; -} -app_info &app_info::operator=(app_info &&other48) -{ - status = std::move(other48.status); - app_type = std::move(other48.app_type); - app_name = std::move(other48.app_name); - app_id = std::move(other48.app_id); - partition_count = std::move(other48.partition_count); - envs = std::move(other48.envs); - is_stateful = std::move(other48.is_stateful); - max_replica_count = std::move(other48.max_replica_count); - expire_second = std::move(other48.expire_second); - create_second = std::move(other48.create_second); - drop_second = std::move(other48.drop_second); - duplicating = std::move(other48.duplicating); - init_partition_count = std::move(other48.init_partition_count); - is_bulk_loading = std::move(other48.is_bulk_loading); - __isset = std::move(other48.__isset); - return *this; -} -void app_info::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "app_info("; - out << "status=" << to_string(status); - out << ", " - << "app_type=" << to_string(app_type); - out << ", " - << "app_name=" << to_string(app_name); - out << ", " - << "app_id=" << to_string(app_id); - out << ", " - << "partition_count=" << to_string(partition_count); - out << ", " - << "envs=" << to_string(envs); - out << ", " - << "is_stateful=" << to_string(is_stateful); - out << ", " - << "max_replica_count=" << to_string(max_replica_count); - out << ", " - << "expire_second=" << to_string(expire_second); - out << ", " - << "create_second=" << to_string(create_second); - out << ", " - << "drop_second=" << to_string(drop_second); - out << ", " - << "duplicating="; - (__isset.duplicating ? (out << to_string(duplicating)) : (out << "")); - out << ", " - << "init_partition_count=" << to_string(init_partition_count); - out << ", " - << "is_bulk_loading="; - (__isset.is_bulk_loading ? (out << to_string(is_bulk_loading)) : (out << "")); - out << ")"; -} - -thrift_request_meta_v1::~thrift_request_meta_v1() throw() {} - -void thrift_request_meta_v1::__set_app_id(const int32_t val) -{ - this->app_id = val; - __isset.app_id = true; -} - -void thrift_request_meta_v1::__set_partition_index(const int32_t val) -{ - this->partition_index = val; - __isset.partition_index = true; -} - -void thrift_request_meta_v1::__set_client_timeout(const int32_t val) -{ - this->client_timeout = val; - __isset.client_timeout = true; -} - -void thrift_request_meta_v1::__set_client_partition_hash(const int64_t val) -{ - this->client_partition_hash = val; - __isset.client_partition_hash = true; -} - -void thrift_request_meta_v1::__set_is_backup_request(const bool val) -{ - this->is_backup_request = val; - __isset.is_backup_request = true; -} - -uint32_t thrift_request_meta_v1::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_index); - this->__isset.partition_index = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->client_timeout); - this->__isset.client_timeout = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->client_partition_hash); - this->__isset.client_partition_hash = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_backup_request); - this->__isset.is_backup_request = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_index); + this->__isset.partition_index = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->client_timeout); + this->__isset.client_timeout = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->client_partition_hash); + this->__isset.client_partition_hash = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_backup_request); + this->__isset.is_backup_request = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t thrift_request_meta_v1::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("thrift_request_meta_v1"); +uint32_t thrift_request_meta_v1::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("thrift_request_meta_v1"); - if (this->__isset.app_id) { - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.partition_index) { - xfer += oprot->writeFieldBegin("partition_index", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->partition_index); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.client_timeout) { - xfer += oprot->writeFieldBegin("client_timeout", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->client_timeout); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.client_partition_hash) { - xfer += - oprot->writeFieldBegin("client_partition_hash", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->client_partition_hash); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_backup_request) { - xfer += oprot->writeFieldBegin("is_backup_request", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->is_backup_request); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(thrift_request_meta_v1 &a, thrift_request_meta_v1 &b) -{ - using ::std::swap; - swap(a.app_id, b.app_id); - swap(a.partition_index, b.partition_index); - swap(a.client_timeout, b.client_timeout); - swap(a.client_partition_hash, b.client_partition_hash); - swap(a.is_backup_request, b.is_backup_request); - swap(a.__isset, b.__isset); -} - -thrift_request_meta_v1::thrift_request_meta_v1(const thrift_request_meta_v1 &other49) -{ - app_id = other49.app_id; - partition_index = other49.partition_index; - client_timeout = other49.client_timeout; - client_partition_hash = other49.client_partition_hash; - is_backup_request = other49.is_backup_request; - __isset = other49.__isset; -} -thrift_request_meta_v1::thrift_request_meta_v1(thrift_request_meta_v1 &&other50) -{ - app_id = std::move(other50.app_id); - partition_index = std::move(other50.partition_index); - client_timeout = std::move(other50.client_timeout); - client_partition_hash = std::move(other50.client_partition_hash); - is_backup_request = std::move(other50.is_backup_request); - __isset = std::move(other50.__isset); -} -thrift_request_meta_v1 &thrift_request_meta_v1::operator=(const thrift_request_meta_v1 &other51) -{ - app_id = other51.app_id; - partition_index = other51.partition_index; - client_timeout = other51.client_timeout; - client_partition_hash = other51.client_partition_hash; - is_backup_request = other51.is_backup_request; - __isset = other51.__isset; - return *this; -} -thrift_request_meta_v1 &thrift_request_meta_v1::operator=(thrift_request_meta_v1 &&other52) -{ - app_id = std::move(other52.app_id); - partition_index = std::move(other52.partition_index); - client_timeout = std::move(other52.client_timeout); - client_partition_hash = std::move(other52.client_partition_hash); - is_backup_request = std::move(other52.is_backup_request); - __isset = std::move(other52.__isset); - return *this; -} -void thrift_request_meta_v1::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "thrift_request_meta_v1("; - out << "app_id="; - (__isset.app_id ? (out << to_string(app_id)) : (out << "")); - out << ", " - << "partition_index="; - (__isset.partition_index ? (out << to_string(partition_index)) : (out << "")); - out << ", " - << "client_timeout="; - (__isset.client_timeout ? (out << to_string(client_timeout)) : (out << "")); - out << ", " - << "client_partition_hash="; - (__isset.client_partition_hash ? (out << to_string(client_partition_hash)) : (out << "")); - out << ", " - << "is_backup_request="; - (__isset.is_backup_request ? (out << to_string(is_backup_request)) : (out << "")); - out << ")"; + if (this->__isset.app_id) { + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partition_index) { + xfer += oprot->writeFieldBegin("partition_index", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->partition_index); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.client_timeout) { + xfer += oprot->writeFieldBegin("client_timeout", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->client_timeout); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.client_partition_hash) { + xfer += oprot->writeFieldBegin("client_partition_hash", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->client_partition_hash); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_backup_request) { + xfer += oprot->writeFieldBegin("is_backup_request", ::apache::thrift::protocol::T_BOOL, 5); + xfer += oprot->writeBool(this->is_backup_request); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(thrift_request_meta_v1 &a, thrift_request_meta_v1 &b) { + using ::std::swap; + swap(a.app_id, b.app_id); + swap(a.partition_index, b.partition_index); + swap(a.client_timeout, b.client_timeout); + swap(a.client_partition_hash, b.client_partition_hash); + swap(a.is_backup_request, b.is_backup_request); + swap(a.__isset, b.__isset); +} + +thrift_request_meta_v1::thrift_request_meta_v1(const thrift_request_meta_v1& other49) { + app_id = other49.app_id; + partition_index = other49.partition_index; + client_timeout = other49.client_timeout; + client_partition_hash = other49.client_partition_hash; + is_backup_request = other49.is_backup_request; + __isset = other49.__isset; +} +thrift_request_meta_v1::thrift_request_meta_v1( thrift_request_meta_v1&& other50) { + app_id = std::move(other50.app_id); + partition_index = std::move(other50.partition_index); + client_timeout = std::move(other50.client_timeout); + client_partition_hash = std::move(other50.client_partition_hash); + is_backup_request = std::move(other50.is_backup_request); + __isset = std::move(other50.__isset); +} +thrift_request_meta_v1& thrift_request_meta_v1::operator=(const thrift_request_meta_v1& other51) { + app_id = other51.app_id; + partition_index = other51.partition_index; + client_timeout = other51.client_timeout; + client_partition_hash = other51.client_partition_hash; + is_backup_request = other51.is_backup_request; + __isset = other51.__isset; + return *this; +} +thrift_request_meta_v1& thrift_request_meta_v1::operator=(thrift_request_meta_v1&& other52) { + app_id = std::move(other52.app_id); + partition_index = std::move(other52.partition_index); + client_timeout = std::move(other52.client_timeout); + client_partition_hash = std::move(other52.client_partition_hash); + is_backup_request = std::move(other52.is_backup_request); + __isset = std::move(other52.__isset); + return *this; +} +void thrift_request_meta_v1::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "thrift_request_meta_v1("; + out << "app_id="; (__isset.app_id ? (out << to_string(app_id)) : (out << "")); + out << ", " << "partition_index="; (__isset.partition_index ? (out << to_string(partition_index)) : (out << "")); + out << ", " << "client_timeout="; (__isset.client_timeout ? (out << to_string(client_timeout)) : (out << "")); + out << ", " << "client_partition_hash="; (__isset.client_partition_hash ? (out << to_string(client_partition_hash)) : (out << "")); + out << ", " << "is_backup_request="; (__isset.is_backup_request ? (out << to_string(is_backup_request)) : (out << "")); + out << ")"; } } // namespace diff --git a/src/runtime/security/security_types.cpp b/src/runtime/security/security_types.cpp index 16143f9616..2eb40dfa19 100644 --- a/src/runtime/security/security_types.cpp +++ b/src/runtime/security/security_types.cpp @@ -11,269 +11,272 @@ #include -namespace dsn { -namespace security { - -int _knegotiation_statusValues[] = {negotiation_status::INVALID, - negotiation_status::SASL_LIST_MECHANISMS, - negotiation_status::SASL_LIST_MECHANISMS_RESP, - negotiation_status::SASL_SELECT_MECHANISMS, - negotiation_status::SASL_SELECT_MECHANISMS_RESP, - negotiation_status::SASL_INITIATE, - negotiation_status::SASL_CHALLENGE, - negotiation_status::SASL_CHALLENGE_RESP, - negotiation_status::SASL_SUCC, - negotiation_status::SASL_AUTH_DISABLE, - negotiation_status::SASL_AUTH_FAIL}; -const char *_knegotiation_statusNames[] = {"INVALID", - "SASL_LIST_MECHANISMS", - "SASL_LIST_MECHANISMS_RESP", - "SASL_SELECT_MECHANISMS", - "SASL_SELECT_MECHANISMS_RESP", - "SASL_INITIATE", - "SASL_CHALLENGE", - "SASL_CHALLENGE_RESP", - "SASL_SUCC", - "SASL_AUTH_DISABLE", - "SASL_AUTH_FAIL"}; -const std::map _negotiation_status_VALUES_TO_NAMES( - ::apache::thrift::TEnumIterator(11, _knegotiation_statusValues, _knegotiation_statusNames), - ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -negotiation_request::~negotiation_request() throw() {} - -void negotiation_request::__set_status(const negotiation_status::type val) { this->status = val; } - -void negotiation_request::__set_msg(const ::dsn::blob &val) { this->msg = val; } - -uint32_t negotiation_request::read(::apache::thrift::protocol::TProtocol *iprot) -{ - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; +namespace dsn { namespace security { + +int _knegotiation_statusValues[] = { + negotiation_status::INVALID, + negotiation_status::SASL_LIST_MECHANISMS, + negotiation_status::SASL_LIST_MECHANISMS_RESP, + negotiation_status::SASL_SELECT_MECHANISMS, + negotiation_status::SASL_SELECT_MECHANISMS_RESP, + negotiation_status::SASL_INITIATE, + negotiation_status::SASL_CHALLENGE, + negotiation_status::SASL_CHALLENGE_RESP, + negotiation_status::SASL_SUCC, + negotiation_status::SASL_AUTH_DISABLE, + negotiation_status::SASL_AUTH_FAIL +}; +const char* _knegotiation_statusNames[] = { + "INVALID", + "SASL_LIST_MECHANISMS", + "SASL_LIST_MECHANISMS_RESP", + "SASL_SELECT_MECHANISMS", + "SASL_SELECT_MECHANISMS_RESP", + "SASL_INITIATE", + "SASL_CHALLENGE", + "SASL_CHALLENGE_RESP", + "SASL_SUCC", + "SASL_AUTH_DISABLE", + "SASL_AUTH_FAIL" +}; +const std::map _negotiation_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(11, _knegotiation_statusValues, _knegotiation_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + + +negotiation_request::~negotiation_request() throw() { +} + + +void negotiation_request::__set_status(const negotiation_status::type val) { + this->status = val; +} + +void negotiation_request::__set_msg(const ::dsn::blob& val) { + this->msg = val; +} + +uint32_t negotiation_request::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast0; + xfer += iprot->readI32(ecast0); + this->status = (negotiation_status::type)ecast0; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast0; - xfer += iprot->readI32(ecast0); - this->status = (negotiation_status::type)ecast0; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->msg.read(iprot); - this->__isset.msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->msg.read(iprot); + this->__isset.msg = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t negotiation_request::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("negotiation_request"); +uint32_t negotiation_request::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("negotiation_request"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("msg", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->msg.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("msg", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->msg.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(negotiation_request &a, negotiation_request &b) -{ - using ::std::swap; - swap(a.status, b.status); - swap(a.msg, b.msg); - swap(a.__isset, b.__isset); +void swap(negotiation_request &a, negotiation_request &b) { + using ::std::swap; + swap(a.status, b.status); + swap(a.msg, b.msg); + swap(a.__isset, b.__isset); } -negotiation_request::negotiation_request(const negotiation_request &other1) -{ - status = other1.status; - msg = other1.msg; - __isset = other1.__isset; +negotiation_request::negotiation_request(const negotiation_request& other1) { + status = other1.status; + msg = other1.msg; + __isset = other1.__isset; } -negotiation_request::negotiation_request(negotiation_request &&other2) -{ - status = std::move(other2.status); - msg = std::move(other2.msg); - __isset = std::move(other2.__isset); +negotiation_request::negotiation_request( negotiation_request&& other2) { + status = std::move(other2.status); + msg = std::move(other2.msg); + __isset = std::move(other2.__isset); } -negotiation_request &negotiation_request::operator=(const negotiation_request &other3) -{ - status = other3.status; - msg = other3.msg; - __isset = other3.__isset; - return *this; +negotiation_request& negotiation_request::operator=(const negotiation_request& other3) { + status = other3.status; + msg = other3.msg; + __isset = other3.__isset; + return *this; } -negotiation_request &negotiation_request::operator=(negotiation_request &&other4) -{ - status = std::move(other4.status); - msg = std::move(other4.msg); - __isset = std::move(other4.__isset); - return *this; +negotiation_request& negotiation_request::operator=(negotiation_request&& other4) { + status = std::move(other4.status); + msg = std::move(other4.msg); + __isset = std::move(other4.__isset); + return *this; } -void negotiation_request::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "negotiation_request("; - out << "status=" << to_string(status); - out << ", " - << "msg=" << to_string(msg); - out << ")"; +void negotiation_request::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "negotiation_request("; + out << "status=" << to_string(status); + out << ", " << "msg=" << to_string(msg); + out << ")"; } -negotiation_response::~negotiation_response() throw() {} -void negotiation_response::__set_status(const negotiation_status::type val) { this->status = val; } +negotiation_response::~negotiation_response() throw() { +} + -void negotiation_response::__set_msg(const ::dsn::blob &val) { this->msg = val; } +void negotiation_response::__set_status(const negotiation_status::type val) { + this->status = val; +} -uint32_t negotiation_response::read(::apache::thrift::protocol::TProtocol *iprot) -{ +void negotiation_response::__set_msg(const ::dsn::blob& val) { + this->msg = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t negotiation_response::read(::apache::thrift::protocol::TProtocol* iprot) { - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); - while (true) { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast5; + xfer += iprot->readI32(ecast5); + this->status = (negotiation_status::type)ecast5; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); } - switch (fid) { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast5; - xfer += iprot->readI32(ecast5); - this->status = (negotiation_status::type)ecast5; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->msg.read(iprot); - this->__isset.msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->msg.read(iprot); + this->__isset.msg = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readFieldEnd(); + break; + default: + xfer += iprot->skip(ftype); + break; } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t negotiation_response::write(::apache::thrift::protocol::TProtocol *oprot) const -{ - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("negotiation_response"); +uint32_t negotiation_response::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("negotiation_response"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("msg", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->msg.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("msg", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->msg.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(negotiation_response &a, negotiation_response &b) -{ - using ::std::swap; - swap(a.status, b.status); - swap(a.msg, b.msg); - swap(a.__isset, b.__isset); +void swap(negotiation_response &a, negotiation_response &b) { + using ::std::swap; + swap(a.status, b.status); + swap(a.msg, b.msg); + swap(a.__isset, b.__isset); } -negotiation_response::negotiation_response(const negotiation_response &other6) -{ - status = other6.status; - msg = other6.msg; - __isset = other6.__isset; +negotiation_response::negotiation_response(const negotiation_response& other6) { + status = other6.status; + msg = other6.msg; + __isset = other6.__isset; } -negotiation_response::negotiation_response(negotiation_response &&other7) -{ - status = std::move(other7.status); - msg = std::move(other7.msg); - __isset = std::move(other7.__isset); +negotiation_response::negotiation_response( negotiation_response&& other7) { + status = std::move(other7.status); + msg = std::move(other7.msg); + __isset = std::move(other7.__isset); } -negotiation_response &negotiation_response::operator=(const negotiation_response &other8) -{ - status = other8.status; - msg = other8.msg; - __isset = other8.__isset; - return *this; +negotiation_response& negotiation_response::operator=(const negotiation_response& other8) { + status = other8.status; + msg = other8.msg; + __isset = other8.__isset; + return *this; } -negotiation_response &negotiation_response::operator=(negotiation_response &&other9) -{ - status = std::move(other9.status); - msg = std::move(other9.msg); - __isset = std::move(other9.__isset); - return *this; +negotiation_response& negotiation_response::operator=(negotiation_response&& other9) { + status = std::move(other9.status); + msg = std::move(other9.msg); + __isset = std::move(other9.__isset); + return *this; } -void negotiation_response::printTo(std::ostream &out) const -{ - using ::apache::thrift::to_string; - out << "negotiation_response("; - out << "status=" << to_string(status); - out << ", " - << "msg=" << to_string(msg); - out << ")"; +void negotiation_response::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "negotiation_response("; + out << "status=" << to_string(status); + out << ", " << "msg=" << to_string(msg); + out << ")"; } -} -} // namespace + +}} // namespace diff --git a/src/runtime/security/security_types.h b/src/runtime/security/security_types.h index c797eac56b..54fd8466f4 100644 --- a/src/runtime/security/security_types.h +++ b/src/runtime/security/security_types.h @@ -17,137 +17,139 @@ #include -namespace dsn { -namespace security { -struct negotiation_status -{ - enum type - { - INVALID = 0, - SASL_LIST_MECHANISMS = 1, - SASL_LIST_MECHANISMS_RESP = 2, - SASL_SELECT_MECHANISMS = 3, - SASL_SELECT_MECHANISMS_RESP = 4, - SASL_INITIATE = 5, - SASL_CHALLENGE = 6, - SASL_CHALLENGE_RESP = 7, - SASL_SUCC = 8, - SASL_AUTH_DISABLE = 9, - SASL_AUTH_FAIL = 10 - }; +namespace dsn { namespace security { + +struct negotiation_status { + enum type { + INVALID = 0, + SASL_LIST_MECHANISMS = 1, + SASL_LIST_MECHANISMS_RESP = 2, + SASL_SELECT_MECHANISMS = 3, + SASL_SELECT_MECHANISMS_RESP = 4, + SASL_INITIATE = 5, + SASL_CHALLENGE = 6, + SASL_CHALLENGE_RESP = 7, + SASL_SUCC = 8, + SASL_AUTH_DISABLE = 9, + SASL_AUTH_FAIL = 10 + }; }; -extern const std::map _negotiation_status_VALUES_TO_NAMES; +extern const std::map _negotiation_status_VALUES_TO_NAMES; class negotiation_request; class negotiation_response; -typedef struct _negotiation_request__isset -{ - _negotiation_request__isset() : status(false), msg(false) {} - bool status : 1; - bool msg : 1; +typedef struct _negotiation_request__isset { + _negotiation_request__isset() : status(false), msg(false) {} + bool status :1; + bool msg :1; } _negotiation_request__isset; -class negotiation_request -{ -public: - negotiation_request(const negotiation_request &); - negotiation_request(negotiation_request &&); - negotiation_request &operator=(const negotiation_request &); - negotiation_request &operator=(negotiation_request &&); - negotiation_request() : status((negotiation_status::type)0) {} +class negotiation_request { + public: - virtual ~negotiation_request() throw(); - negotiation_status::type status; - ::dsn::blob msg; + negotiation_request(const negotiation_request&); + negotiation_request(negotiation_request&&); + negotiation_request& operator=(const negotiation_request&); + negotiation_request& operator=(negotiation_request&&); + negotiation_request() : status((negotiation_status::type)0) { + } - _negotiation_request__isset __isset; + virtual ~negotiation_request() throw(); + negotiation_status::type status; + ::dsn::blob msg; - void __set_status(const negotiation_status::type val); + _negotiation_request__isset __isset; - void __set_msg(const ::dsn::blob &val); + void __set_status(const negotiation_status::type val); - bool operator==(const negotiation_request &rhs) const - { - if (!(status == rhs.status)) - return false; - if (!(msg == rhs.msg)) - return false; - return true; - } - bool operator!=(const negotiation_request &rhs) const { return !(*this == rhs); } + void __set_msg(const ::dsn::blob& val); - bool operator<(const negotiation_request &) const; + bool operator == (const negotiation_request & rhs) const + { + if (!(status == rhs.status)) + return false; + if (!(msg == rhs.msg)) + return false; + return true; + } + bool operator != (const negotiation_request &rhs) const { + return !(*this == rhs); + } - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + bool operator < (const negotiation_request & ) const; - virtual void printTo(std::ostream &out) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; }; void swap(negotiation_request &a, negotiation_request &b); -inline std::ostream &operator<<(std::ostream &out, const negotiation_request &obj) +inline std::ostream& operator<<(std::ostream& out, const negotiation_request& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _negotiation_response__isset -{ - _negotiation_response__isset() : status(false), msg(false) {} - bool status : 1; - bool msg : 1; +typedef struct _negotiation_response__isset { + _negotiation_response__isset() : status(false), msg(false) {} + bool status :1; + bool msg :1; } _negotiation_response__isset; -class negotiation_response -{ -public: - negotiation_response(const negotiation_response &); - negotiation_response(negotiation_response &&); - negotiation_response &operator=(const negotiation_response &); - negotiation_response &operator=(negotiation_response &&); - negotiation_response() : status((negotiation_status::type)0) {} +class negotiation_response { + public: + + negotiation_response(const negotiation_response&); + negotiation_response(negotiation_response&&); + negotiation_response& operator=(const negotiation_response&); + negotiation_response& operator=(negotiation_response&&); + negotiation_response() : status((negotiation_status::type)0) { + } - virtual ~negotiation_response() throw(); - negotiation_status::type status; - ::dsn::blob msg; + virtual ~negotiation_response() throw(); + negotiation_status::type status; + ::dsn::blob msg; - _negotiation_response__isset __isset; + _negotiation_response__isset __isset; - void __set_status(const negotiation_status::type val); + void __set_status(const negotiation_status::type val); - void __set_msg(const ::dsn::blob &val); + void __set_msg(const ::dsn::blob& val); - bool operator==(const negotiation_response &rhs) const - { - if (!(status == rhs.status)) - return false; - if (!(msg == rhs.msg)) - return false; - return true; - } - bool operator!=(const negotiation_response &rhs) const { return !(*this == rhs); } + bool operator == (const negotiation_response & rhs) const + { + if (!(status == rhs.status)) + return false; + if (!(msg == rhs.msg)) + return false; + return true; + } + bool operator != (const negotiation_response &rhs) const { + return !(*this == rhs); + } - bool operator<(const negotiation_response &) const; + bool operator < (const negotiation_response & ) const; - uint32_t read(::apache::thrift::protocol::TProtocol *iprot); - uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream &out) const; + virtual void printTo(std::ostream& out) const; }; void swap(negotiation_response &a, negotiation_response &b); -inline std::ostream &operator<<(std::ostream &out, const negotiation_response &obj) +inline std::ostream& operator<<(std::ostream& out, const negotiation_response& obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -} -} // namespace + +}} // namespace #endif From 0b07a633aae13300f731558718fd279a0ff2d7ae Mon Sep 17 00:00:00 2001 From: tangyanzhao Date: Wed, 23 Dec 2020 00:46:02 +0800 Subject: [PATCH 2/2] format --- .../serialization_helper/dsn.layer2_types.h | 854 +- include/dsn/dist/failure_detector/fd_types.h | 323 +- .../dsn/dist/replication/replication_types.h | 11231 +++--- src/common/replication_types.cpp | 32989 ++++++++-------- src/remote_cmd/command_types.cpp | 221 +- src/remote_cmd/command_types.h | 82 +- src/replica/replica_stub.cpp | 110 +- src/runtime/dsn.layer2_types.cpp | 2237 +- src/runtime/security/security_types.cpp | 443 +- src/runtime/security/security_types.h | 184 +- 10 files changed, 24824 insertions(+), 23850 deletions(-) diff --git a/include/dsn/cpp/serialization_helper/dsn.layer2_types.h b/include/dsn/cpp/serialization_helper/dsn.layer2_types.h index d6b581816c..6ba23da9a1 100644 --- a/include/dsn/cpp/serialization_helper/dsn.layer2_types.h +++ b/include/dsn/cpp/serialization_helper/dsn.layer2_types.h @@ -17,23 +17,24 @@ #include - namespace dsn { -struct app_status { - enum type { - AS_INVALID = 0, - AS_AVAILABLE = 1, - AS_CREATING = 2, - AS_CREATE_FAILED = 3, - AS_DROPPING = 4, - AS_DROP_FAILED = 5, - AS_DROPPED = 6, - AS_RECALLING = 7 - }; +struct app_status +{ + enum type + { + AS_INVALID = 0, + AS_AVAILABLE = 1, + AS_CREATING = 2, + AS_CREATE_FAILED = 3, + AS_DROPPING = 4, + AS_DROP_FAILED = 5, + AS_DROPPED = 6, + AS_RECALLING = 7 + }; }; -extern const std::map _app_status_VALUES_TO_NAMES; +extern const std::map _app_status_VALUES_TO_NAMES; class partition_configuration; @@ -45,434 +46,491 @@ class app_info; class thrift_request_meta_v1; -typedef struct _partition_configuration__isset { - _partition_configuration__isset() : pid(false), ballot(false), max_replica_count(false), primary(false), secondaries(false), last_drops(false), last_committed_decree(false), partition_flags(false) {} - bool pid :1; - bool ballot :1; - bool max_replica_count :1; - bool primary :1; - bool secondaries :1; - bool last_drops :1; - bool last_committed_decree :1; - bool partition_flags :1; +typedef struct _partition_configuration__isset +{ + _partition_configuration__isset() + : pid(false), + ballot(false), + max_replica_count(false), + primary(false), + secondaries(false), + last_drops(false), + last_committed_decree(false), + partition_flags(false) + { + } + bool pid : 1; + bool ballot : 1; + bool max_replica_count : 1; + bool primary : 1; + bool secondaries : 1; + bool last_drops : 1; + bool last_committed_decree : 1; + bool partition_flags : 1; } _partition_configuration__isset; -class partition_configuration { - public: - - partition_configuration(const partition_configuration&); - partition_configuration(partition_configuration&&); - partition_configuration& operator=(const partition_configuration&); - partition_configuration& operator=(partition_configuration&&); - partition_configuration() : ballot(0), max_replica_count(0), last_committed_decree(0), partition_flags(0) { - } - - virtual ~partition_configuration() throw(); - ::dsn::gpid pid; - int64_t ballot; - int32_t max_replica_count; - ::dsn::rpc_address primary; - std::vector< ::dsn::rpc_address> secondaries; - std::vector< ::dsn::rpc_address> last_drops; - int64_t last_committed_decree; - int32_t partition_flags; - - _partition_configuration__isset __isset; - - void __set_pid(const ::dsn::gpid& val); - - void __set_ballot(const int64_t val); - - void __set_max_replica_count(const int32_t val); - - void __set_primary(const ::dsn::rpc_address& val); - - void __set_secondaries(const std::vector< ::dsn::rpc_address> & val); - - void __set_last_drops(const std::vector< ::dsn::rpc_address> & val); - - void __set_last_committed_decree(const int64_t val); - - void __set_partition_flags(const int32_t val); - - bool operator == (const partition_configuration & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(max_replica_count == rhs.max_replica_count)) - return false; - if (!(primary == rhs.primary)) - return false; - if (!(secondaries == rhs.secondaries)) - return false; - if (!(last_drops == rhs.last_drops)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(partition_flags == rhs.partition_flags)) - return false; - return true; - } - bool operator != (const partition_configuration &rhs) const { - return !(*this == rhs); - } - - bool operator < (const partition_configuration & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class partition_configuration +{ +public: + partition_configuration(const partition_configuration &); + partition_configuration(partition_configuration &&); + partition_configuration &operator=(const partition_configuration &); + partition_configuration &operator=(partition_configuration &&); + partition_configuration() + : ballot(0), max_replica_count(0), last_committed_decree(0), partition_flags(0) + { + } + + virtual ~partition_configuration() throw(); + ::dsn::gpid pid; + int64_t ballot; + int32_t max_replica_count; + ::dsn::rpc_address primary; + std::vector<::dsn::rpc_address> secondaries; + std::vector<::dsn::rpc_address> last_drops; + int64_t last_committed_decree; + int32_t partition_flags; + + _partition_configuration__isset __isset; + + void __set_pid(const ::dsn::gpid &val); + + void __set_ballot(const int64_t val); + + void __set_max_replica_count(const int32_t val); + + void __set_primary(const ::dsn::rpc_address &val); + + void __set_secondaries(const std::vector<::dsn::rpc_address> &val); + + void __set_last_drops(const std::vector<::dsn::rpc_address> &val); + + void __set_last_committed_decree(const int64_t val); + + void __set_partition_flags(const int32_t val); + + bool operator==(const partition_configuration &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(max_replica_count == rhs.max_replica_count)) + return false; + if (!(primary == rhs.primary)) + return false; + if (!(secondaries == rhs.secondaries)) + return false; + if (!(last_drops == rhs.last_drops)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(partition_flags == rhs.partition_flags)) + return false; + return true; + } + bool operator!=(const partition_configuration &rhs) const { return !(*this == rhs); } + + bool operator<(const partition_configuration &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(partition_configuration &a, partition_configuration &b); -inline std::ostream& operator<<(std::ostream& out, const partition_configuration& obj) +inline std::ostream &operator<<(std::ostream &out, const partition_configuration &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_by_index_request__isset { - _configuration_query_by_index_request__isset() : app_name(false), partition_indices(false) {} - bool app_name :1; - bool partition_indices :1; +typedef struct _configuration_query_by_index_request__isset +{ + _configuration_query_by_index_request__isset() : app_name(false), partition_indices(false) {} + bool app_name : 1; + bool partition_indices : 1; } _configuration_query_by_index_request__isset; -class configuration_query_by_index_request { - public: - - configuration_query_by_index_request(const configuration_query_by_index_request&); - configuration_query_by_index_request(configuration_query_by_index_request&&); - configuration_query_by_index_request& operator=(const configuration_query_by_index_request&); - configuration_query_by_index_request& operator=(configuration_query_by_index_request&&); - configuration_query_by_index_request() : app_name() { - } - - virtual ~configuration_query_by_index_request() throw(); - std::string app_name; - std::vector partition_indices; - - _configuration_query_by_index_request__isset __isset; - - void __set_app_name(const std::string& val); - - void __set_partition_indices(const std::vector & val); - - bool operator == (const configuration_query_by_index_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(partition_indices == rhs.partition_indices)) - return false; - return true; - } - bool operator != (const configuration_query_by_index_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_query_by_index_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class configuration_query_by_index_request +{ +public: + configuration_query_by_index_request(const configuration_query_by_index_request &); + configuration_query_by_index_request(configuration_query_by_index_request &&); + configuration_query_by_index_request &operator=(const configuration_query_by_index_request &); + configuration_query_by_index_request &operator=(configuration_query_by_index_request &&); + configuration_query_by_index_request() : app_name() {} + + virtual ~configuration_query_by_index_request() throw(); + std::string app_name; + std::vector partition_indices; + + _configuration_query_by_index_request__isset __isset; + + void __set_app_name(const std::string &val); + + void __set_partition_indices(const std::vector &val); + + bool operator==(const configuration_query_by_index_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(partition_indices == rhs.partition_indices)) + return false; + return true; + } + bool operator!=(const configuration_query_by_index_request &rhs) const + { + return !(*this == rhs); + } + + bool operator<(const configuration_query_by_index_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(configuration_query_by_index_request &a, configuration_query_by_index_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_query_by_index_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_query_by_index_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_by_index_response__isset { - _configuration_query_by_index_response__isset() : err(false), app_id(false), partition_count(false), is_stateful(false), partitions(false) {} - bool err :1; - bool app_id :1; - bool partition_count :1; - bool is_stateful :1; - bool partitions :1; +typedef struct _configuration_query_by_index_response__isset +{ + _configuration_query_by_index_response__isset() + : err(false), app_id(false), partition_count(false), is_stateful(false), partitions(false) + { + } + bool err : 1; + bool app_id : 1; + bool partition_count : 1; + bool is_stateful : 1; + bool partitions : 1; } _configuration_query_by_index_response__isset; -class configuration_query_by_index_response { - public: - - configuration_query_by_index_response(const configuration_query_by_index_response&); - configuration_query_by_index_response(configuration_query_by_index_response&&); - configuration_query_by_index_response& operator=(const configuration_query_by_index_response&); - configuration_query_by_index_response& operator=(configuration_query_by_index_response&&); - configuration_query_by_index_response() : app_id(0), partition_count(0), is_stateful(0) { - } - - virtual ~configuration_query_by_index_response() throw(); - ::dsn::error_code err; - int32_t app_id; - int32_t partition_count; - bool is_stateful; - std::vector partitions; - - _configuration_query_by_index_response__isset __isset; - - void __set_err(const ::dsn::error_code& val); - - void __set_app_id(const int32_t val); - - void __set_partition_count(const int32_t val); - - void __set_is_stateful(const bool val); - - void __set_partitions(const std::vector & val); - - bool operator == (const configuration_query_by_index_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(app_id == rhs.app_id)) - return false; - if (!(partition_count == rhs.partition_count)) - return false; - if (!(is_stateful == rhs.is_stateful)) - return false; - if (!(partitions == rhs.partitions)) - return false; - return true; - } - bool operator != (const configuration_query_by_index_response &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_query_by_index_response & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class configuration_query_by_index_response +{ +public: + configuration_query_by_index_response(const configuration_query_by_index_response &); + configuration_query_by_index_response(configuration_query_by_index_response &&); + configuration_query_by_index_response &operator=(const configuration_query_by_index_response &); + configuration_query_by_index_response &operator=(configuration_query_by_index_response &&); + configuration_query_by_index_response() : app_id(0), partition_count(0), is_stateful(0) {} + + virtual ~configuration_query_by_index_response() throw(); + ::dsn::error_code err; + int32_t app_id; + int32_t partition_count; + bool is_stateful; + std::vector partitions; + + _configuration_query_by_index_response__isset __isset; + + void __set_err(const ::dsn::error_code &val); + + void __set_app_id(const int32_t val); + + void __set_partition_count(const int32_t val); + + void __set_is_stateful(const bool val); + + void __set_partitions(const std::vector &val); + + bool operator==(const configuration_query_by_index_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(app_id == rhs.app_id)) + return false; + if (!(partition_count == rhs.partition_count)) + return false; + if (!(is_stateful == rhs.is_stateful)) + return false; + if (!(partitions == rhs.partitions)) + return false; + return true; + } + bool operator!=(const configuration_query_by_index_response &rhs) const + { + return !(*this == rhs); + } + + bool operator<(const configuration_query_by_index_response &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(configuration_query_by_index_response &a, configuration_query_by_index_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_query_by_index_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_query_by_index_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _app_info__isset { - _app_info__isset() : status(true), app_type(false), app_name(false), app_id(false), partition_count(false), envs(false), is_stateful(false), max_replica_count(false), expire_second(false), create_second(false), drop_second(false), duplicating(false), init_partition_count(true), is_bulk_loading(true) {} - bool status :1; - bool app_type :1; - bool app_name :1; - bool app_id :1; - bool partition_count :1; - bool envs :1; - bool is_stateful :1; - bool max_replica_count :1; - bool expire_second :1; - bool create_second :1; - bool drop_second :1; - bool duplicating :1; - bool init_partition_count :1; - bool is_bulk_loading :1; +typedef struct _app_info__isset +{ + _app_info__isset() + : status(true), + app_type(false), + app_name(false), + app_id(false), + partition_count(false), + envs(false), + is_stateful(false), + max_replica_count(false), + expire_second(false), + create_second(false), + drop_second(false), + duplicating(false), + init_partition_count(true), + is_bulk_loading(true) + { + } + bool status : 1; + bool app_type : 1; + bool app_name : 1; + bool app_id : 1; + bool partition_count : 1; + bool envs : 1; + bool is_stateful : 1; + bool max_replica_count : 1; + bool expire_second : 1; + bool create_second : 1; + bool drop_second : 1; + bool duplicating : 1; + bool init_partition_count : 1; + bool is_bulk_loading : 1; } _app_info__isset; -class app_info { - public: - - app_info(const app_info&); - app_info(app_info&&); - app_info& operator=(const app_info&); - app_info& operator=(app_info&&); - app_info() : status((app_status::type)0), app_type(), app_name(), app_id(0), partition_count(0), is_stateful(0), max_replica_count(0), expire_second(0), create_second(0), drop_second(0), duplicating(0), init_partition_count(-1), is_bulk_loading(false) { - status = (app_status::type)0; - - } - - virtual ~app_info() throw(); - app_status::type status; - std::string app_type; - std::string app_name; - int32_t app_id; - int32_t partition_count; - std::map envs; - bool is_stateful; - int32_t max_replica_count; - int64_t expire_second; - int64_t create_second; - int64_t drop_second; - bool duplicating; - int32_t init_partition_count; - bool is_bulk_loading; - - _app_info__isset __isset; - - void __set_status(const app_status::type val); - - void __set_app_type(const std::string& val); - - void __set_app_name(const std::string& val); - - void __set_app_id(const int32_t val); - - void __set_partition_count(const int32_t val); - - void __set_envs(const std::map & val); - - void __set_is_stateful(const bool val); - - void __set_max_replica_count(const int32_t val); - - void __set_expire_second(const int64_t val); - - void __set_create_second(const int64_t val); - - void __set_drop_second(const int64_t val); - - void __set_duplicating(const bool val); - - void __set_init_partition_count(const int32_t val); - - void __set_is_bulk_loading(const bool val); - - bool operator == (const app_info & rhs) const - { - if (!(status == rhs.status)) - return false; - if (!(app_type == rhs.app_type)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(app_id == rhs.app_id)) - return false; - if (!(partition_count == rhs.partition_count)) - return false; - if (!(envs == rhs.envs)) - return false; - if (!(is_stateful == rhs.is_stateful)) - return false; - if (!(max_replica_count == rhs.max_replica_count)) - return false; - if (!(expire_second == rhs.expire_second)) - return false; - if (!(create_second == rhs.create_second)) - return false; - if (!(drop_second == rhs.drop_second)) - return false; - if (__isset.duplicating != rhs.__isset.duplicating) - return false; - else if (__isset.duplicating && !(duplicating == rhs.duplicating)) - return false; - if (!(init_partition_count == rhs.init_partition_count)) - return false; - if (__isset.is_bulk_loading != rhs.__isset.is_bulk_loading) - return false; - else if (__isset.is_bulk_loading && !(is_bulk_loading == rhs.is_bulk_loading)) - return false; - return true; - } - bool operator != (const app_info &rhs) const { - return !(*this == rhs); - } - - bool operator < (const app_info & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class app_info +{ +public: + app_info(const app_info &); + app_info(app_info &&); + app_info &operator=(const app_info &); + app_info &operator=(app_info &&); + app_info() + : status((app_status::type)0), + app_type(), + app_name(), + app_id(0), + partition_count(0), + is_stateful(0), + max_replica_count(0), + expire_second(0), + create_second(0), + drop_second(0), + duplicating(0), + init_partition_count(-1), + is_bulk_loading(false) + { + status = (app_status::type)0; + } + + virtual ~app_info() throw(); + app_status::type status; + std::string app_type; + std::string app_name; + int32_t app_id; + int32_t partition_count; + std::map envs; + bool is_stateful; + int32_t max_replica_count; + int64_t expire_second; + int64_t create_second; + int64_t drop_second; + bool duplicating; + int32_t init_partition_count; + bool is_bulk_loading; + + _app_info__isset __isset; + + void __set_status(const app_status::type val); + + void __set_app_type(const std::string &val); + + void __set_app_name(const std::string &val); + + void __set_app_id(const int32_t val); + + void __set_partition_count(const int32_t val); + + void __set_envs(const std::map &val); + + void __set_is_stateful(const bool val); + + void __set_max_replica_count(const int32_t val); + + void __set_expire_second(const int64_t val); + + void __set_create_second(const int64_t val); + + void __set_drop_second(const int64_t val); + + void __set_duplicating(const bool val); + + void __set_init_partition_count(const int32_t val); + + void __set_is_bulk_loading(const bool val); + + bool operator==(const app_info &rhs) const + { + if (!(status == rhs.status)) + return false; + if (!(app_type == rhs.app_type)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(app_id == rhs.app_id)) + return false; + if (!(partition_count == rhs.partition_count)) + return false; + if (!(envs == rhs.envs)) + return false; + if (!(is_stateful == rhs.is_stateful)) + return false; + if (!(max_replica_count == rhs.max_replica_count)) + return false; + if (!(expire_second == rhs.expire_second)) + return false; + if (!(create_second == rhs.create_second)) + return false; + if (!(drop_second == rhs.drop_second)) + return false; + if (__isset.duplicating != rhs.__isset.duplicating) + return false; + else if (__isset.duplicating && !(duplicating == rhs.duplicating)) + return false; + if (!(init_partition_count == rhs.init_partition_count)) + return false; + if (__isset.is_bulk_loading != rhs.__isset.is_bulk_loading) + return false; + else if (__isset.is_bulk_loading && !(is_bulk_loading == rhs.is_bulk_loading)) + return false; + return true; + } + bool operator!=(const app_info &rhs) const { return !(*this == rhs); } + + bool operator<(const app_info &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(app_info &a, app_info &b); -inline std::ostream& operator<<(std::ostream& out, const app_info& obj) +inline std::ostream &operator<<(std::ostream &out, const app_info &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _thrift_request_meta_v1__isset { - _thrift_request_meta_v1__isset() : app_id(false), partition_index(false), client_timeout(false), client_partition_hash(false), is_backup_request(false) {} - bool app_id :1; - bool partition_index :1; - bool client_timeout :1; - bool client_partition_hash :1; - bool is_backup_request :1; +typedef struct _thrift_request_meta_v1__isset +{ + _thrift_request_meta_v1__isset() + : app_id(false), + partition_index(false), + client_timeout(false), + client_partition_hash(false), + is_backup_request(false) + { + } + bool app_id : 1; + bool partition_index : 1; + bool client_timeout : 1; + bool client_partition_hash : 1; + bool is_backup_request : 1; } _thrift_request_meta_v1__isset; -class thrift_request_meta_v1 { - public: - - thrift_request_meta_v1(const thrift_request_meta_v1&); - thrift_request_meta_v1(thrift_request_meta_v1&&); - thrift_request_meta_v1& operator=(const thrift_request_meta_v1&); - thrift_request_meta_v1& operator=(thrift_request_meta_v1&&); - thrift_request_meta_v1() : app_id(0), partition_index(0), client_timeout(0), client_partition_hash(0), is_backup_request(0) { - } - - virtual ~thrift_request_meta_v1() throw(); - int32_t app_id; - int32_t partition_index; - int32_t client_timeout; - int64_t client_partition_hash; - bool is_backup_request; - - _thrift_request_meta_v1__isset __isset; - - void __set_app_id(const int32_t val); - - void __set_partition_index(const int32_t val); - - void __set_client_timeout(const int32_t val); - - void __set_client_partition_hash(const int64_t val); - - void __set_is_backup_request(const bool val); - - bool operator == (const thrift_request_meta_v1 & rhs) const - { - if (__isset.app_id != rhs.__isset.app_id) - return false; - else if (__isset.app_id && !(app_id == rhs.app_id)) - return false; - if (__isset.partition_index != rhs.__isset.partition_index) - return false; - else if (__isset.partition_index && !(partition_index == rhs.partition_index)) - return false; - if (__isset.client_timeout != rhs.__isset.client_timeout) - return false; - else if (__isset.client_timeout && !(client_timeout == rhs.client_timeout)) - return false; - if (__isset.client_partition_hash != rhs.__isset.client_partition_hash) - return false; - else if (__isset.client_partition_hash && !(client_partition_hash == rhs.client_partition_hash)) - return false; - if (__isset.is_backup_request != rhs.__isset.is_backup_request) - return false; - else if (__isset.is_backup_request && !(is_backup_request == rhs.is_backup_request)) - return false; - return true; - } - bool operator != (const thrift_request_meta_v1 &rhs) const { - return !(*this == rhs); - } - - bool operator < (const thrift_request_meta_v1 & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class thrift_request_meta_v1 +{ +public: + thrift_request_meta_v1(const thrift_request_meta_v1 &); + thrift_request_meta_v1(thrift_request_meta_v1 &&); + thrift_request_meta_v1 &operator=(const thrift_request_meta_v1 &); + thrift_request_meta_v1 &operator=(thrift_request_meta_v1 &&); + thrift_request_meta_v1() + : app_id(0), + partition_index(0), + client_timeout(0), + client_partition_hash(0), + is_backup_request(0) + { + } + + virtual ~thrift_request_meta_v1() throw(); + int32_t app_id; + int32_t partition_index; + int32_t client_timeout; + int64_t client_partition_hash; + bool is_backup_request; + + _thrift_request_meta_v1__isset __isset; + + void __set_app_id(const int32_t val); + + void __set_partition_index(const int32_t val); + + void __set_client_timeout(const int32_t val); + + void __set_client_partition_hash(const int64_t val); + + void __set_is_backup_request(const bool val); + + bool operator==(const thrift_request_meta_v1 &rhs) const + { + if (__isset.app_id != rhs.__isset.app_id) + return false; + else if (__isset.app_id && !(app_id == rhs.app_id)) + return false; + if (__isset.partition_index != rhs.__isset.partition_index) + return false; + else if (__isset.partition_index && !(partition_index == rhs.partition_index)) + return false; + if (__isset.client_timeout != rhs.__isset.client_timeout) + return false; + else if (__isset.client_timeout && !(client_timeout == rhs.client_timeout)) + return false; + if (__isset.client_partition_hash != rhs.__isset.client_partition_hash) + return false; + else if (__isset.client_partition_hash && + !(client_partition_hash == rhs.client_partition_hash)) + return false; + if (__isset.is_backup_request != rhs.__isset.is_backup_request) + return false; + else if (__isset.is_backup_request && !(is_backup_request == rhs.is_backup_request)) + return false; + return true; + } + bool operator!=(const thrift_request_meta_v1 &rhs) const { return !(*this == rhs); } + + bool operator<(const thrift_request_meta_v1 &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(thrift_request_meta_v1 &a, thrift_request_meta_v1 &b); -inline std::ostream& operator<<(std::ostream& out, const thrift_request_meta_v1& obj) +inline std::ostream &operator<<(std::ostream &out, const thrift_request_meta_v1 &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } } // namespace diff --git a/include/dsn/dist/failure_detector/fd_types.h b/include/dsn/dist/failure_detector/fd_types.h index 23031a82de..28625de849 100644 --- a/include/dsn/dist/failure_detector/fd_types.h +++ b/include/dsn/dist/failure_detector/fd_types.h @@ -17,8 +17,8 @@ #include - -namespace dsn { namespace fd { +namespace dsn { +namespace fd { class beacon_msg; @@ -26,200 +26,197 @@ class beacon_ack; class config_master_message; -typedef struct _beacon_msg__isset { - _beacon_msg__isset() : time(false), from_addr(false), to_addr(false), start_time(false) {} - bool time :1; - bool from_addr :1; - bool to_addr :1; - bool start_time :1; +typedef struct _beacon_msg__isset +{ + _beacon_msg__isset() : time(false), from_addr(false), to_addr(false), start_time(false) {} + bool time : 1; + bool from_addr : 1; + bool to_addr : 1; + bool start_time : 1; } _beacon_msg__isset; -class beacon_msg { - public: - - beacon_msg(const beacon_msg&); - beacon_msg(beacon_msg&&); - beacon_msg& operator=(const beacon_msg&); - beacon_msg& operator=(beacon_msg&&); - beacon_msg() : time(0), start_time(0) { - } - - virtual ~beacon_msg() throw(); - int64_t time; - ::dsn::rpc_address from_addr; - ::dsn::rpc_address to_addr; - int64_t start_time; - - _beacon_msg__isset __isset; - - void __set_time(const int64_t val); - - void __set_from_addr(const ::dsn::rpc_address& val); - - void __set_to_addr(const ::dsn::rpc_address& val); - - void __set_start_time(const int64_t val); - - bool operator == (const beacon_msg & rhs) const - { - if (!(time == rhs.time)) - return false; - if (!(from_addr == rhs.from_addr)) - return false; - if (!(to_addr == rhs.to_addr)) - return false; - if (__isset.start_time != rhs.__isset.start_time) - return false; - else if (__isset.start_time && !(start_time == rhs.start_time)) - return false; - return true; - } - bool operator != (const beacon_msg &rhs) const { - return !(*this == rhs); - } - - bool operator < (const beacon_msg & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class beacon_msg +{ +public: + beacon_msg(const beacon_msg &); + beacon_msg(beacon_msg &&); + beacon_msg &operator=(const beacon_msg &); + beacon_msg &operator=(beacon_msg &&); + beacon_msg() : time(0), start_time(0) {} + + virtual ~beacon_msg() throw(); + int64_t time; + ::dsn::rpc_address from_addr; + ::dsn::rpc_address to_addr; + int64_t start_time; + + _beacon_msg__isset __isset; + + void __set_time(const int64_t val); + + void __set_from_addr(const ::dsn::rpc_address &val); + + void __set_to_addr(const ::dsn::rpc_address &val); + + void __set_start_time(const int64_t val); + + bool operator==(const beacon_msg &rhs) const + { + if (!(time == rhs.time)) + return false; + if (!(from_addr == rhs.from_addr)) + return false; + if (!(to_addr == rhs.to_addr)) + return false; + if (__isset.start_time != rhs.__isset.start_time) + return false; + else if (__isset.start_time && !(start_time == rhs.start_time)) + return false; + return true; + } + bool operator!=(const beacon_msg &rhs) const { return !(*this == rhs); } + + bool operator<(const beacon_msg &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(beacon_msg &a, beacon_msg &b); -inline std::ostream& operator<<(std::ostream& out, const beacon_msg& obj) +inline std::ostream &operator<<(std::ostream &out, const beacon_msg &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _beacon_ack__isset { - _beacon_ack__isset() : time(false), this_node(false), primary_node(false), is_master(false), allowed(false) {} - bool time :1; - bool this_node :1; - bool primary_node :1; - bool is_master :1; - bool allowed :1; +typedef struct _beacon_ack__isset +{ + _beacon_ack__isset() + : time(false), this_node(false), primary_node(false), is_master(false), allowed(false) + { + } + bool time : 1; + bool this_node : 1; + bool primary_node : 1; + bool is_master : 1; + bool allowed : 1; } _beacon_ack__isset; -class beacon_ack { - public: - - beacon_ack(const beacon_ack&); - beacon_ack(beacon_ack&&); - beacon_ack& operator=(const beacon_ack&); - beacon_ack& operator=(beacon_ack&&); - beacon_ack() : time(0), is_master(0), allowed(0) { - } - - virtual ~beacon_ack() throw(); - int64_t time; - ::dsn::rpc_address this_node; - ::dsn::rpc_address primary_node; - bool is_master; - bool allowed; - - _beacon_ack__isset __isset; - - void __set_time(const int64_t val); - - void __set_this_node(const ::dsn::rpc_address& val); - - void __set_primary_node(const ::dsn::rpc_address& val); - - void __set_is_master(const bool val); - - void __set_allowed(const bool val); - - bool operator == (const beacon_ack & rhs) const - { - if (!(time == rhs.time)) - return false; - if (!(this_node == rhs.this_node)) - return false; - if (!(primary_node == rhs.primary_node)) - return false; - if (!(is_master == rhs.is_master)) - return false; - if (!(allowed == rhs.allowed)) - return false; - return true; - } - bool operator != (const beacon_ack &rhs) const { - return !(*this == rhs); - } - - bool operator < (const beacon_ack & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class beacon_ack +{ +public: + beacon_ack(const beacon_ack &); + beacon_ack(beacon_ack &&); + beacon_ack &operator=(const beacon_ack &); + beacon_ack &operator=(beacon_ack &&); + beacon_ack() : time(0), is_master(0), allowed(0) {} + + virtual ~beacon_ack() throw(); + int64_t time; + ::dsn::rpc_address this_node; + ::dsn::rpc_address primary_node; + bool is_master; + bool allowed; + + _beacon_ack__isset __isset; + + void __set_time(const int64_t val); + + void __set_this_node(const ::dsn::rpc_address &val); + + void __set_primary_node(const ::dsn::rpc_address &val); + + void __set_is_master(const bool val); + + void __set_allowed(const bool val); + + bool operator==(const beacon_ack &rhs) const + { + if (!(time == rhs.time)) + return false; + if (!(this_node == rhs.this_node)) + return false; + if (!(primary_node == rhs.primary_node)) + return false; + if (!(is_master == rhs.is_master)) + return false; + if (!(allowed == rhs.allowed)) + return false; + return true; + } + bool operator!=(const beacon_ack &rhs) const { return !(*this == rhs); } + + bool operator<(const beacon_ack &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(beacon_ack &a, beacon_ack &b); -inline std::ostream& operator<<(std::ostream& out, const beacon_ack& obj) +inline std::ostream &operator<<(std::ostream &out, const beacon_ack &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _config_master_message__isset { - _config_master_message__isset() : master(false), is_register(false) {} - bool master :1; - bool is_register :1; +typedef struct _config_master_message__isset +{ + _config_master_message__isset() : master(false), is_register(false) {} + bool master : 1; + bool is_register : 1; } _config_master_message__isset; -class config_master_message { - public: - - config_master_message(const config_master_message&); - config_master_message(config_master_message&&); - config_master_message& operator=(const config_master_message&); - config_master_message& operator=(config_master_message&&); - config_master_message() : is_register(0) { - } +class config_master_message +{ +public: + config_master_message(const config_master_message &); + config_master_message(config_master_message &&); + config_master_message &operator=(const config_master_message &); + config_master_message &operator=(config_master_message &&); + config_master_message() : is_register(0) {} - virtual ~config_master_message() throw(); - ::dsn::rpc_address master; - bool is_register; + virtual ~config_master_message() throw(); + ::dsn::rpc_address master; + bool is_register; - _config_master_message__isset __isset; + _config_master_message__isset __isset; - void __set_master(const ::dsn::rpc_address& val); + void __set_master(const ::dsn::rpc_address &val); - void __set_is_register(const bool val); + void __set_is_register(const bool val); - bool operator == (const config_master_message & rhs) const - { - if (!(master == rhs.master)) - return false; - if (!(is_register == rhs.is_register)) - return false; - return true; - } - bool operator != (const config_master_message &rhs) const { - return !(*this == rhs); - } + bool operator==(const config_master_message &rhs) const + { + if (!(master == rhs.master)) + return false; + if (!(is_register == rhs.is_register)) + return false; + return true; + } + bool operator!=(const config_master_message &rhs) const { return !(*this == rhs); } - bool operator < (const config_master_message & ) const; + bool operator<(const config_master_message &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(config_master_message &a, config_master_message &b); -inline std::ostream& operator<<(std::ostream& out, const config_master_message& obj) +inline std::ostream &operator<<(std::ostream &out, const config_master_message &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } - -}} // namespace +} +} // namespace #endif diff --git a/include/dsn/dist/replication/replication_types.h b/include/dsn/dist/replication/replication_types.h index cb62be64dc..63806a765c 100644 --- a/include/dsn/dist/replication/replication_types.h +++ b/include/dsn/dist/replication/replication_types.h @@ -17,221 +17,257 @@ #include +namespace dsn { +namespace replication { -namespace dsn { namespace replication { - -struct partition_status { - enum type { - PS_INVALID = 0, - PS_INACTIVE = 1, - PS_ERROR = 2, - PS_PRIMARY = 3, - PS_SECONDARY = 4, - PS_POTENTIAL_SECONDARY = 5, - PS_PARTITION_SPLIT = 6 - }; +struct partition_status +{ + enum type + { + PS_INVALID = 0, + PS_INACTIVE = 1, + PS_ERROR = 2, + PS_PRIMARY = 3, + PS_SECONDARY = 4, + PS_POTENTIAL_SECONDARY = 5, + PS_PARTITION_SPLIT = 6 + }; }; -extern const std::map _partition_status_VALUES_TO_NAMES; +extern const std::map _partition_status_VALUES_TO_NAMES; -struct read_semantic { - enum type { - ReadInvalid = 0, - ReadLastUpdate = 1, - ReadOutdated = 2, - ReadSnapshot = 3 - }; +struct read_semantic +{ + enum type + { + ReadInvalid = 0, + ReadLastUpdate = 1, + ReadOutdated = 2, + ReadSnapshot = 3 + }; }; -extern const std::map _read_semantic_VALUES_TO_NAMES; +extern const std::map _read_semantic_VALUES_TO_NAMES; -struct learn_type { - enum type { - LT_INVALID = 0, - LT_CACHE = 1, - LT_APP = 2, - LT_LOG = 3 - }; +struct learn_type +{ + enum type + { + LT_INVALID = 0, + LT_CACHE = 1, + LT_APP = 2, + LT_LOG = 3 + }; }; -extern const std::map _learn_type_VALUES_TO_NAMES; +extern const std::map _learn_type_VALUES_TO_NAMES; -struct learner_status { - enum type { - LearningInvalid = 0, - LearningWithoutPrepare = 1, - LearningWithPrepareTransient = 2, - LearningWithPrepare = 3, - LearningSucceeded = 4, - LearningFailed = 5 - }; +struct learner_status +{ + enum type + { + LearningInvalid = 0, + LearningWithoutPrepare = 1, + LearningWithPrepareTransient = 2, + LearningWithPrepare = 3, + LearningSucceeded = 4, + LearningFailed = 5 + }; }; -extern const std::map _learner_status_VALUES_TO_NAMES; +extern const std::map _learner_status_VALUES_TO_NAMES; -struct split_status { - enum type { - NOT_SPLIT = 0, - SPLITTING = 1, - PAUSING = 2, - PAUSED = 3, - CANCELING = 4 - }; -}; - -extern const std::map _split_status_VALUES_TO_NAMES; - -struct config_type { - enum type { - CT_INVALID = 0, - CT_ASSIGN_PRIMARY = 1, - CT_UPGRADE_TO_PRIMARY = 2, - CT_ADD_SECONDARY = 3, - CT_UPGRADE_TO_SECONDARY = 4, - CT_DOWNGRADE_TO_SECONDARY = 5, - CT_DOWNGRADE_TO_INACTIVE = 6, - CT_REMOVE = 7, - CT_ADD_SECONDARY_FOR_LB = 8, - CT_PRIMARY_FORCE_UPDATE_BALLOT = 9, - CT_DROP_PARTITION = 10, - CT_REGISTER_CHILD = 11 - }; -}; - -extern const std::map _config_type_VALUES_TO_NAMES; - -struct node_status { - enum type { - NS_INVALID = 0, - NS_ALIVE = 1, - NS_UNALIVE = 2 - }; +struct split_status +{ + enum type + { + NOT_SPLIT = 0, + SPLITTING = 1, + PAUSING = 2, + PAUSED = 3, + CANCELING = 4 + }; }; -extern const std::map _node_status_VALUES_TO_NAMES; +extern const std::map _split_status_VALUES_TO_NAMES; -struct meta_function_level { - enum type { - fl_stopped = 100, - fl_blind = 200, - fl_freezed = 300, - fl_steady = 400, - fl_lively = 500, - fl_invalid = 10000 - }; +struct config_type +{ + enum type + { + CT_INVALID = 0, + CT_ASSIGN_PRIMARY = 1, + CT_UPGRADE_TO_PRIMARY = 2, + CT_ADD_SECONDARY = 3, + CT_UPGRADE_TO_SECONDARY = 4, + CT_DOWNGRADE_TO_SECONDARY = 5, + CT_DOWNGRADE_TO_INACTIVE = 6, + CT_REMOVE = 7, + CT_ADD_SECONDARY_FOR_LB = 8, + CT_PRIMARY_FORCE_UPDATE_BALLOT = 9, + CT_DROP_PARTITION = 10, + CT_REGISTER_CHILD = 11 + }; +}; + +extern const std::map _config_type_VALUES_TO_NAMES; + +struct node_status +{ + enum type + { + NS_INVALID = 0, + NS_ALIVE = 1, + NS_UNALIVE = 2 + }; }; -extern const std::map _meta_function_level_VALUES_TO_NAMES; +extern const std::map _node_status_VALUES_TO_NAMES; -struct balancer_request_type { - enum type { - move_primary = 0, - copy_primary = 1, - copy_secondary = 2 - }; +struct meta_function_level +{ + enum type + { + fl_stopped = 100, + fl_blind = 200, + fl_freezed = 300, + fl_steady = 400, + fl_lively = 500, + fl_invalid = 10000 + }; }; -extern const std::map _balancer_request_type_VALUES_TO_NAMES; +extern const std::map _meta_function_level_VALUES_TO_NAMES; -struct app_env_operation { - enum type { - APP_ENV_OP_INVALID = 0, - APP_ENV_OP_SET = 1, - APP_ENV_OP_DEL = 2, - APP_ENV_OP_CLEAR = 3 - }; +struct balancer_request_type +{ + enum type + { + move_primary = 0, + copy_primary = 1, + copy_secondary = 2 + }; }; -extern const std::map _app_env_operation_VALUES_TO_NAMES; +extern const std::map _balancer_request_type_VALUES_TO_NAMES; -struct duplication_status { - enum type { - DS_INIT = 0, - DS_START = 1, - DS_PAUSE = 2, - DS_REMOVED = 3 - }; +struct app_env_operation +{ + enum type + { + APP_ENV_OP_INVALID = 0, + APP_ENV_OP_SET = 1, + APP_ENV_OP_DEL = 2, + APP_ENV_OP_CLEAR = 3 + }; }; -extern const std::map _duplication_status_VALUES_TO_NAMES; +extern const std::map _app_env_operation_VALUES_TO_NAMES; -struct duplication_fail_mode { - enum type { - FAIL_SLOW = 0, - FAIL_SKIP = 1, - FAIL_FAST = 2 - }; +struct duplication_status +{ + enum type + { + DS_INIT = 0, + DS_START = 1, + DS_PAUSE = 2, + DS_REMOVED = 3 + }; }; -extern const std::map _duplication_fail_mode_VALUES_TO_NAMES; +extern const std::map _duplication_status_VALUES_TO_NAMES; -struct bulk_load_status { - enum type { - BLS_INVALID = 0, - BLS_DOWNLOADING = 1, - BLS_DOWNLOADED = 2, - BLS_INGESTING = 3, - BLS_SUCCEED = 4, - BLS_FAILED = 5, - BLS_PAUSING = 6, - BLS_PAUSED = 7, - BLS_CANCELED = 8 - }; +struct duplication_fail_mode +{ + enum type + { + FAIL_SLOW = 0, + FAIL_SKIP = 1, + FAIL_FAST = 2 + }; }; -extern const std::map _bulk_load_status_VALUES_TO_NAMES; +extern const std::map _duplication_fail_mode_VALUES_TO_NAMES; -struct ingestion_status { - enum type { - IS_INVALID = 0, - IS_RUNNING = 1, - IS_SUCCEED = 2, - IS_FAILED = 3 - }; +struct bulk_load_status +{ + enum type + { + BLS_INVALID = 0, + BLS_DOWNLOADING = 1, + BLS_DOWNLOADED = 2, + BLS_INGESTING = 3, + BLS_SUCCEED = 4, + BLS_FAILED = 5, + BLS_PAUSING = 6, + BLS_PAUSED = 7, + BLS_CANCELED = 8 + }; +}; + +extern const std::map _bulk_load_status_VALUES_TO_NAMES; + +struct ingestion_status +{ + enum type + { + IS_INVALID = 0, + IS_RUNNING = 1, + IS_SUCCEED = 2, + IS_FAILED = 3 + }; }; -extern const std::map _ingestion_status_VALUES_TO_NAMES; +extern const std::map _ingestion_status_VALUES_TO_NAMES; -struct bulk_load_control_type { - enum type { - BLC_PAUSE = 0, - BLC_RESTART = 1, - BLC_CANCEL = 2, - BLC_FORCE_CANCEL = 3 - }; +struct bulk_load_control_type +{ + enum type + { + BLC_PAUSE = 0, + BLC_RESTART = 1, + BLC_CANCEL = 2, + BLC_FORCE_CANCEL = 3 + }; }; -extern const std::map _bulk_load_control_type_VALUES_TO_NAMES; +extern const std::map _bulk_load_control_type_VALUES_TO_NAMES; -struct hotkey_type { - enum type { - READ = 0, - WRITE = 1 - }; +struct hotkey_type +{ + enum type + { + READ = 0, + WRITE = 1 + }; }; -extern const std::map _hotkey_type_VALUES_TO_NAMES; +extern const std::map _hotkey_type_VALUES_TO_NAMES; -struct detect_action { - enum type { - START = 0, - STOP = 1, - QUERY = 2 - }; +struct detect_action +{ + enum type + { + START = 0, + STOP = 1, + QUERY = 2 + }; }; -extern const std::map _detect_action_VALUES_TO_NAMES; +extern const std::map _detect_action_VALUES_TO_NAMES; -struct disk_migration_status { - enum type { - IDLE = 0, - MOVING = 1, - MOVED = 2, - CLOSED = 3 - }; +struct disk_migration_status +{ + enum type + { + IDLE = 0, + MOVING = 1, + MOVED = 2, + CLOSED = 3 + }; }; -extern const std::map _disk_migration_status_VALUES_TO_NAMES; +extern const std::map _disk_migration_status_VALUES_TO_NAMES; class mutation_header; @@ -457,7035 +493,7314 @@ class detect_hotkey_request; class detect_hotkey_response; -typedef struct _mutation_header__isset { - _mutation_header__isset() : pid(false), ballot(false), decree(false), log_offset(false), last_committed_decree(false), timestamp(false) {} - bool pid :1; - bool ballot :1; - bool decree :1; - bool log_offset :1; - bool last_committed_decree :1; - bool timestamp :1; +typedef struct _mutation_header__isset +{ + _mutation_header__isset() + : pid(false), + ballot(false), + decree(false), + log_offset(false), + last_committed_decree(false), + timestamp(false) + { + } + bool pid : 1; + bool ballot : 1; + bool decree : 1; + bool log_offset : 1; + bool last_committed_decree : 1; + bool timestamp : 1; } _mutation_header__isset; -class mutation_header { - public: - - mutation_header(const mutation_header&); - mutation_header(mutation_header&&); - mutation_header& operator=(const mutation_header&); - mutation_header& operator=(mutation_header&&); - mutation_header() : ballot(0), decree(0), log_offset(0), last_committed_decree(0), timestamp(0) { - } +class mutation_header +{ +public: + mutation_header(const mutation_header &); + mutation_header(mutation_header &&); + mutation_header &operator=(const mutation_header &); + mutation_header &operator=(mutation_header &&); + mutation_header() : ballot(0), decree(0), log_offset(0), last_committed_decree(0), timestamp(0) + { + } - virtual ~mutation_header() throw(); - ::dsn::gpid pid; - int64_t ballot; - int64_t decree; - int64_t log_offset; - int64_t last_committed_decree; - int64_t timestamp; + virtual ~mutation_header() throw(); + ::dsn::gpid pid; + int64_t ballot; + int64_t decree; + int64_t log_offset; + int64_t last_committed_decree; + int64_t timestamp; - _mutation_header__isset __isset; + _mutation_header__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_ballot(const int64_t val); + void __set_ballot(const int64_t val); - void __set_decree(const int64_t val); + void __set_decree(const int64_t val); - void __set_log_offset(const int64_t val); + void __set_log_offset(const int64_t val); - void __set_last_committed_decree(const int64_t val); + void __set_last_committed_decree(const int64_t val); - void __set_timestamp(const int64_t val); + void __set_timestamp(const int64_t val); - bool operator == (const mutation_header & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(decree == rhs.decree)) - return false; - if (!(log_offset == rhs.log_offset)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(timestamp == rhs.timestamp)) - return false; - return true; - } - bool operator != (const mutation_header &rhs) const { - return !(*this == rhs); - } + bool operator==(const mutation_header &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(decree == rhs.decree)) + return false; + if (!(log_offset == rhs.log_offset)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(timestamp == rhs.timestamp)) + return false; + return true; + } + bool operator!=(const mutation_header &rhs) const { return !(*this == rhs); } - bool operator < (const mutation_header & ) const; + bool operator<(const mutation_header &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(mutation_header &a, mutation_header &b); -inline std::ostream& operator<<(std::ostream& out, const mutation_header& obj) +inline std::ostream &operator<<(std::ostream &out, const mutation_header &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _mutation_update__isset { - _mutation_update__isset() : code(false), serialization_type(false), data(false), start_time_ns(false) {} - bool code :1; - bool serialization_type :1; - bool data :1; - bool start_time_ns :1; +typedef struct _mutation_update__isset +{ + _mutation_update__isset() + : code(false), serialization_type(false), data(false), start_time_ns(false) + { + } + bool code : 1; + bool serialization_type : 1; + bool data : 1; + bool start_time_ns : 1; } _mutation_update__isset; -class mutation_update { - public: - - mutation_update(const mutation_update&); - mutation_update(mutation_update&&); - mutation_update& operator=(const mutation_update&); - mutation_update& operator=(mutation_update&&); - mutation_update() : serialization_type(0), start_time_ns(0) { - } +class mutation_update +{ +public: + mutation_update(const mutation_update &); + mutation_update(mutation_update &&); + mutation_update &operator=(const mutation_update &); + mutation_update &operator=(mutation_update &&); + mutation_update() : serialization_type(0), start_time_ns(0) {} - virtual ~mutation_update() throw(); - ::dsn::task_code code; - int32_t serialization_type; - ::dsn::blob data; - int64_t start_time_ns; + virtual ~mutation_update() throw(); + ::dsn::task_code code; + int32_t serialization_type; + ::dsn::blob data; + int64_t start_time_ns; - _mutation_update__isset __isset; + _mutation_update__isset __isset; - void __set_code(const ::dsn::task_code& val); + void __set_code(const ::dsn::task_code &val); - void __set_serialization_type(const int32_t val); + void __set_serialization_type(const int32_t val); - void __set_data(const ::dsn::blob& val); + void __set_data(const ::dsn::blob &val); - void __set_start_time_ns(const int64_t val); + void __set_start_time_ns(const int64_t val); - bool operator == (const mutation_update & rhs) const - { - if (!(code == rhs.code)) - return false; - if (!(serialization_type == rhs.serialization_type)) - return false; - if (!(data == rhs.data)) - return false; - if (__isset.start_time_ns != rhs.__isset.start_time_ns) - return false; - else if (__isset.start_time_ns && !(start_time_ns == rhs.start_time_ns)) - return false; - return true; - } - bool operator != (const mutation_update &rhs) const { - return !(*this == rhs); - } + bool operator==(const mutation_update &rhs) const + { + if (!(code == rhs.code)) + return false; + if (!(serialization_type == rhs.serialization_type)) + return false; + if (!(data == rhs.data)) + return false; + if (__isset.start_time_ns != rhs.__isset.start_time_ns) + return false; + else if (__isset.start_time_ns && !(start_time_ns == rhs.start_time_ns)) + return false; + return true; + } + bool operator!=(const mutation_update &rhs) const { return !(*this == rhs); } - bool operator < (const mutation_update & ) const; + bool operator<(const mutation_update &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(mutation_update &a, mutation_update &b); -inline std::ostream& operator<<(std::ostream& out, const mutation_update& obj) +inline std::ostream &operator<<(std::ostream &out, const mutation_update &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _mutation_data__isset { - _mutation_data__isset() : header(false), updates(false) {} - bool header :1; - bool updates :1; +typedef struct _mutation_data__isset +{ + _mutation_data__isset() : header(false), updates(false) {} + bool header : 1; + bool updates : 1; } _mutation_data__isset; -class mutation_data { - public: - - mutation_data(const mutation_data&); - mutation_data(mutation_data&&); - mutation_data& operator=(const mutation_data&); - mutation_data& operator=(mutation_data&&); - mutation_data() { - } +class mutation_data +{ +public: + mutation_data(const mutation_data &); + mutation_data(mutation_data &&); + mutation_data &operator=(const mutation_data &); + mutation_data &operator=(mutation_data &&); + mutation_data() {} - virtual ~mutation_data() throw(); - mutation_header header; - std::vector updates; + virtual ~mutation_data() throw(); + mutation_header header; + std::vector updates; - _mutation_data__isset __isset; + _mutation_data__isset __isset; - void __set_header(const mutation_header& val); + void __set_header(const mutation_header &val); - void __set_updates(const std::vector & val); + void __set_updates(const std::vector &val); - bool operator == (const mutation_data & rhs) const - { - if (!(header == rhs.header)) - return false; - if (!(updates == rhs.updates)) - return false; - return true; - } - bool operator != (const mutation_data &rhs) const { - return !(*this == rhs); - } + bool operator==(const mutation_data &rhs) const + { + if (!(header == rhs.header)) + return false; + if (!(updates == rhs.updates)) + return false; + return true; + } + bool operator!=(const mutation_data &rhs) const { return !(*this == rhs); } - bool operator < (const mutation_data & ) const; + bool operator<(const mutation_data &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(mutation_data &a, mutation_data &b); -inline std::ostream& operator<<(std::ostream& out, const mutation_data& obj) +inline std::ostream &operator<<(std::ostream &out, const mutation_data &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_configuration__isset { - _replica_configuration__isset() : pid(false), ballot(false), primary(false), status(true), learner_signature(false), pop_all(true) {} - bool pid :1; - bool ballot :1; - bool primary :1; - bool status :1; - bool learner_signature :1; - bool pop_all :1; +typedef struct _replica_configuration__isset +{ + _replica_configuration__isset() + : pid(false), + ballot(false), + primary(false), + status(true), + learner_signature(false), + pop_all(true) + { + } + bool pid : 1; + bool ballot : 1; + bool primary : 1; + bool status : 1; + bool learner_signature : 1; + bool pop_all : 1; } _replica_configuration__isset; -class replica_configuration { - public: - - replica_configuration(const replica_configuration&); - replica_configuration(replica_configuration&&); - replica_configuration& operator=(const replica_configuration&); - replica_configuration& operator=(replica_configuration&&); - replica_configuration() : ballot(0), status((partition_status::type)0), learner_signature(0), pop_all(false) { - status = (partition_status::type)0; - - } - - virtual ~replica_configuration() throw(); - ::dsn::gpid pid; - int64_t ballot; - ::dsn::rpc_address primary; - partition_status::type status; - int64_t learner_signature; - bool pop_all; - - _replica_configuration__isset __isset; - - void __set_pid(const ::dsn::gpid& val); - - void __set_ballot(const int64_t val); - - void __set_primary(const ::dsn::rpc_address& val); - - void __set_status(const partition_status::type val); - - void __set_learner_signature(const int64_t val); - - void __set_pop_all(const bool val); - - bool operator == (const replica_configuration & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(primary == rhs.primary)) - return false; - if (!(status == rhs.status)) - return false; - if (!(learner_signature == rhs.learner_signature)) - return false; - if (__isset.pop_all != rhs.__isset.pop_all) - return false; - else if (__isset.pop_all && !(pop_all == rhs.pop_all)) - return false; - return true; - } - bool operator != (const replica_configuration &rhs) const { - return !(*this == rhs); - } - - bool operator < (const replica_configuration & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class replica_configuration +{ +public: + replica_configuration(const replica_configuration &); + replica_configuration(replica_configuration &&); + replica_configuration &operator=(const replica_configuration &); + replica_configuration &operator=(replica_configuration &&); + replica_configuration() + : ballot(0), status((partition_status::type)0), learner_signature(0), pop_all(false) + { + status = (partition_status::type)0; + } + + virtual ~replica_configuration() throw(); + ::dsn::gpid pid; + int64_t ballot; + ::dsn::rpc_address primary; + partition_status::type status; + int64_t learner_signature; + bool pop_all; + + _replica_configuration__isset __isset; + + void __set_pid(const ::dsn::gpid &val); + + void __set_ballot(const int64_t val); + + void __set_primary(const ::dsn::rpc_address &val); + + void __set_status(const partition_status::type val); + + void __set_learner_signature(const int64_t val); + + void __set_pop_all(const bool val); + + bool operator==(const replica_configuration &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(primary == rhs.primary)) + return false; + if (!(status == rhs.status)) + return false; + if (!(learner_signature == rhs.learner_signature)) + return false; + if (__isset.pop_all != rhs.__isset.pop_all) + return false; + else if (__isset.pop_all && !(pop_all == rhs.pop_all)) + return false; + return true; + } + bool operator!=(const replica_configuration &rhs) const { return !(*this == rhs); } + + bool operator<(const replica_configuration &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(replica_configuration &a, replica_configuration &b); -inline std::ostream& operator<<(std::ostream& out, const replica_configuration& obj) +inline std::ostream &operator<<(std::ostream &out, const replica_configuration &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _prepare_msg__isset { - _prepare_msg__isset() : config(false), mu(false) {} - bool config :1; - bool mu :1; +typedef struct _prepare_msg__isset +{ + _prepare_msg__isset() : config(false), mu(false) {} + bool config : 1; + bool mu : 1; } _prepare_msg__isset; -class prepare_msg { - public: - - prepare_msg(const prepare_msg&); - prepare_msg(prepare_msg&&); - prepare_msg& operator=(const prepare_msg&); - prepare_msg& operator=(prepare_msg&&); - prepare_msg() { - } +class prepare_msg +{ +public: + prepare_msg(const prepare_msg &); + prepare_msg(prepare_msg &&); + prepare_msg &operator=(const prepare_msg &); + prepare_msg &operator=(prepare_msg &&); + prepare_msg() {} - virtual ~prepare_msg() throw(); - replica_configuration config; - mutation_data mu; + virtual ~prepare_msg() throw(); + replica_configuration config; + mutation_data mu; - _prepare_msg__isset __isset; + _prepare_msg__isset __isset; - void __set_config(const replica_configuration& val); + void __set_config(const replica_configuration &val); - void __set_mu(const mutation_data& val); + void __set_mu(const mutation_data &val); - bool operator == (const prepare_msg & rhs) const - { - if (!(config == rhs.config)) - return false; - if (!(mu == rhs.mu)) - return false; - return true; - } - bool operator != (const prepare_msg &rhs) const { - return !(*this == rhs); - } + bool operator==(const prepare_msg &rhs) const + { + if (!(config == rhs.config)) + return false; + if (!(mu == rhs.mu)) + return false; + return true; + } + bool operator!=(const prepare_msg &rhs) const { return !(*this == rhs); } - bool operator < (const prepare_msg & ) const; + bool operator<(const prepare_msg &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(prepare_msg &a, prepare_msg &b); -inline std::ostream& operator<<(std::ostream& out, const prepare_msg& obj) +inline std::ostream &operator<<(std::ostream &out, const prepare_msg &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _read_request_header__isset { - _read_request_header__isset() : pid(false), code(false), semantic(true), version_decree(true) {} - bool pid :1; - bool code :1; - bool semantic :1; - bool version_decree :1; +typedef struct _read_request_header__isset +{ + _read_request_header__isset() : pid(false), code(false), semantic(true), version_decree(true) {} + bool pid : 1; + bool code : 1; + bool semantic : 1; + bool version_decree : 1; } _read_request_header__isset; -class read_request_header { - public: - - read_request_header(const read_request_header&); - read_request_header(read_request_header&&); - read_request_header& operator=(const read_request_header&); - read_request_header& operator=(read_request_header&&); - read_request_header() : semantic((read_semantic::type)1), version_decree(-1LL) { - semantic = (read_semantic::type)1; - - } +class read_request_header +{ +public: + read_request_header(const read_request_header &); + read_request_header(read_request_header &&); + read_request_header &operator=(const read_request_header &); + read_request_header &operator=(read_request_header &&); + read_request_header() : semantic((read_semantic::type)1), version_decree(-1LL) + { + semantic = (read_semantic::type)1; + } - virtual ~read_request_header() throw(); - ::dsn::gpid pid; - ::dsn::task_code code; - read_semantic::type semantic; - int64_t version_decree; + virtual ~read_request_header() throw(); + ::dsn::gpid pid; + ::dsn::task_code code; + read_semantic::type semantic; + int64_t version_decree; - _read_request_header__isset __isset; + _read_request_header__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_code(const ::dsn::task_code& val); + void __set_code(const ::dsn::task_code &val); - void __set_semantic(const read_semantic::type val); + void __set_semantic(const read_semantic::type val); - void __set_version_decree(const int64_t val); + void __set_version_decree(const int64_t val); - bool operator == (const read_request_header & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(code == rhs.code)) - return false; - if (!(semantic == rhs.semantic)) - return false; - if (!(version_decree == rhs.version_decree)) - return false; - return true; - } - bool operator != (const read_request_header &rhs) const { - return !(*this == rhs); - } + bool operator==(const read_request_header &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(code == rhs.code)) + return false; + if (!(semantic == rhs.semantic)) + return false; + if (!(version_decree == rhs.version_decree)) + return false; + return true; + } + bool operator!=(const read_request_header &rhs) const { return !(*this == rhs); } - bool operator < (const read_request_header & ) const; + bool operator<(const read_request_header &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(read_request_header &a, read_request_header &b); -inline std::ostream& operator<<(std::ostream& out, const read_request_header& obj) +inline std::ostream &operator<<(std::ostream &out, const read_request_header &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _write_request_header__isset { - _write_request_header__isset() : pid(false), code(false) {} - bool pid :1; - bool code :1; +typedef struct _write_request_header__isset +{ + _write_request_header__isset() : pid(false), code(false) {} + bool pid : 1; + bool code : 1; } _write_request_header__isset; -class write_request_header { - public: - - write_request_header(const write_request_header&); - write_request_header(write_request_header&&); - write_request_header& operator=(const write_request_header&); - write_request_header& operator=(write_request_header&&); - write_request_header() { - } +class write_request_header +{ +public: + write_request_header(const write_request_header &); + write_request_header(write_request_header &&); + write_request_header &operator=(const write_request_header &); + write_request_header &operator=(write_request_header &&); + write_request_header() {} - virtual ~write_request_header() throw(); - ::dsn::gpid pid; - ::dsn::task_code code; + virtual ~write_request_header() throw(); + ::dsn::gpid pid; + ::dsn::task_code code; - _write_request_header__isset __isset; + _write_request_header__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_code(const ::dsn::task_code& val); + void __set_code(const ::dsn::task_code &val); - bool operator == (const write_request_header & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(code == rhs.code)) - return false; - return true; - } - bool operator != (const write_request_header &rhs) const { - return !(*this == rhs); - } + bool operator==(const write_request_header &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(code == rhs.code)) + return false; + return true; + } + bool operator!=(const write_request_header &rhs) const { return !(*this == rhs); } - bool operator < (const write_request_header & ) const; + bool operator<(const write_request_header &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(write_request_header &a, write_request_header &b); -inline std::ostream& operator<<(std::ostream& out, const write_request_header& obj) +inline std::ostream &operator<<(std::ostream &out, const write_request_header &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _rw_response_header__isset { - _rw_response_header__isset() : err(false) {} - bool err :1; +typedef struct _rw_response_header__isset +{ + _rw_response_header__isset() : err(false) {} + bool err : 1; } _rw_response_header__isset; -class rw_response_header { - public: - - rw_response_header(const rw_response_header&); - rw_response_header(rw_response_header&&); - rw_response_header& operator=(const rw_response_header&); - rw_response_header& operator=(rw_response_header&&); - rw_response_header() { - } +class rw_response_header +{ +public: + rw_response_header(const rw_response_header &); + rw_response_header(rw_response_header &&); + rw_response_header &operator=(const rw_response_header &); + rw_response_header &operator=(rw_response_header &&); + rw_response_header() {} - virtual ~rw_response_header() throw(); - ::dsn::error_code err; + virtual ~rw_response_header() throw(); + ::dsn::error_code err; - _rw_response_header__isset __isset; + _rw_response_header__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - bool operator == (const rw_response_header & rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator != (const rw_response_header &rhs) const { - return !(*this == rhs); - } + bool operator==(const rw_response_header &rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator!=(const rw_response_header &rhs) const { return !(*this == rhs); } - bool operator < (const rw_response_header & ) const; + bool operator<(const rw_response_header &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(rw_response_header &a, rw_response_header &b); -inline std::ostream& operator<<(std::ostream& out, const rw_response_header& obj) +inline std::ostream &operator<<(std::ostream &out, const rw_response_header &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _prepare_ack__isset { - _prepare_ack__isset() : pid(false), err(false), ballot(false), decree(false), last_committed_decree_in_app(false), last_committed_decree_in_prepare_list(false) {} - bool pid :1; - bool err :1; - bool ballot :1; - bool decree :1; - bool last_committed_decree_in_app :1; - bool last_committed_decree_in_prepare_list :1; +typedef struct _prepare_ack__isset +{ + _prepare_ack__isset() + : pid(false), + err(false), + ballot(false), + decree(false), + last_committed_decree_in_app(false), + last_committed_decree_in_prepare_list(false) + { + } + bool pid : 1; + bool err : 1; + bool ballot : 1; + bool decree : 1; + bool last_committed_decree_in_app : 1; + bool last_committed_decree_in_prepare_list : 1; } _prepare_ack__isset; -class prepare_ack { - public: - - prepare_ack(const prepare_ack&); - prepare_ack(prepare_ack&&); - prepare_ack& operator=(const prepare_ack&); - prepare_ack& operator=(prepare_ack&&); - prepare_ack() : ballot(0), decree(0), last_committed_decree_in_app(0), last_committed_decree_in_prepare_list(0) { - } - - virtual ~prepare_ack() throw(); - ::dsn::gpid pid; - ::dsn::error_code err; - int64_t ballot; - int64_t decree; - int64_t last_committed_decree_in_app; - int64_t last_committed_decree_in_prepare_list; - - _prepare_ack__isset __isset; - - void __set_pid(const ::dsn::gpid& val); - - void __set_err(const ::dsn::error_code& val); - - void __set_ballot(const int64_t val); - - void __set_decree(const int64_t val); - - void __set_last_committed_decree_in_app(const int64_t val); - - void __set_last_committed_decree_in_prepare_list(const int64_t val); - - bool operator == (const prepare_ack & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(err == rhs.err)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(decree == rhs.decree)) - return false; - if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) - return false; - if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) - return false; - return true; - } - bool operator != (const prepare_ack &rhs) const { - return !(*this == rhs); - } - - bool operator < (const prepare_ack & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class prepare_ack +{ +public: + prepare_ack(const prepare_ack &); + prepare_ack(prepare_ack &&); + prepare_ack &operator=(const prepare_ack &); + prepare_ack &operator=(prepare_ack &&); + prepare_ack() + : ballot(0), + decree(0), + last_committed_decree_in_app(0), + last_committed_decree_in_prepare_list(0) + { + } + + virtual ~prepare_ack() throw(); + ::dsn::gpid pid; + ::dsn::error_code err; + int64_t ballot; + int64_t decree; + int64_t last_committed_decree_in_app; + int64_t last_committed_decree_in_prepare_list; + + _prepare_ack__isset __isset; + + void __set_pid(const ::dsn::gpid &val); + + void __set_err(const ::dsn::error_code &val); + + void __set_ballot(const int64_t val); + + void __set_decree(const int64_t val); + + void __set_last_committed_decree_in_app(const int64_t val); + + void __set_last_committed_decree_in_prepare_list(const int64_t val); + + bool operator==(const prepare_ack &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(err == rhs.err)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(decree == rhs.decree)) + return false; + if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) + return false; + if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) + return false; + return true; + } + bool operator!=(const prepare_ack &rhs) const { return !(*this == rhs); } + + bool operator<(const prepare_ack &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(prepare_ack &a, prepare_ack &b); -inline std::ostream& operator<<(std::ostream& out, const prepare_ack& obj) +inline std::ostream &operator<<(std::ostream &out, const prepare_ack &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _learn_state__isset { - _learn_state__isset() : from_decree_excluded(false), to_decree_included(false), meta(false), files(false), learn_start_decree(false) {} - bool from_decree_excluded :1; - bool to_decree_included :1; - bool meta :1; - bool files :1; - bool learn_start_decree :1; +typedef struct _learn_state__isset +{ + _learn_state__isset() + : from_decree_excluded(false), + to_decree_included(false), + meta(false), + files(false), + learn_start_decree(false) + { + } + bool from_decree_excluded : 1; + bool to_decree_included : 1; + bool meta : 1; + bool files : 1; + bool learn_start_decree : 1; } _learn_state__isset; -class learn_state { - public: - - learn_state(const learn_state&); - learn_state(learn_state&&); - learn_state& operator=(const learn_state&); - learn_state& operator=(learn_state&&); - learn_state() : from_decree_excluded(0), to_decree_included(0), learn_start_decree(0) { - } +class learn_state +{ +public: + learn_state(const learn_state &); + learn_state(learn_state &&); + learn_state &operator=(const learn_state &); + learn_state &operator=(learn_state &&); + learn_state() : from_decree_excluded(0), to_decree_included(0), learn_start_decree(0) {} - virtual ~learn_state() throw(); - int64_t from_decree_excluded; - int64_t to_decree_included; - ::dsn::blob meta; - std::vector files; - int64_t learn_start_decree; + virtual ~learn_state() throw(); + int64_t from_decree_excluded; + int64_t to_decree_included; + ::dsn::blob meta; + std::vector files; + int64_t learn_start_decree; - _learn_state__isset __isset; + _learn_state__isset __isset; - void __set_from_decree_excluded(const int64_t val); + void __set_from_decree_excluded(const int64_t val); - void __set_to_decree_included(const int64_t val); + void __set_to_decree_included(const int64_t val); - void __set_meta(const ::dsn::blob& val); + void __set_meta(const ::dsn::blob &val); - void __set_files(const std::vector & val); + void __set_files(const std::vector &val); - void __set_learn_start_decree(const int64_t val); + void __set_learn_start_decree(const int64_t val); - bool operator == (const learn_state & rhs) const - { - if (!(from_decree_excluded == rhs.from_decree_excluded)) - return false; - if (!(to_decree_included == rhs.to_decree_included)) - return false; - if (!(meta == rhs.meta)) - return false; - if (!(files == rhs.files)) - return false; - if (__isset.learn_start_decree != rhs.__isset.learn_start_decree) - return false; - else if (__isset.learn_start_decree && !(learn_start_decree == rhs.learn_start_decree)) - return false; - return true; - } - bool operator != (const learn_state &rhs) const { - return !(*this == rhs); - } + bool operator==(const learn_state &rhs) const + { + if (!(from_decree_excluded == rhs.from_decree_excluded)) + return false; + if (!(to_decree_included == rhs.to_decree_included)) + return false; + if (!(meta == rhs.meta)) + return false; + if (!(files == rhs.files)) + return false; + if (__isset.learn_start_decree != rhs.__isset.learn_start_decree) + return false; + else if (__isset.learn_start_decree && !(learn_start_decree == rhs.learn_start_decree)) + return false; + return true; + } + bool operator!=(const learn_state &rhs) const { return !(*this == rhs); } - bool operator < (const learn_state & ) const; + bool operator<(const learn_state &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(learn_state &a, learn_state &b); -inline std::ostream& operator<<(std::ostream& out, const learn_state& obj) +inline std::ostream &operator<<(std::ostream &out, const learn_state &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _learn_request__isset { - _learn_request__isset() : pid(false), learner(false), signature(false), last_committed_decree_in_app(false), last_committed_decree_in_prepare_list(false), app_specific_learn_request(false), max_gced_decree(false) {} - bool pid :1; - bool learner :1; - bool signature :1; - bool last_committed_decree_in_app :1; - bool last_committed_decree_in_prepare_list :1; - bool app_specific_learn_request :1; - bool max_gced_decree :1; +typedef struct _learn_request__isset +{ + _learn_request__isset() + : pid(false), + learner(false), + signature(false), + last_committed_decree_in_app(false), + last_committed_decree_in_prepare_list(false), + app_specific_learn_request(false), + max_gced_decree(false) + { + } + bool pid : 1; + bool learner : 1; + bool signature : 1; + bool last_committed_decree_in_app : 1; + bool last_committed_decree_in_prepare_list : 1; + bool app_specific_learn_request : 1; + bool max_gced_decree : 1; } _learn_request__isset; -class learn_request { - public: - - learn_request(const learn_request&); - learn_request(learn_request&&); - learn_request& operator=(const learn_request&); - learn_request& operator=(learn_request&&); - learn_request() : signature(0), last_committed_decree_in_app(0), last_committed_decree_in_prepare_list(0), max_gced_decree(0) { - } - - virtual ~learn_request() throw(); - ::dsn::gpid pid; - ::dsn::rpc_address learner; - int64_t signature; - int64_t last_committed_decree_in_app; - int64_t last_committed_decree_in_prepare_list; - ::dsn::blob app_specific_learn_request; - int64_t max_gced_decree; - - _learn_request__isset __isset; - - void __set_pid(const ::dsn::gpid& val); - - void __set_learner(const ::dsn::rpc_address& val); - - void __set_signature(const int64_t val); - - void __set_last_committed_decree_in_app(const int64_t val); - - void __set_last_committed_decree_in_prepare_list(const int64_t val); - - void __set_app_specific_learn_request(const ::dsn::blob& val); - - void __set_max_gced_decree(const int64_t val); - - bool operator == (const learn_request & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(learner == rhs.learner)) - return false; - if (!(signature == rhs.signature)) - return false; - if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) - return false; - if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) - return false; - if (!(app_specific_learn_request == rhs.app_specific_learn_request)) - return false; - if (__isset.max_gced_decree != rhs.__isset.max_gced_decree) - return false; - else if (__isset.max_gced_decree && !(max_gced_decree == rhs.max_gced_decree)) - return false; - return true; - } - bool operator != (const learn_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const learn_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class learn_request +{ +public: + learn_request(const learn_request &); + learn_request(learn_request &&); + learn_request &operator=(const learn_request &); + learn_request &operator=(learn_request &&); + learn_request() + : signature(0), + last_committed_decree_in_app(0), + last_committed_decree_in_prepare_list(0), + max_gced_decree(0) + { + } + + virtual ~learn_request() throw(); + ::dsn::gpid pid; + ::dsn::rpc_address learner; + int64_t signature; + int64_t last_committed_decree_in_app; + int64_t last_committed_decree_in_prepare_list; + ::dsn::blob app_specific_learn_request; + int64_t max_gced_decree; + + _learn_request__isset __isset; + + void __set_pid(const ::dsn::gpid &val); + + void __set_learner(const ::dsn::rpc_address &val); + + void __set_signature(const int64_t val); + + void __set_last_committed_decree_in_app(const int64_t val); + + void __set_last_committed_decree_in_prepare_list(const int64_t val); + + void __set_app_specific_learn_request(const ::dsn::blob &val); + + void __set_max_gced_decree(const int64_t val); + + bool operator==(const learn_request &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(learner == rhs.learner)) + return false; + if (!(signature == rhs.signature)) + return false; + if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) + return false; + if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) + return false; + if (!(app_specific_learn_request == rhs.app_specific_learn_request)) + return false; + if (__isset.max_gced_decree != rhs.__isset.max_gced_decree) + return false; + else if (__isset.max_gced_decree && !(max_gced_decree == rhs.max_gced_decree)) + return false; + return true; + } + bool operator!=(const learn_request &rhs) const { return !(*this == rhs); } + + bool operator<(const learn_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(learn_request &a, learn_request &b); -inline std::ostream& operator<<(std::ostream& out, const learn_request& obj) +inline std::ostream &operator<<(std::ostream &out, const learn_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _learn_response__isset { - _learn_response__isset() : err(false), config(false), last_committed_decree(false), prepare_start_decree(false), type(true), state(false), address(false), base_local_dir(false) {} - bool err :1; - bool config :1; - bool last_committed_decree :1; - bool prepare_start_decree :1; - bool type :1; - bool state :1; - bool address :1; - bool base_local_dir :1; +typedef struct _learn_response__isset +{ + _learn_response__isset() + : err(false), + config(false), + last_committed_decree(false), + prepare_start_decree(false), + type(true), + state(false), + address(false), + base_local_dir(false) + { + } + bool err : 1; + bool config : 1; + bool last_committed_decree : 1; + bool prepare_start_decree : 1; + bool type : 1; + bool state : 1; + bool address : 1; + bool base_local_dir : 1; } _learn_response__isset; -class learn_response { - public: - - learn_response(const learn_response&); - learn_response(learn_response&&); - learn_response& operator=(const learn_response&); - learn_response& operator=(learn_response&&); - learn_response() : last_committed_decree(0), prepare_start_decree(0), type((learn_type::type)0), base_local_dir() { - type = (learn_type::type)0; - - } - - virtual ~learn_response() throw(); - ::dsn::error_code err; - replica_configuration config; - int64_t last_committed_decree; - int64_t prepare_start_decree; - learn_type::type type; - learn_state state; - ::dsn::rpc_address address; - std::string base_local_dir; - - _learn_response__isset __isset; - - void __set_err(const ::dsn::error_code& val); - - void __set_config(const replica_configuration& val); - - void __set_last_committed_decree(const int64_t val); - - void __set_prepare_start_decree(const int64_t val); - - void __set_type(const learn_type::type val); - - void __set_state(const learn_state& val); - - void __set_address(const ::dsn::rpc_address& val); - - void __set_base_local_dir(const std::string& val); - - bool operator == (const learn_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(config == rhs.config)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(prepare_start_decree == rhs.prepare_start_decree)) - return false; - if (!(type == rhs.type)) - return false; - if (!(state == rhs.state)) - return false; - if (!(address == rhs.address)) - return false; - if (!(base_local_dir == rhs.base_local_dir)) - return false; - return true; - } - bool operator != (const learn_response &rhs) const { - return !(*this == rhs); - } - - bool operator < (const learn_response & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class learn_response +{ +public: + learn_response(const learn_response &); + learn_response(learn_response &&); + learn_response &operator=(const learn_response &); + learn_response &operator=(learn_response &&); + learn_response() + : last_committed_decree(0), + prepare_start_decree(0), + type((learn_type::type)0), + base_local_dir() + { + type = (learn_type::type)0; + } + + virtual ~learn_response() throw(); + ::dsn::error_code err; + replica_configuration config; + int64_t last_committed_decree; + int64_t prepare_start_decree; + learn_type::type type; + learn_state state; + ::dsn::rpc_address address; + std::string base_local_dir; + + _learn_response__isset __isset; + + void __set_err(const ::dsn::error_code &val); + + void __set_config(const replica_configuration &val); + + void __set_last_committed_decree(const int64_t val); + + void __set_prepare_start_decree(const int64_t val); + + void __set_type(const learn_type::type val); + + void __set_state(const learn_state &val); + + void __set_address(const ::dsn::rpc_address &val); + + void __set_base_local_dir(const std::string &val); + + bool operator==(const learn_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(config == rhs.config)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(prepare_start_decree == rhs.prepare_start_decree)) + return false; + if (!(type == rhs.type)) + return false; + if (!(state == rhs.state)) + return false; + if (!(address == rhs.address)) + return false; + if (!(base_local_dir == rhs.base_local_dir)) + return false; + return true; + } + bool operator!=(const learn_response &rhs) const { return !(*this == rhs); } + + bool operator<(const learn_response &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(learn_response &a, learn_response &b); -inline std::ostream& operator<<(std::ostream& out, const learn_response& obj) +inline std::ostream &operator<<(std::ostream &out, const learn_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _learn_notify_response__isset { - _learn_notify_response__isset() : pid(false), err(false), signature(false) {} - bool pid :1; - bool err :1; - bool signature :1; +typedef struct _learn_notify_response__isset +{ + _learn_notify_response__isset() : pid(false), err(false), signature(false) {} + bool pid : 1; + bool err : 1; + bool signature : 1; } _learn_notify_response__isset; -class learn_notify_response { - public: - - learn_notify_response(const learn_notify_response&); - learn_notify_response(learn_notify_response&&); - learn_notify_response& operator=(const learn_notify_response&); - learn_notify_response& operator=(learn_notify_response&&); - learn_notify_response() : signature(0) { - } +class learn_notify_response +{ +public: + learn_notify_response(const learn_notify_response &); + learn_notify_response(learn_notify_response &&); + learn_notify_response &operator=(const learn_notify_response &); + learn_notify_response &operator=(learn_notify_response &&); + learn_notify_response() : signature(0) {} - virtual ~learn_notify_response() throw(); - ::dsn::gpid pid; - ::dsn::error_code err; - int64_t signature; + virtual ~learn_notify_response() throw(); + ::dsn::gpid pid; + ::dsn::error_code err; + int64_t signature; - _learn_notify_response__isset __isset; + _learn_notify_response__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_signature(const int64_t val); + void __set_signature(const int64_t val); - bool operator == (const learn_notify_response & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(err == rhs.err)) - return false; - if (!(signature == rhs.signature)) - return false; - return true; - } - bool operator != (const learn_notify_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const learn_notify_response &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(err == rhs.err)) + return false; + if (!(signature == rhs.signature)) + return false; + return true; + } + bool operator!=(const learn_notify_response &rhs) const { return !(*this == rhs); } - bool operator < (const learn_notify_response & ) const; + bool operator<(const learn_notify_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(learn_notify_response &a, learn_notify_response &b); -inline std::ostream& operator<<(std::ostream& out, const learn_notify_response& obj) +inline std::ostream &operator<<(std::ostream &out, const learn_notify_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _group_check_request__isset { - _group_check_request__isset() : app(false), node(false), config(false), last_committed_decree(false), confirmed_decree(false), child_gpid(false), meta_split_status(false) {} - bool app :1; - bool node :1; - bool config :1; - bool last_committed_decree :1; - bool confirmed_decree :1; - bool child_gpid :1; - bool meta_split_status :1; +typedef struct _group_check_request__isset +{ + _group_check_request__isset() + : app(false), + node(false), + config(false), + last_committed_decree(false), + confirmed_decree(false), + child_gpid(false), + meta_split_status(false) + { + } + bool app : 1; + bool node : 1; + bool config : 1; + bool last_committed_decree : 1; + bool confirmed_decree : 1; + bool child_gpid : 1; + bool meta_split_status : 1; } _group_check_request__isset; -class group_check_request { - public: - - group_check_request(const group_check_request&); - group_check_request(group_check_request&&); - group_check_request& operator=(const group_check_request&); - group_check_request& operator=(group_check_request&&); - group_check_request() : last_committed_decree(0), confirmed_decree(0), meta_split_status((split_status::type)0) { - } - - virtual ~group_check_request() throw(); - ::dsn::app_info app; - ::dsn::rpc_address node; - replica_configuration config; - int64_t last_committed_decree; - int64_t confirmed_decree; - ::dsn::gpid child_gpid; - split_status::type meta_split_status; - - _group_check_request__isset __isset; - - void __set_app(const ::dsn::app_info& val); - - void __set_node(const ::dsn::rpc_address& val); - - void __set_config(const replica_configuration& val); - - void __set_last_committed_decree(const int64_t val); - - void __set_confirmed_decree(const int64_t val); - - void __set_child_gpid(const ::dsn::gpid& val); - - void __set_meta_split_status(const split_status::type val); - - bool operator == (const group_check_request & rhs) const - { - if (!(app == rhs.app)) - return false; - if (!(node == rhs.node)) - return false; - if (!(config == rhs.config)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (__isset.confirmed_decree != rhs.__isset.confirmed_decree) - return false; - else if (__isset.confirmed_decree && !(confirmed_decree == rhs.confirmed_decree)) - return false; - if (__isset.child_gpid != rhs.__isset.child_gpid) - return false; - else if (__isset.child_gpid && !(child_gpid == rhs.child_gpid)) - return false; - if (__isset.meta_split_status != rhs.__isset.meta_split_status) - return false; - else if (__isset.meta_split_status && !(meta_split_status == rhs.meta_split_status)) - return false; - return true; - } - bool operator != (const group_check_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const group_check_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class group_check_request +{ +public: + group_check_request(const group_check_request &); + group_check_request(group_check_request &&); + group_check_request &operator=(const group_check_request &); + group_check_request &operator=(group_check_request &&); + group_check_request() + : last_committed_decree(0), confirmed_decree(0), meta_split_status((split_status::type)0) + { + } + + virtual ~group_check_request() throw(); + ::dsn::app_info app; + ::dsn::rpc_address node; + replica_configuration config; + int64_t last_committed_decree; + int64_t confirmed_decree; + ::dsn::gpid child_gpid; + split_status::type meta_split_status; + + _group_check_request__isset __isset; + + void __set_app(const ::dsn::app_info &val); + + void __set_node(const ::dsn::rpc_address &val); + + void __set_config(const replica_configuration &val); + + void __set_last_committed_decree(const int64_t val); + + void __set_confirmed_decree(const int64_t val); + + void __set_child_gpid(const ::dsn::gpid &val); + + void __set_meta_split_status(const split_status::type val); + + bool operator==(const group_check_request &rhs) const + { + if (!(app == rhs.app)) + return false; + if (!(node == rhs.node)) + return false; + if (!(config == rhs.config)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (__isset.confirmed_decree != rhs.__isset.confirmed_decree) + return false; + else if (__isset.confirmed_decree && !(confirmed_decree == rhs.confirmed_decree)) + return false; + if (__isset.child_gpid != rhs.__isset.child_gpid) + return false; + else if (__isset.child_gpid && !(child_gpid == rhs.child_gpid)) + return false; + if (__isset.meta_split_status != rhs.__isset.meta_split_status) + return false; + else if (__isset.meta_split_status && !(meta_split_status == rhs.meta_split_status)) + return false; + return true; + } + bool operator!=(const group_check_request &rhs) const { return !(*this == rhs); } + + bool operator<(const group_check_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(group_check_request &a, group_check_request &b); -inline std::ostream& operator<<(std::ostream& out, const group_check_request& obj) +inline std::ostream &operator<<(std::ostream &out, const group_check_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _group_check_response__isset { - _group_check_response__isset() : pid(false), err(false), last_committed_decree_in_app(false), last_committed_decree_in_prepare_list(false), learner_status_(true), learner_signature(false), node(false) {} - bool pid :1; - bool err :1; - bool last_committed_decree_in_app :1; - bool last_committed_decree_in_prepare_list :1; - bool learner_status_ :1; - bool learner_signature :1; - bool node :1; +typedef struct _group_check_response__isset +{ + _group_check_response__isset() + : pid(false), + err(false), + last_committed_decree_in_app(false), + last_committed_decree_in_prepare_list(false), + learner_status_(true), + learner_signature(false), + node(false) + { + } + bool pid : 1; + bool err : 1; + bool last_committed_decree_in_app : 1; + bool last_committed_decree_in_prepare_list : 1; + bool learner_status_ : 1; + bool learner_signature : 1; + bool node : 1; } _group_check_response__isset; -class group_check_response { - public: - - group_check_response(const group_check_response&); - group_check_response(group_check_response&&); - group_check_response& operator=(const group_check_response&); - group_check_response& operator=(group_check_response&&); - group_check_response() : last_committed_decree_in_app(0), last_committed_decree_in_prepare_list(0), learner_status_((learner_status::type)0), learner_signature(0) { - learner_status_ = (learner_status::type)0; - - } - - virtual ~group_check_response() throw(); - ::dsn::gpid pid; - ::dsn::error_code err; - int64_t last_committed_decree_in_app; - int64_t last_committed_decree_in_prepare_list; - learner_status::type learner_status_; - int64_t learner_signature; - ::dsn::rpc_address node; - - _group_check_response__isset __isset; - - void __set_pid(const ::dsn::gpid& val); - - void __set_err(const ::dsn::error_code& val); - - void __set_last_committed_decree_in_app(const int64_t val); - - void __set_last_committed_decree_in_prepare_list(const int64_t val); - - void __set_learner_status_(const learner_status::type val); - - void __set_learner_signature(const int64_t val); - - void __set_node(const ::dsn::rpc_address& val); - - bool operator == (const group_check_response & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(err == rhs.err)) - return false; - if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) - return false; - if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) - return false; - if (!(learner_status_ == rhs.learner_status_)) - return false; - if (!(learner_signature == rhs.learner_signature)) - return false; - if (!(node == rhs.node)) - return false; - return true; - } - bool operator != (const group_check_response &rhs) const { - return !(*this == rhs); - } - - bool operator < (const group_check_response & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class group_check_response +{ +public: + group_check_response(const group_check_response &); + group_check_response(group_check_response &&); + group_check_response &operator=(const group_check_response &); + group_check_response &operator=(group_check_response &&); + group_check_response() + : last_committed_decree_in_app(0), + last_committed_decree_in_prepare_list(0), + learner_status_((learner_status::type)0), + learner_signature(0) + { + learner_status_ = (learner_status::type)0; + } + + virtual ~group_check_response() throw(); + ::dsn::gpid pid; + ::dsn::error_code err; + int64_t last_committed_decree_in_app; + int64_t last_committed_decree_in_prepare_list; + learner_status::type learner_status_; + int64_t learner_signature; + ::dsn::rpc_address node; + + _group_check_response__isset __isset; + + void __set_pid(const ::dsn::gpid &val); + + void __set_err(const ::dsn::error_code &val); + + void __set_last_committed_decree_in_app(const int64_t val); + + void __set_last_committed_decree_in_prepare_list(const int64_t val); + + void __set_learner_status_(const learner_status::type val); + + void __set_learner_signature(const int64_t val); + + void __set_node(const ::dsn::rpc_address &val); + + bool operator==(const group_check_response &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(err == rhs.err)) + return false; + if (!(last_committed_decree_in_app == rhs.last_committed_decree_in_app)) + return false; + if (!(last_committed_decree_in_prepare_list == rhs.last_committed_decree_in_prepare_list)) + return false; + if (!(learner_status_ == rhs.learner_status_)) + return false; + if (!(learner_signature == rhs.learner_signature)) + return false; + if (!(node == rhs.node)) + return false; + return true; + } + bool operator!=(const group_check_response &rhs) const { return !(*this == rhs); } + + bool operator<(const group_check_response &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(group_check_response &a, group_check_response &b); -inline std::ostream& operator<<(std::ostream& out, const group_check_response& obj) +inline std::ostream &operator<<(std::ostream &out, const group_check_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _node_info__isset { - _node_info__isset() : status(true), address(false) {} - bool status :1; - bool address :1; +typedef struct _node_info__isset +{ + _node_info__isset() : status(true), address(false) {} + bool status : 1; + bool address : 1; } _node_info__isset; -class node_info { - public: - - node_info(const node_info&); - node_info(node_info&&); - node_info& operator=(const node_info&); - node_info& operator=(node_info&&); - node_info() : status((node_status::type)0) { - status = (node_status::type)0; - - } +class node_info +{ +public: + node_info(const node_info &); + node_info(node_info &&); + node_info &operator=(const node_info &); + node_info &operator=(node_info &&); + node_info() : status((node_status::type)0) { status = (node_status::type)0; } - virtual ~node_info() throw(); - node_status::type status; - ::dsn::rpc_address address; + virtual ~node_info() throw(); + node_status::type status; + ::dsn::rpc_address address; - _node_info__isset __isset; + _node_info__isset __isset; - void __set_status(const node_status::type val); + void __set_status(const node_status::type val); - void __set_address(const ::dsn::rpc_address& val); + void __set_address(const ::dsn::rpc_address &val); - bool operator == (const node_info & rhs) const - { - if (!(status == rhs.status)) - return false; - if (!(address == rhs.address)) - return false; - return true; - } - bool operator != (const node_info &rhs) const { - return !(*this == rhs); - } + bool operator==(const node_info &rhs) const + { + if (!(status == rhs.status)) + return false; + if (!(address == rhs.address)) + return false; + return true; + } + bool operator!=(const node_info &rhs) const { return !(*this == rhs); } - bool operator < (const node_info & ) const; + bool operator<(const node_info &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(node_info &a, node_info &b); -inline std::ostream& operator<<(std::ostream& out, const node_info& obj) +inline std::ostream &operator<<(std::ostream &out, const node_info &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_update_request__isset { - _configuration_update_request__isset() : info(false), config(false), type(true), node(false), host_node(false), meta_split_status(false) {} - bool info :1; - bool config :1; - bool type :1; - bool node :1; - bool host_node :1; - bool meta_split_status :1; +typedef struct _configuration_update_request__isset +{ + _configuration_update_request__isset() + : info(false), + config(false), + type(true), + node(false), + host_node(false), + meta_split_status(false) + { + } + bool info : 1; + bool config : 1; + bool type : 1; + bool node : 1; + bool host_node : 1; + bool meta_split_status : 1; } _configuration_update_request__isset; -class configuration_update_request { - public: - - configuration_update_request(const configuration_update_request&); - configuration_update_request(configuration_update_request&&); - configuration_update_request& operator=(const configuration_update_request&); - configuration_update_request& operator=(configuration_update_request&&); - configuration_update_request() : type((config_type::type)0), meta_split_status((split_status::type)0) { - type = (config_type::type)0; - - } - - virtual ~configuration_update_request() throw(); - ::dsn::app_info info; - ::dsn::partition_configuration config; - config_type::type type; - ::dsn::rpc_address node; - ::dsn::rpc_address host_node; - split_status::type meta_split_status; - - _configuration_update_request__isset __isset; - - void __set_info(const ::dsn::app_info& val); - - void __set_config(const ::dsn::partition_configuration& val); - - void __set_type(const config_type::type val); - - void __set_node(const ::dsn::rpc_address& val); - - void __set_host_node(const ::dsn::rpc_address& val); - - void __set_meta_split_status(const split_status::type val); - - bool operator == (const configuration_update_request & rhs) const - { - if (!(info == rhs.info)) - return false; - if (!(config == rhs.config)) - return false; - if (!(type == rhs.type)) - return false; - if (!(node == rhs.node)) - return false; - if (!(host_node == rhs.host_node)) - return false; - if (__isset.meta_split_status != rhs.__isset.meta_split_status) - return false; - else if (__isset.meta_split_status && !(meta_split_status == rhs.meta_split_status)) - return false; - return true; - } - bool operator != (const configuration_update_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_update_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class configuration_update_request +{ +public: + configuration_update_request(const configuration_update_request &); + configuration_update_request(configuration_update_request &&); + configuration_update_request &operator=(const configuration_update_request &); + configuration_update_request &operator=(configuration_update_request &&); + configuration_update_request() + : type((config_type::type)0), meta_split_status((split_status::type)0) + { + type = (config_type::type)0; + } + + virtual ~configuration_update_request() throw(); + ::dsn::app_info info; + ::dsn::partition_configuration config; + config_type::type type; + ::dsn::rpc_address node; + ::dsn::rpc_address host_node; + split_status::type meta_split_status; + + _configuration_update_request__isset __isset; + + void __set_info(const ::dsn::app_info &val); + + void __set_config(const ::dsn::partition_configuration &val); + + void __set_type(const config_type::type val); + + void __set_node(const ::dsn::rpc_address &val); + + void __set_host_node(const ::dsn::rpc_address &val); + + void __set_meta_split_status(const split_status::type val); + + bool operator==(const configuration_update_request &rhs) const + { + if (!(info == rhs.info)) + return false; + if (!(config == rhs.config)) + return false; + if (!(type == rhs.type)) + return false; + if (!(node == rhs.node)) + return false; + if (!(host_node == rhs.host_node)) + return false; + if (__isset.meta_split_status != rhs.__isset.meta_split_status) + return false; + else if (__isset.meta_split_status && !(meta_split_status == rhs.meta_split_status)) + return false; + return true; + } + bool operator!=(const configuration_update_request &rhs) const { return !(*this == rhs); } + + bool operator<(const configuration_update_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(configuration_update_request &a, configuration_update_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_update_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_update_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_update_response__isset { - _configuration_update_response__isset() : err(false), config(false) {} - bool err :1; - bool config :1; +typedef struct _configuration_update_response__isset +{ + _configuration_update_response__isset() : err(false), config(false) {} + bool err : 1; + bool config : 1; } _configuration_update_response__isset; -class configuration_update_response { - public: - - configuration_update_response(const configuration_update_response&); - configuration_update_response(configuration_update_response&&); - configuration_update_response& operator=(const configuration_update_response&); - configuration_update_response& operator=(configuration_update_response&&); - configuration_update_response() { - } +class configuration_update_response +{ +public: + configuration_update_response(const configuration_update_response &); + configuration_update_response(configuration_update_response &&); + configuration_update_response &operator=(const configuration_update_response &); + configuration_update_response &operator=(configuration_update_response &&); + configuration_update_response() {} - virtual ~configuration_update_response() throw(); - ::dsn::error_code err; - ::dsn::partition_configuration config; + virtual ~configuration_update_response() throw(); + ::dsn::error_code err; + ::dsn::partition_configuration config; - _configuration_update_response__isset __isset; + _configuration_update_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_config(const ::dsn::partition_configuration& val); + void __set_config(const ::dsn::partition_configuration &val); - bool operator == (const configuration_update_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(config == rhs.config)) - return false; - return true; - } - bool operator != (const configuration_update_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_update_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(config == rhs.config)) + return false; + return true; + } + bool operator!=(const configuration_update_response &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_update_response & ) const; + bool operator<(const configuration_update_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_update_response &a, configuration_update_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_update_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_update_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_server_info__isset { - _replica_server_info__isset() : geo_tags(false), total_capacity_mb(false) {} - bool geo_tags :1; - bool total_capacity_mb :1; +typedef struct _replica_server_info__isset +{ + _replica_server_info__isset() : geo_tags(false), total_capacity_mb(false) {} + bool geo_tags : 1; + bool total_capacity_mb : 1; } _replica_server_info__isset; -class replica_server_info { - public: - - replica_server_info(const replica_server_info&); - replica_server_info(replica_server_info&&); - replica_server_info& operator=(const replica_server_info&); - replica_server_info& operator=(replica_server_info&&); - replica_server_info() : total_capacity_mb(0) { - } +class replica_server_info +{ +public: + replica_server_info(const replica_server_info &); + replica_server_info(replica_server_info &&); + replica_server_info &operator=(const replica_server_info &); + replica_server_info &operator=(replica_server_info &&); + replica_server_info() : total_capacity_mb(0) {} - virtual ~replica_server_info() throw(); - std::map geo_tags; - int64_t total_capacity_mb; + virtual ~replica_server_info() throw(); + std::map geo_tags; + int64_t total_capacity_mb; - _replica_server_info__isset __isset; + _replica_server_info__isset __isset; - void __set_geo_tags(const std::map & val); + void __set_geo_tags(const std::map &val); - void __set_total_capacity_mb(const int64_t val); + void __set_total_capacity_mb(const int64_t val); - bool operator == (const replica_server_info & rhs) const - { - if (!(geo_tags == rhs.geo_tags)) - return false; - if (!(total_capacity_mb == rhs.total_capacity_mb)) - return false; - return true; - } - bool operator != (const replica_server_info &rhs) const { - return !(*this == rhs); - } + bool operator==(const replica_server_info &rhs) const + { + if (!(geo_tags == rhs.geo_tags)) + return false; + if (!(total_capacity_mb == rhs.total_capacity_mb)) + return false; + return true; + } + bool operator!=(const replica_server_info &rhs) const { return !(*this == rhs); } - bool operator < (const replica_server_info & ) const; + bool operator<(const replica_server_info &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(replica_server_info &a, replica_server_info &b); -inline std::ostream& operator<<(std::ostream& out, const replica_server_info& obj) +inline std::ostream &operator<<(std::ostream &out, const replica_server_info &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_by_node_request__isset { - _configuration_query_by_node_request__isset() : node(false), stored_replicas(false), info(false) {} - bool node :1; - bool stored_replicas :1; - bool info :1; +typedef struct _configuration_query_by_node_request__isset +{ + _configuration_query_by_node_request__isset() : node(false), stored_replicas(false), info(false) + { + } + bool node : 1; + bool stored_replicas : 1; + bool info : 1; } _configuration_query_by_node_request__isset; -class configuration_query_by_node_request { - public: - - configuration_query_by_node_request(const configuration_query_by_node_request&); - configuration_query_by_node_request(configuration_query_by_node_request&&); - configuration_query_by_node_request& operator=(const configuration_query_by_node_request&); - configuration_query_by_node_request& operator=(configuration_query_by_node_request&&); - configuration_query_by_node_request() { - } +class configuration_query_by_node_request +{ +public: + configuration_query_by_node_request(const configuration_query_by_node_request &); + configuration_query_by_node_request(configuration_query_by_node_request &&); + configuration_query_by_node_request &operator=(const configuration_query_by_node_request &); + configuration_query_by_node_request &operator=(configuration_query_by_node_request &&); + configuration_query_by_node_request() {} - virtual ~configuration_query_by_node_request() throw(); - ::dsn::rpc_address node; - std::vector stored_replicas; - replica_server_info info; + virtual ~configuration_query_by_node_request() throw(); + ::dsn::rpc_address node; + std::vector stored_replicas; + replica_server_info info; - _configuration_query_by_node_request__isset __isset; + _configuration_query_by_node_request__isset __isset; - void __set_node(const ::dsn::rpc_address& val); + void __set_node(const ::dsn::rpc_address &val); - void __set_stored_replicas(const std::vector & val); + void __set_stored_replicas(const std::vector &val); - void __set_info(const replica_server_info& val); + void __set_info(const replica_server_info &val); - bool operator == (const configuration_query_by_node_request & rhs) const - { - if (!(node == rhs.node)) - return false; - if (__isset.stored_replicas != rhs.__isset.stored_replicas) - return false; - else if (__isset.stored_replicas && !(stored_replicas == rhs.stored_replicas)) - return false; - if (__isset.info != rhs.__isset.info) - return false; - else if (__isset.info && !(info == rhs.info)) - return false; - return true; - } - bool operator != (const configuration_query_by_node_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_query_by_node_request &rhs) const + { + if (!(node == rhs.node)) + return false; + if (__isset.stored_replicas != rhs.__isset.stored_replicas) + return false; + else if (__isset.stored_replicas && !(stored_replicas == rhs.stored_replicas)) + return false; + if (__isset.info != rhs.__isset.info) + return false; + else if (__isset.info && !(info == rhs.info)) + return false; + return true; + } + bool operator!=(const configuration_query_by_node_request &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_query_by_node_request & ) const; + bool operator<(const configuration_query_by_node_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_query_by_node_request &a, configuration_query_by_node_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_query_by_node_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_query_by_node_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_by_node_response__isset { - _configuration_query_by_node_response__isset() : err(false), partitions(false), gc_replicas(false) {} - bool err :1; - bool partitions :1; - bool gc_replicas :1; +typedef struct _configuration_query_by_node_response__isset +{ + _configuration_query_by_node_response__isset() + : err(false), partitions(false), gc_replicas(false) + { + } + bool err : 1; + bool partitions : 1; + bool gc_replicas : 1; } _configuration_query_by_node_response__isset; -class configuration_query_by_node_response { - public: - - configuration_query_by_node_response(const configuration_query_by_node_response&); - configuration_query_by_node_response(configuration_query_by_node_response&&); - configuration_query_by_node_response& operator=(const configuration_query_by_node_response&); - configuration_query_by_node_response& operator=(configuration_query_by_node_response&&); - configuration_query_by_node_response() { - } +class configuration_query_by_node_response +{ +public: + configuration_query_by_node_response(const configuration_query_by_node_response &); + configuration_query_by_node_response(configuration_query_by_node_response &&); + configuration_query_by_node_response &operator=(const configuration_query_by_node_response &); + configuration_query_by_node_response &operator=(configuration_query_by_node_response &&); + configuration_query_by_node_response() {} - virtual ~configuration_query_by_node_response() throw(); - ::dsn::error_code err; - std::vector partitions; - std::vector gc_replicas; + virtual ~configuration_query_by_node_response() throw(); + ::dsn::error_code err; + std::vector partitions; + std::vector gc_replicas; - _configuration_query_by_node_response__isset __isset; + _configuration_query_by_node_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector &val); - void __set_gc_replicas(const std::vector & val); + void __set_gc_replicas(const std::vector &val); - bool operator == (const configuration_query_by_node_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(partitions == rhs.partitions)) - return false; - if (__isset.gc_replicas != rhs.__isset.gc_replicas) - return false; - else if (__isset.gc_replicas && !(gc_replicas == rhs.gc_replicas)) - return false; - return true; - } - bool operator != (const configuration_query_by_node_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_query_by_node_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(partitions == rhs.partitions)) + return false; + if (__isset.gc_replicas != rhs.__isset.gc_replicas) + return false; + else if (__isset.gc_replicas && !(gc_replicas == rhs.gc_replicas)) + return false; + return true; + } + bool operator!=(const configuration_query_by_node_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_query_by_node_response & ) const; + bool operator<(const configuration_query_by_node_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_query_by_node_response &a, configuration_query_by_node_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_query_by_node_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_query_by_node_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _create_app_options__isset { - _create_app_options__isset() : partition_count(false), replica_count(false), success_if_exist(false), app_type(false), is_stateful(false), envs(false) {} - bool partition_count :1; - bool replica_count :1; - bool success_if_exist :1; - bool app_type :1; - bool is_stateful :1; - bool envs :1; +typedef struct _create_app_options__isset +{ + _create_app_options__isset() + : partition_count(false), + replica_count(false), + success_if_exist(false), + app_type(false), + is_stateful(false), + envs(false) + { + } + bool partition_count : 1; + bool replica_count : 1; + bool success_if_exist : 1; + bool app_type : 1; + bool is_stateful : 1; + bool envs : 1; } _create_app_options__isset; -class create_app_options { - public: - - create_app_options(const create_app_options&); - create_app_options(create_app_options&&); - create_app_options& operator=(const create_app_options&); - create_app_options& operator=(create_app_options&&); - create_app_options() : partition_count(0), replica_count(0), success_if_exist(0), app_type(), is_stateful(0) { - } +class create_app_options +{ +public: + create_app_options(const create_app_options &); + create_app_options(create_app_options &&); + create_app_options &operator=(const create_app_options &); + create_app_options &operator=(create_app_options &&); + create_app_options() + : partition_count(0), replica_count(0), success_if_exist(0), app_type(), is_stateful(0) + { + } - virtual ~create_app_options() throw(); - int32_t partition_count; - int32_t replica_count; - bool success_if_exist; - std::string app_type; - bool is_stateful; - std::map envs; + virtual ~create_app_options() throw(); + int32_t partition_count; + int32_t replica_count; + bool success_if_exist; + std::string app_type; + bool is_stateful; + std::map envs; - _create_app_options__isset __isset; + _create_app_options__isset __isset; - void __set_partition_count(const int32_t val); + void __set_partition_count(const int32_t val); - void __set_replica_count(const int32_t val); + void __set_replica_count(const int32_t val); - void __set_success_if_exist(const bool val); + void __set_success_if_exist(const bool val); - void __set_app_type(const std::string& val); + void __set_app_type(const std::string &val); - void __set_is_stateful(const bool val); + void __set_is_stateful(const bool val); - void __set_envs(const std::map & val); + void __set_envs(const std::map &val); - bool operator == (const create_app_options & rhs) const - { - if (!(partition_count == rhs.partition_count)) - return false; - if (!(replica_count == rhs.replica_count)) - return false; - if (!(success_if_exist == rhs.success_if_exist)) - return false; - if (!(app_type == rhs.app_type)) - return false; - if (!(is_stateful == rhs.is_stateful)) - return false; - if (!(envs == rhs.envs)) - return false; - return true; - } - bool operator != (const create_app_options &rhs) const { - return !(*this == rhs); - } + bool operator==(const create_app_options &rhs) const + { + if (!(partition_count == rhs.partition_count)) + return false; + if (!(replica_count == rhs.replica_count)) + return false; + if (!(success_if_exist == rhs.success_if_exist)) + return false; + if (!(app_type == rhs.app_type)) + return false; + if (!(is_stateful == rhs.is_stateful)) + return false; + if (!(envs == rhs.envs)) + return false; + return true; + } + bool operator!=(const create_app_options &rhs) const { return !(*this == rhs); } - bool operator < (const create_app_options & ) const; + bool operator<(const create_app_options &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(create_app_options &a, create_app_options &b); -inline std::ostream& operator<<(std::ostream& out, const create_app_options& obj) +inline std::ostream &operator<<(std::ostream &out, const create_app_options &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_create_app_request__isset { - _configuration_create_app_request__isset() : app_name(false), options(false) {} - bool app_name :1; - bool options :1; +typedef struct _configuration_create_app_request__isset +{ + _configuration_create_app_request__isset() : app_name(false), options(false) {} + bool app_name : 1; + bool options : 1; } _configuration_create_app_request__isset; -class configuration_create_app_request { - public: - - configuration_create_app_request(const configuration_create_app_request&); - configuration_create_app_request(configuration_create_app_request&&); - configuration_create_app_request& operator=(const configuration_create_app_request&); - configuration_create_app_request& operator=(configuration_create_app_request&&); - configuration_create_app_request() : app_name() { - } +class configuration_create_app_request +{ +public: + configuration_create_app_request(const configuration_create_app_request &); + configuration_create_app_request(configuration_create_app_request &&); + configuration_create_app_request &operator=(const configuration_create_app_request &); + configuration_create_app_request &operator=(configuration_create_app_request &&); + configuration_create_app_request() : app_name() {} - virtual ~configuration_create_app_request() throw(); - std::string app_name; - create_app_options options; + virtual ~configuration_create_app_request() throw(); + std::string app_name; + create_app_options options; - _configuration_create_app_request__isset __isset; + _configuration_create_app_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - void __set_options(const create_app_options& val); + void __set_options(const create_app_options &val); - bool operator == (const configuration_create_app_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(options == rhs.options)) - return false; - return true; - } - bool operator != (const configuration_create_app_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_create_app_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(options == rhs.options)) + return false; + return true; + } + bool operator!=(const configuration_create_app_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_create_app_request & ) const; + bool operator<(const configuration_create_app_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_create_app_request &a, configuration_create_app_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_create_app_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_create_app_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _drop_app_options__isset { - _drop_app_options__isset() : success_if_not_exist(false), reserve_seconds(false) {} - bool success_if_not_exist :1; - bool reserve_seconds :1; +typedef struct _drop_app_options__isset +{ + _drop_app_options__isset() : success_if_not_exist(false), reserve_seconds(false) {} + bool success_if_not_exist : 1; + bool reserve_seconds : 1; } _drop_app_options__isset; -class drop_app_options { - public: - - drop_app_options(const drop_app_options&); - drop_app_options(drop_app_options&&); - drop_app_options& operator=(const drop_app_options&); - drop_app_options& operator=(drop_app_options&&); - drop_app_options() : success_if_not_exist(0), reserve_seconds(0) { - } +class drop_app_options +{ +public: + drop_app_options(const drop_app_options &); + drop_app_options(drop_app_options &&); + drop_app_options &operator=(const drop_app_options &); + drop_app_options &operator=(drop_app_options &&); + drop_app_options() : success_if_not_exist(0), reserve_seconds(0) {} - virtual ~drop_app_options() throw(); - bool success_if_not_exist; - int64_t reserve_seconds; + virtual ~drop_app_options() throw(); + bool success_if_not_exist; + int64_t reserve_seconds; - _drop_app_options__isset __isset; + _drop_app_options__isset __isset; - void __set_success_if_not_exist(const bool val); + void __set_success_if_not_exist(const bool val); - void __set_reserve_seconds(const int64_t val); + void __set_reserve_seconds(const int64_t val); - bool operator == (const drop_app_options & rhs) const - { - if (!(success_if_not_exist == rhs.success_if_not_exist)) - return false; - if (__isset.reserve_seconds != rhs.__isset.reserve_seconds) - return false; - else if (__isset.reserve_seconds && !(reserve_seconds == rhs.reserve_seconds)) - return false; - return true; - } - bool operator != (const drop_app_options &rhs) const { - return !(*this == rhs); - } + bool operator==(const drop_app_options &rhs) const + { + if (!(success_if_not_exist == rhs.success_if_not_exist)) + return false; + if (__isset.reserve_seconds != rhs.__isset.reserve_seconds) + return false; + else if (__isset.reserve_seconds && !(reserve_seconds == rhs.reserve_seconds)) + return false; + return true; + } + bool operator!=(const drop_app_options &rhs) const { return !(*this == rhs); } - bool operator < (const drop_app_options & ) const; + bool operator<(const drop_app_options &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(drop_app_options &a, drop_app_options &b); -inline std::ostream& operator<<(std::ostream& out, const drop_app_options& obj) +inline std::ostream &operator<<(std::ostream &out, const drop_app_options &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_drop_app_request__isset { - _configuration_drop_app_request__isset() : app_name(false), options(false) {} - bool app_name :1; - bool options :1; +typedef struct _configuration_drop_app_request__isset +{ + _configuration_drop_app_request__isset() : app_name(false), options(false) {} + bool app_name : 1; + bool options : 1; } _configuration_drop_app_request__isset; -class configuration_drop_app_request { - public: - - configuration_drop_app_request(const configuration_drop_app_request&); - configuration_drop_app_request(configuration_drop_app_request&&); - configuration_drop_app_request& operator=(const configuration_drop_app_request&); - configuration_drop_app_request& operator=(configuration_drop_app_request&&); - configuration_drop_app_request() : app_name() { - } +class configuration_drop_app_request +{ +public: + configuration_drop_app_request(const configuration_drop_app_request &); + configuration_drop_app_request(configuration_drop_app_request &&); + configuration_drop_app_request &operator=(const configuration_drop_app_request &); + configuration_drop_app_request &operator=(configuration_drop_app_request &&); + configuration_drop_app_request() : app_name() {} - virtual ~configuration_drop_app_request() throw(); - std::string app_name; - drop_app_options options; + virtual ~configuration_drop_app_request() throw(); + std::string app_name; + drop_app_options options; - _configuration_drop_app_request__isset __isset; + _configuration_drop_app_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - void __set_options(const drop_app_options& val); + void __set_options(const drop_app_options &val); - bool operator == (const configuration_drop_app_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(options == rhs.options)) - return false; - return true; - } - bool operator != (const configuration_drop_app_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_drop_app_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(options == rhs.options)) + return false; + return true; + } + bool operator!=(const configuration_drop_app_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_drop_app_request & ) const; + bool operator<(const configuration_drop_app_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_drop_app_request &a, configuration_drop_app_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_drop_app_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_drop_app_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_list_apps_request__isset { - _configuration_list_apps_request__isset() : status(true) {} - bool status :1; +typedef struct _configuration_list_apps_request__isset +{ + _configuration_list_apps_request__isset() : status(true) {} + bool status : 1; } _configuration_list_apps_request__isset; -class configuration_list_apps_request { - public: - - configuration_list_apps_request(const configuration_list_apps_request&); - configuration_list_apps_request(configuration_list_apps_request&&); - configuration_list_apps_request& operator=(const configuration_list_apps_request&); - configuration_list_apps_request& operator=(configuration_list_apps_request&&); - configuration_list_apps_request() : status(( ::dsn::app_status::type)0) { - status = ( ::dsn::app_status::type)0; - - } +class configuration_list_apps_request +{ +public: + configuration_list_apps_request(const configuration_list_apps_request &); + configuration_list_apps_request(configuration_list_apps_request &&); + configuration_list_apps_request &operator=(const configuration_list_apps_request &); + configuration_list_apps_request &operator=(configuration_list_apps_request &&); + configuration_list_apps_request() : status((::dsn::app_status::type)0) + { + status = (::dsn::app_status::type)0; + } - virtual ~configuration_list_apps_request() throw(); - ::dsn::app_status::type status; + virtual ~configuration_list_apps_request() throw(); + ::dsn::app_status::type status; - _configuration_list_apps_request__isset __isset; + _configuration_list_apps_request__isset __isset; - void __set_status(const ::dsn::app_status::type val); + void __set_status(const ::dsn::app_status::type val); - bool operator == (const configuration_list_apps_request & rhs) const - { - if (!(status == rhs.status)) - return false; - return true; - } - bool operator != (const configuration_list_apps_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_list_apps_request &rhs) const + { + if (!(status == rhs.status)) + return false; + return true; + } + bool operator!=(const configuration_list_apps_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_list_apps_request & ) const; + bool operator<(const configuration_list_apps_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_list_apps_request &a, configuration_list_apps_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_list_apps_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_list_apps_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_list_nodes_request__isset { - _configuration_list_nodes_request__isset() : status(true) {} - bool status :1; +typedef struct _configuration_list_nodes_request__isset +{ + _configuration_list_nodes_request__isset() : status(true) {} + bool status : 1; } _configuration_list_nodes_request__isset; -class configuration_list_nodes_request { - public: - - configuration_list_nodes_request(const configuration_list_nodes_request&); - configuration_list_nodes_request(configuration_list_nodes_request&&); - configuration_list_nodes_request& operator=(const configuration_list_nodes_request&); - configuration_list_nodes_request& operator=(configuration_list_nodes_request&&); - configuration_list_nodes_request() : status((node_status::type)0) { - status = (node_status::type)0; - - } +class configuration_list_nodes_request +{ +public: + configuration_list_nodes_request(const configuration_list_nodes_request &); + configuration_list_nodes_request(configuration_list_nodes_request &&); + configuration_list_nodes_request &operator=(const configuration_list_nodes_request &); + configuration_list_nodes_request &operator=(configuration_list_nodes_request &&); + configuration_list_nodes_request() : status((node_status::type)0) + { + status = (node_status::type)0; + } - virtual ~configuration_list_nodes_request() throw(); - node_status::type status; + virtual ~configuration_list_nodes_request() throw(); + node_status::type status; - _configuration_list_nodes_request__isset __isset; + _configuration_list_nodes_request__isset __isset; - void __set_status(const node_status::type val); + void __set_status(const node_status::type val); - bool operator == (const configuration_list_nodes_request & rhs) const - { - if (!(status == rhs.status)) - return false; - return true; - } - bool operator != (const configuration_list_nodes_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_list_nodes_request &rhs) const + { + if (!(status == rhs.status)) + return false; + return true; + } + bool operator!=(const configuration_list_nodes_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_list_nodes_request & ) const; + bool operator<(const configuration_list_nodes_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_list_nodes_request &a, configuration_list_nodes_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_list_nodes_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_list_nodes_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } +class configuration_cluster_info_request +{ +public: + configuration_cluster_info_request(const configuration_cluster_info_request &); + configuration_cluster_info_request(configuration_cluster_info_request &&); + configuration_cluster_info_request &operator=(const configuration_cluster_info_request &); + configuration_cluster_info_request &operator=(configuration_cluster_info_request &&); + configuration_cluster_info_request() {} -class configuration_cluster_info_request { - public: - - configuration_cluster_info_request(const configuration_cluster_info_request&); - configuration_cluster_info_request(configuration_cluster_info_request&&); - configuration_cluster_info_request& operator=(const configuration_cluster_info_request&); - configuration_cluster_info_request& operator=(configuration_cluster_info_request&&); - configuration_cluster_info_request() { - } - - virtual ~configuration_cluster_info_request() throw(); + virtual ~configuration_cluster_info_request() throw(); - bool operator == (const configuration_cluster_info_request & /* rhs */) const - { - return true; - } - bool operator != (const configuration_cluster_info_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_cluster_info_request & /* rhs */) const { return true; } + bool operator!=(const configuration_cluster_info_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_cluster_info_request & ) const; + bool operator<(const configuration_cluster_info_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_cluster_info_request &a, configuration_cluster_info_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_cluster_info_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_cluster_info_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_recall_app_request__isset { - _configuration_recall_app_request__isset() : app_id(false), new_app_name(false) {} - bool app_id :1; - bool new_app_name :1; +typedef struct _configuration_recall_app_request__isset +{ + _configuration_recall_app_request__isset() : app_id(false), new_app_name(false) {} + bool app_id : 1; + bool new_app_name : 1; } _configuration_recall_app_request__isset; -class configuration_recall_app_request { - public: - - configuration_recall_app_request(const configuration_recall_app_request&); - configuration_recall_app_request(configuration_recall_app_request&&); - configuration_recall_app_request& operator=(const configuration_recall_app_request&); - configuration_recall_app_request& operator=(configuration_recall_app_request&&); - configuration_recall_app_request() : app_id(0), new_app_name() { - } +class configuration_recall_app_request +{ +public: + configuration_recall_app_request(const configuration_recall_app_request &); + configuration_recall_app_request(configuration_recall_app_request &&); + configuration_recall_app_request &operator=(const configuration_recall_app_request &); + configuration_recall_app_request &operator=(configuration_recall_app_request &&); + configuration_recall_app_request() : app_id(0), new_app_name() {} - virtual ~configuration_recall_app_request() throw(); - int32_t app_id; - std::string new_app_name; + virtual ~configuration_recall_app_request() throw(); + int32_t app_id; + std::string new_app_name; - _configuration_recall_app_request__isset __isset; + _configuration_recall_app_request__isset __isset; - void __set_app_id(const int32_t val); + void __set_app_id(const int32_t val); - void __set_new_app_name(const std::string& val); + void __set_new_app_name(const std::string &val); - bool operator == (const configuration_recall_app_request & rhs) const - { - if (!(app_id == rhs.app_id)) - return false; - if (!(new_app_name == rhs.new_app_name)) - return false; - return true; - } - bool operator != (const configuration_recall_app_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_recall_app_request &rhs) const + { + if (!(app_id == rhs.app_id)) + return false; + if (!(new_app_name == rhs.new_app_name)) + return false; + return true; + } + bool operator!=(const configuration_recall_app_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_recall_app_request & ) const; + bool operator<(const configuration_recall_app_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_recall_app_request &a, configuration_recall_app_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_recall_app_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_recall_app_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_create_app_response__isset { - _configuration_create_app_response__isset() : err(false), appid(false) {} - bool err :1; - bool appid :1; +typedef struct _configuration_create_app_response__isset +{ + _configuration_create_app_response__isset() : err(false), appid(false) {} + bool err : 1; + bool appid : 1; } _configuration_create_app_response__isset; -class configuration_create_app_response { - public: - - configuration_create_app_response(const configuration_create_app_response&); - configuration_create_app_response(configuration_create_app_response&&); - configuration_create_app_response& operator=(const configuration_create_app_response&); - configuration_create_app_response& operator=(configuration_create_app_response&&); - configuration_create_app_response() : appid(0) { - } +class configuration_create_app_response +{ +public: + configuration_create_app_response(const configuration_create_app_response &); + configuration_create_app_response(configuration_create_app_response &&); + configuration_create_app_response &operator=(const configuration_create_app_response &); + configuration_create_app_response &operator=(configuration_create_app_response &&); + configuration_create_app_response() : appid(0) {} - virtual ~configuration_create_app_response() throw(); - ::dsn::error_code err; - int32_t appid; + virtual ~configuration_create_app_response() throw(); + ::dsn::error_code err; + int32_t appid; - _configuration_create_app_response__isset __isset; + _configuration_create_app_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_appid(const int32_t val); + void __set_appid(const int32_t val); - bool operator == (const configuration_create_app_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(appid == rhs.appid)) - return false; - return true; - } - bool operator != (const configuration_create_app_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_create_app_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(appid == rhs.appid)) + return false; + return true; + } + bool operator!=(const configuration_create_app_response &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_create_app_response & ) const; + bool operator<(const configuration_create_app_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_create_app_response &a, configuration_create_app_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_create_app_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_create_app_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_meta_control_request__isset { - _configuration_meta_control_request__isset() : level(false) {} - bool level :1; +typedef struct _configuration_meta_control_request__isset +{ + _configuration_meta_control_request__isset() : level(false) {} + bool level : 1; } _configuration_meta_control_request__isset; -class configuration_meta_control_request { - public: - - configuration_meta_control_request(const configuration_meta_control_request&); - configuration_meta_control_request(configuration_meta_control_request&&); - configuration_meta_control_request& operator=(const configuration_meta_control_request&); - configuration_meta_control_request& operator=(configuration_meta_control_request&&); - configuration_meta_control_request() : level((meta_function_level::type)0) { - } +class configuration_meta_control_request +{ +public: + configuration_meta_control_request(const configuration_meta_control_request &); + configuration_meta_control_request(configuration_meta_control_request &&); + configuration_meta_control_request &operator=(const configuration_meta_control_request &); + configuration_meta_control_request &operator=(configuration_meta_control_request &&); + configuration_meta_control_request() : level((meta_function_level::type)0) {} - virtual ~configuration_meta_control_request() throw(); - meta_function_level::type level; + virtual ~configuration_meta_control_request() throw(); + meta_function_level::type level; - _configuration_meta_control_request__isset __isset; + _configuration_meta_control_request__isset __isset; - void __set_level(const meta_function_level::type val); + void __set_level(const meta_function_level::type val); - bool operator == (const configuration_meta_control_request & rhs) const - { - if (!(level == rhs.level)) - return false; - return true; - } - bool operator != (const configuration_meta_control_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_meta_control_request &rhs) const + { + if (!(level == rhs.level)) + return false; + return true; + } + bool operator!=(const configuration_meta_control_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_meta_control_request & ) const; + bool operator<(const configuration_meta_control_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_meta_control_request &a, configuration_meta_control_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_meta_control_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_meta_control_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_meta_control_response__isset { - _configuration_meta_control_response__isset() : err(false), old_level(false) {} - bool err :1; - bool old_level :1; +typedef struct _configuration_meta_control_response__isset +{ + _configuration_meta_control_response__isset() : err(false), old_level(false) {} + bool err : 1; + bool old_level : 1; } _configuration_meta_control_response__isset; -class configuration_meta_control_response { - public: - - configuration_meta_control_response(const configuration_meta_control_response&); - configuration_meta_control_response(configuration_meta_control_response&&); - configuration_meta_control_response& operator=(const configuration_meta_control_response&); - configuration_meta_control_response& operator=(configuration_meta_control_response&&); - configuration_meta_control_response() : old_level((meta_function_level::type)0) { - } +class configuration_meta_control_response +{ +public: + configuration_meta_control_response(const configuration_meta_control_response &); + configuration_meta_control_response(configuration_meta_control_response &&); + configuration_meta_control_response &operator=(const configuration_meta_control_response &); + configuration_meta_control_response &operator=(configuration_meta_control_response &&); + configuration_meta_control_response() : old_level((meta_function_level::type)0) {} - virtual ~configuration_meta_control_response() throw(); - ::dsn::error_code err; - meta_function_level::type old_level; + virtual ~configuration_meta_control_response() throw(); + ::dsn::error_code err; + meta_function_level::type old_level; - _configuration_meta_control_response__isset __isset; + _configuration_meta_control_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_old_level(const meta_function_level::type val); + void __set_old_level(const meta_function_level::type val); - bool operator == (const configuration_meta_control_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(old_level == rhs.old_level)) - return false; - return true; - } - bool operator != (const configuration_meta_control_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_meta_control_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(old_level == rhs.old_level)) + return false; + return true; + } + bool operator!=(const configuration_meta_control_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_meta_control_response & ) const; + bool operator<(const configuration_meta_control_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_meta_control_response &a, configuration_meta_control_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_meta_control_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_meta_control_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_proposal_action__isset { - _configuration_proposal_action__isset() : target(false), node(false), type(false) {} - bool target :1; - bool node :1; - bool type :1; +typedef struct _configuration_proposal_action__isset +{ + _configuration_proposal_action__isset() : target(false), node(false), type(false) {} + bool target : 1; + bool node : 1; + bool type : 1; } _configuration_proposal_action__isset; -class configuration_proposal_action { - public: - configuration_proposal_action(::dsn::rpc_address t, ::dsn::rpc_address n, config_type::type tp): target(t), node(n), type(tp) {} - - configuration_proposal_action(const configuration_proposal_action&); - configuration_proposal_action(configuration_proposal_action&&); - configuration_proposal_action& operator=(const configuration_proposal_action&); - configuration_proposal_action& operator=(configuration_proposal_action&&); - configuration_proposal_action() : type((config_type::type)0) { - } +class configuration_proposal_action +{ +public: + configuration_proposal_action(::dsn::rpc_address t, ::dsn::rpc_address n, config_type::type tp) + : target(t), node(n), type(tp) + { + } - virtual ~configuration_proposal_action() throw(); - ::dsn::rpc_address target; - ::dsn::rpc_address node; - config_type::type type; + configuration_proposal_action(const configuration_proposal_action &); + configuration_proposal_action(configuration_proposal_action &&); + configuration_proposal_action &operator=(const configuration_proposal_action &); + configuration_proposal_action &operator=(configuration_proposal_action &&); + configuration_proposal_action() : type((config_type::type)0) {} - _configuration_proposal_action__isset __isset; + virtual ~configuration_proposal_action() throw(); + ::dsn::rpc_address target; + ::dsn::rpc_address node; + config_type::type type; - void __set_target(const ::dsn::rpc_address& val); + _configuration_proposal_action__isset __isset; - void __set_node(const ::dsn::rpc_address& val); + void __set_target(const ::dsn::rpc_address &val); - void __set_type(const config_type::type val); + void __set_node(const ::dsn::rpc_address &val); - bool operator == (const configuration_proposal_action & rhs) const - { - if (!(target == rhs.target)) - return false; - if (!(node == rhs.node)) - return false; - if (!(type == rhs.type)) - return false; - return true; - } - bool operator != (const configuration_proposal_action &rhs) const { - return !(*this == rhs); - } + void __set_type(const config_type::type val); + bool operator==(const configuration_proposal_action &rhs) const + { + if (!(target == rhs.target)) + return false; + if (!(node == rhs.node)) + return false; + if (!(type == rhs.type)) + return false; + return true; + } + bool operator!=(const configuration_proposal_action &rhs) const { return !(*this == rhs); } - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_proposal_action &a, configuration_proposal_action &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_proposal_action& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_proposal_action &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_balancer_request__isset { - _configuration_balancer_request__isset() : gpid(false), action_list(false), force(true), balance_type(false) {} - bool gpid :1; - bool action_list :1; - bool force :1; - bool balance_type :1; +typedef struct _configuration_balancer_request__isset +{ + _configuration_balancer_request__isset() + : gpid(false), action_list(false), force(true), balance_type(false) + { + } + bool gpid : 1; + bool action_list : 1; + bool force : 1; + bool balance_type : 1; } _configuration_balancer_request__isset; -class configuration_balancer_request { - public: - - configuration_balancer_request(const configuration_balancer_request&); - configuration_balancer_request(configuration_balancer_request&&); - configuration_balancer_request& operator=(const configuration_balancer_request&); - configuration_balancer_request& operator=(configuration_balancer_request&&); - configuration_balancer_request() : force(false), balance_type((balancer_request_type::type)0) { - } +class configuration_balancer_request +{ +public: + configuration_balancer_request(const configuration_balancer_request &); + configuration_balancer_request(configuration_balancer_request &&); + configuration_balancer_request &operator=(const configuration_balancer_request &); + configuration_balancer_request &operator=(configuration_balancer_request &&); + configuration_balancer_request() : force(false), balance_type((balancer_request_type::type)0) {} - virtual ~configuration_balancer_request() throw(); - ::dsn::gpid gpid; - std::vector action_list; - bool force; - balancer_request_type::type balance_type; + virtual ~configuration_balancer_request() throw(); + ::dsn::gpid gpid; + std::vector action_list; + bool force; + balancer_request_type::type balance_type; - _configuration_balancer_request__isset __isset; + _configuration_balancer_request__isset __isset; - void __set_gpid(const ::dsn::gpid& val); + void __set_gpid(const ::dsn::gpid &val); - void __set_action_list(const std::vector & val); + void __set_action_list(const std::vector &val); - void __set_force(const bool val); + void __set_force(const bool val); - void __set_balance_type(const balancer_request_type::type val); + void __set_balance_type(const balancer_request_type::type val); - bool operator == (const configuration_balancer_request & rhs) const - { - if (!(gpid == rhs.gpid)) - return false; - if (!(action_list == rhs.action_list)) - return false; - if (__isset.force != rhs.__isset.force) - return false; - else if (__isset.force && !(force == rhs.force)) - return false; - if (__isset.balance_type != rhs.__isset.balance_type) - return false; - else if (__isset.balance_type && !(balance_type == rhs.balance_type)) - return false; - return true; - } - bool operator != (const configuration_balancer_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_balancer_request &rhs) const + { + if (!(gpid == rhs.gpid)) + return false; + if (!(action_list == rhs.action_list)) + return false; + if (__isset.force != rhs.__isset.force) + return false; + else if (__isset.force && !(force == rhs.force)) + return false; + if (__isset.balance_type != rhs.__isset.balance_type) + return false; + else if (__isset.balance_type && !(balance_type == rhs.balance_type)) + return false; + return true; + } + bool operator!=(const configuration_balancer_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_balancer_request & ) const; + bool operator<(const configuration_balancer_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_balancer_request &a, configuration_balancer_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_balancer_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_balancer_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_balancer_response__isset { - _configuration_balancer_response__isset() : err(false) {} - bool err :1; +typedef struct _configuration_balancer_response__isset +{ + _configuration_balancer_response__isset() : err(false) {} + bool err : 1; } _configuration_balancer_response__isset; -class configuration_balancer_response { - public: - - configuration_balancer_response(const configuration_balancer_response&); - configuration_balancer_response(configuration_balancer_response&&); - configuration_balancer_response& operator=(const configuration_balancer_response&); - configuration_balancer_response& operator=(configuration_balancer_response&&); - configuration_balancer_response() { - } +class configuration_balancer_response +{ +public: + configuration_balancer_response(const configuration_balancer_response &); + configuration_balancer_response(configuration_balancer_response &&); + configuration_balancer_response &operator=(const configuration_balancer_response &); + configuration_balancer_response &operator=(configuration_balancer_response &&); + configuration_balancer_response() {} - virtual ~configuration_balancer_response() throw(); - ::dsn::error_code err; + virtual ~configuration_balancer_response() throw(); + ::dsn::error_code err; - _configuration_balancer_response__isset __isset; + _configuration_balancer_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - bool operator == (const configuration_balancer_response & rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator != (const configuration_balancer_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_balancer_response &rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator!=(const configuration_balancer_response &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_balancer_response & ) const; + bool operator<(const configuration_balancer_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_balancer_response &a, configuration_balancer_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_balancer_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_balancer_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_drop_app_response__isset { - _configuration_drop_app_response__isset() : err(false) {} - bool err :1; +typedef struct _configuration_drop_app_response__isset +{ + _configuration_drop_app_response__isset() : err(false) {} + bool err : 1; } _configuration_drop_app_response__isset; -class configuration_drop_app_response { - public: - - configuration_drop_app_response(const configuration_drop_app_response&); - configuration_drop_app_response(configuration_drop_app_response&&); - configuration_drop_app_response& operator=(const configuration_drop_app_response&); - configuration_drop_app_response& operator=(configuration_drop_app_response&&); - configuration_drop_app_response() { - } +class configuration_drop_app_response +{ +public: + configuration_drop_app_response(const configuration_drop_app_response &); + configuration_drop_app_response(configuration_drop_app_response &&); + configuration_drop_app_response &operator=(const configuration_drop_app_response &); + configuration_drop_app_response &operator=(configuration_drop_app_response &&); + configuration_drop_app_response() {} - virtual ~configuration_drop_app_response() throw(); - ::dsn::error_code err; + virtual ~configuration_drop_app_response() throw(); + ::dsn::error_code err; - _configuration_drop_app_response__isset __isset; + _configuration_drop_app_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - bool operator == (const configuration_drop_app_response & rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator != (const configuration_drop_app_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_drop_app_response &rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator!=(const configuration_drop_app_response &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_drop_app_response & ) const; + bool operator<(const configuration_drop_app_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_drop_app_response &a, configuration_drop_app_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_drop_app_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_drop_app_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_list_apps_response__isset { - _configuration_list_apps_response__isset() : err(false), infos(false) {} - bool err :1; - bool infos :1; +typedef struct _configuration_list_apps_response__isset +{ + _configuration_list_apps_response__isset() : err(false), infos(false) {} + bool err : 1; + bool infos : 1; } _configuration_list_apps_response__isset; -class configuration_list_apps_response { - public: - - configuration_list_apps_response(const configuration_list_apps_response&); - configuration_list_apps_response(configuration_list_apps_response&&); - configuration_list_apps_response& operator=(const configuration_list_apps_response&); - configuration_list_apps_response& operator=(configuration_list_apps_response&&); - configuration_list_apps_response() { - } +class configuration_list_apps_response +{ +public: + configuration_list_apps_response(const configuration_list_apps_response &); + configuration_list_apps_response(configuration_list_apps_response &&); + configuration_list_apps_response &operator=(const configuration_list_apps_response &); + configuration_list_apps_response &operator=(configuration_list_apps_response &&); + configuration_list_apps_response() {} - virtual ~configuration_list_apps_response() throw(); - ::dsn::error_code err; - std::vector< ::dsn::app_info> infos; + virtual ~configuration_list_apps_response() throw(); + ::dsn::error_code err; + std::vector<::dsn::app_info> infos; - _configuration_list_apps_response__isset __isset; + _configuration_list_apps_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_infos(const std::vector< ::dsn::app_info> & val); + void __set_infos(const std::vector<::dsn::app_info> &val); - bool operator == (const configuration_list_apps_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(infos == rhs.infos)) - return false; - return true; - } - bool operator != (const configuration_list_apps_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_list_apps_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(infos == rhs.infos)) + return false; + return true; + } + bool operator!=(const configuration_list_apps_response &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_list_apps_response & ) const; + bool operator<(const configuration_list_apps_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_list_apps_response &a, configuration_list_apps_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_list_apps_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_list_apps_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_list_nodes_response__isset { - _configuration_list_nodes_response__isset() : err(false), infos(false) {} - bool err :1; - bool infos :1; +typedef struct _configuration_list_nodes_response__isset +{ + _configuration_list_nodes_response__isset() : err(false), infos(false) {} + bool err : 1; + bool infos : 1; } _configuration_list_nodes_response__isset; -class configuration_list_nodes_response { - public: - - configuration_list_nodes_response(const configuration_list_nodes_response&); - configuration_list_nodes_response(configuration_list_nodes_response&&); - configuration_list_nodes_response& operator=(const configuration_list_nodes_response&); - configuration_list_nodes_response& operator=(configuration_list_nodes_response&&); - configuration_list_nodes_response() { - } +class configuration_list_nodes_response +{ +public: + configuration_list_nodes_response(const configuration_list_nodes_response &); + configuration_list_nodes_response(configuration_list_nodes_response &&); + configuration_list_nodes_response &operator=(const configuration_list_nodes_response &); + configuration_list_nodes_response &operator=(configuration_list_nodes_response &&); + configuration_list_nodes_response() {} - virtual ~configuration_list_nodes_response() throw(); - ::dsn::error_code err; - std::vector infos; + virtual ~configuration_list_nodes_response() throw(); + ::dsn::error_code err; + std::vector infos; - _configuration_list_nodes_response__isset __isset; + _configuration_list_nodes_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_infos(const std::vector & val); + void __set_infos(const std::vector &val); - bool operator == (const configuration_list_nodes_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(infos == rhs.infos)) - return false; - return true; - } - bool operator != (const configuration_list_nodes_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_list_nodes_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(infos == rhs.infos)) + return false; + return true; + } + bool operator!=(const configuration_list_nodes_response &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_list_nodes_response & ) const; + bool operator<(const configuration_list_nodes_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_list_nodes_response &a, configuration_list_nodes_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_list_nodes_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_list_nodes_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_cluster_info_response__isset { - _configuration_cluster_info_response__isset() : err(false), keys(false), values(false) {} - bool err :1; - bool keys :1; - bool values :1; +typedef struct _configuration_cluster_info_response__isset +{ + _configuration_cluster_info_response__isset() : err(false), keys(false), values(false) {} + bool err : 1; + bool keys : 1; + bool values : 1; } _configuration_cluster_info_response__isset; -class configuration_cluster_info_response { - public: - - configuration_cluster_info_response(const configuration_cluster_info_response&); - configuration_cluster_info_response(configuration_cluster_info_response&&); - configuration_cluster_info_response& operator=(const configuration_cluster_info_response&); - configuration_cluster_info_response& operator=(configuration_cluster_info_response&&); - configuration_cluster_info_response() { - } +class configuration_cluster_info_response +{ +public: + configuration_cluster_info_response(const configuration_cluster_info_response &); + configuration_cluster_info_response(configuration_cluster_info_response &&); + configuration_cluster_info_response &operator=(const configuration_cluster_info_response &); + configuration_cluster_info_response &operator=(configuration_cluster_info_response &&); + configuration_cluster_info_response() {} - virtual ~configuration_cluster_info_response() throw(); - ::dsn::error_code err; - std::vector keys; - std::vector values; + virtual ~configuration_cluster_info_response() throw(); + ::dsn::error_code err; + std::vector keys; + std::vector values; - _configuration_cluster_info_response__isset __isset; + _configuration_cluster_info_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_keys(const std::vector & val); + void __set_keys(const std::vector &val); - void __set_values(const std::vector & val); + void __set_values(const std::vector &val); - bool operator == (const configuration_cluster_info_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(keys == rhs.keys)) - return false; - if (!(values == rhs.values)) - return false; - return true; - } - bool operator != (const configuration_cluster_info_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_cluster_info_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(keys == rhs.keys)) + return false; + if (!(values == rhs.values)) + return false; + return true; + } + bool operator!=(const configuration_cluster_info_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_cluster_info_response & ) const; + bool operator<(const configuration_cluster_info_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_cluster_info_response &a, configuration_cluster_info_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_cluster_info_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_cluster_info_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_recall_app_response__isset { - _configuration_recall_app_response__isset() : err(false), info(false) {} - bool err :1; - bool info :1; +typedef struct _configuration_recall_app_response__isset +{ + _configuration_recall_app_response__isset() : err(false), info(false) {} + bool err : 1; + bool info : 1; } _configuration_recall_app_response__isset; -class configuration_recall_app_response { - public: - - configuration_recall_app_response(const configuration_recall_app_response&); - configuration_recall_app_response(configuration_recall_app_response&&); - configuration_recall_app_response& operator=(const configuration_recall_app_response&); - configuration_recall_app_response& operator=(configuration_recall_app_response&&); - configuration_recall_app_response() { - } +class configuration_recall_app_response +{ +public: + configuration_recall_app_response(const configuration_recall_app_response &); + configuration_recall_app_response(configuration_recall_app_response &&); + configuration_recall_app_response &operator=(const configuration_recall_app_response &); + configuration_recall_app_response &operator=(configuration_recall_app_response &&); + configuration_recall_app_response() {} - virtual ~configuration_recall_app_response() throw(); - ::dsn::error_code err; - ::dsn::app_info info; + virtual ~configuration_recall_app_response() throw(); + ::dsn::error_code err; + ::dsn::app_info info; - _configuration_recall_app_response__isset __isset; + _configuration_recall_app_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_info(const ::dsn::app_info& val); + void __set_info(const ::dsn::app_info &val); - bool operator == (const configuration_recall_app_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(info == rhs.info)) - return false; - return true; - } - bool operator != (const configuration_recall_app_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_recall_app_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(info == rhs.info)) + return false; + return true; + } + bool operator!=(const configuration_recall_app_response &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_recall_app_response & ) const; + bool operator<(const configuration_recall_app_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_recall_app_response &a, configuration_recall_app_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_recall_app_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_recall_app_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_replica_decree_request__isset { - _query_replica_decree_request__isset() : pid(false), node(false) {} - bool pid :1; - bool node :1; +typedef struct _query_replica_decree_request__isset +{ + _query_replica_decree_request__isset() : pid(false), node(false) {} + bool pid : 1; + bool node : 1; } _query_replica_decree_request__isset; -class query_replica_decree_request { - public: - - query_replica_decree_request(const query_replica_decree_request&); - query_replica_decree_request(query_replica_decree_request&&); - query_replica_decree_request& operator=(const query_replica_decree_request&); - query_replica_decree_request& operator=(query_replica_decree_request&&); - query_replica_decree_request() { - } +class query_replica_decree_request +{ +public: + query_replica_decree_request(const query_replica_decree_request &); + query_replica_decree_request(query_replica_decree_request &&); + query_replica_decree_request &operator=(const query_replica_decree_request &); + query_replica_decree_request &operator=(query_replica_decree_request &&); + query_replica_decree_request() {} - virtual ~query_replica_decree_request() throw(); - ::dsn::gpid pid; - ::dsn::rpc_address node; + virtual ~query_replica_decree_request() throw(); + ::dsn::gpid pid; + ::dsn::rpc_address node; - _query_replica_decree_request__isset __isset; + _query_replica_decree_request__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_node(const ::dsn::rpc_address& val); + void __set_node(const ::dsn::rpc_address &val); - bool operator == (const query_replica_decree_request & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(node == rhs.node)) - return false; - return true; - } - bool operator != (const query_replica_decree_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_replica_decree_request &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(node == rhs.node)) + return false; + return true; + } + bool operator!=(const query_replica_decree_request &rhs) const { return !(*this == rhs); } - bool operator < (const query_replica_decree_request & ) const; + bool operator<(const query_replica_decree_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_replica_decree_request &a, query_replica_decree_request &b); -inline std::ostream& operator<<(std::ostream& out, const query_replica_decree_request& obj) +inline std::ostream &operator<<(std::ostream &out, const query_replica_decree_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_replica_decree_response__isset { - _query_replica_decree_response__isset() : err(false), last_decree(false) {} - bool err :1; - bool last_decree :1; +typedef struct _query_replica_decree_response__isset +{ + _query_replica_decree_response__isset() : err(false), last_decree(false) {} + bool err : 1; + bool last_decree : 1; } _query_replica_decree_response__isset; -class query_replica_decree_response { - public: - - query_replica_decree_response(const query_replica_decree_response&); - query_replica_decree_response(query_replica_decree_response&&); - query_replica_decree_response& operator=(const query_replica_decree_response&); - query_replica_decree_response& operator=(query_replica_decree_response&&); - query_replica_decree_response() : last_decree(0) { - } +class query_replica_decree_response +{ +public: + query_replica_decree_response(const query_replica_decree_response &); + query_replica_decree_response(query_replica_decree_response &&); + query_replica_decree_response &operator=(const query_replica_decree_response &); + query_replica_decree_response &operator=(query_replica_decree_response &&); + query_replica_decree_response() : last_decree(0) {} - virtual ~query_replica_decree_response() throw(); - ::dsn::error_code err; - int64_t last_decree; + virtual ~query_replica_decree_response() throw(); + ::dsn::error_code err; + int64_t last_decree; - _query_replica_decree_response__isset __isset; + _query_replica_decree_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_last_decree(const int64_t val); + void __set_last_decree(const int64_t val); - bool operator == (const query_replica_decree_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(last_decree == rhs.last_decree)) - return false; - return true; - } - bool operator != (const query_replica_decree_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_replica_decree_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(last_decree == rhs.last_decree)) + return false; + return true; + } + bool operator!=(const query_replica_decree_response &rhs) const { return !(*this == rhs); } - bool operator < (const query_replica_decree_response & ) const; + bool operator<(const query_replica_decree_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_replica_decree_response &a, query_replica_decree_response &b); -inline std::ostream& operator<<(std::ostream& out, const query_replica_decree_response& obj) +inline std::ostream &operator<<(std::ostream &out, const query_replica_decree_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_info__isset { - _replica_info__isset() : pid(false), ballot(false), status(false), last_committed_decree(false), last_prepared_decree(false), last_durable_decree(false), app_type(false), disk_tag(false) {} - bool pid :1; - bool ballot :1; - bool status :1; - bool last_committed_decree :1; - bool last_prepared_decree :1; - bool last_durable_decree :1; - bool app_type :1; - bool disk_tag :1; +typedef struct _replica_info__isset +{ + _replica_info__isset() + : pid(false), + ballot(false), + status(false), + last_committed_decree(false), + last_prepared_decree(false), + last_durable_decree(false), + app_type(false), + disk_tag(false) + { + } + bool pid : 1; + bool ballot : 1; + bool status : 1; + bool last_committed_decree : 1; + bool last_prepared_decree : 1; + bool last_durable_decree : 1; + bool app_type : 1; + bool disk_tag : 1; } _replica_info__isset; -class replica_info { - public: - - replica_info(const replica_info&); - replica_info(replica_info&&); - replica_info& operator=(const replica_info&); - replica_info& operator=(replica_info&&); - replica_info() : ballot(0), status((partition_status::type)0), last_committed_decree(0), last_prepared_decree(0), last_durable_decree(0), app_type(), disk_tag() { - } - - virtual ~replica_info() throw(); - ::dsn::gpid pid; - int64_t ballot; - partition_status::type status; - int64_t last_committed_decree; - int64_t last_prepared_decree; - int64_t last_durable_decree; - std::string app_type; - std::string disk_tag; - - _replica_info__isset __isset; - - void __set_pid(const ::dsn::gpid& val); - - void __set_ballot(const int64_t val); - - void __set_status(const partition_status::type val); - - void __set_last_committed_decree(const int64_t val); - - void __set_last_prepared_decree(const int64_t val); - - void __set_last_durable_decree(const int64_t val); - - void __set_app_type(const std::string& val); - - void __set_disk_tag(const std::string& val); - - bool operator == (const replica_info & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(status == rhs.status)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(last_prepared_decree == rhs.last_prepared_decree)) - return false; - if (!(last_durable_decree == rhs.last_durable_decree)) - return false; - if (!(app_type == rhs.app_type)) - return false; - if (!(disk_tag == rhs.disk_tag)) - return false; - return true; - } - bool operator != (const replica_info &rhs) const { - return !(*this == rhs); - } - - bool operator < (const replica_info & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class replica_info +{ +public: + replica_info(const replica_info &); + replica_info(replica_info &&); + replica_info &operator=(const replica_info &); + replica_info &operator=(replica_info &&); + replica_info() + : ballot(0), + status((partition_status::type)0), + last_committed_decree(0), + last_prepared_decree(0), + last_durable_decree(0), + app_type(), + disk_tag() + { + } + + virtual ~replica_info() throw(); + ::dsn::gpid pid; + int64_t ballot; + partition_status::type status; + int64_t last_committed_decree; + int64_t last_prepared_decree; + int64_t last_durable_decree; + std::string app_type; + std::string disk_tag; + + _replica_info__isset __isset; + + void __set_pid(const ::dsn::gpid &val); + + void __set_ballot(const int64_t val); + + void __set_status(const partition_status::type val); + + void __set_last_committed_decree(const int64_t val); + + void __set_last_prepared_decree(const int64_t val); + + void __set_last_durable_decree(const int64_t val); + + void __set_app_type(const std::string &val); + + void __set_disk_tag(const std::string &val); + + bool operator==(const replica_info &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(status == rhs.status)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(last_prepared_decree == rhs.last_prepared_decree)) + return false; + if (!(last_durable_decree == rhs.last_durable_decree)) + return false; + if (!(app_type == rhs.app_type)) + return false; + if (!(disk_tag == rhs.disk_tag)) + return false; + return true; + } + bool operator!=(const replica_info &rhs) const { return !(*this == rhs); } + + bool operator<(const replica_info &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(replica_info &a, replica_info &b); -inline std::ostream& operator<<(std::ostream& out, const replica_info& obj) +inline std::ostream &operator<<(std::ostream &out, const replica_info &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_replica_info_request__isset { - _query_replica_info_request__isset() : node(false) {} - bool node :1; +typedef struct _query_replica_info_request__isset +{ + _query_replica_info_request__isset() : node(false) {} + bool node : 1; } _query_replica_info_request__isset; -class query_replica_info_request { - public: - - query_replica_info_request(const query_replica_info_request&); - query_replica_info_request(query_replica_info_request&&); - query_replica_info_request& operator=(const query_replica_info_request&); - query_replica_info_request& operator=(query_replica_info_request&&); - query_replica_info_request() { - } +class query_replica_info_request +{ +public: + query_replica_info_request(const query_replica_info_request &); + query_replica_info_request(query_replica_info_request &&); + query_replica_info_request &operator=(const query_replica_info_request &); + query_replica_info_request &operator=(query_replica_info_request &&); + query_replica_info_request() {} - virtual ~query_replica_info_request() throw(); - ::dsn::rpc_address node; + virtual ~query_replica_info_request() throw(); + ::dsn::rpc_address node; - _query_replica_info_request__isset __isset; + _query_replica_info_request__isset __isset; - void __set_node(const ::dsn::rpc_address& val); + void __set_node(const ::dsn::rpc_address &val); - bool operator == (const query_replica_info_request & rhs) const - { - if (!(node == rhs.node)) - return false; - return true; - } - bool operator != (const query_replica_info_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_replica_info_request &rhs) const + { + if (!(node == rhs.node)) + return false; + return true; + } + bool operator!=(const query_replica_info_request &rhs) const { return !(*this == rhs); } - bool operator < (const query_replica_info_request & ) const; + bool operator<(const query_replica_info_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_replica_info_request &a, query_replica_info_request &b); -inline std::ostream& operator<<(std::ostream& out, const query_replica_info_request& obj) +inline std::ostream &operator<<(std::ostream &out, const query_replica_info_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_replica_info_response__isset { - _query_replica_info_response__isset() : err(false), replicas(false) {} - bool err :1; - bool replicas :1; +typedef struct _query_replica_info_response__isset +{ + _query_replica_info_response__isset() : err(false), replicas(false) {} + bool err : 1; + bool replicas : 1; } _query_replica_info_response__isset; -class query_replica_info_response { - public: - - query_replica_info_response(const query_replica_info_response&); - query_replica_info_response(query_replica_info_response&&); - query_replica_info_response& operator=(const query_replica_info_response&); - query_replica_info_response& operator=(query_replica_info_response&&); - query_replica_info_response() { - } +class query_replica_info_response +{ +public: + query_replica_info_response(const query_replica_info_response &); + query_replica_info_response(query_replica_info_response &&); + query_replica_info_response &operator=(const query_replica_info_response &); + query_replica_info_response &operator=(query_replica_info_response &&); + query_replica_info_response() {} - virtual ~query_replica_info_response() throw(); - ::dsn::error_code err; - std::vector replicas; + virtual ~query_replica_info_response() throw(); + ::dsn::error_code err; + std::vector replicas; - _query_replica_info_response__isset __isset; + _query_replica_info_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_replicas(const std::vector & val); + void __set_replicas(const std::vector &val); - bool operator == (const query_replica_info_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(replicas == rhs.replicas)) - return false; - return true; - } - bool operator != (const query_replica_info_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_replica_info_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(replicas == rhs.replicas)) + return false; + return true; + } + bool operator!=(const query_replica_info_response &rhs) const { return !(*this == rhs); } - bool operator < (const query_replica_info_response & ) const; + bool operator<(const query_replica_info_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_replica_info_response &a, query_replica_info_response &b); -inline std::ostream& operator<<(std::ostream& out, const query_replica_info_response& obj) +inline std::ostream &operator<<(std::ostream &out, const query_replica_info_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _disk_info__isset { - _disk_info__isset() : tag(false), full_dir(false), disk_capacity_mb(false), disk_available_mb(false), holding_primary_replicas(false), holding_secondary_replicas(false) {} - bool tag :1; - bool full_dir :1; - bool disk_capacity_mb :1; - bool disk_available_mb :1; - bool holding_primary_replicas :1; - bool holding_secondary_replicas :1; +typedef struct _disk_info__isset +{ + _disk_info__isset() + : tag(false), + full_dir(false), + disk_capacity_mb(false), + disk_available_mb(false), + holding_primary_replicas(false), + holding_secondary_replicas(false) + { + } + bool tag : 1; + bool full_dir : 1; + bool disk_capacity_mb : 1; + bool disk_available_mb : 1; + bool holding_primary_replicas : 1; + bool holding_secondary_replicas : 1; } _disk_info__isset; -class disk_info { - public: - - disk_info(const disk_info&); - disk_info(disk_info&&); - disk_info& operator=(const disk_info&); - disk_info& operator=(disk_info&&); - disk_info() : tag(), full_dir(), disk_capacity_mb(0), disk_available_mb(0) { - } +class disk_info +{ +public: + disk_info(const disk_info &); + disk_info(disk_info &&); + disk_info &operator=(const disk_info &); + disk_info &operator=(disk_info &&); + disk_info() : tag(), full_dir(), disk_capacity_mb(0), disk_available_mb(0) {} - virtual ~disk_info() throw(); - std::string tag; - std::string full_dir; - int64_t disk_capacity_mb; - int64_t disk_available_mb; - std::map > holding_primary_replicas; - std::map > holding_secondary_replicas; + virtual ~disk_info() throw(); + std::string tag; + std::string full_dir; + int64_t disk_capacity_mb; + int64_t disk_available_mb; + std::map> holding_primary_replicas; + std::map> holding_secondary_replicas; - _disk_info__isset __isset; + _disk_info__isset __isset; - void __set_tag(const std::string& val); + void __set_tag(const std::string &val); - void __set_full_dir(const std::string& val); + void __set_full_dir(const std::string &val); - void __set_disk_capacity_mb(const int64_t val); + void __set_disk_capacity_mb(const int64_t val); - void __set_disk_available_mb(const int64_t val); + void __set_disk_available_mb(const int64_t val); - void __set_holding_primary_replicas(const std::map > & val); + void __set_holding_primary_replicas(const std::map> &val); - void __set_holding_secondary_replicas(const std::map > & val); + void __set_holding_secondary_replicas(const std::map> &val); - bool operator == (const disk_info & rhs) const - { - if (!(tag == rhs.tag)) - return false; - if (!(full_dir == rhs.full_dir)) - return false; - if (!(disk_capacity_mb == rhs.disk_capacity_mb)) - return false; - if (!(disk_available_mb == rhs.disk_available_mb)) - return false; - if (!(holding_primary_replicas == rhs.holding_primary_replicas)) - return false; - if (!(holding_secondary_replicas == rhs.holding_secondary_replicas)) - return false; - return true; - } - bool operator != (const disk_info &rhs) const { - return !(*this == rhs); - } + bool operator==(const disk_info &rhs) const + { + if (!(tag == rhs.tag)) + return false; + if (!(full_dir == rhs.full_dir)) + return false; + if (!(disk_capacity_mb == rhs.disk_capacity_mb)) + return false; + if (!(disk_available_mb == rhs.disk_available_mb)) + return false; + if (!(holding_primary_replicas == rhs.holding_primary_replicas)) + return false; + if (!(holding_secondary_replicas == rhs.holding_secondary_replicas)) + return false; + return true; + } + bool operator!=(const disk_info &rhs) const { return !(*this == rhs); } - bool operator < (const disk_info & ) const; + bool operator<(const disk_info &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(disk_info &a, disk_info &b); -inline std::ostream& operator<<(std::ostream& out, const disk_info& obj) +inline std::ostream &operator<<(std::ostream &out, const disk_info &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_disk_info_request__isset { - _query_disk_info_request__isset() : node(false), app_name(false) {} - bool node :1; - bool app_name :1; +typedef struct _query_disk_info_request__isset +{ + _query_disk_info_request__isset() : node(false), app_name(false) {} + bool node : 1; + bool app_name : 1; } _query_disk_info_request__isset; -class query_disk_info_request { - public: - - query_disk_info_request(const query_disk_info_request&); - query_disk_info_request(query_disk_info_request&&); - query_disk_info_request& operator=(const query_disk_info_request&); - query_disk_info_request& operator=(query_disk_info_request&&); - query_disk_info_request() : app_name() { - } +class query_disk_info_request +{ +public: + query_disk_info_request(const query_disk_info_request &); + query_disk_info_request(query_disk_info_request &&); + query_disk_info_request &operator=(const query_disk_info_request &); + query_disk_info_request &operator=(query_disk_info_request &&); + query_disk_info_request() : app_name() {} - virtual ~query_disk_info_request() throw(); - ::dsn::rpc_address node; - std::string app_name; + virtual ~query_disk_info_request() throw(); + ::dsn::rpc_address node; + std::string app_name; - _query_disk_info_request__isset __isset; + _query_disk_info_request__isset __isset; - void __set_node(const ::dsn::rpc_address& val); + void __set_node(const ::dsn::rpc_address &val); - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - bool operator == (const query_disk_info_request & rhs) const - { - if (!(node == rhs.node)) - return false; - if (!(app_name == rhs.app_name)) - return false; - return true; - } - bool operator != (const query_disk_info_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_disk_info_request &rhs) const + { + if (!(node == rhs.node)) + return false; + if (!(app_name == rhs.app_name)) + return false; + return true; + } + bool operator!=(const query_disk_info_request &rhs) const { return !(*this == rhs); } - bool operator < (const query_disk_info_request & ) const; + bool operator<(const query_disk_info_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_disk_info_request &a, query_disk_info_request &b); -inline std::ostream& operator<<(std::ostream& out, const query_disk_info_request& obj) +inline std::ostream &operator<<(std::ostream &out, const query_disk_info_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_disk_info_response__isset { - _query_disk_info_response__isset() : err(false), total_capacity_mb(false), total_available_mb(false), disk_infos(false) {} - bool err :1; - bool total_capacity_mb :1; - bool total_available_mb :1; - bool disk_infos :1; +typedef struct _query_disk_info_response__isset +{ + _query_disk_info_response__isset() + : err(false), total_capacity_mb(false), total_available_mb(false), disk_infos(false) + { + } + bool err : 1; + bool total_capacity_mb : 1; + bool total_available_mb : 1; + bool disk_infos : 1; } _query_disk_info_response__isset; -class query_disk_info_response { - public: - - query_disk_info_response(const query_disk_info_response&); - query_disk_info_response(query_disk_info_response&&); - query_disk_info_response& operator=(const query_disk_info_response&); - query_disk_info_response& operator=(query_disk_info_response&&); - query_disk_info_response() : total_capacity_mb(0), total_available_mb(0) { - } +class query_disk_info_response +{ +public: + query_disk_info_response(const query_disk_info_response &); + query_disk_info_response(query_disk_info_response &&); + query_disk_info_response &operator=(const query_disk_info_response &); + query_disk_info_response &operator=(query_disk_info_response &&); + query_disk_info_response() : total_capacity_mb(0), total_available_mb(0) {} - virtual ~query_disk_info_response() throw(); - ::dsn::error_code err; - int64_t total_capacity_mb; - int64_t total_available_mb; - std::vector disk_infos; + virtual ~query_disk_info_response() throw(); + ::dsn::error_code err; + int64_t total_capacity_mb; + int64_t total_available_mb; + std::vector disk_infos; - _query_disk_info_response__isset __isset; + _query_disk_info_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_total_capacity_mb(const int64_t val); + void __set_total_capacity_mb(const int64_t val); - void __set_total_available_mb(const int64_t val); + void __set_total_available_mb(const int64_t val); - void __set_disk_infos(const std::vector & val); + void __set_disk_infos(const std::vector &val); - bool operator == (const query_disk_info_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(total_capacity_mb == rhs.total_capacity_mb)) - return false; - if (!(total_available_mb == rhs.total_available_mb)) - return false; - if (!(disk_infos == rhs.disk_infos)) - return false; - return true; - } - bool operator != (const query_disk_info_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_disk_info_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(total_capacity_mb == rhs.total_capacity_mb)) + return false; + if (!(total_available_mb == rhs.total_available_mb)) + return false; + if (!(disk_infos == rhs.disk_infos)) + return false; + return true; + } + bool operator!=(const query_disk_info_response &rhs) const { return !(*this == rhs); } - bool operator < (const query_disk_info_response & ) const; + bool operator<(const query_disk_info_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_disk_info_response &a, query_disk_info_response &b); -inline std::ostream& operator<<(std::ostream& out, const query_disk_info_response& obj) +inline std::ostream &operator<<(std::ostream &out, const query_disk_info_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_disk_migrate_request__isset { - _replica_disk_migrate_request__isset() : pid(false), origin_disk(false), target_disk(false) {} - bool pid :1; - bool origin_disk :1; - bool target_disk :1; +typedef struct _replica_disk_migrate_request__isset +{ + _replica_disk_migrate_request__isset() : pid(false), origin_disk(false), target_disk(false) {} + bool pid : 1; + bool origin_disk : 1; + bool target_disk : 1; } _replica_disk_migrate_request__isset; -class replica_disk_migrate_request { - public: - - replica_disk_migrate_request(const replica_disk_migrate_request&); - replica_disk_migrate_request(replica_disk_migrate_request&&); - replica_disk_migrate_request& operator=(const replica_disk_migrate_request&); - replica_disk_migrate_request& operator=(replica_disk_migrate_request&&); - replica_disk_migrate_request() : origin_disk(), target_disk() { - } +class replica_disk_migrate_request +{ +public: + replica_disk_migrate_request(const replica_disk_migrate_request &); + replica_disk_migrate_request(replica_disk_migrate_request &&); + replica_disk_migrate_request &operator=(const replica_disk_migrate_request &); + replica_disk_migrate_request &operator=(replica_disk_migrate_request &&); + replica_disk_migrate_request() : origin_disk(), target_disk() {} - virtual ~replica_disk_migrate_request() throw(); - ::dsn::gpid pid; - std::string origin_disk; - std::string target_disk; + virtual ~replica_disk_migrate_request() throw(); + ::dsn::gpid pid; + std::string origin_disk; + std::string target_disk; - _replica_disk_migrate_request__isset __isset; + _replica_disk_migrate_request__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_origin_disk(const std::string& val); + void __set_origin_disk(const std::string &val); - void __set_target_disk(const std::string& val); + void __set_target_disk(const std::string &val); - bool operator == (const replica_disk_migrate_request & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(origin_disk == rhs.origin_disk)) - return false; - if (!(target_disk == rhs.target_disk)) - return false; - return true; - } - bool operator != (const replica_disk_migrate_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const replica_disk_migrate_request &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(origin_disk == rhs.origin_disk)) + return false; + if (!(target_disk == rhs.target_disk)) + return false; + return true; + } + bool operator!=(const replica_disk_migrate_request &rhs) const { return !(*this == rhs); } - bool operator < (const replica_disk_migrate_request & ) const; + bool operator<(const replica_disk_migrate_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(replica_disk_migrate_request &a, replica_disk_migrate_request &b); -inline std::ostream& operator<<(std::ostream& out, const replica_disk_migrate_request& obj) +inline std::ostream &operator<<(std::ostream &out, const replica_disk_migrate_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _replica_disk_migrate_response__isset { - _replica_disk_migrate_response__isset() : err(false), hint(false) {} - bool err :1; - bool hint :1; +typedef struct _replica_disk_migrate_response__isset +{ + _replica_disk_migrate_response__isset() : err(false), hint(false) {} + bool err : 1; + bool hint : 1; } _replica_disk_migrate_response__isset; -class replica_disk_migrate_response { - public: - - replica_disk_migrate_response(const replica_disk_migrate_response&); - replica_disk_migrate_response(replica_disk_migrate_response&&); - replica_disk_migrate_response& operator=(const replica_disk_migrate_response&); - replica_disk_migrate_response& operator=(replica_disk_migrate_response&&); - replica_disk_migrate_response() : hint() { - } +class replica_disk_migrate_response +{ +public: + replica_disk_migrate_response(const replica_disk_migrate_response &); + replica_disk_migrate_response(replica_disk_migrate_response &&); + replica_disk_migrate_response &operator=(const replica_disk_migrate_response &); + replica_disk_migrate_response &operator=(replica_disk_migrate_response &&); + replica_disk_migrate_response() : hint() {} - virtual ~replica_disk_migrate_response() throw(); - ::dsn::error_code err; - std::string hint; + virtual ~replica_disk_migrate_response() throw(); + ::dsn::error_code err; + std::string hint; - _replica_disk_migrate_response__isset __isset; + _replica_disk_migrate_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_hint(const std::string& val); + void __set_hint(const std::string &val); - bool operator == (const replica_disk_migrate_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (__isset.hint != rhs.__isset.hint) - return false; - else if (__isset.hint && !(hint == rhs.hint)) - return false; - return true; - } - bool operator != (const replica_disk_migrate_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const replica_disk_migrate_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (__isset.hint != rhs.__isset.hint) + return false; + else if (__isset.hint && !(hint == rhs.hint)) + return false; + return true; + } + bool operator!=(const replica_disk_migrate_response &rhs) const { return !(*this == rhs); } - bool operator < (const replica_disk_migrate_response & ) const; + bool operator<(const replica_disk_migrate_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(replica_disk_migrate_response &a, replica_disk_migrate_response &b); -inline std::ostream& operator<<(std::ostream& out, const replica_disk_migrate_response& obj) +inline std::ostream &operator<<(std::ostream &out, const replica_disk_migrate_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_app_info_request__isset { - _query_app_info_request__isset() : meta_server(false) {} - bool meta_server :1; +typedef struct _query_app_info_request__isset +{ + _query_app_info_request__isset() : meta_server(false) {} + bool meta_server : 1; } _query_app_info_request__isset; -class query_app_info_request { - public: - - query_app_info_request(const query_app_info_request&); - query_app_info_request(query_app_info_request&&); - query_app_info_request& operator=(const query_app_info_request&); - query_app_info_request& operator=(query_app_info_request&&); - query_app_info_request() { - } +class query_app_info_request +{ +public: + query_app_info_request(const query_app_info_request &); + query_app_info_request(query_app_info_request &&); + query_app_info_request &operator=(const query_app_info_request &); + query_app_info_request &operator=(query_app_info_request &&); + query_app_info_request() {} - virtual ~query_app_info_request() throw(); - ::dsn::rpc_address meta_server; + virtual ~query_app_info_request() throw(); + ::dsn::rpc_address meta_server; - _query_app_info_request__isset __isset; + _query_app_info_request__isset __isset; - void __set_meta_server(const ::dsn::rpc_address& val); + void __set_meta_server(const ::dsn::rpc_address &val); - bool operator == (const query_app_info_request & rhs) const - { - if (!(meta_server == rhs.meta_server)) - return false; - return true; - } - bool operator != (const query_app_info_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_app_info_request &rhs) const + { + if (!(meta_server == rhs.meta_server)) + return false; + return true; + } + bool operator!=(const query_app_info_request &rhs) const { return !(*this == rhs); } - bool operator < (const query_app_info_request & ) const; + bool operator<(const query_app_info_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_app_info_request &a, query_app_info_request &b); -inline std::ostream& operator<<(std::ostream& out, const query_app_info_request& obj) +inline std::ostream &operator<<(std::ostream &out, const query_app_info_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_app_info_response__isset { - _query_app_info_response__isset() : err(false), apps(false) {} - bool err :1; - bool apps :1; +typedef struct _query_app_info_response__isset +{ + _query_app_info_response__isset() : err(false), apps(false) {} + bool err : 1; + bool apps : 1; } _query_app_info_response__isset; -class query_app_info_response { - public: - - query_app_info_response(const query_app_info_response&); - query_app_info_response(query_app_info_response&&); - query_app_info_response& operator=(const query_app_info_response&); - query_app_info_response& operator=(query_app_info_response&&); - query_app_info_response() { - } +class query_app_info_response +{ +public: + query_app_info_response(const query_app_info_response &); + query_app_info_response(query_app_info_response &&); + query_app_info_response &operator=(const query_app_info_response &); + query_app_info_response &operator=(query_app_info_response &&); + query_app_info_response() {} - virtual ~query_app_info_response() throw(); - ::dsn::error_code err; - std::vector< ::dsn::app_info> apps; + virtual ~query_app_info_response() throw(); + ::dsn::error_code err; + std::vector<::dsn::app_info> apps; - _query_app_info_response__isset __isset; + _query_app_info_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_apps(const std::vector< ::dsn::app_info> & val); + void __set_apps(const std::vector<::dsn::app_info> &val); - bool operator == (const query_app_info_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(apps == rhs.apps)) - return false; - return true; - } - bool operator != (const query_app_info_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_app_info_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(apps == rhs.apps)) + return false; + return true; + } + bool operator!=(const query_app_info_response &rhs) const { return !(*this == rhs); } - bool operator < (const query_app_info_response & ) const; + bool operator<(const query_app_info_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_app_info_response &a, query_app_info_response &b); -inline std::ostream& operator<<(std::ostream& out, const query_app_info_response& obj) +inline std::ostream &operator<<(std::ostream &out, const query_app_info_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_recovery_request__isset { - _configuration_recovery_request__isset() : recovery_set(false), skip_bad_nodes(false), skip_lost_partitions(false) {} - bool recovery_set :1; - bool skip_bad_nodes :1; - bool skip_lost_partitions :1; +typedef struct _configuration_recovery_request__isset +{ + _configuration_recovery_request__isset() + : recovery_set(false), skip_bad_nodes(false), skip_lost_partitions(false) + { + } + bool recovery_set : 1; + bool skip_bad_nodes : 1; + bool skip_lost_partitions : 1; } _configuration_recovery_request__isset; -class configuration_recovery_request { - public: - - configuration_recovery_request(const configuration_recovery_request&); - configuration_recovery_request(configuration_recovery_request&&); - configuration_recovery_request& operator=(const configuration_recovery_request&); - configuration_recovery_request& operator=(configuration_recovery_request&&); - configuration_recovery_request() : skip_bad_nodes(0), skip_lost_partitions(0) { - } +class configuration_recovery_request +{ +public: + configuration_recovery_request(const configuration_recovery_request &); + configuration_recovery_request(configuration_recovery_request &&); + configuration_recovery_request &operator=(const configuration_recovery_request &); + configuration_recovery_request &operator=(configuration_recovery_request &&); + configuration_recovery_request() : skip_bad_nodes(0), skip_lost_partitions(0) {} - virtual ~configuration_recovery_request() throw(); - std::vector< ::dsn::rpc_address> recovery_set; - bool skip_bad_nodes; - bool skip_lost_partitions; + virtual ~configuration_recovery_request() throw(); + std::vector<::dsn::rpc_address> recovery_set; + bool skip_bad_nodes; + bool skip_lost_partitions; - _configuration_recovery_request__isset __isset; + _configuration_recovery_request__isset __isset; - void __set_recovery_set(const std::vector< ::dsn::rpc_address> & val); + void __set_recovery_set(const std::vector<::dsn::rpc_address> &val); - void __set_skip_bad_nodes(const bool val); + void __set_skip_bad_nodes(const bool val); - void __set_skip_lost_partitions(const bool val); + void __set_skip_lost_partitions(const bool val); - bool operator == (const configuration_recovery_request & rhs) const - { - if (!(recovery_set == rhs.recovery_set)) - return false; - if (!(skip_bad_nodes == rhs.skip_bad_nodes)) - return false; - if (!(skip_lost_partitions == rhs.skip_lost_partitions)) - return false; - return true; - } - bool operator != (const configuration_recovery_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_recovery_request &rhs) const + { + if (!(recovery_set == rhs.recovery_set)) + return false; + if (!(skip_bad_nodes == rhs.skip_bad_nodes)) + return false; + if (!(skip_lost_partitions == rhs.skip_lost_partitions)) + return false; + return true; + } + bool operator!=(const configuration_recovery_request &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_recovery_request & ) const; + bool operator<(const configuration_recovery_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_recovery_request &a, configuration_recovery_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_recovery_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_recovery_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_recovery_response__isset { - _configuration_recovery_response__isset() : err(false), hint_message(false) {} - bool err :1; - bool hint_message :1; +typedef struct _configuration_recovery_response__isset +{ + _configuration_recovery_response__isset() : err(false), hint_message(false) {} + bool err : 1; + bool hint_message : 1; } _configuration_recovery_response__isset; -class configuration_recovery_response { - public: - - configuration_recovery_response(const configuration_recovery_response&); - configuration_recovery_response(configuration_recovery_response&&); - configuration_recovery_response& operator=(const configuration_recovery_response&); - configuration_recovery_response& operator=(configuration_recovery_response&&); - configuration_recovery_response() : hint_message() { - } +class configuration_recovery_response +{ +public: + configuration_recovery_response(const configuration_recovery_response &); + configuration_recovery_response(configuration_recovery_response &&); + configuration_recovery_response &operator=(const configuration_recovery_response &); + configuration_recovery_response &operator=(configuration_recovery_response &&); + configuration_recovery_response() : hint_message() {} - virtual ~configuration_recovery_response() throw(); - ::dsn::error_code err; - std::string hint_message; + virtual ~configuration_recovery_response() throw(); + ::dsn::error_code err; + std::string hint_message; - _configuration_recovery_response__isset __isset; + _configuration_recovery_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_hint_message(const std::string& val); + void __set_hint_message(const std::string &val); - bool operator == (const configuration_recovery_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_message == rhs.hint_message)) - return false; - return true; - } - bool operator != (const configuration_recovery_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_recovery_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_message == rhs.hint_message)) + return false; + return true; + } + bool operator!=(const configuration_recovery_response &rhs) const { return !(*this == rhs); } - bool operator < (const configuration_recovery_response & ) const; + bool operator<(const configuration_recovery_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_recovery_response &a, configuration_recovery_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_recovery_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_recovery_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _policy_info__isset { - _policy_info__isset() : policy_name(false), backup_provider_type(false) {} - bool policy_name :1; - bool backup_provider_type :1; +typedef struct _policy_info__isset +{ + _policy_info__isset() : policy_name(false), backup_provider_type(false) {} + bool policy_name : 1; + bool backup_provider_type : 1; } _policy_info__isset; -class policy_info { - public: - - policy_info(const policy_info&); - policy_info(policy_info&&); - policy_info& operator=(const policy_info&); - policy_info& operator=(policy_info&&); - policy_info() : policy_name(), backup_provider_type() { - } +class policy_info +{ +public: + policy_info(const policy_info &); + policy_info(policy_info &&); + policy_info &operator=(const policy_info &); + policy_info &operator=(policy_info &&); + policy_info() : policy_name(), backup_provider_type() {} - virtual ~policy_info() throw(); - std::string policy_name; - std::string backup_provider_type; + virtual ~policy_info() throw(); + std::string policy_name; + std::string backup_provider_type; - _policy_info__isset __isset; + _policy_info__isset __isset; - void __set_policy_name(const std::string& val); + void __set_policy_name(const std::string &val); - void __set_backup_provider_type(const std::string& val); + void __set_backup_provider_type(const std::string &val); - bool operator == (const policy_info & rhs) const - { - if (!(policy_name == rhs.policy_name)) - return false; - if (!(backup_provider_type == rhs.backup_provider_type)) - return false; - return true; - } - bool operator != (const policy_info &rhs) const { - return !(*this == rhs); - } + bool operator==(const policy_info &rhs) const + { + if (!(policy_name == rhs.policy_name)) + return false; + if (!(backup_provider_type == rhs.backup_provider_type)) + return false; + return true; + } + bool operator!=(const policy_info &rhs) const { return !(*this == rhs); } - bool operator < (const policy_info & ) const; + bool operator<(const policy_info &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(policy_info &a, policy_info &b); -inline std::ostream& operator<<(std::ostream& out, const policy_info& obj) +inline std::ostream &operator<<(std::ostream &out, const policy_info &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_restore_request__isset { - _configuration_restore_request__isset() : cluster_name(false), policy_name(false), time_stamp(false), app_name(false), app_id(false), new_app_name(false), backup_provider_name(false), skip_bad_partition(false) {} - bool cluster_name :1; - bool policy_name :1; - bool time_stamp :1; - bool app_name :1; - bool app_id :1; - bool new_app_name :1; - bool backup_provider_name :1; - bool skip_bad_partition :1; +typedef struct _configuration_restore_request__isset +{ + _configuration_restore_request__isset() + : cluster_name(false), + policy_name(false), + time_stamp(false), + app_name(false), + app_id(false), + new_app_name(false), + backup_provider_name(false), + skip_bad_partition(false) + { + } + bool cluster_name : 1; + bool policy_name : 1; + bool time_stamp : 1; + bool app_name : 1; + bool app_id : 1; + bool new_app_name : 1; + bool backup_provider_name : 1; + bool skip_bad_partition : 1; } _configuration_restore_request__isset; -class configuration_restore_request { - public: - - configuration_restore_request(const configuration_restore_request&); - configuration_restore_request(configuration_restore_request&&); - configuration_restore_request& operator=(const configuration_restore_request&); - configuration_restore_request& operator=(configuration_restore_request&&); - configuration_restore_request() : cluster_name(), policy_name(), time_stamp(0), app_name(), app_id(0), new_app_name(), backup_provider_name(), skip_bad_partition(0) { - } - - virtual ~configuration_restore_request() throw(); - std::string cluster_name; - std::string policy_name; - int64_t time_stamp; - std::string app_name; - int32_t app_id; - std::string new_app_name; - std::string backup_provider_name; - bool skip_bad_partition; - - _configuration_restore_request__isset __isset; - - void __set_cluster_name(const std::string& val); - - void __set_policy_name(const std::string& val); - - void __set_time_stamp(const int64_t val); - - void __set_app_name(const std::string& val); - - void __set_app_id(const int32_t val); - - void __set_new_app_name(const std::string& val); - - void __set_backup_provider_name(const std::string& val); - - void __set_skip_bad_partition(const bool val); - - bool operator == (const configuration_restore_request & rhs) const - { - if (!(cluster_name == rhs.cluster_name)) - return false; - if (!(policy_name == rhs.policy_name)) - return false; - if (!(time_stamp == rhs.time_stamp)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(app_id == rhs.app_id)) - return false; - if (!(new_app_name == rhs.new_app_name)) - return false; - if (!(backup_provider_name == rhs.backup_provider_name)) - return false; - if (!(skip_bad_partition == rhs.skip_bad_partition)) - return false; - return true; - } - bool operator != (const configuration_restore_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_restore_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class configuration_restore_request +{ +public: + configuration_restore_request(const configuration_restore_request &); + configuration_restore_request(configuration_restore_request &&); + configuration_restore_request &operator=(const configuration_restore_request &); + configuration_restore_request &operator=(configuration_restore_request &&); + configuration_restore_request() + : cluster_name(), + policy_name(), + time_stamp(0), + app_name(), + app_id(0), + new_app_name(), + backup_provider_name(), + skip_bad_partition(0) + { + } + + virtual ~configuration_restore_request() throw(); + std::string cluster_name; + std::string policy_name; + int64_t time_stamp; + std::string app_name; + int32_t app_id; + std::string new_app_name; + std::string backup_provider_name; + bool skip_bad_partition; + + _configuration_restore_request__isset __isset; + + void __set_cluster_name(const std::string &val); + + void __set_policy_name(const std::string &val); + + void __set_time_stamp(const int64_t val); + + void __set_app_name(const std::string &val); + + void __set_app_id(const int32_t val); + + void __set_new_app_name(const std::string &val); + + void __set_backup_provider_name(const std::string &val); + + void __set_skip_bad_partition(const bool val); + + bool operator==(const configuration_restore_request &rhs) const + { + if (!(cluster_name == rhs.cluster_name)) + return false; + if (!(policy_name == rhs.policy_name)) + return false; + if (!(time_stamp == rhs.time_stamp)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(app_id == rhs.app_id)) + return false; + if (!(new_app_name == rhs.new_app_name)) + return false; + if (!(backup_provider_name == rhs.backup_provider_name)) + return false; + if (!(skip_bad_partition == rhs.skip_bad_partition)) + return false; + return true; + } + bool operator!=(const configuration_restore_request &rhs) const { return !(*this == rhs); } + + bool operator<(const configuration_restore_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(configuration_restore_request &a, configuration_restore_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_restore_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_restore_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _backup_request__isset { - _backup_request__isset() : pid(false), policy(false), app_name(false), backup_id(false) {} - bool pid :1; - bool policy :1; - bool app_name :1; - bool backup_id :1; +typedef struct _backup_request__isset +{ + _backup_request__isset() : pid(false), policy(false), app_name(false), backup_id(false) {} + bool pid : 1; + bool policy : 1; + bool app_name : 1; + bool backup_id : 1; } _backup_request__isset; -class backup_request { - public: - - backup_request(const backup_request&); - backup_request(backup_request&&); - backup_request& operator=(const backup_request&); - backup_request& operator=(backup_request&&); - backup_request() : app_name(), backup_id(0) { - } +class backup_request +{ +public: + backup_request(const backup_request &); + backup_request(backup_request &&); + backup_request &operator=(const backup_request &); + backup_request &operator=(backup_request &&); + backup_request() : app_name(), backup_id(0) {} - virtual ~backup_request() throw(); - ::dsn::gpid pid; - policy_info policy; - std::string app_name; - int64_t backup_id; + virtual ~backup_request() throw(); + ::dsn::gpid pid; + policy_info policy; + std::string app_name; + int64_t backup_id; - _backup_request__isset __isset; + _backup_request__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_policy(const policy_info& val); + void __set_policy(const policy_info &val); - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - void __set_backup_id(const int64_t val); + void __set_backup_id(const int64_t val); - bool operator == (const backup_request & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(policy == rhs.policy)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(backup_id == rhs.backup_id)) - return false; - return true; - } - bool operator != (const backup_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const backup_request &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(policy == rhs.policy)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(backup_id == rhs.backup_id)) + return false; + return true; + } + bool operator!=(const backup_request &rhs) const { return !(*this == rhs); } - bool operator < (const backup_request & ) const; + bool operator<(const backup_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(backup_request &a, backup_request &b); -inline std::ostream& operator<<(std::ostream& out, const backup_request& obj) +inline std::ostream &operator<<(std::ostream &out, const backup_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _backup_response__isset { - _backup_response__isset() : err(false), pid(false), progress(false), policy_name(false), backup_id(false), checkpoint_total_size(false) {} - bool err :1; - bool pid :1; - bool progress :1; - bool policy_name :1; - bool backup_id :1; - bool checkpoint_total_size :1; +typedef struct _backup_response__isset +{ + _backup_response__isset() + : err(false), + pid(false), + progress(false), + policy_name(false), + backup_id(false), + checkpoint_total_size(false) + { + } + bool err : 1; + bool pid : 1; + bool progress : 1; + bool policy_name : 1; + bool backup_id : 1; + bool checkpoint_total_size : 1; } _backup_response__isset; -class backup_response { - public: - - backup_response(const backup_response&); - backup_response(backup_response&&); - backup_response& operator=(const backup_response&); - backup_response& operator=(backup_response&&); - backup_response() : progress(0), policy_name(), backup_id(0), checkpoint_total_size(0) { - } +class backup_response +{ +public: + backup_response(const backup_response &); + backup_response(backup_response &&); + backup_response &operator=(const backup_response &); + backup_response &operator=(backup_response &&); + backup_response() : progress(0), policy_name(), backup_id(0), checkpoint_total_size(0) {} - virtual ~backup_response() throw(); - ::dsn::error_code err; - ::dsn::gpid pid; - int32_t progress; - std::string policy_name; - int64_t backup_id; - int64_t checkpoint_total_size; + virtual ~backup_response() throw(); + ::dsn::error_code err; + ::dsn::gpid pid; + int32_t progress; + std::string policy_name; + int64_t backup_id; + int64_t checkpoint_total_size; - _backup_response__isset __isset; + _backup_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_progress(const int32_t val); + void __set_progress(const int32_t val); - void __set_policy_name(const std::string& val); + void __set_policy_name(const std::string &val); - void __set_backup_id(const int64_t val); + void __set_backup_id(const int64_t val); - void __set_checkpoint_total_size(const int64_t val); + void __set_checkpoint_total_size(const int64_t val); - bool operator == (const backup_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(pid == rhs.pid)) - return false; - if (!(progress == rhs.progress)) - return false; - if (!(policy_name == rhs.policy_name)) - return false; - if (!(backup_id == rhs.backup_id)) - return false; - if (!(checkpoint_total_size == rhs.checkpoint_total_size)) - return false; - return true; - } - bool operator != (const backup_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const backup_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(pid == rhs.pid)) + return false; + if (!(progress == rhs.progress)) + return false; + if (!(policy_name == rhs.policy_name)) + return false; + if (!(backup_id == rhs.backup_id)) + return false; + if (!(checkpoint_total_size == rhs.checkpoint_total_size)) + return false; + return true; + } + bool operator!=(const backup_response &rhs) const { return !(*this == rhs); } - bool operator < (const backup_response & ) const; + bool operator<(const backup_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(backup_response &a, backup_response &b); -inline std::ostream& operator<<(std::ostream& out, const backup_response& obj) +inline std::ostream &operator<<(std::ostream &out, const backup_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _backup_clear_request__isset { - _backup_clear_request__isset() : pid(false), policy_name(false) {} - bool pid :1; - bool policy_name :1; +typedef struct _backup_clear_request__isset +{ + _backup_clear_request__isset() : pid(false), policy_name(false) {} + bool pid : 1; + bool policy_name : 1; } _backup_clear_request__isset; -class backup_clear_request { - public: - - backup_clear_request(const backup_clear_request&); - backup_clear_request(backup_clear_request&&); - backup_clear_request& operator=(const backup_clear_request&); - backup_clear_request& operator=(backup_clear_request&&); - backup_clear_request() : policy_name() { - } +class backup_clear_request +{ +public: + backup_clear_request(const backup_clear_request &); + backup_clear_request(backup_clear_request &&); + backup_clear_request &operator=(const backup_clear_request &); + backup_clear_request &operator=(backup_clear_request &&); + backup_clear_request() : policy_name() {} - virtual ~backup_clear_request() throw(); - ::dsn::gpid pid; - std::string policy_name; + virtual ~backup_clear_request() throw(); + ::dsn::gpid pid; + std::string policy_name; - _backup_clear_request__isset __isset; + _backup_clear_request__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - void __set_policy_name(const std::string& val); + void __set_policy_name(const std::string &val); - bool operator == (const backup_clear_request & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(policy_name == rhs.policy_name)) - return false; - return true; - } - bool operator != (const backup_clear_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const backup_clear_request &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(policy_name == rhs.policy_name)) + return false; + return true; + } + bool operator!=(const backup_clear_request &rhs) const { return !(*this == rhs); } - bool operator < (const backup_clear_request & ) const; + bool operator<(const backup_clear_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(backup_clear_request &a, backup_clear_request &b); -inline std::ostream& operator<<(std::ostream& out, const backup_clear_request& obj) +inline std::ostream &operator<<(std::ostream &out, const backup_clear_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_modify_backup_policy_request__isset { - _configuration_modify_backup_policy_request__isset() : policy_name(false), add_appids(false), removal_appids(false), new_backup_interval_sec(false), backup_history_count_to_keep(false), is_disable(false), start_time(false) {} - bool policy_name :1; - bool add_appids :1; - bool removal_appids :1; - bool new_backup_interval_sec :1; - bool backup_history_count_to_keep :1; - bool is_disable :1; - bool start_time :1; +typedef struct _configuration_modify_backup_policy_request__isset +{ + _configuration_modify_backup_policy_request__isset() + : policy_name(false), + add_appids(false), + removal_appids(false), + new_backup_interval_sec(false), + backup_history_count_to_keep(false), + is_disable(false), + start_time(false) + { + } + bool policy_name : 1; + bool add_appids : 1; + bool removal_appids : 1; + bool new_backup_interval_sec : 1; + bool backup_history_count_to_keep : 1; + bool is_disable : 1; + bool start_time : 1; } _configuration_modify_backup_policy_request__isset; -class configuration_modify_backup_policy_request { - public: - - configuration_modify_backup_policy_request(const configuration_modify_backup_policy_request&); - configuration_modify_backup_policy_request(configuration_modify_backup_policy_request&&); - configuration_modify_backup_policy_request& operator=(const configuration_modify_backup_policy_request&); - configuration_modify_backup_policy_request& operator=(configuration_modify_backup_policy_request&&); - configuration_modify_backup_policy_request() : policy_name(), new_backup_interval_sec(0), backup_history_count_to_keep(0), is_disable(0), start_time() { - } - - virtual ~configuration_modify_backup_policy_request() throw(); - std::string policy_name; - std::vector add_appids; - std::vector removal_appids; - int64_t new_backup_interval_sec; - int32_t backup_history_count_to_keep; - bool is_disable; - std::string start_time; - - _configuration_modify_backup_policy_request__isset __isset; - - void __set_policy_name(const std::string& val); - - void __set_add_appids(const std::vector & val); - - void __set_removal_appids(const std::vector & val); - - void __set_new_backup_interval_sec(const int64_t val); - - void __set_backup_history_count_to_keep(const int32_t val); - - void __set_is_disable(const bool val); - - void __set_start_time(const std::string& val); - - bool operator == (const configuration_modify_backup_policy_request & rhs) const - { - if (!(policy_name == rhs.policy_name)) - return false; - if (__isset.add_appids != rhs.__isset.add_appids) - return false; - else if (__isset.add_appids && !(add_appids == rhs.add_appids)) - return false; - if (__isset.removal_appids != rhs.__isset.removal_appids) - return false; - else if (__isset.removal_appids && !(removal_appids == rhs.removal_appids)) - return false; - if (__isset.new_backup_interval_sec != rhs.__isset.new_backup_interval_sec) - return false; - else if (__isset.new_backup_interval_sec && !(new_backup_interval_sec == rhs.new_backup_interval_sec)) - return false; - if (__isset.backup_history_count_to_keep != rhs.__isset.backup_history_count_to_keep) - return false; - else if (__isset.backup_history_count_to_keep && !(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) - return false; - if (__isset.is_disable != rhs.__isset.is_disable) - return false; - else if (__isset.is_disable && !(is_disable == rhs.is_disable)) - return false; - if (__isset.start_time != rhs.__isset.start_time) - return false; - else if (__isset.start_time && !(start_time == rhs.start_time)) - return false; - return true; - } - bool operator != (const configuration_modify_backup_policy_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_modify_backup_policy_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(configuration_modify_backup_policy_request &a, configuration_modify_backup_policy_request &b); - -inline std::ostream& operator<<(std::ostream& out, const configuration_modify_backup_policy_request& obj) -{ - obj.printTo(out); - return out; +class configuration_modify_backup_policy_request +{ +public: + configuration_modify_backup_policy_request(const configuration_modify_backup_policy_request &); + configuration_modify_backup_policy_request(configuration_modify_backup_policy_request &&); + configuration_modify_backup_policy_request & + operator=(const configuration_modify_backup_policy_request &); + configuration_modify_backup_policy_request & + operator=(configuration_modify_backup_policy_request &&); + configuration_modify_backup_policy_request() + : policy_name(), + new_backup_interval_sec(0), + backup_history_count_to_keep(0), + is_disable(0), + start_time() + { + } + + virtual ~configuration_modify_backup_policy_request() throw(); + std::string policy_name; + std::vector add_appids; + std::vector removal_appids; + int64_t new_backup_interval_sec; + int32_t backup_history_count_to_keep; + bool is_disable; + std::string start_time; + + _configuration_modify_backup_policy_request__isset __isset; + + void __set_policy_name(const std::string &val); + + void __set_add_appids(const std::vector &val); + + void __set_removal_appids(const std::vector &val); + + void __set_new_backup_interval_sec(const int64_t val); + + void __set_backup_history_count_to_keep(const int32_t val); + + void __set_is_disable(const bool val); + + void __set_start_time(const std::string &val); + + bool operator==(const configuration_modify_backup_policy_request &rhs) const + { + if (!(policy_name == rhs.policy_name)) + return false; + if (__isset.add_appids != rhs.__isset.add_appids) + return false; + else if (__isset.add_appids && !(add_appids == rhs.add_appids)) + return false; + if (__isset.removal_appids != rhs.__isset.removal_appids) + return false; + else if (__isset.removal_appids && !(removal_appids == rhs.removal_appids)) + return false; + if (__isset.new_backup_interval_sec != rhs.__isset.new_backup_interval_sec) + return false; + else if (__isset.new_backup_interval_sec && + !(new_backup_interval_sec == rhs.new_backup_interval_sec)) + return false; + if (__isset.backup_history_count_to_keep != rhs.__isset.backup_history_count_to_keep) + return false; + else if (__isset.backup_history_count_to_keep && + !(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) + return false; + if (__isset.is_disable != rhs.__isset.is_disable) + return false; + else if (__isset.is_disable && !(is_disable == rhs.is_disable)) + return false; + if (__isset.start_time != rhs.__isset.start_time) + return false; + else if (__isset.start_time && !(start_time == rhs.start_time)) + return false; + return true; + } + bool operator!=(const configuration_modify_backup_policy_request &rhs) const + { + return !(*this == rhs); + } + + bool operator<(const configuration_modify_backup_policy_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; +}; + +void swap(configuration_modify_backup_policy_request &a, + configuration_modify_backup_policy_request &b); + +inline std::ostream &operator<<(std::ostream &out, + const configuration_modify_backup_policy_request &obj) +{ + obj.printTo(out); + return out; } -typedef struct _configuration_modify_backup_policy_response__isset { - _configuration_modify_backup_policy_response__isset() : err(false), hint_message(false) {} - bool err :1; - bool hint_message :1; +typedef struct _configuration_modify_backup_policy_response__isset +{ + _configuration_modify_backup_policy_response__isset() : err(false), hint_message(false) {} + bool err : 1; + bool hint_message : 1; } _configuration_modify_backup_policy_response__isset; -class configuration_modify_backup_policy_response { - public: - - configuration_modify_backup_policy_response(const configuration_modify_backup_policy_response&); - configuration_modify_backup_policy_response(configuration_modify_backup_policy_response&&); - configuration_modify_backup_policy_response& operator=(const configuration_modify_backup_policy_response&); - configuration_modify_backup_policy_response& operator=(configuration_modify_backup_policy_response&&); - configuration_modify_backup_policy_response() : hint_message() { - } +class configuration_modify_backup_policy_response +{ +public: + configuration_modify_backup_policy_response( + const configuration_modify_backup_policy_response &); + configuration_modify_backup_policy_response(configuration_modify_backup_policy_response &&); + configuration_modify_backup_policy_response & + operator=(const configuration_modify_backup_policy_response &); + configuration_modify_backup_policy_response & + operator=(configuration_modify_backup_policy_response &&); + configuration_modify_backup_policy_response() : hint_message() {} - virtual ~configuration_modify_backup_policy_response() throw(); - ::dsn::error_code err; - std::string hint_message; + virtual ~configuration_modify_backup_policy_response() throw(); + ::dsn::error_code err; + std::string hint_message; - _configuration_modify_backup_policy_response__isset __isset; + _configuration_modify_backup_policy_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_hint_message(const std::string& val); + void __set_hint_message(const std::string &val); - bool operator == (const configuration_modify_backup_policy_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_message == rhs.hint_message)) - return false; - return true; - } - bool operator != (const configuration_modify_backup_policy_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_modify_backup_policy_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_message == rhs.hint_message)) + return false; + return true; + } + bool operator!=(const configuration_modify_backup_policy_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_modify_backup_policy_response & ) const; + bool operator<(const configuration_modify_backup_policy_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; -void swap(configuration_modify_backup_policy_response &a, configuration_modify_backup_policy_response &b); +void swap(configuration_modify_backup_policy_response &a, + configuration_modify_backup_policy_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_modify_backup_policy_response& obj) +inline std::ostream &operator<<(std::ostream &out, + const configuration_modify_backup_policy_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_add_backup_policy_request__isset { - _configuration_add_backup_policy_request__isset() : backup_provider_type(false), policy_name(false), app_ids(false), backup_interval_seconds(false), backup_history_count_to_keep(false), start_time(false) {} - bool backup_provider_type :1; - bool policy_name :1; - bool app_ids :1; - bool backup_interval_seconds :1; - bool backup_history_count_to_keep :1; - bool start_time :1; +typedef struct _configuration_add_backup_policy_request__isset +{ + _configuration_add_backup_policy_request__isset() + : backup_provider_type(false), + policy_name(false), + app_ids(false), + backup_interval_seconds(false), + backup_history_count_to_keep(false), + start_time(false) + { + } + bool backup_provider_type : 1; + bool policy_name : 1; + bool app_ids : 1; + bool backup_interval_seconds : 1; + bool backup_history_count_to_keep : 1; + bool start_time : 1; } _configuration_add_backup_policy_request__isset; -class configuration_add_backup_policy_request { - public: - - configuration_add_backup_policy_request(const configuration_add_backup_policy_request&); - configuration_add_backup_policy_request(configuration_add_backup_policy_request&&); - configuration_add_backup_policy_request& operator=(const configuration_add_backup_policy_request&); - configuration_add_backup_policy_request& operator=(configuration_add_backup_policy_request&&); - configuration_add_backup_policy_request() : backup_provider_type(), policy_name(), backup_interval_seconds(0), backup_history_count_to_keep(0), start_time() { - } - - virtual ~configuration_add_backup_policy_request() throw(); - std::string backup_provider_type; - std::string policy_name; - std::vector app_ids; - int64_t backup_interval_seconds; - int32_t backup_history_count_to_keep; - std::string start_time; - - _configuration_add_backup_policy_request__isset __isset; - - void __set_backup_provider_type(const std::string& val); - - void __set_policy_name(const std::string& val); - - void __set_app_ids(const std::vector & val); - - void __set_backup_interval_seconds(const int64_t val); - - void __set_backup_history_count_to_keep(const int32_t val); - - void __set_start_time(const std::string& val); - - bool operator == (const configuration_add_backup_policy_request & rhs) const - { - if (!(backup_provider_type == rhs.backup_provider_type)) - return false; - if (!(policy_name == rhs.policy_name)) - return false; - if (!(app_ids == rhs.app_ids)) - return false; - if (!(backup_interval_seconds == rhs.backup_interval_seconds)) - return false; - if (!(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) - return false; - if (!(start_time == rhs.start_time)) - return false; - return true; - } - bool operator != (const configuration_add_backup_policy_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_add_backup_policy_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class configuration_add_backup_policy_request +{ +public: + configuration_add_backup_policy_request(const configuration_add_backup_policy_request &); + configuration_add_backup_policy_request(configuration_add_backup_policy_request &&); + configuration_add_backup_policy_request & + operator=(const configuration_add_backup_policy_request &); + configuration_add_backup_policy_request &operator=(configuration_add_backup_policy_request &&); + configuration_add_backup_policy_request() + : backup_provider_type(), + policy_name(), + backup_interval_seconds(0), + backup_history_count_to_keep(0), + start_time() + { + } + + virtual ~configuration_add_backup_policy_request() throw(); + std::string backup_provider_type; + std::string policy_name; + std::vector app_ids; + int64_t backup_interval_seconds; + int32_t backup_history_count_to_keep; + std::string start_time; + + _configuration_add_backup_policy_request__isset __isset; + + void __set_backup_provider_type(const std::string &val); + + void __set_policy_name(const std::string &val); + + void __set_app_ids(const std::vector &val); + + void __set_backup_interval_seconds(const int64_t val); + + void __set_backup_history_count_to_keep(const int32_t val); + + void __set_start_time(const std::string &val); + + bool operator==(const configuration_add_backup_policy_request &rhs) const + { + if (!(backup_provider_type == rhs.backup_provider_type)) + return false; + if (!(policy_name == rhs.policy_name)) + return false; + if (!(app_ids == rhs.app_ids)) + return false; + if (!(backup_interval_seconds == rhs.backup_interval_seconds)) + return false; + if (!(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) + return false; + if (!(start_time == rhs.start_time)) + return false; + return true; + } + bool operator!=(const configuration_add_backup_policy_request &rhs) const + { + return !(*this == rhs); + } + + bool operator<(const configuration_add_backup_policy_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(configuration_add_backup_policy_request &a, configuration_add_backup_policy_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_add_backup_policy_request& obj) +inline std::ostream &operator<<(std::ostream &out, + const configuration_add_backup_policy_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_add_backup_policy_response__isset { - _configuration_add_backup_policy_response__isset() : err(false), hint_message(false) {} - bool err :1; - bool hint_message :1; +typedef struct _configuration_add_backup_policy_response__isset +{ + _configuration_add_backup_policy_response__isset() : err(false), hint_message(false) {} + bool err : 1; + bool hint_message : 1; } _configuration_add_backup_policy_response__isset; -class configuration_add_backup_policy_response { - public: - - configuration_add_backup_policy_response(const configuration_add_backup_policy_response&); - configuration_add_backup_policy_response(configuration_add_backup_policy_response&&); - configuration_add_backup_policy_response& operator=(const configuration_add_backup_policy_response&); - configuration_add_backup_policy_response& operator=(configuration_add_backup_policy_response&&); - configuration_add_backup_policy_response() : hint_message() { - } +class configuration_add_backup_policy_response +{ +public: + configuration_add_backup_policy_response(const configuration_add_backup_policy_response &); + configuration_add_backup_policy_response(configuration_add_backup_policy_response &&); + configuration_add_backup_policy_response & + operator=(const configuration_add_backup_policy_response &); + configuration_add_backup_policy_response & + operator=(configuration_add_backup_policy_response &&); + configuration_add_backup_policy_response() : hint_message() {} - virtual ~configuration_add_backup_policy_response() throw(); - ::dsn::error_code err; - std::string hint_message; + virtual ~configuration_add_backup_policy_response() throw(); + ::dsn::error_code err; + std::string hint_message; - _configuration_add_backup_policy_response__isset __isset; + _configuration_add_backup_policy_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_hint_message(const std::string& val); + void __set_hint_message(const std::string &val); - bool operator == (const configuration_add_backup_policy_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_message == rhs.hint_message)) - return false; - return true; - } - bool operator != (const configuration_add_backup_policy_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_add_backup_policy_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_message == rhs.hint_message)) + return false; + return true; + } + bool operator!=(const configuration_add_backup_policy_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_add_backup_policy_response & ) const; + bool operator<(const configuration_add_backup_policy_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_add_backup_policy_response &a, configuration_add_backup_policy_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_add_backup_policy_response& obj) +inline std::ostream &operator<<(std::ostream &out, + const configuration_add_backup_policy_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _policy_entry__isset { - _policy_entry__isset() : policy_name(false), backup_provider_type(false), backup_interval_seconds(false), app_ids(false), backup_history_count_to_keep(false), start_time(false), is_disable(false) {} - bool policy_name :1; - bool backup_provider_type :1; - bool backup_interval_seconds :1; - bool app_ids :1; - bool backup_history_count_to_keep :1; - bool start_time :1; - bool is_disable :1; +typedef struct _policy_entry__isset +{ + _policy_entry__isset() + : policy_name(false), + backup_provider_type(false), + backup_interval_seconds(false), + app_ids(false), + backup_history_count_to_keep(false), + start_time(false), + is_disable(false) + { + } + bool policy_name : 1; + bool backup_provider_type : 1; + bool backup_interval_seconds : 1; + bool app_ids : 1; + bool backup_history_count_to_keep : 1; + bool start_time : 1; + bool is_disable : 1; } _policy_entry__isset; -class policy_entry { - public: - - policy_entry(const policy_entry&); - policy_entry(policy_entry&&); - policy_entry& operator=(const policy_entry&); - policy_entry& operator=(policy_entry&&); - policy_entry() : policy_name(), backup_provider_type(), backup_interval_seconds(), backup_history_count_to_keep(0), start_time(), is_disable(0) { - } - - virtual ~policy_entry() throw(); - std::string policy_name; - std::string backup_provider_type; - std::string backup_interval_seconds; - std::set app_ids; - int32_t backup_history_count_to_keep; - std::string start_time; - bool is_disable; - - _policy_entry__isset __isset; - - void __set_policy_name(const std::string& val); - - void __set_backup_provider_type(const std::string& val); - - void __set_backup_interval_seconds(const std::string& val); - - void __set_app_ids(const std::set & val); - - void __set_backup_history_count_to_keep(const int32_t val); - - void __set_start_time(const std::string& val); - - void __set_is_disable(const bool val); - - bool operator == (const policy_entry & rhs) const - { - if (!(policy_name == rhs.policy_name)) - return false; - if (!(backup_provider_type == rhs.backup_provider_type)) - return false; - if (!(backup_interval_seconds == rhs.backup_interval_seconds)) - return false; - if (!(app_ids == rhs.app_ids)) - return false; - if (!(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) - return false; - if (!(start_time == rhs.start_time)) - return false; - if (!(is_disable == rhs.is_disable)) - return false; - return true; - } - bool operator != (const policy_entry &rhs) const { - return !(*this == rhs); - } - - bool operator < (const policy_entry & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class policy_entry +{ +public: + policy_entry(const policy_entry &); + policy_entry(policy_entry &&); + policy_entry &operator=(const policy_entry &); + policy_entry &operator=(policy_entry &&); + policy_entry() + : policy_name(), + backup_provider_type(), + backup_interval_seconds(), + backup_history_count_to_keep(0), + start_time(), + is_disable(0) + { + } + + virtual ~policy_entry() throw(); + std::string policy_name; + std::string backup_provider_type; + std::string backup_interval_seconds; + std::set app_ids; + int32_t backup_history_count_to_keep; + std::string start_time; + bool is_disable; + + _policy_entry__isset __isset; + + void __set_policy_name(const std::string &val); + + void __set_backup_provider_type(const std::string &val); + + void __set_backup_interval_seconds(const std::string &val); + + void __set_app_ids(const std::set &val); + + void __set_backup_history_count_to_keep(const int32_t val); + + void __set_start_time(const std::string &val); + + void __set_is_disable(const bool val); + + bool operator==(const policy_entry &rhs) const + { + if (!(policy_name == rhs.policy_name)) + return false; + if (!(backup_provider_type == rhs.backup_provider_type)) + return false; + if (!(backup_interval_seconds == rhs.backup_interval_seconds)) + return false; + if (!(app_ids == rhs.app_ids)) + return false; + if (!(backup_history_count_to_keep == rhs.backup_history_count_to_keep)) + return false; + if (!(start_time == rhs.start_time)) + return false; + if (!(is_disable == rhs.is_disable)) + return false; + return true; + } + bool operator!=(const policy_entry &rhs) const { return !(*this == rhs); } + + bool operator<(const policy_entry &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(policy_entry &a, policy_entry &b); -inline std::ostream& operator<<(std::ostream& out, const policy_entry& obj) +inline std::ostream &operator<<(std::ostream &out, const policy_entry &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _backup_entry__isset { - _backup_entry__isset() : backup_id(false), start_time_ms(false), end_time_ms(false), app_ids(false) {} - bool backup_id :1; - bool start_time_ms :1; - bool end_time_ms :1; - bool app_ids :1; +typedef struct _backup_entry__isset +{ + _backup_entry__isset() + : backup_id(false), start_time_ms(false), end_time_ms(false), app_ids(false) + { + } + bool backup_id : 1; + bool start_time_ms : 1; + bool end_time_ms : 1; + bool app_ids : 1; } _backup_entry__isset; -class backup_entry { - public: - - backup_entry(const backup_entry&); - backup_entry(backup_entry&&); - backup_entry& operator=(const backup_entry&); - backup_entry& operator=(backup_entry&&); - backup_entry() : backup_id(0), start_time_ms(0), end_time_ms(0) { - } +class backup_entry +{ +public: + backup_entry(const backup_entry &); + backup_entry(backup_entry &&); + backup_entry &operator=(const backup_entry &); + backup_entry &operator=(backup_entry &&); + backup_entry() : backup_id(0), start_time_ms(0), end_time_ms(0) {} - virtual ~backup_entry() throw(); - int64_t backup_id; - int64_t start_time_ms; - int64_t end_time_ms; - std::set app_ids; + virtual ~backup_entry() throw(); + int64_t backup_id; + int64_t start_time_ms; + int64_t end_time_ms; + std::set app_ids; - _backup_entry__isset __isset; + _backup_entry__isset __isset; - void __set_backup_id(const int64_t val); + void __set_backup_id(const int64_t val); - void __set_start_time_ms(const int64_t val); + void __set_start_time_ms(const int64_t val); - void __set_end_time_ms(const int64_t val); + void __set_end_time_ms(const int64_t val); - void __set_app_ids(const std::set & val); + void __set_app_ids(const std::set &val); - bool operator == (const backup_entry & rhs) const - { - if (!(backup_id == rhs.backup_id)) - return false; - if (!(start_time_ms == rhs.start_time_ms)) - return false; - if (!(end_time_ms == rhs.end_time_ms)) - return false; - if (!(app_ids == rhs.app_ids)) - return false; - return true; - } - bool operator != (const backup_entry &rhs) const { - return !(*this == rhs); - } + bool operator==(const backup_entry &rhs) const + { + if (!(backup_id == rhs.backup_id)) + return false; + if (!(start_time_ms == rhs.start_time_ms)) + return false; + if (!(end_time_ms == rhs.end_time_ms)) + return false; + if (!(app_ids == rhs.app_ids)) + return false; + return true; + } + bool operator!=(const backup_entry &rhs) const { return !(*this == rhs); } - bool operator < (const backup_entry & ) const; + bool operator<(const backup_entry &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(backup_entry &a, backup_entry &b); -inline std::ostream& operator<<(std::ostream& out, const backup_entry& obj) +inline std::ostream &operator<<(std::ostream &out, const backup_entry &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_backup_policy_request__isset { - _configuration_query_backup_policy_request__isset() : policy_names(false), backup_info_count(false) {} - bool policy_names :1; - bool backup_info_count :1; +typedef struct _configuration_query_backup_policy_request__isset +{ + _configuration_query_backup_policy_request__isset() + : policy_names(false), backup_info_count(false) + { + } + bool policy_names : 1; + bool backup_info_count : 1; } _configuration_query_backup_policy_request__isset; -class configuration_query_backup_policy_request { - public: - - configuration_query_backup_policy_request(const configuration_query_backup_policy_request&); - configuration_query_backup_policy_request(configuration_query_backup_policy_request&&); - configuration_query_backup_policy_request& operator=(const configuration_query_backup_policy_request&); - configuration_query_backup_policy_request& operator=(configuration_query_backup_policy_request&&); - configuration_query_backup_policy_request() : backup_info_count(0) { - } +class configuration_query_backup_policy_request +{ +public: + configuration_query_backup_policy_request(const configuration_query_backup_policy_request &); + configuration_query_backup_policy_request(configuration_query_backup_policy_request &&); + configuration_query_backup_policy_request & + operator=(const configuration_query_backup_policy_request &); + configuration_query_backup_policy_request & + operator=(configuration_query_backup_policy_request &&); + configuration_query_backup_policy_request() : backup_info_count(0) {} - virtual ~configuration_query_backup_policy_request() throw(); - std::vector policy_names; - int32_t backup_info_count; + virtual ~configuration_query_backup_policy_request() throw(); + std::vector policy_names; + int32_t backup_info_count; - _configuration_query_backup_policy_request__isset __isset; + _configuration_query_backup_policy_request__isset __isset; - void __set_policy_names(const std::vector & val); + void __set_policy_names(const std::vector &val); - void __set_backup_info_count(const int32_t val); + void __set_backup_info_count(const int32_t val); - bool operator == (const configuration_query_backup_policy_request & rhs) const - { - if (!(policy_names == rhs.policy_names)) - return false; - if (!(backup_info_count == rhs.backup_info_count)) - return false; - return true; - } - bool operator != (const configuration_query_backup_policy_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_query_backup_policy_request &rhs) const + { + if (!(policy_names == rhs.policy_names)) + return false; + if (!(backup_info_count == rhs.backup_info_count)) + return false; + return true; + } + bool operator!=(const configuration_query_backup_policy_request &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_query_backup_policy_request & ) const; + bool operator<(const configuration_query_backup_policy_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; -void swap(configuration_query_backup_policy_request &a, configuration_query_backup_policy_request &b); +void swap(configuration_query_backup_policy_request &a, + configuration_query_backup_policy_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_query_backup_policy_request& obj) +inline std::ostream &operator<<(std::ostream &out, + const configuration_query_backup_policy_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_backup_policy_response__isset { - _configuration_query_backup_policy_response__isset() : err(false), policys(false), backup_infos(false), hint_msg(false) {} - bool err :1; - bool policys :1; - bool backup_infos :1; - bool hint_msg :1; +typedef struct _configuration_query_backup_policy_response__isset +{ + _configuration_query_backup_policy_response__isset() + : err(false), policys(false), backup_infos(false), hint_msg(false) + { + } + bool err : 1; + bool policys : 1; + bool backup_infos : 1; + bool hint_msg : 1; } _configuration_query_backup_policy_response__isset; -class configuration_query_backup_policy_response { - public: - - configuration_query_backup_policy_response(const configuration_query_backup_policy_response&); - configuration_query_backup_policy_response(configuration_query_backup_policy_response&&); - configuration_query_backup_policy_response& operator=(const configuration_query_backup_policy_response&); - configuration_query_backup_policy_response& operator=(configuration_query_backup_policy_response&&); - configuration_query_backup_policy_response() : hint_msg() { - } - - virtual ~configuration_query_backup_policy_response() throw(); - ::dsn::error_code err; - std::vector policys; - std::vector > backup_infos; - std::string hint_msg; - - _configuration_query_backup_policy_response__isset __isset; - - void __set_err(const ::dsn::error_code& val); - - void __set_policys(const std::vector & val); - - void __set_backup_infos(const std::vector > & val); - - void __set_hint_msg(const std::string& val); - - bool operator == (const configuration_query_backup_policy_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(policys == rhs.policys)) - return false; - if (!(backup_infos == rhs.backup_infos)) - return false; - if (__isset.hint_msg != rhs.__isset.hint_msg) - return false; - else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator != (const configuration_query_backup_policy_response &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_query_backup_policy_response & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(configuration_query_backup_policy_response &a, configuration_query_backup_policy_response &b); - -inline std::ostream& operator<<(std::ostream& out, const configuration_query_backup_policy_response& obj) +class configuration_query_backup_policy_response +{ +public: + configuration_query_backup_policy_response(const configuration_query_backup_policy_response &); + configuration_query_backup_policy_response(configuration_query_backup_policy_response &&); + configuration_query_backup_policy_response & + operator=(const configuration_query_backup_policy_response &); + configuration_query_backup_policy_response & + operator=(configuration_query_backup_policy_response &&); + configuration_query_backup_policy_response() : hint_msg() {} + + virtual ~configuration_query_backup_policy_response() throw(); + ::dsn::error_code err; + std::vector policys; + std::vector> backup_infos; + std::string hint_msg; + + _configuration_query_backup_policy_response__isset __isset; + + void __set_err(const ::dsn::error_code &val); + + void __set_policys(const std::vector &val); + + void __set_backup_infos(const std::vector> &val); + + void __set_hint_msg(const std::string &val); + + bool operator==(const configuration_query_backup_policy_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(policys == rhs.policys)) + return false; + if (!(backup_infos == rhs.backup_infos)) + return false; + if (__isset.hint_msg != rhs.__isset.hint_msg) + return false; + else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator!=(const configuration_query_backup_policy_response &rhs) const + { + return !(*this == rhs); + } + + bool operator<(const configuration_query_backup_policy_response &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; +}; + +void swap(configuration_query_backup_policy_response &a, + configuration_query_backup_policy_response &b); + +inline std::ostream &operator<<(std::ostream &out, + const configuration_query_backup_policy_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_report_restore_status_request__isset { - _configuration_report_restore_status_request__isset() : pid(false), restore_status(false), progress(false), reason(false) {} - bool pid :1; - bool restore_status :1; - bool progress :1; - bool reason :1; +typedef struct _configuration_report_restore_status_request__isset +{ + _configuration_report_restore_status_request__isset() + : pid(false), restore_status(false), progress(false), reason(false) + { + } + bool pid : 1; + bool restore_status : 1; + bool progress : 1; + bool reason : 1; } _configuration_report_restore_status_request__isset; -class configuration_report_restore_status_request { - public: - - configuration_report_restore_status_request(const configuration_report_restore_status_request&); - configuration_report_restore_status_request(configuration_report_restore_status_request&&); - configuration_report_restore_status_request& operator=(const configuration_report_restore_status_request&); - configuration_report_restore_status_request& operator=(configuration_report_restore_status_request&&); - configuration_report_restore_status_request() : progress(0), reason() { - } - - virtual ~configuration_report_restore_status_request() throw(); - ::dsn::gpid pid; - ::dsn::error_code restore_status; - int32_t progress; - std::string reason; - - _configuration_report_restore_status_request__isset __isset; - - void __set_pid(const ::dsn::gpid& val); - - void __set_restore_status(const ::dsn::error_code& val); - - void __set_progress(const int32_t val); - - void __set_reason(const std::string& val); - - bool operator == (const configuration_report_restore_status_request & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(restore_status == rhs.restore_status)) - return false; - if (!(progress == rhs.progress)) - return false; - if (__isset.reason != rhs.__isset.reason) - return false; - else if (__isset.reason && !(reason == rhs.reason)) - return false; - return true; - } - bool operator != (const configuration_report_restore_status_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_report_restore_status_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(configuration_report_restore_status_request &a, configuration_report_restore_status_request &b); - -inline std::ostream& operator<<(std::ostream& out, const configuration_report_restore_status_request& obj) +class configuration_report_restore_status_request { - obj.printTo(out); - return out; +public: + configuration_report_restore_status_request( + const configuration_report_restore_status_request &); + configuration_report_restore_status_request(configuration_report_restore_status_request &&); + configuration_report_restore_status_request & + operator=(const configuration_report_restore_status_request &); + configuration_report_restore_status_request & + operator=(configuration_report_restore_status_request &&); + configuration_report_restore_status_request() : progress(0), reason() {} + + virtual ~configuration_report_restore_status_request() throw(); + ::dsn::gpid pid; + ::dsn::error_code restore_status; + int32_t progress; + std::string reason; + + _configuration_report_restore_status_request__isset __isset; + + void __set_pid(const ::dsn::gpid &val); + + void __set_restore_status(const ::dsn::error_code &val); + + void __set_progress(const int32_t val); + + void __set_reason(const std::string &val); + + bool operator==(const configuration_report_restore_status_request &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(restore_status == rhs.restore_status)) + return false; + if (!(progress == rhs.progress)) + return false; + if (__isset.reason != rhs.__isset.reason) + return false; + else if (__isset.reason && !(reason == rhs.reason)) + return false; + return true; + } + bool operator!=(const configuration_report_restore_status_request &rhs) const + { + return !(*this == rhs); + } + + bool operator<(const configuration_report_restore_status_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; +}; + +void swap(configuration_report_restore_status_request &a, + configuration_report_restore_status_request &b); + +inline std::ostream &operator<<(std::ostream &out, + const configuration_report_restore_status_request &obj) +{ + obj.printTo(out); + return out; } -typedef struct _configuration_report_restore_status_response__isset { - _configuration_report_restore_status_response__isset() : err(false) {} - bool err :1; +typedef struct _configuration_report_restore_status_response__isset +{ + _configuration_report_restore_status_response__isset() : err(false) {} + bool err : 1; } _configuration_report_restore_status_response__isset; -class configuration_report_restore_status_response { - public: - - configuration_report_restore_status_response(const configuration_report_restore_status_response&); - configuration_report_restore_status_response(configuration_report_restore_status_response&&); - configuration_report_restore_status_response& operator=(const configuration_report_restore_status_response&); - configuration_report_restore_status_response& operator=(configuration_report_restore_status_response&&); - configuration_report_restore_status_response() { - } +class configuration_report_restore_status_response +{ +public: + configuration_report_restore_status_response( + const configuration_report_restore_status_response &); + configuration_report_restore_status_response(configuration_report_restore_status_response &&); + configuration_report_restore_status_response & + operator=(const configuration_report_restore_status_response &); + configuration_report_restore_status_response & + operator=(configuration_report_restore_status_response &&); + configuration_report_restore_status_response() {} - virtual ~configuration_report_restore_status_response() throw(); - ::dsn::error_code err; + virtual ~configuration_report_restore_status_response() throw(); + ::dsn::error_code err; - _configuration_report_restore_status_response__isset __isset; + _configuration_report_restore_status_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - bool operator == (const configuration_report_restore_status_response & rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator != (const configuration_report_restore_status_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_report_restore_status_response &rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator!=(const configuration_report_restore_status_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_report_restore_status_response & ) const; + bool operator<(const configuration_report_restore_status_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; -void swap(configuration_report_restore_status_response &a, configuration_report_restore_status_response &b); +void swap(configuration_report_restore_status_response &a, + configuration_report_restore_status_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_report_restore_status_response& obj) +inline std::ostream &operator<<(std::ostream &out, + const configuration_report_restore_status_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_restore_request__isset { - _configuration_query_restore_request__isset() : restore_app_id(false) {} - bool restore_app_id :1; +typedef struct _configuration_query_restore_request__isset +{ + _configuration_query_restore_request__isset() : restore_app_id(false) {} + bool restore_app_id : 1; } _configuration_query_restore_request__isset; -class configuration_query_restore_request { - public: - - configuration_query_restore_request(const configuration_query_restore_request&); - configuration_query_restore_request(configuration_query_restore_request&&); - configuration_query_restore_request& operator=(const configuration_query_restore_request&); - configuration_query_restore_request& operator=(configuration_query_restore_request&&); - configuration_query_restore_request() : restore_app_id(0) { - } +class configuration_query_restore_request +{ +public: + configuration_query_restore_request(const configuration_query_restore_request &); + configuration_query_restore_request(configuration_query_restore_request &&); + configuration_query_restore_request &operator=(const configuration_query_restore_request &); + configuration_query_restore_request &operator=(configuration_query_restore_request &&); + configuration_query_restore_request() : restore_app_id(0) {} - virtual ~configuration_query_restore_request() throw(); - int32_t restore_app_id; + virtual ~configuration_query_restore_request() throw(); + int32_t restore_app_id; - _configuration_query_restore_request__isset __isset; + _configuration_query_restore_request__isset __isset; - void __set_restore_app_id(const int32_t val); + void __set_restore_app_id(const int32_t val); - bool operator == (const configuration_query_restore_request & rhs) const - { - if (!(restore_app_id == rhs.restore_app_id)) - return false; - return true; - } - bool operator != (const configuration_query_restore_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_query_restore_request &rhs) const + { + if (!(restore_app_id == rhs.restore_app_id)) + return false; + return true; + } + bool operator!=(const configuration_query_restore_request &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_query_restore_request & ) const; + bool operator<(const configuration_query_restore_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_query_restore_request &a, configuration_query_restore_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_query_restore_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_query_restore_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_query_restore_response__isset { - _configuration_query_restore_response__isset() : err(false), restore_status(false), restore_progress(false) {} - bool err :1; - bool restore_status :1; - bool restore_progress :1; +typedef struct _configuration_query_restore_response__isset +{ + _configuration_query_restore_response__isset() + : err(false), restore_status(false), restore_progress(false) + { + } + bool err : 1; + bool restore_status : 1; + bool restore_progress : 1; } _configuration_query_restore_response__isset; -class configuration_query_restore_response { - public: - - configuration_query_restore_response(const configuration_query_restore_response&); - configuration_query_restore_response(configuration_query_restore_response&&); - configuration_query_restore_response& operator=(const configuration_query_restore_response&); - configuration_query_restore_response& operator=(configuration_query_restore_response&&); - configuration_query_restore_response() { - } +class configuration_query_restore_response +{ +public: + configuration_query_restore_response(const configuration_query_restore_response &); + configuration_query_restore_response(configuration_query_restore_response &&); + configuration_query_restore_response &operator=(const configuration_query_restore_response &); + configuration_query_restore_response &operator=(configuration_query_restore_response &&); + configuration_query_restore_response() {} - virtual ~configuration_query_restore_response() throw(); - ::dsn::error_code err; - std::vector< ::dsn::error_code> restore_status; - std::vector restore_progress; + virtual ~configuration_query_restore_response() throw(); + ::dsn::error_code err; + std::vector<::dsn::error_code> restore_status; + std::vector restore_progress; - _configuration_query_restore_response__isset __isset; + _configuration_query_restore_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_restore_status(const std::vector< ::dsn::error_code> & val); + void __set_restore_status(const std::vector<::dsn::error_code> &val); - void __set_restore_progress(const std::vector & val); + void __set_restore_progress(const std::vector &val); - bool operator == (const configuration_query_restore_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(restore_status == rhs.restore_status)) - return false; - if (!(restore_progress == rhs.restore_progress)) - return false; - return true; - } - bool operator != (const configuration_query_restore_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_query_restore_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(restore_status == rhs.restore_status)) + return false; + if (!(restore_progress == rhs.restore_progress)) + return false; + return true; + } + bool operator!=(const configuration_query_restore_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_query_restore_response & ) const; + bool operator<(const configuration_query_restore_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_query_restore_response &a, configuration_query_restore_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_query_restore_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_query_restore_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _file_meta__isset { - _file_meta__isset() : name(false), size(false), md5(false) {} - bool name :1; - bool size :1; - bool md5 :1; +typedef struct _file_meta__isset +{ + _file_meta__isset() : name(false), size(false), md5(false) {} + bool name : 1; + bool size : 1; + bool md5 : 1; } _file_meta__isset; -class file_meta { - public: - - file_meta(const file_meta&); - file_meta(file_meta&&); - file_meta& operator=(const file_meta&); - file_meta& operator=(file_meta&&); - file_meta() : name(), size(0), md5() { - } +class file_meta +{ +public: + file_meta(const file_meta &); + file_meta(file_meta &&); + file_meta &operator=(const file_meta &); + file_meta &operator=(file_meta &&); + file_meta() : name(), size(0), md5() {} - virtual ~file_meta() throw(); - std::string name; - int64_t size; - std::string md5; + virtual ~file_meta() throw(); + std::string name; + int64_t size; + std::string md5; - _file_meta__isset __isset; + _file_meta__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string &val); - void __set_size(const int64_t val); + void __set_size(const int64_t val); - void __set_md5(const std::string& val); + void __set_md5(const std::string &val); - bool operator == (const file_meta & rhs) const - { - if (!(name == rhs.name)) - return false; - if (!(size == rhs.size)) - return false; - if (!(md5 == rhs.md5)) - return false; - return true; - } - bool operator != (const file_meta &rhs) const { - return !(*this == rhs); - } + bool operator==(const file_meta &rhs) const + { + if (!(name == rhs.name)) + return false; + if (!(size == rhs.size)) + return false; + if (!(md5 == rhs.md5)) + return false; + return true; + } + bool operator!=(const file_meta &rhs) const { return !(*this == rhs); } - bool operator < (const file_meta & ) const; + bool operator<(const file_meta &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(file_meta &a, file_meta &b); -inline std::ostream& operator<<(std::ostream& out, const file_meta& obj) +inline std::ostream &operator<<(std::ostream &out, const file_meta &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_update_app_env_request__isset { - _configuration_update_app_env_request__isset() : app_name(false), op(true), keys(false), values(false), clear_prefix(false) {} - bool app_name :1; - bool op :1; - bool keys :1; - bool values :1; - bool clear_prefix :1; +typedef struct _configuration_update_app_env_request__isset +{ + _configuration_update_app_env_request__isset() + : app_name(false), op(true), keys(false), values(false), clear_prefix(false) + { + } + bool app_name : 1; + bool op : 1; + bool keys : 1; + bool values : 1; + bool clear_prefix : 1; } _configuration_update_app_env_request__isset; -class configuration_update_app_env_request { - public: - - configuration_update_app_env_request(const configuration_update_app_env_request&); - configuration_update_app_env_request(configuration_update_app_env_request&&); - configuration_update_app_env_request& operator=(const configuration_update_app_env_request&); - configuration_update_app_env_request& operator=(configuration_update_app_env_request&&); - configuration_update_app_env_request() : app_name(), op((app_env_operation::type)0), clear_prefix() { - op = (app_env_operation::type)0; - - } - - virtual ~configuration_update_app_env_request() throw(); - std::string app_name; - app_env_operation::type op; - std::vector keys; - std::vector values; - std::string clear_prefix; - - _configuration_update_app_env_request__isset __isset; - - void __set_app_name(const std::string& val); - - void __set_op(const app_env_operation::type val); - - void __set_keys(const std::vector & val); - - void __set_values(const std::vector & val); - - void __set_clear_prefix(const std::string& val); - - bool operator == (const configuration_update_app_env_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(op == rhs.op)) - return false; - if (__isset.keys != rhs.__isset.keys) - return false; - else if (__isset.keys && !(keys == rhs.keys)) - return false; - if (__isset.values != rhs.__isset.values) - return false; - else if (__isset.values && !(values == rhs.values)) - return false; - if (__isset.clear_prefix != rhs.__isset.clear_prefix) - return false; - else if (__isset.clear_prefix && !(clear_prefix == rhs.clear_prefix)) - return false; - return true; - } - bool operator != (const configuration_update_app_env_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const configuration_update_app_env_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class configuration_update_app_env_request +{ +public: + configuration_update_app_env_request(const configuration_update_app_env_request &); + configuration_update_app_env_request(configuration_update_app_env_request &&); + configuration_update_app_env_request &operator=(const configuration_update_app_env_request &); + configuration_update_app_env_request &operator=(configuration_update_app_env_request &&); + configuration_update_app_env_request() + : app_name(), op((app_env_operation::type)0), clear_prefix() + { + op = (app_env_operation::type)0; + } + + virtual ~configuration_update_app_env_request() throw(); + std::string app_name; + app_env_operation::type op; + std::vector keys; + std::vector values; + std::string clear_prefix; + + _configuration_update_app_env_request__isset __isset; + + void __set_app_name(const std::string &val); + + void __set_op(const app_env_operation::type val); + + void __set_keys(const std::vector &val); + + void __set_values(const std::vector &val); + + void __set_clear_prefix(const std::string &val); + + bool operator==(const configuration_update_app_env_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(op == rhs.op)) + return false; + if (__isset.keys != rhs.__isset.keys) + return false; + else if (__isset.keys && !(keys == rhs.keys)) + return false; + if (__isset.values != rhs.__isset.values) + return false; + else if (__isset.values && !(values == rhs.values)) + return false; + if (__isset.clear_prefix != rhs.__isset.clear_prefix) + return false; + else if (__isset.clear_prefix && !(clear_prefix == rhs.clear_prefix)) + return false; + return true; + } + bool operator!=(const configuration_update_app_env_request &rhs) const + { + return !(*this == rhs); + } + + bool operator<(const configuration_update_app_env_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(configuration_update_app_env_request &a, configuration_update_app_env_request &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_update_app_env_request& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_update_app_env_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _configuration_update_app_env_response__isset { - _configuration_update_app_env_response__isset() : err(false), hint_message(false) {} - bool err :1; - bool hint_message :1; +typedef struct _configuration_update_app_env_response__isset +{ + _configuration_update_app_env_response__isset() : err(false), hint_message(false) {} + bool err : 1; + bool hint_message : 1; } _configuration_update_app_env_response__isset; -class configuration_update_app_env_response { - public: - - configuration_update_app_env_response(const configuration_update_app_env_response&); - configuration_update_app_env_response(configuration_update_app_env_response&&); - configuration_update_app_env_response& operator=(const configuration_update_app_env_response&); - configuration_update_app_env_response& operator=(configuration_update_app_env_response&&); - configuration_update_app_env_response() : hint_message() { - } +class configuration_update_app_env_response +{ +public: + configuration_update_app_env_response(const configuration_update_app_env_response &); + configuration_update_app_env_response(configuration_update_app_env_response &&); + configuration_update_app_env_response &operator=(const configuration_update_app_env_response &); + configuration_update_app_env_response &operator=(configuration_update_app_env_response &&); + configuration_update_app_env_response() : hint_message() {} - virtual ~configuration_update_app_env_response() throw(); - ::dsn::error_code err; - std::string hint_message; + virtual ~configuration_update_app_env_response() throw(); + ::dsn::error_code err; + std::string hint_message; - _configuration_update_app_env_response__isset __isset; + _configuration_update_app_env_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_hint_message(const std::string& val); + void __set_hint_message(const std::string &val); - bool operator == (const configuration_update_app_env_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_message == rhs.hint_message)) - return false; - return true; - } - bool operator != (const configuration_update_app_env_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const configuration_update_app_env_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_message == rhs.hint_message)) + return false; + return true; + } + bool operator!=(const configuration_update_app_env_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const configuration_update_app_env_response & ) const; + bool operator<(const configuration_update_app_env_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(configuration_update_app_env_response &a, configuration_update_app_env_response &b); -inline std::ostream& operator<<(std::ostream& out, const configuration_update_app_env_response& obj) +inline std::ostream &operator<<(std::ostream &out, const configuration_update_app_env_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_add_request__isset { - _duplication_add_request__isset() : app_name(false), remote_cluster_name(false), freezed(false) {} - bool app_name :1; - bool remote_cluster_name :1; - bool freezed :1; +typedef struct _duplication_add_request__isset +{ + _duplication_add_request__isset() : app_name(false), remote_cluster_name(false), freezed(false) + { + } + bool app_name : 1; + bool remote_cluster_name : 1; + bool freezed : 1; } _duplication_add_request__isset; -class duplication_add_request { - public: - - duplication_add_request(const duplication_add_request&); - duplication_add_request(duplication_add_request&&); - duplication_add_request& operator=(const duplication_add_request&); - duplication_add_request& operator=(duplication_add_request&&); - duplication_add_request() : app_name(), remote_cluster_name(), freezed(0) { - } +class duplication_add_request +{ +public: + duplication_add_request(const duplication_add_request &); + duplication_add_request(duplication_add_request &&); + duplication_add_request &operator=(const duplication_add_request &); + duplication_add_request &operator=(duplication_add_request &&); + duplication_add_request() : app_name(), remote_cluster_name(), freezed(0) {} - virtual ~duplication_add_request() throw(); - std::string app_name; - std::string remote_cluster_name; - bool freezed; + virtual ~duplication_add_request() throw(); + std::string app_name; + std::string remote_cluster_name; + bool freezed; - _duplication_add_request__isset __isset; + _duplication_add_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - void __set_remote_cluster_name(const std::string& val); + void __set_remote_cluster_name(const std::string &val); - void __set_freezed(const bool val); + void __set_freezed(const bool val); - bool operator == (const duplication_add_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(remote_cluster_name == rhs.remote_cluster_name)) - return false; - if (!(freezed == rhs.freezed)) - return false; - return true; - } - bool operator != (const duplication_add_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const duplication_add_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(remote_cluster_name == rhs.remote_cluster_name)) + return false; + if (!(freezed == rhs.freezed)) + return false; + return true; + } + bool operator!=(const duplication_add_request &rhs) const { return !(*this == rhs); } - bool operator < (const duplication_add_request & ) const; + bool operator<(const duplication_add_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(duplication_add_request &a, duplication_add_request &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_add_request& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_add_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_add_response__isset { - _duplication_add_response__isset() : err(false), appid(false), dupid(false), hint(false) {} - bool err :1; - bool appid :1; - bool dupid :1; - bool hint :1; +typedef struct _duplication_add_response__isset +{ + _duplication_add_response__isset() : err(false), appid(false), dupid(false), hint(false) {} + bool err : 1; + bool appid : 1; + bool dupid : 1; + bool hint : 1; } _duplication_add_response__isset; -class duplication_add_response { - public: - - duplication_add_response(const duplication_add_response&); - duplication_add_response(duplication_add_response&&); - duplication_add_response& operator=(const duplication_add_response&); - duplication_add_response& operator=(duplication_add_response&&); - duplication_add_response() : appid(0), dupid(0), hint() { - } +class duplication_add_response +{ +public: + duplication_add_response(const duplication_add_response &); + duplication_add_response(duplication_add_response &&); + duplication_add_response &operator=(const duplication_add_response &); + duplication_add_response &operator=(duplication_add_response &&); + duplication_add_response() : appid(0), dupid(0), hint() {} - virtual ~duplication_add_response() throw(); - ::dsn::error_code err; - int32_t appid; - int32_t dupid; - std::string hint; + virtual ~duplication_add_response() throw(); + ::dsn::error_code err; + int32_t appid; + int32_t dupid; + std::string hint; - _duplication_add_response__isset __isset; + _duplication_add_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_appid(const int32_t val); + void __set_appid(const int32_t val); - void __set_dupid(const int32_t val); + void __set_dupid(const int32_t val); - void __set_hint(const std::string& val); + void __set_hint(const std::string &val); - bool operator == (const duplication_add_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(appid == rhs.appid)) - return false; - if (!(dupid == rhs.dupid)) - return false; - if (__isset.hint != rhs.__isset.hint) - return false; - else if (__isset.hint && !(hint == rhs.hint)) - return false; - return true; - } - bool operator != (const duplication_add_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const duplication_add_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(appid == rhs.appid)) + return false; + if (!(dupid == rhs.dupid)) + return false; + if (__isset.hint != rhs.__isset.hint) + return false; + else if (__isset.hint && !(hint == rhs.hint)) + return false; + return true; + } + bool operator!=(const duplication_add_response &rhs) const { return !(*this == rhs); } - bool operator < (const duplication_add_response & ) const; + bool operator<(const duplication_add_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(duplication_add_response &a, duplication_add_response &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_add_response& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_add_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_modify_request__isset { - _duplication_modify_request__isset() : app_name(false), dupid(false), status(false), fail_mode(false) {} - bool app_name :1; - bool dupid :1; - bool status :1; - bool fail_mode :1; +typedef struct _duplication_modify_request__isset +{ + _duplication_modify_request__isset() + : app_name(false), dupid(false), status(false), fail_mode(false) + { + } + bool app_name : 1; + bool dupid : 1; + bool status : 1; + bool fail_mode : 1; } _duplication_modify_request__isset; -class duplication_modify_request { - public: - - duplication_modify_request(const duplication_modify_request&); - duplication_modify_request(duplication_modify_request&&); - duplication_modify_request& operator=(const duplication_modify_request&); - duplication_modify_request& operator=(duplication_modify_request&&); - duplication_modify_request() : app_name(), dupid(0), status((duplication_status::type)0), fail_mode((duplication_fail_mode::type)0) { - } - - virtual ~duplication_modify_request() throw(); - std::string app_name; - int32_t dupid; - duplication_status::type status; - duplication_fail_mode::type fail_mode; - - _duplication_modify_request__isset __isset; - - void __set_app_name(const std::string& val); - - void __set_dupid(const int32_t val); - - void __set_status(const duplication_status::type val); - - void __set_fail_mode(const duplication_fail_mode::type val); - - bool operator == (const duplication_modify_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(dupid == rhs.dupid)) - return false; - if (__isset.status != rhs.__isset.status) - return false; - else if (__isset.status && !(status == rhs.status)) - return false; - if (__isset.fail_mode != rhs.__isset.fail_mode) - return false; - else if (__isset.fail_mode && !(fail_mode == rhs.fail_mode)) - return false; - return true; - } - bool operator != (const duplication_modify_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const duplication_modify_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class duplication_modify_request +{ +public: + duplication_modify_request(const duplication_modify_request &); + duplication_modify_request(duplication_modify_request &&); + duplication_modify_request &operator=(const duplication_modify_request &); + duplication_modify_request &operator=(duplication_modify_request &&); + duplication_modify_request() + : app_name(), + dupid(0), + status((duplication_status::type)0), + fail_mode((duplication_fail_mode::type)0) + { + } + + virtual ~duplication_modify_request() throw(); + std::string app_name; + int32_t dupid; + duplication_status::type status; + duplication_fail_mode::type fail_mode; + + _duplication_modify_request__isset __isset; + + void __set_app_name(const std::string &val); + + void __set_dupid(const int32_t val); + + void __set_status(const duplication_status::type val); + + void __set_fail_mode(const duplication_fail_mode::type val); + + bool operator==(const duplication_modify_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(dupid == rhs.dupid)) + return false; + if (__isset.status != rhs.__isset.status) + return false; + else if (__isset.status && !(status == rhs.status)) + return false; + if (__isset.fail_mode != rhs.__isset.fail_mode) + return false; + else if (__isset.fail_mode && !(fail_mode == rhs.fail_mode)) + return false; + return true; + } + bool operator!=(const duplication_modify_request &rhs) const { return !(*this == rhs); } + + bool operator<(const duplication_modify_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(duplication_modify_request &a, duplication_modify_request &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_modify_request& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_modify_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_modify_response__isset { - _duplication_modify_response__isset() : err(false), appid(false) {} - bool err :1; - bool appid :1; +typedef struct _duplication_modify_response__isset +{ + _duplication_modify_response__isset() : err(false), appid(false) {} + bool err : 1; + bool appid : 1; } _duplication_modify_response__isset; -class duplication_modify_response { - public: - - duplication_modify_response(const duplication_modify_response&); - duplication_modify_response(duplication_modify_response&&); - duplication_modify_response& operator=(const duplication_modify_response&); - duplication_modify_response& operator=(duplication_modify_response&&); - duplication_modify_response() : appid(0) { - } +class duplication_modify_response +{ +public: + duplication_modify_response(const duplication_modify_response &); + duplication_modify_response(duplication_modify_response &&); + duplication_modify_response &operator=(const duplication_modify_response &); + duplication_modify_response &operator=(duplication_modify_response &&); + duplication_modify_response() : appid(0) {} - virtual ~duplication_modify_response() throw(); - ::dsn::error_code err; - int32_t appid; + virtual ~duplication_modify_response() throw(); + ::dsn::error_code err; + int32_t appid; - _duplication_modify_response__isset __isset; + _duplication_modify_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_appid(const int32_t val); + void __set_appid(const int32_t val); - bool operator == (const duplication_modify_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(appid == rhs.appid)) - return false; - return true; - } - bool operator != (const duplication_modify_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const duplication_modify_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(appid == rhs.appid)) + return false; + return true; + } + bool operator!=(const duplication_modify_response &rhs) const { return !(*this == rhs); } - bool operator < (const duplication_modify_response & ) const; + bool operator<(const duplication_modify_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(duplication_modify_response &a, duplication_modify_response &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_modify_response& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_modify_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_entry__isset { - _duplication_entry__isset() : dupid(false), status(false), remote(false), create_ts(false), progress(false), fail_mode(false) {} - bool dupid :1; - bool status :1; - bool remote :1; - bool create_ts :1; - bool progress :1; - bool fail_mode :1; +typedef struct _duplication_entry__isset +{ + _duplication_entry__isset() + : dupid(false), + status(false), + remote(false), + create_ts(false), + progress(false), + fail_mode(false) + { + } + bool dupid : 1; + bool status : 1; + bool remote : 1; + bool create_ts : 1; + bool progress : 1; + bool fail_mode : 1; } _duplication_entry__isset; -class duplication_entry { - public: - - duplication_entry(const duplication_entry&); - duplication_entry(duplication_entry&&); - duplication_entry& operator=(const duplication_entry&); - duplication_entry& operator=(duplication_entry&&); - duplication_entry() : dupid(0), status((duplication_status::type)0), remote(), create_ts(0), fail_mode((duplication_fail_mode::type)0) { - } - - virtual ~duplication_entry() throw(); - int32_t dupid; - duplication_status::type status; - std::string remote; - int64_t create_ts; - std::map progress; - duplication_fail_mode::type fail_mode; - - _duplication_entry__isset __isset; - - void __set_dupid(const int32_t val); - - void __set_status(const duplication_status::type val); - - void __set_remote(const std::string& val); - - void __set_create_ts(const int64_t val); - - void __set_progress(const std::map & val); - - void __set_fail_mode(const duplication_fail_mode::type val); - - bool operator == (const duplication_entry & rhs) const - { - if (!(dupid == rhs.dupid)) - return false; - if (!(status == rhs.status)) - return false; - if (!(remote == rhs.remote)) - return false; - if (!(create_ts == rhs.create_ts)) - return false; - if (__isset.progress != rhs.__isset.progress) - return false; - else if (__isset.progress && !(progress == rhs.progress)) - return false; - if (__isset.fail_mode != rhs.__isset.fail_mode) - return false; - else if (__isset.fail_mode && !(fail_mode == rhs.fail_mode)) - return false; - return true; - } - bool operator != (const duplication_entry &rhs) const { - return !(*this == rhs); - } - - bool operator < (const duplication_entry & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class duplication_entry +{ +public: + duplication_entry(const duplication_entry &); + duplication_entry(duplication_entry &&); + duplication_entry &operator=(const duplication_entry &); + duplication_entry &operator=(duplication_entry &&); + duplication_entry() + : dupid(0), + status((duplication_status::type)0), + remote(), + create_ts(0), + fail_mode((duplication_fail_mode::type)0) + { + } + + virtual ~duplication_entry() throw(); + int32_t dupid; + duplication_status::type status; + std::string remote; + int64_t create_ts; + std::map progress; + duplication_fail_mode::type fail_mode; + + _duplication_entry__isset __isset; + + void __set_dupid(const int32_t val); + + void __set_status(const duplication_status::type val); + + void __set_remote(const std::string &val); + + void __set_create_ts(const int64_t val); + + void __set_progress(const std::map &val); + + void __set_fail_mode(const duplication_fail_mode::type val); + + bool operator==(const duplication_entry &rhs) const + { + if (!(dupid == rhs.dupid)) + return false; + if (!(status == rhs.status)) + return false; + if (!(remote == rhs.remote)) + return false; + if (!(create_ts == rhs.create_ts)) + return false; + if (__isset.progress != rhs.__isset.progress) + return false; + else if (__isset.progress && !(progress == rhs.progress)) + return false; + if (__isset.fail_mode != rhs.__isset.fail_mode) + return false; + else if (__isset.fail_mode && !(fail_mode == rhs.fail_mode)) + return false; + return true; + } + bool operator!=(const duplication_entry &rhs) const { return !(*this == rhs); } + + bool operator<(const duplication_entry &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(duplication_entry &a, duplication_entry &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_entry& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_entry &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_query_request__isset { - _duplication_query_request__isset() : app_name(false) {} - bool app_name :1; +typedef struct _duplication_query_request__isset +{ + _duplication_query_request__isset() : app_name(false) {} + bool app_name : 1; } _duplication_query_request__isset; -class duplication_query_request { - public: - - duplication_query_request(const duplication_query_request&); - duplication_query_request(duplication_query_request&&); - duplication_query_request& operator=(const duplication_query_request&); - duplication_query_request& operator=(duplication_query_request&&); - duplication_query_request() : app_name() { - } +class duplication_query_request +{ +public: + duplication_query_request(const duplication_query_request &); + duplication_query_request(duplication_query_request &&); + duplication_query_request &operator=(const duplication_query_request &); + duplication_query_request &operator=(duplication_query_request &&); + duplication_query_request() : app_name() {} - virtual ~duplication_query_request() throw(); - std::string app_name; + virtual ~duplication_query_request() throw(); + std::string app_name; - _duplication_query_request__isset __isset; + _duplication_query_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - bool operator == (const duplication_query_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - return true; - } - bool operator != (const duplication_query_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const duplication_query_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + return true; + } + bool operator!=(const duplication_query_request &rhs) const { return !(*this == rhs); } - bool operator < (const duplication_query_request & ) const; + bool operator<(const duplication_query_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(duplication_query_request &a, duplication_query_request &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_query_request& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_query_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_query_response__isset { - _duplication_query_response__isset() : err(false), appid(false), entry_list(false) {} - bool err :1; - bool appid :1; - bool entry_list :1; +typedef struct _duplication_query_response__isset +{ + _duplication_query_response__isset() : err(false), appid(false), entry_list(false) {} + bool err : 1; + bool appid : 1; + bool entry_list : 1; } _duplication_query_response__isset; -class duplication_query_response { - public: - - duplication_query_response(const duplication_query_response&); - duplication_query_response(duplication_query_response&&); - duplication_query_response& operator=(const duplication_query_response&); - duplication_query_response& operator=(duplication_query_response&&); - duplication_query_response() : appid(0) { - } +class duplication_query_response +{ +public: + duplication_query_response(const duplication_query_response &); + duplication_query_response(duplication_query_response &&); + duplication_query_response &operator=(const duplication_query_response &); + duplication_query_response &operator=(duplication_query_response &&); + duplication_query_response() : appid(0) {} - virtual ~duplication_query_response() throw(); - ::dsn::error_code err; - int32_t appid; - std::vector entry_list; + virtual ~duplication_query_response() throw(); + ::dsn::error_code err; + int32_t appid; + std::vector entry_list; - _duplication_query_response__isset __isset; + _duplication_query_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_appid(const int32_t val); + void __set_appid(const int32_t val); - void __set_entry_list(const std::vector & val); + void __set_entry_list(const std::vector &val); - bool operator == (const duplication_query_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(appid == rhs.appid)) - return false; - if (!(entry_list == rhs.entry_list)) - return false; - return true; - } - bool operator != (const duplication_query_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const duplication_query_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(appid == rhs.appid)) + return false; + if (!(entry_list == rhs.entry_list)) + return false; + return true; + } + bool operator!=(const duplication_query_response &rhs) const { return !(*this == rhs); } - bool operator < (const duplication_query_response & ) const; + bool operator<(const duplication_query_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(duplication_query_response &a, duplication_query_response &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_query_response& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_query_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_confirm_entry__isset { - _duplication_confirm_entry__isset() : dupid(false), confirmed_decree(false) {} - bool dupid :1; - bool confirmed_decree :1; +typedef struct _duplication_confirm_entry__isset +{ + _duplication_confirm_entry__isset() : dupid(false), confirmed_decree(false) {} + bool dupid : 1; + bool confirmed_decree : 1; } _duplication_confirm_entry__isset; -class duplication_confirm_entry { - public: - - duplication_confirm_entry(const duplication_confirm_entry&); - duplication_confirm_entry(duplication_confirm_entry&&); - duplication_confirm_entry& operator=(const duplication_confirm_entry&); - duplication_confirm_entry& operator=(duplication_confirm_entry&&); - duplication_confirm_entry() : dupid(0), confirmed_decree(0) { - } +class duplication_confirm_entry +{ +public: + duplication_confirm_entry(const duplication_confirm_entry &); + duplication_confirm_entry(duplication_confirm_entry &&); + duplication_confirm_entry &operator=(const duplication_confirm_entry &); + duplication_confirm_entry &operator=(duplication_confirm_entry &&); + duplication_confirm_entry() : dupid(0), confirmed_decree(0) {} - virtual ~duplication_confirm_entry() throw(); - int32_t dupid; - int64_t confirmed_decree; + virtual ~duplication_confirm_entry() throw(); + int32_t dupid; + int64_t confirmed_decree; - _duplication_confirm_entry__isset __isset; + _duplication_confirm_entry__isset __isset; - void __set_dupid(const int32_t val); + void __set_dupid(const int32_t val); - void __set_confirmed_decree(const int64_t val); + void __set_confirmed_decree(const int64_t val); - bool operator == (const duplication_confirm_entry & rhs) const - { - if (!(dupid == rhs.dupid)) - return false; - if (!(confirmed_decree == rhs.confirmed_decree)) - return false; - return true; - } - bool operator != (const duplication_confirm_entry &rhs) const { - return !(*this == rhs); - } + bool operator==(const duplication_confirm_entry &rhs) const + { + if (!(dupid == rhs.dupid)) + return false; + if (!(confirmed_decree == rhs.confirmed_decree)) + return false; + return true; + } + bool operator!=(const duplication_confirm_entry &rhs) const { return !(*this == rhs); } - bool operator < (const duplication_confirm_entry & ) const; + bool operator<(const duplication_confirm_entry &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(duplication_confirm_entry &a, duplication_confirm_entry &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_confirm_entry& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_confirm_entry &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_sync_request__isset { - _duplication_sync_request__isset() : node(false), confirm_list(false) {} - bool node :1; - bool confirm_list :1; +typedef struct _duplication_sync_request__isset +{ + _duplication_sync_request__isset() : node(false), confirm_list(false) {} + bool node : 1; + bool confirm_list : 1; } _duplication_sync_request__isset; -class duplication_sync_request { - public: - - duplication_sync_request(const duplication_sync_request&); - duplication_sync_request(duplication_sync_request&&); - duplication_sync_request& operator=(const duplication_sync_request&); - duplication_sync_request& operator=(duplication_sync_request&&); - duplication_sync_request() { - } +class duplication_sync_request +{ +public: + duplication_sync_request(const duplication_sync_request &); + duplication_sync_request(duplication_sync_request &&); + duplication_sync_request &operator=(const duplication_sync_request &); + duplication_sync_request &operator=(duplication_sync_request &&); + duplication_sync_request() {} - virtual ~duplication_sync_request() throw(); - ::dsn::rpc_address node; - std::map< ::dsn::gpid, std::vector > confirm_list; + virtual ~duplication_sync_request() throw(); + ::dsn::rpc_address node; + std::map<::dsn::gpid, std::vector> confirm_list; - _duplication_sync_request__isset __isset; + _duplication_sync_request__isset __isset; - void __set_node(const ::dsn::rpc_address& val); + void __set_node(const ::dsn::rpc_address &val); - void __set_confirm_list(const std::map< ::dsn::gpid, std::vector > & val); + void + __set_confirm_list(const std::map<::dsn::gpid, std::vector> &val); - bool operator == (const duplication_sync_request & rhs) const - { - if (!(node == rhs.node)) - return false; - if (!(confirm_list == rhs.confirm_list)) - return false; - return true; - } - bool operator != (const duplication_sync_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const duplication_sync_request &rhs) const + { + if (!(node == rhs.node)) + return false; + if (!(confirm_list == rhs.confirm_list)) + return false; + return true; + } + bool operator!=(const duplication_sync_request &rhs) const { return !(*this == rhs); } - bool operator < (const duplication_sync_request & ) const; + bool operator<(const duplication_sync_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(duplication_sync_request &a, duplication_sync_request &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_sync_request& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_sync_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _duplication_sync_response__isset { - _duplication_sync_response__isset() : err(false), dup_map(false) {} - bool err :1; - bool dup_map :1; +typedef struct _duplication_sync_response__isset +{ + _duplication_sync_response__isset() : err(false), dup_map(false) {} + bool err : 1; + bool dup_map : 1; } _duplication_sync_response__isset; -class duplication_sync_response { - public: - - duplication_sync_response(const duplication_sync_response&); - duplication_sync_response(duplication_sync_response&&); - duplication_sync_response& operator=(const duplication_sync_response&); - duplication_sync_response& operator=(duplication_sync_response&&); - duplication_sync_response() { - } +class duplication_sync_response +{ +public: + duplication_sync_response(const duplication_sync_response &); + duplication_sync_response(duplication_sync_response &&); + duplication_sync_response &operator=(const duplication_sync_response &); + duplication_sync_response &operator=(duplication_sync_response &&); + duplication_sync_response() {} - virtual ~duplication_sync_response() throw(); - ::dsn::error_code err; - std::map > dup_map; + virtual ~duplication_sync_response() throw(); + ::dsn::error_code err; + std::map> dup_map; - _duplication_sync_response__isset __isset; + _duplication_sync_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_dup_map(const std::map > & val); + void __set_dup_map(const std::map> &val); - bool operator == (const duplication_sync_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(dup_map == rhs.dup_map)) - return false; - return true; - } - bool operator != (const duplication_sync_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const duplication_sync_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(dup_map == rhs.dup_map)) + return false; + return true; + } + bool operator!=(const duplication_sync_response &rhs) const { return !(*this == rhs); } - bool operator < (const duplication_sync_response & ) const; + bool operator<(const duplication_sync_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(duplication_sync_response &a, duplication_sync_response &b); -inline std::ostream& operator<<(std::ostream& out, const duplication_sync_response& obj) +inline std::ostream &operator<<(std::ostream &out, const duplication_sync_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ddd_diagnose_request__isset { - _ddd_diagnose_request__isset() : pid(false) {} - bool pid :1; +typedef struct _ddd_diagnose_request__isset +{ + _ddd_diagnose_request__isset() : pid(false) {} + bool pid : 1; } _ddd_diagnose_request__isset; -class ddd_diagnose_request { - public: - - ddd_diagnose_request(const ddd_diagnose_request&); - ddd_diagnose_request(ddd_diagnose_request&&); - ddd_diagnose_request& operator=(const ddd_diagnose_request&); - ddd_diagnose_request& operator=(ddd_diagnose_request&&); - ddd_diagnose_request() { - } +class ddd_diagnose_request +{ +public: + ddd_diagnose_request(const ddd_diagnose_request &); + ddd_diagnose_request(ddd_diagnose_request &&); + ddd_diagnose_request &operator=(const ddd_diagnose_request &); + ddd_diagnose_request &operator=(ddd_diagnose_request &&); + ddd_diagnose_request() {} - virtual ~ddd_diagnose_request() throw(); - ::dsn::gpid pid; + virtual ~ddd_diagnose_request() throw(); + ::dsn::gpid pid; - _ddd_diagnose_request__isset __isset; + _ddd_diagnose_request__isset __isset; - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - bool operator == (const ddd_diagnose_request & rhs) const - { - if (!(pid == rhs.pid)) - return false; - return true; - } - bool operator != (const ddd_diagnose_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const ddd_diagnose_request &rhs) const + { + if (!(pid == rhs.pid)) + return false; + return true; + } + bool operator!=(const ddd_diagnose_request &rhs) const { return !(*this == rhs); } - bool operator < (const ddd_diagnose_request & ) const; + bool operator<(const ddd_diagnose_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(ddd_diagnose_request &a, ddd_diagnose_request &b); -inline std::ostream& operator<<(std::ostream& out, const ddd_diagnose_request& obj) +inline std::ostream &operator<<(std::ostream &out, const ddd_diagnose_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ddd_node_info__isset { - _ddd_node_info__isset() : node(false), drop_time_ms(false), is_alive(false), is_collected(false), ballot(false), last_committed_decree(false), last_prepared_decree(false) {} - bool node :1; - bool drop_time_ms :1; - bool is_alive :1; - bool is_collected :1; - bool ballot :1; - bool last_committed_decree :1; - bool last_prepared_decree :1; +typedef struct _ddd_node_info__isset +{ + _ddd_node_info__isset() + : node(false), + drop_time_ms(false), + is_alive(false), + is_collected(false), + ballot(false), + last_committed_decree(false), + last_prepared_decree(false) + { + } + bool node : 1; + bool drop_time_ms : 1; + bool is_alive : 1; + bool is_collected : 1; + bool ballot : 1; + bool last_committed_decree : 1; + bool last_prepared_decree : 1; } _ddd_node_info__isset; -class ddd_node_info { - public: - - ddd_node_info(const ddd_node_info&); - ddd_node_info(ddd_node_info&&); - ddd_node_info& operator=(const ddd_node_info&); - ddd_node_info& operator=(ddd_node_info&&); - ddd_node_info() : drop_time_ms(0), is_alive(0), is_collected(0), ballot(0), last_committed_decree(0), last_prepared_decree(0) { - } - - virtual ~ddd_node_info() throw(); - ::dsn::rpc_address node; - int64_t drop_time_ms; - bool is_alive; - bool is_collected; - int64_t ballot; - int64_t last_committed_decree; - int64_t last_prepared_decree; - - _ddd_node_info__isset __isset; - - void __set_node(const ::dsn::rpc_address& val); - - void __set_drop_time_ms(const int64_t val); - - void __set_is_alive(const bool val); - - void __set_is_collected(const bool val); - - void __set_ballot(const int64_t val); - - void __set_last_committed_decree(const int64_t val); - - void __set_last_prepared_decree(const int64_t val); - - bool operator == (const ddd_node_info & rhs) const - { - if (!(node == rhs.node)) - return false; - if (!(drop_time_ms == rhs.drop_time_ms)) - return false; - if (!(is_alive == rhs.is_alive)) - return false; - if (!(is_collected == rhs.is_collected)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(last_committed_decree == rhs.last_committed_decree)) - return false; - if (!(last_prepared_decree == rhs.last_prepared_decree)) - return false; - return true; - } - bool operator != (const ddd_node_info &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ddd_node_info & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class ddd_node_info +{ +public: + ddd_node_info(const ddd_node_info &); + ddd_node_info(ddd_node_info &&); + ddd_node_info &operator=(const ddd_node_info &); + ddd_node_info &operator=(ddd_node_info &&); + ddd_node_info() + : drop_time_ms(0), + is_alive(0), + is_collected(0), + ballot(0), + last_committed_decree(0), + last_prepared_decree(0) + { + } + + virtual ~ddd_node_info() throw(); + ::dsn::rpc_address node; + int64_t drop_time_ms; + bool is_alive; + bool is_collected; + int64_t ballot; + int64_t last_committed_decree; + int64_t last_prepared_decree; + + _ddd_node_info__isset __isset; + + void __set_node(const ::dsn::rpc_address &val); + + void __set_drop_time_ms(const int64_t val); + + void __set_is_alive(const bool val); + + void __set_is_collected(const bool val); + + void __set_ballot(const int64_t val); + + void __set_last_committed_decree(const int64_t val); + + void __set_last_prepared_decree(const int64_t val); + + bool operator==(const ddd_node_info &rhs) const + { + if (!(node == rhs.node)) + return false; + if (!(drop_time_ms == rhs.drop_time_ms)) + return false; + if (!(is_alive == rhs.is_alive)) + return false; + if (!(is_collected == rhs.is_collected)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(last_committed_decree == rhs.last_committed_decree)) + return false; + if (!(last_prepared_decree == rhs.last_prepared_decree)) + return false; + return true; + } + bool operator!=(const ddd_node_info &rhs) const { return !(*this == rhs); } + + bool operator<(const ddd_node_info &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(ddd_node_info &a, ddd_node_info &b); -inline std::ostream& operator<<(std::ostream& out, const ddd_node_info& obj) +inline std::ostream &operator<<(std::ostream &out, const ddd_node_info &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ddd_partition_info__isset { - _ddd_partition_info__isset() : config(false), dropped(false), reason(false) {} - bool config :1; - bool dropped :1; - bool reason :1; +typedef struct _ddd_partition_info__isset +{ + _ddd_partition_info__isset() : config(false), dropped(false), reason(false) {} + bool config : 1; + bool dropped : 1; + bool reason : 1; } _ddd_partition_info__isset; -class ddd_partition_info { - public: - - ddd_partition_info(const ddd_partition_info&); - ddd_partition_info(ddd_partition_info&&); - ddd_partition_info& operator=(const ddd_partition_info&); - ddd_partition_info& operator=(ddd_partition_info&&); - ddd_partition_info() : reason() { - } +class ddd_partition_info +{ +public: + ddd_partition_info(const ddd_partition_info &); + ddd_partition_info(ddd_partition_info &&); + ddd_partition_info &operator=(const ddd_partition_info &); + ddd_partition_info &operator=(ddd_partition_info &&); + ddd_partition_info() : reason() {} - virtual ~ddd_partition_info() throw(); - ::dsn::partition_configuration config; - std::vector dropped; - std::string reason; + virtual ~ddd_partition_info() throw(); + ::dsn::partition_configuration config; + std::vector dropped; + std::string reason; - _ddd_partition_info__isset __isset; + _ddd_partition_info__isset __isset; - void __set_config(const ::dsn::partition_configuration& val); + void __set_config(const ::dsn::partition_configuration &val); - void __set_dropped(const std::vector & val); + void __set_dropped(const std::vector &val); - void __set_reason(const std::string& val); + void __set_reason(const std::string &val); - bool operator == (const ddd_partition_info & rhs) const - { - if (!(config == rhs.config)) - return false; - if (!(dropped == rhs.dropped)) - return false; - if (!(reason == rhs.reason)) - return false; - return true; - } - bool operator != (const ddd_partition_info &rhs) const { - return !(*this == rhs); - } + bool operator==(const ddd_partition_info &rhs) const + { + if (!(config == rhs.config)) + return false; + if (!(dropped == rhs.dropped)) + return false; + if (!(reason == rhs.reason)) + return false; + return true; + } + bool operator!=(const ddd_partition_info &rhs) const { return !(*this == rhs); } - bool operator < (const ddd_partition_info & ) const; + bool operator<(const ddd_partition_info &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(ddd_partition_info &a, ddd_partition_info &b); -inline std::ostream& operator<<(std::ostream& out, const ddd_partition_info& obj) +inline std::ostream &operator<<(std::ostream &out, const ddd_partition_info &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ddd_diagnose_response__isset { - _ddd_diagnose_response__isset() : err(false), partitions(false) {} - bool err :1; - bool partitions :1; +typedef struct _ddd_diagnose_response__isset +{ + _ddd_diagnose_response__isset() : err(false), partitions(false) {} + bool err : 1; + bool partitions : 1; } _ddd_diagnose_response__isset; -class ddd_diagnose_response { - public: - - ddd_diagnose_response(const ddd_diagnose_response&); - ddd_diagnose_response(ddd_diagnose_response&&); - ddd_diagnose_response& operator=(const ddd_diagnose_response&); - ddd_diagnose_response& operator=(ddd_diagnose_response&&); - ddd_diagnose_response() { - } +class ddd_diagnose_response +{ +public: + ddd_diagnose_response(const ddd_diagnose_response &); + ddd_diagnose_response(ddd_diagnose_response &&); + ddd_diagnose_response &operator=(const ddd_diagnose_response &); + ddd_diagnose_response &operator=(ddd_diagnose_response &&); + ddd_diagnose_response() {} - virtual ~ddd_diagnose_response() throw(); - ::dsn::error_code err; - std::vector partitions; + virtual ~ddd_diagnose_response() throw(); + ::dsn::error_code err; + std::vector partitions; - _ddd_diagnose_response__isset __isset; + _ddd_diagnose_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector &val); - bool operator == (const ddd_diagnose_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(partitions == rhs.partitions)) - return false; - return true; - } - bool operator != (const ddd_diagnose_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const ddd_diagnose_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(partitions == rhs.partitions)) + return false; + return true; + } + bool operator!=(const ddd_diagnose_response &rhs) const { return !(*this == rhs); } - bool operator < (const ddd_diagnose_response & ) const; + bool operator<(const ddd_diagnose_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(ddd_diagnose_response &a, ddd_diagnose_response &b); -inline std::ostream& operator<<(std::ostream& out, const ddd_diagnose_response& obj) +inline std::ostream &operator<<(std::ostream &out, const ddd_diagnose_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _start_partition_split_request__isset { - _start_partition_split_request__isset() : app_name(false), new_partition_count(false) {} - bool app_name :1; - bool new_partition_count :1; +typedef struct _start_partition_split_request__isset +{ + _start_partition_split_request__isset() : app_name(false), new_partition_count(false) {} + bool app_name : 1; + bool new_partition_count : 1; } _start_partition_split_request__isset; -class start_partition_split_request { - public: - - start_partition_split_request(const start_partition_split_request&); - start_partition_split_request(start_partition_split_request&&); - start_partition_split_request& operator=(const start_partition_split_request&); - start_partition_split_request& operator=(start_partition_split_request&&); - start_partition_split_request() : app_name(), new_partition_count(0) { - } +class start_partition_split_request +{ +public: + start_partition_split_request(const start_partition_split_request &); + start_partition_split_request(start_partition_split_request &&); + start_partition_split_request &operator=(const start_partition_split_request &); + start_partition_split_request &operator=(start_partition_split_request &&); + start_partition_split_request() : app_name(), new_partition_count(0) {} - virtual ~start_partition_split_request() throw(); - std::string app_name; - int32_t new_partition_count; + virtual ~start_partition_split_request() throw(); + std::string app_name; + int32_t new_partition_count; - _start_partition_split_request__isset __isset; + _start_partition_split_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - void __set_new_partition_count(const int32_t val); + void __set_new_partition_count(const int32_t val); - bool operator == (const start_partition_split_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(new_partition_count == rhs.new_partition_count)) - return false; - return true; - } - bool operator != (const start_partition_split_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const start_partition_split_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(new_partition_count == rhs.new_partition_count)) + return false; + return true; + } + bool operator!=(const start_partition_split_request &rhs) const { return !(*this == rhs); } - bool operator < (const start_partition_split_request & ) const; + bool operator<(const start_partition_split_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(start_partition_split_request &a, start_partition_split_request &b); -inline std::ostream& operator<<(std::ostream& out, const start_partition_split_request& obj) +inline std::ostream &operator<<(std::ostream &out, const start_partition_split_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _start_partition_split_response__isset { - _start_partition_split_response__isset() : err(false), hint_msg(false) {} - bool err :1; - bool hint_msg :1; +typedef struct _start_partition_split_response__isset +{ + _start_partition_split_response__isset() : err(false), hint_msg(false) {} + bool err : 1; + bool hint_msg : 1; } _start_partition_split_response__isset; -class start_partition_split_response { - public: - - start_partition_split_response(const start_partition_split_response&); - start_partition_split_response(start_partition_split_response&&); - start_partition_split_response& operator=(const start_partition_split_response&); - start_partition_split_response& operator=(start_partition_split_response&&); - start_partition_split_response() : hint_msg() { - } +class start_partition_split_response +{ +public: + start_partition_split_response(const start_partition_split_response &); + start_partition_split_response(start_partition_split_response &&); + start_partition_split_response &operator=(const start_partition_split_response &); + start_partition_split_response &operator=(start_partition_split_response &&); + start_partition_split_response() : hint_msg() {} - virtual ~start_partition_split_response() throw(); - ::dsn::error_code err; - std::string hint_msg; + virtual ~start_partition_split_response() throw(); + ::dsn::error_code err; + std::string hint_msg; - _start_partition_split_response__isset __isset; + _start_partition_split_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_hint_msg(const std::string& val); + void __set_hint_msg(const std::string &val); - bool operator == (const start_partition_split_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator != (const start_partition_split_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const start_partition_split_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator!=(const start_partition_split_response &rhs) const { return !(*this == rhs); } - bool operator < (const start_partition_split_response & ) const; + bool operator<(const start_partition_split_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(start_partition_split_response &a, start_partition_split_response &b); -inline std::ostream& operator<<(std::ostream& out, const start_partition_split_response& obj) +inline std::ostream &operator<<(std::ostream &out, const start_partition_split_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _notify_catch_up_request__isset { - _notify_catch_up_request__isset() : parent_gpid(false), child_gpid(false), child_ballot(false), child_address(false) {} - bool parent_gpid :1; - bool child_gpid :1; - bool child_ballot :1; - bool child_address :1; +typedef struct _notify_catch_up_request__isset +{ + _notify_catch_up_request__isset() + : parent_gpid(false), child_gpid(false), child_ballot(false), child_address(false) + { + } + bool parent_gpid : 1; + bool child_gpid : 1; + bool child_ballot : 1; + bool child_address : 1; } _notify_catch_up_request__isset; -class notify_catch_up_request { - public: - - notify_catch_up_request(const notify_catch_up_request&); - notify_catch_up_request(notify_catch_up_request&&); - notify_catch_up_request& operator=(const notify_catch_up_request&); - notify_catch_up_request& operator=(notify_catch_up_request&&); - notify_catch_up_request() : child_ballot(0) { - } +class notify_catch_up_request +{ +public: + notify_catch_up_request(const notify_catch_up_request &); + notify_catch_up_request(notify_catch_up_request &&); + notify_catch_up_request &operator=(const notify_catch_up_request &); + notify_catch_up_request &operator=(notify_catch_up_request &&); + notify_catch_up_request() : child_ballot(0) {} - virtual ~notify_catch_up_request() throw(); - ::dsn::gpid parent_gpid; - ::dsn::gpid child_gpid; - int64_t child_ballot; - ::dsn::rpc_address child_address; + virtual ~notify_catch_up_request() throw(); + ::dsn::gpid parent_gpid; + ::dsn::gpid child_gpid; + int64_t child_ballot; + ::dsn::rpc_address child_address; - _notify_catch_up_request__isset __isset; + _notify_catch_up_request__isset __isset; - void __set_parent_gpid(const ::dsn::gpid& val); + void __set_parent_gpid(const ::dsn::gpid &val); - void __set_child_gpid(const ::dsn::gpid& val); + void __set_child_gpid(const ::dsn::gpid &val); - void __set_child_ballot(const int64_t val); + void __set_child_ballot(const int64_t val); - void __set_child_address(const ::dsn::rpc_address& val); + void __set_child_address(const ::dsn::rpc_address &val); - bool operator == (const notify_catch_up_request & rhs) const - { - if (!(parent_gpid == rhs.parent_gpid)) - return false; - if (!(child_gpid == rhs.child_gpid)) - return false; - if (!(child_ballot == rhs.child_ballot)) - return false; - if (!(child_address == rhs.child_address)) - return false; - return true; - } - bool operator != (const notify_catch_up_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const notify_catch_up_request &rhs) const + { + if (!(parent_gpid == rhs.parent_gpid)) + return false; + if (!(child_gpid == rhs.child_gpid)) + return false; + if (!(child_ballot == rhs.child_ballot)) + return false; + if (!(child_address == rhs.child_address)) + return false; + return true; + } + bool operator!=(const notify_catch_up_request &rhs) const { return !(*this == rhs); } - bool operator < (const notify_catch_up_request & ) const; + bool operator<(const notify_catch_up_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(notify_catch_up_request &a, notify_catch_up_request &b); -inline std::ostream& operator<<(std::ostream& out, const notify_catch_up_request& obj) +inline std::ostream &operator<<(std::ostream &out, const notify_catch_up_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _notify_cacth_up_response__isset { - _notify_cacth_up_response__isset() : err(false) {} - bool err :1; +typedef struct _notify_cacth_up_response__isset +{ + _notify_cacth_up_response__isset() : err(false) {} + bool err : 1; } _notify_cacth_up_response__isset; -class notify_cacth_up_response { - public: - - notify_cacth_up_response(const notify_cacth_up_response&); - notify_cacth_up_response(notify_cacth_up_response&&); - notify_cacth_up_response& operator=(const notify_cacth_up_response&); - notify_cacth_up_response& operator=(notify_cacth_up_response&&); - notify_cacth_up_response() { - } +class notify_cacth_up_response +{ +public: + notify_cacth_up_response(const notify_cacth_up_response &); + notify_cacth_up_response(notify_cacth_up_response &&); + notify_cacth_up_response &operator=(const notify_cacth_up_response &); + notify_cacth_up_response &operator=(notify_cacth_up_response &&); + notify_cacth_up_response() {} - virtual ~notify_cacth_up_response() throw(); - ::dsn::error_code err; + virtual ~notify_cacth_up_response() throw(); + ::dsn::error_code err; - _notify_cacth_up_response__isset __isset; + _notify_cacth_up_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - bool operator == (const notify_cacth_up_response & rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator != (const notify_cacth_up_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const notify_cacth_up_response &rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator!=(const notify_cacth_up_response &rhs) const { return !(*this == rhs); } - bool operator < (const notify_cacth_up_response & ) const; + bool operator<(const notify_cacth_up_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(notify_cacth_up_response &a, notify_cacth_up_response &b); -inline std::ostream& operator<<(std::ostream& out, const notify_cacth_up_response& obj) +inline std::ostream &operator<<(std::ostream &out, const notify_cacth_up_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _update_child_group_partition_count_request__isset { - _update_child_group_partition_count_request__isset() : target_address(false), new_partition_count(false), child_pid(false), ballot(false) {} - bool target_address :1; - bool new_partition_count :1; - bool child_pid :1; - bool ballot :1; +typedef struct _update_child_group_partition_count_request__isset +{ + _update_child_group_partition_count_request__isset() + : target_address(false), new_partition_count(false), child_pid(false), ballot(false) + { + } + bool target_address : 1; + bool new_partition_count : 1; + bool child_pid : 1; + bool ballot : 1; } _update_child_group_partition_count_request__isset; -class update_child_group_partition_count_request { - public: - - update_child_group_partition_count_request(const update_child_group_partition_count_request&); - update_child_group_partition_count_request(update_child_group_partition_count_request&&); - update_child_group_partition_count_request& operator=(const update_child_group_partition_count_request&); - update_child_group_partition_count_request& operator=(update_child_group_partition_count_request&&); - update_child_group_partition_count_request() : new_partition_count(0), ballot(0) { - } +class update_child_group_partition_count_request +{ +public: + update_child_group_partition_count_request(const update_child_group_partition_count_request &); + update_child_group_partition_count_request(update_child_group_partition_count_request &&); + update_child_group_partition_count_request & + operator=(const update_child_group_partition_count_request &); + update_child_group_partition_count_request & + operator=(update_child_group_partition_count_request &&); + update_child_group_partition_count_request() : new_partition_count(0), ballot(0) {} - virtual ~update_child_group_partition_count_request() throw(); - ::dsn::rpc_address target_address; - int32_t new_partition_count; - ::dsn::gpid child_pid; - int64_t ballot; + virtual ~update_child_group_partition_count_request() throw(); + ::dsn::rpc_address target_address; + int32_t new_partition_count; + ::dsn::gpid child_pid; + int64_t ballot; - _update_child_group_partition_count_request__isset __isset; + _update_child_group_partition_count_request__isset __isset; - void __set_target_address(const ::dsn::rpc_address& val); + void __set_target_address(const ::dsn::rpc_address &val); - void __set_new_partition_count(const int32_t val); + void __set_new_partition_count(const int32_t val); - void __set_child_pid(const ::dsn::gpid& val); + void __set_child_pid(const ::dsn::gpid &val); - void __set_ballot(const int64_t val); + void __set_ballot(const int64_t val); - bool operator == (const update_child_group_partition_count_request & rhs) const - { - if (!(target_address == rhs.target_address)) - return false; - if (!(new_partition_count == rhs.new_partition_count)) - return false; - if (!(child_pid == rhs.child_pid)) - return false; - if (!(ballot == rhs.ballot)) - return false; - return true; - } - bool operator != (const update_child_group_partition_count_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const update_child_group_partition_count_request &rhs) const + { + if (!(target_address == rhs.target_address)) + return false; + if (!(new_partition_count == rhs.new_partition_count)) + return false; + if (!(child_pid == rhs.child_pid)) + return false; + if (!(ballot == rhs.ballot)) + return false; + return true; + } + bool operator!=(const update_child_group_partition_count_request &rhs) const + { + return !(*this == rhs); + } - bool operator < (const update_child_group_partition_count_request & ) const; + bool operator<(const update_child_group_partition_count_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; -void swap(update_child_group_partition_count_request &a, update_child_group_partition_count_request &b); +void swap(update_child_group_partition_count_request &a, + update_child_group_partition_count_request &b); -inline std::ostream& operator<<(std::ostream& out, const update_child_group_partition_count_request& obj) +inline std::ostream &operator<<(std::ostream &out, + const update_child_group_partition_count_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _update_child_group_partition_count_response__isset { - _update_child_group_partition_count_response__isset() : err(false) {} - bool err :1; +typedef struct _update_child_group_partition_count_response__isset +{ + _update_child_group_partition_count_response__isset() : err(false) {} + bool err : 1; } _update_child_group_partition_count_response__isset; -class update_child_group_partition_count_response { - public: - - update_child_group_partition_count_response(const update_child_group_partition_count_response&); - update_child_group_partition_count_response(update_child_group_partition_count_response&&); - update_child_group_partition_count_response& operator=(const update_child_group_partition_count_response&); - update_child_group_partition_count_response& operator=(update_child_group_partition_count_response&&); - update_child_group_partition_count_response() { - } +class update_child_group_partition_count_response +{ +public: + update_child_group_partition_count_response( + const update_child_group_partition_count_response &); + update_child_group_partition_count_response(update_child_group_partition_count_response &&); + update_child_group_partition_count_response & + operator=(const update_child_group_partition_count_response &); + update_child_group_partition_count_response & + operator=(update_child_group_partition_count_response &&); + update_child_group_partition_count_response() {} - virtual ~update_child_group_partition_count_response() throw(); - ::dsn::error_code err; + virtual ~update_child_group_partition_count_response() throw(); + ::dsn::error_code err; - _update_child_group_partition_count_response__isset __isset; + _update_child_group_partition_count_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - bool operator == (const update_child_group_partition_count_response & rhs) const - { - if (!(err == rhs.err)) - return false; - return true; - } - bool operator != (const update_child_group_partition_count_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const update_child_group_partition_count_response &rhs) const + { + if (!(err == rhs.err)) + return false; + return true; + } + bool operator!=(const update_child_group_partition_count_response &rhs) const + { + return !(*this == rhs); + } - bool operator < (const update_child_group_partition_count_response & ) const; + bool operator<(const update_child_group_partition_count_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; -void swap(update_child_group_partition_count_response &a, update_child_group_partition_count_response &b); +void swap(update_child_group_partition_count_response &a, + update_child_group_partition_count_response &b); -inline std::ostream& operator<<(std::ostream& out, const update_child_group_partition_count_response& obj) +inline std::ostream &operator<<(std::ostream &out, + const update_child_group_partition_count_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _register_child_request__isset { - _register_child_request__isset() : app(false), parent_config(false), child_config(false), primary_address(false) {} - bool app :1; - bool parent_config :1; - bool child_config :1; - bool primary_address :1; +typedef struct _register_child_request__isset +{ + _register_child_request__isset() + : app(false), parent_config(false), child_config(false), primary_address(false) + { + } + bool app : 1; + bool parent_config : 1; + bool child_config : 1; + bool primary_address : 1; } _register_child_request__isset; -class register_child_request { - public: - - register_child_request(const register_child_request&); - register_child_request(register_child_request&&); - register_child_request& operator=(const register_child_request&); - register_child_request& operator=(register_child_request&&); - register_child_request() { - } +class register_child_request +{ +public: + register_child_request(const register_child_request &); + register_child_request(register_child_request &&); + register_child_request &operator=(const register_child_request &); + register_child_request &operator=(register_child_request &&); + register_child_request() {} - virtual ~register_child_request() throw(); - ::dsn::app_info app; - ::dsn::partition_configuration parent_config; - ::dsn::partition_configuration child_config; - ::dsn::rpc_address primary_address; + virtual ~register_child_request() throw(); + ::dsn::app_info app; + ::dsn::partition_configuration parent_config; + ::dsn::partition_configuration child_config; + ::dsn::rpc_address primary_address; - _register_child_request__isset __isset; + _register_child_request__isset __isset; - void __set_app(const ::dsn::app_info& val); + void __set_app(const ::dsn::app_info &val); - void __set_parent_config(const ::dsn::partition_configuration& val); + void __set_parent_config(const ::dsn::partition_configuration &val); - void __set_child_config(const ::dsn::partition_configuration& val); + void __set_child_config(const ::dsn::partition_configuration &val); - void __set_primary_address(const ::dsn::rpc_address& val); + void __set_primary_address(const ::dsn::rpc_address &val); - bool operator == (const register_child_request & rhs) const - { - if (!(app == rhs.app)) - return false; - if (!(parent_config == rhs.parent_config)) - return false; - if (!(child_config == rhs.child_config)) - return false; - if (!(primary_address == rhs.primary_address)) - return false; - return true; - } - bool operator != (const register_child_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const register_child_request &rhs) const + { + if (!(app == rhs.app)) + return false; + if (!(parent_config == rhs.parent_config)) + return false; + if (!(child_config == rhs.child_config)) + return false; + if (!(primary_address == rhs.primary_address)) + return false; + return true; + } + bool operator!=(const register_child_request &rhs) const { return !(*this == rhs); } - bool operator < (const register_child_request & ) const; + bool operator<(const register_child_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(register_child_request &a, register_child_request &b); -inline std::ostream& operator<<(std::ostream& out, const register_child_request& obj) +inline std::ostream &operator<<(std::ostream &out, const register_child_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _register_child_response__isset { - _register_child_response__isset() : err(false), app(false), parent_config(false), child_config(false) {} - bool err :1; - bool app :1; - bool parent_config :1; - bool child_config :1; +typedef struct _register_child_response__isset +{ + _register_child_response__isset() + : err(false), app(false), parent_config(false), child_config(false) + { + } + bool err : 1; + bool app : 1; + bool parent_config : 1; + bool child_config : 1; } _register_child_response__isset; -class register_child_response { - public: - - register_child_response(const register_child_response&); - register_child_response(register_child_response&&); - register_child_response& operator=(const register_child_response&); - register_child_response& operator=(register_child_response&&); - register_child_response() { - } +class register_child_response +{ +public: + register_child_response(const register_child_response &); + register_child_response(register_child_response &&); + register_child_response &operator=(const register_child_response &); + register_child_response &operator=(register_child_response &&); + register_child_response() {} - virtual ~register_child_response() throw(); - ::dsn::error_code err; - ::dsn::app_info app; - ::dsn::partition_configuration parent_config; - ::dsn::partition_configuration child_config; + virtual ~register_child_response() throw(); + ::dsn::error_code err; + ::dsn::app_info app; + ::dsn::partition_configuration parent_config; + ::dsn::partition_configuration child_config; - _register_child_response__isset __isset; + _register_child_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_app(const ::dsn::app_info& val); + void __set_app(const ::dsn::app_info &val); - void __set_parent_config(const ::dsn::partition_configuration& val); + void __set_parent_config(const ::dsn::partition_configuration &val); - void __set_child_config(const ::dsn::partition_configuration& val); + void __set_child_config(const ::dsn::partition_configuration &val); - bool operator == (const register_child_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(app == rhs.app)) - return false; - if (!(parent_config == rhs.parent_config)) - return false; - if (!(child_config == rhs.child_config)) - return false; - return true; - } - bool operator != (const register_child_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const register_child_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(app == rhs.app)) + return false; + if (!(parent_config == rhs.parent_config)) + return false; + if (!(child_config == rhs.child_config)) + return false; + return true; + } + bool operator!=(const register_child_response &rhs) const { return !(*this == rhs); } - bool operator < (const register_child_response & ) const; + bool operator<(const register_child_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(register_child_response &a, register_child_response &b); -inline std::ostream& operator<<(std::ostream& out, const register_child_response& obj) +inline std::ostream &operator<<(std::ostream &out, const register_child_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _bulk_load_metadata__isset { - _bulk_load_metadata__isset() : files(false), file_total_size(false) {} - bool files :1; - bool file_total_size :1; +typedef struct _bulk_load_metadata__isset +{ + _bulk_load_metadata__isset() : files(false), file_total_size(false) {} + bool files : 1; + bool file_total_size : 1; } _bulk_load_metadata__isset; -class bulk_load_metadata { - public: - - bulk_load_metadata(const bulk_load_metadata&); - bulk_load_metadata(bulk_load_metadata&&); - bulk_load_metadata& operator=(const bulk_load_metadata&); - bulk_load_metadata& operator=(bulk_load_metadata&&); - bulk_load_metadata() : file_total_size(0) { - } +class bulk_load_metadata +{ +public: + bulk_load_metadata(const bulk_load_metadata &); + bulk_load_metadata(bulk_load_metadata &&); + bulk_load_metadata &operator=(const bulk_load_metadata &); + bulk_load_metadata &operator=(bulk_load_metadata &&); + bulk_load_metadata() : file_total_size(0) {} - virtual ~bulk_load_metadata() throw(); - std::vector files; - int64_t file_total_size; + virtual ~bulk_load_metadata() throw(); + std::vector files; + int64_t file_total_size; - _bulk_load_metadata__isset __isset; + _bulk_load_metadata__isset __isset; - void __set_files(const std::vector & val); + void __set_files(const std::vector &val); - void __set_file_total_size(const int64_t val); + void __set_file_total_size(const int64_t val); - bool operator == (const bulk_load_metadata & rhs) const - { - if (!(files == rhs.files)) - return false; - if (!(file_total_size == rhs.file_total_size)) - return false; - return true; - } - bool operator != (const bulk_load_metadata &rhs) const { - return !(*this == rhs); - } + bool operator==(const bulk_load_metadata &rhs) const + { + if (!(files == rhs.files)) + return false; + if (!(file_total_size == rhs.file_total_size)) + return false; + return true; + } + bool operator!=(const bulk_load_metadata &rhs) const { return !(*this == rhs); } - bool operator < (const bulk_load_metadata & ) const; + bool operator<(const bulk_load_metadata &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(bulk_load_metadata &a, bulk_load_metadata &b); -inline std::ostream& operator<<(std::ostream& out, const bulk_load_metadata& obj) +inline std::ostream &operator<<(std::ostream &out, const bulk_load_metadata &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _start_bulk_load_request__isset { - _start_bulk_load_request__isset() : app_name(false), cluster_name(false), file_provider_type(false), remote_root_path(false) {} - bool app_name :1; - bool cluster_name :1; - bool file_provider_type :1; - bool remote_root_path :1; +typedef struct _start_bulk_load_request__isset +{ + _start_bulk_load_request__isset() + : app_name(false), cluster_name(false), file_provider_type(false), remote_root_path(false) + { + } + bool app_name : 1; + bool cluster_name : 1; + bool file_provider_type : 1; + bool remote_root_path : 1; } _start_bulk_load_request__isset; -class start_bulk_load_request { - public: - - start_bulk_load_request(const start_bulk_load_request&); - start_bulk_load_request(start_bulk_load_request&&); - start_bulk_load_request& operator=(const start_bulk_load_request&); - start_bulk_load_request& operator=(start_bulk_load_request&&); - start_bulk_load_request() : app_name(), cluster_name(), file_provider_type(), remote_root_path() { - } +class start_bulk_load_request +{ +public: + start_bulk_load_request(const start_bulk_load_request &); + start_bulk_load_request(start_bulk_load_request &&); + start_bulk_load_request &operator=(const start_bulk_load_request &); + start_bulk_load_request &operator=(start_bulk_load_request &&); + start_bulk_load_request() : app_name(), cluster_name(), file_provider_type(), remote_root_path() + { + } - virtual ~start_bulk_load_request() throw(); - std::string app_name; - std::string cluster_name; - std::string file_provider_type; - std::string remote_root_path; + virtual ~start_bulk_load_request() throw(); + std::string app_name; + std::string cluster_name; + std::string file_provider_type; + std::string remote_root_path; - _start_bulk_load_request__isset __isset; + _start_bulk_load_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - void __set_cluster_name(const std::string& val); + void __set_cluster_name(const std::string &val); - void __set_file_provider_type(const std::string& val); + void __set_file_provider_type(const std::string &val); - void __set_remote_root_path(const std::string& val); + void __set_remote_root_path(const std::string &val); - bool operator == (const start_bulk_load_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(cluster_name == rhs.cluster_name)) - return false; - if (!(file_provider_type == rhs.file_provider_type)) - return false; - if (!(remote_root_path == rhs.remote_root_path)) - return false; - return true; - } - bool operator != (const start_bulk_load_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const start_bulk_load_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(cluster_name == rhs.cluster_name)) + return false; + if (!(file_provider_type == rhs.file_provider_type)) + return false; + if (!(remote_root_path == rhs.remote_root_path)) + return false; + return true; + } + bool operator!=(const start_bulk_load_request &rhs) const { return !(*this == rhs); } - bool operator < (const start_bulk_load_request & ) const; + bool operator<(const start_bulk_load_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(start_bulk_load_request &a, start_bulk_load_request &b); -inline std::ostream& operator<<(std::ostream& out, const start_bulk_load_request& obj) +inline std::ostream &operator<<(std::ostream &out, const start_bulk_load_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _start_bulk_load_response__isset { - _start_bulk_load_response__isset() : err(false), hint_msg(false) {} - bool err :1; - bool hint_msg :1; +typedef struct _start_bulk_load_response__isset +{ + _start_bulk_load_response__isset() : err(false), hint_msg(false) {} + bool err : 1; + bool hint_msg : 1; } _start_bulk_load_response__isset; -class start_bulk_load_response { - public: - - start_bulk_load_response(const start_bulk_load_response&); - start_bulk_load_response(start_bulk_load_response&&); - start_bulk_load_response& operator=(const start_bulk_load_response&); - start_bulk_load_response& operator=(start_bulk_load_response&&); - start_bulk_load_response() : hint_msg() { - } +class start_bulk_load_response +{ +public: + start_bulk_load_response(const start_bulk_load_response &); + start_bulk_load_response(start_bulk_load_response &&); + start_bulk_load_response &operator=(const start_bulk_load_response &); + start_bulk_load_response &operator=(start_bulk_load_response &&); + start_bulk_load_response() : hint_msg() {} - virtual ~start_bulk_load_response() throw(); - ::dsn::error_code err; - std::string hint_msg; + virtual ~start_bulk_load_response() throw(); + ::dsn::error_code err; + std::string hint_msg; - _start_bulk_load_response__isset __isset; + _start_bulk_load_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_hint_msg(const std::string& val); + void __set_hint_msg(const std::string &val); - bool operator == (const start_bulk_load_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator != (const start_bulk_load_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const start_bulk_load_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator!=(const start_bulk_load_response &rhs) const { return !(*this == rhs); } - bool operator < (const start_bulk_load_response & ) const; + bool operator<(const start_bulk_load_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(start_bulk_load_response &a, start_bulk_load_response &b); -inline std::ostream& operator<<(std::ostream& out, const start_bulk_load_response& obj) +inline std::ostream &operator<<(std::ostream &out, const start_bulk_load_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _partition_bulk_load_state__isset { - _partition_bulk_load_state__isset() : download_progress(true), download_status(false), ingest_status(true), is_cleaned_up(true), is_paused(true) {} - bool download_progress :1; - bool download_status :1; - bool ingest_status :1; - bool is_cleaned_up :1; - bool is_paused :1; +typedef struct _partition_bulk_load_state__isset +{ + _partition_bulk_load_state__isset() + : download_progress(true), + download_status(false), + ingest_status(true), + is_cleaned_up(true), + is_paused(true) + { + } + bool download_progress : 1; + bool download_status : 1; + bool ingest_status : 1; + bool is_cleaned_up : 1; + bool is_paused : 1; } _partition_bulk_load_state__isset; -class partition_bulk_load_state { - public: - - partition_bulk_load_state(const partition_bulk_load_state&); - partition_bulk_load_state(partition_bulk_load_state&&); - partition_bulk_load_state& operator=(const partition_bulk_load_state&); - partition_bulk_load_state& operator=(partition_bulk_load_state&&); - partition_bulk_load_state() : download_progress(0), ingest_status((ingestion_status::type)0), is_cleaned_up(false), is_paused(false) { - ingest_status = (ingestion_status::type)0; - - } - - virtual ~partition_bulk_load_state() throw(); - int32_t download_progress; - ::dsn::error_code download_status; - ingestion_status::type ingest_status; - bool is_cleaned_up; - bool is_paused; - - _partition_bulk_load_state__isset __isset; - - void __set_download_progress(const int32_t val); - - void __set_download_status(const ::dsn::error_code& val); - - void __set_ingest_status(const ingestion_status::type val); - - void __set_is_cleaned_up(const bool val); - - void __set_is_paused(const bool val); - - bool operator == (const partition_bulk_load_state & rhs) const - { - if (__isset.download_progress != rhs.__isset.download_progress) - return false; - else if (__isset.download_progress && !(download_progress == rhs.download_progress)) - return false; - if (__isset.download_status != rhs.__isset.download_status) - return false; - else if (__isset.download_status && !(download_status == rhs.download_status)) - return false; - if (__isset.ingest_status != rhs.__isset.ingest_status) - return false; - else if (__isset.ingest_status && !(ingest_status == rhs.ingest_status)) - return false; - if (__isset.is_cleaned_up != rhs.__isset.is_cleaned_up) - return false; - else if (__isset.is_cleaned_up && !(is_cleaned_up == rhs.is_cleaned_up)) - return false; - if (__isset.is_paused != rhs.__isset.is_paused) - return false; - else if (__isset.is_paused && !(is_paused == rhs.is_paused)) - return false; - return true; - } - bool operator != (const partition_bulk_load_state &rhs) const { - return !(*this == rhs); - } - - bool operator < (const partition_bulk_load_state & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class partition_bulk_load_state +{ +public: + partition_bulk_load_state(const partition_bulk_load_state &); + partition_bulk_load_state(partition_bulk_load_state &&); + partition_bulk_load_state &operator=(const partition_bulk_load_state &); + partition_bulk_load_state &operator=(partition_bulk_load_state &&); + partition_bulk_load_state() + : download_progress(0), + ingest_status((ingestion_status::type)0), + is_cleaned_up(false), + is_paused(false) + { + ingest_status = (ingestion_status::type)0; + } + + virtual ~partition_bulk_load_state() throw(); + int32_t download_progress; + ::dsn::error_code download_status; + ingestion_status::type ingest_status; + bool is_cleaned_up; + bool is_paused; + + _partition_bulk_load_state__isset __isset; + + void __set_download_progress(const int32_t val); + + void __set_download_status(const ::dsn::error_code &val); + + void __set_ingest_status(const ingestion_status::type val); + + void __set_is_cleaned_up(const bool val); + + void __set_is_paused(const bool val); + + bool operator==(const partition_bulk_load_state &rhs) const + { + if (__isset.download_progress != rhs.__isset.download_progress) + return false; + else if (__isset.download_progress && !(download_progress == rhs.download_progress)) + return false; + if (__isset.download_status != rhs.__isset.download_status) + return false; + else if (__isset.download_status && !(download_status == rhs.download_status)) + return false; + if (__isset.ingest_status != rhs.__isset.ingest_status) + return false; + else if (__isset.ingest_status && !(ingest_status == rhs.ingest_status)) + return false; + if (__isset.is_cleaned_up != rhs.__isset.is_cleaned_up) + return false; + else if (__isset.is_cleaned_up && !(is_cleaned_up == rhs.is_cleaned_up)) + return false; + if (__isset.is_paused != rhs.__isset.is_paused) + return false; + else if (__isset.is_paused && !(is_paused == rhs.is_paused)) + return false; + return true; + } + bool operator!=(const partition_bulk_load_state &rhs) const { return !(*this == rhs); } + + bool operator<(const partition_bulk_load_state &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(partition_bulk_load_state &a, partition_bulk_load_state &b); -inline std::ostream& operator<<(std::ostream& out, const partition_bulk_load_state& obj) +inline std::ostream &operator<<(std::ostream &out, const partition_bulk_load_state &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _bulk_load_request__isset { - _bulk_load_request__isset() : pid(false), app_name(false), primary_addr(false), remote_provider_name(false), cluster_name(false), ballot(false), meta_bulk_load_status(false), query_bulk_load_metadata(false), remote_root_path(false) {} - bool pid :1; - bool app_name :1; - bool primary_addr :1; - bool remote_provider_name :1; - bool cluster_name :1; - bool ballot :1; - bool meta_bulk_load_status :1; - bool query_bulk_load_metadata :1; - bool remote_root_path :1; +typedef struct _bulk_load_request__isset +{ + _bulk_load_request__isset() + : pid(false), + app_name(false), + primary_addr(false), + remote_provider_name(false), + cluster_name(false), + ballot(false), + meta_bulk_load_status(false), + query_bulk_load_metadata(false), + remote_root_path(false) + { + } + bool pid : 1; + bool app_name : 1; + bool primary_addr : 1; + bool remote_provider_name : 1; + bool cluster_name : 1; + bool ballot : 1; + bool meta_bulk_load_status : 1; + bool query_bulk_load_metadata : 1; + bool remote_root_path : 1; } _bulk_load_request__isset; -class bulk_load_request { - public: - - bulk_load_request(const bulk_load_request&); - bulk_load_request(bulk_load_request&&); - bulk_load_request& operator=(const bulk_load_request&); - bulk_load_request& operator=(bulk_load_request&&); - bulk_load_request() : app_name(), remote_provider_name(), cluster_name(), ballot(0), meta_bulk_load_status((bulk_load_status::type)0), query_bulk_load_metadata(0), remote_root_path() { - } - - virtual ~bulk_load_request() throw(); - ::dsn::gpid pid; - std::string app_name; - ::dsn::rpc_address primary_addr; - std::string remote_provider_name; - std::string cluster_name; - int64_t ballot; - bulk_load_status::type meta_bulk_load_status; - bool query_bulk_load_metadata; - std::string remote_root_path; - - _bulk_load_request__isset __isset; - - void __set_pid(const ::dsn::gpid& val); - - void __set_app_name(const std::string& val); - - void __set_primary_addr(const ::dsn::rpc_address& val); - - void __set_remote_provider_name(const std::string& val); - - void __set_cluster_name(const std::string& val); - - void __set_ballot(const int64_t val); - - void __set_meta_bulk_load_status(const bulk_load_status::type val); - - void __set_query_bulk_load_metadata(const bool val); - - void __set_remote_root_path(const std::string& val); - - bool operator == (const bulk_load_request & rhs) const - { - if (!(pid == rhs.pid)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(primary_addr == rhs.primary_addr)) - return false; - if (!(remote_provider_name == rhs.remote_provider_name)) - return false; - if (!(cluster_name == rhs.cluster_name)) - return false; - if (!(ballot == rhs.ballot)) - return false; - if (!(meta_bulk_load_status == rhs.meta_bulk_load_status)) - return false; - if (!(query_bulk_load_metadata == rhs.query_bulk_load_metadata)) - return false; - if (!(remote_root_path == rhs.remote_root_path)) - return false; - return true; - } - bool operator != (const bulk_load_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const bulk_load_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class bulk_load_request +{ +public: + bulk_load_request(const bulk_load_request &); + bulk_load_request(bulk_load_request &&); + bulk_load_request &operator=(const bulk_load_request &); + bulk_load_request &operator=(bulk_load_request &&); + bulk_load_request() + : app_name(), + remote_provider_name(), + cluster_name(), + ballot(0), + meta_bulk_load_status((bulk_load_status::type)0), + query_bulk_load_metadata(0), + remote_root_path() + { + } + + virtual ~bulk_load_request() throw(); + ::dsn::gpid pid; + std::string app_name; + ::dsn::rpc_address primary_addr; + std::string remote_provider_name; + std::string cluster_name; + int64_t ballot; + bulk_load_status::type meta_bulk_load_status; + bool query_bulk_load_metadata; + std::string remote_root_path; + + _bulk_load_request__isset __isset; + + void __set_pid(const ::dsn::gpid &val); + + void __set_app_name(const std::string &val); + + void __set_primary_addr(const ::dsn::rpc_address &val); + + void __set_remote_provider_name(const std::string &val); + + void __set_cluster_name(const std::string &val); + + void __set_ballot(const int64_t val); + + void __set_meta_bulk_load_status(const bulk_load_status::type val); + + void __set_query_bulk_load_metadata(const bool val); + + void __set_remote_root_path(const std::string &val); + + bool operator==(const bulk_load_request &rhs) const + { + if (!(pid == rhs.pid)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(primary_addr == rhs.primary_addr)) + return false; + if (!(remote_provider_name == rhs.remote_provider_name)) + return false; + if (!(cluster_name == rhs.cluster_name)) + return false; + if (!(ballot == rhs.ballot)) + return false; + if (!(meta_bulk_load_status == rhs.meta_bulk_load_status)) + return false; + if (!(query_bulk_load_metadata == rhs.query_bulk_load_metadata)) + return false; + if (!(remote_root_path == rhs.remote_root_path)) + return false; + return true; + } + bool operator!=(const bulk_load_request &rhs) const { return !(*this == rhs); } + + bool operator<(const bulk_load_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(bulk_load_request &a, bulk_load_request &b); -inline std::ostream& operator<<(std::ostream& out, const bulk_load_request& obj) +inline std::ostream &operator<<(std::ostream &out, const bulk_load_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _bulk_load_response__isset { - _bulk_load_response__isset() : err(false), pid(false), app_name(false), primary_bulk_load_status(false), group_bulk_load_state(false), metadata(false), total_download_progress(false), is_group_ingestion_finished(false), is_group_bulk_load_context_cleaned_up(false), is_group_bulk_load_paused(false) {} - bool err :1; - bool pid :1; - bool app_name :1; - bool primary_bulk_load_status :1; - bool group_bulk_load_state :1; - bool metadata :1; - bool total_download_progress :1; - bool is_group_ingestion_finished :1; - bool is_group_bulk_load_context_cleaned_up :1; - bool is_group_bulk_load_paused :1; +typedef struct _bulk_load_response__isset +{ + _bulk_load_response__isset() + : err(false), + pid(false), + app_name(false), + primary_bulk_load_status(false), + group_bulk_load_state(false), + metadata(false), + total_download_progress(false), + is_group_ingestion_finished(false), + is_group_bulk_load_context_cleaned_up(false), + is_group_bulk_load_paused(false) + { + } + bool err : 1; + bool pid : 1; + bool app_name : 1; + bool primary_bulk_load_status : 1; + bool group_bulk_load_state : 1; + bool metadata : 1; + bool total_download_progress : 1; + bool is_group_ingestion_finished : 1; + bool is_group_bulk_load_context_cleaned_up : 1; + bool is_group_bulk_load_paused : 1; } _bulk_load_response__isset; -class bulk_load_response { - public: - - bulk_load_response(const bulk_load_response&); - bulk_load_response(bulk_load_response&&); - bulk_load_response& operator=(const bulk_load_response&); - bulk_load_response& operator=(bulk_load_response&&); - bulk_load_response() : app_name(), primary_bulk_load_status((bulk_load_status::type)0), total_download_progress(0), is_group_ingestion_finished(0), is_group_bulk_load_context_cleaned_up(0), is_group_bulk_load_paused(0) { - } - - virtual ~bulk_load_response() throw(); - ::dsn::error_code err; - ::dsn::gpid pid; - std::string app_name; - bulk_load_status::type primary_bulk_load_status; - std::map< ::dsn::rpc_address, partition_bulk_load_state> group_bulk_load_state; - bulk_load_metadata metadata; - int32_t total_download_progress; - bool is_group_ingestion_finished; - bool is_group_bulk_load_context_cleaned_up; - bool is_group_bulk_load_paused; - - _bulk_load_response__isset __isset; - - void __set_err(const ::dsn::error_code& val); - - void __set_pid(const ::dsn::gpid& val); - - void __set_app_name(const std::string& val); - - void __set_primary_bulk_load_status(const bulk_load_status::type val); - - void __set_group_bulk_load_state(const std::map< ::dsn::rpc_address, partition_bulk_load_state> & val); - - void __set_metadata(const bulk_load_metadata& val); - - void __set_total_download_progress(const int32_t val); - - void __set_is_group_ingestion_finished(const bool val); - - void __set_is_group_bulk_load_context_cleaned_up(const bool val); - - void __set_is_group_bulk_load_paused(const bool val); - - bool operator == (const bulk_load_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(pid == rhs.pid)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(primary_bulk_load_status == rhs.primary_bulk_load_status)) - return false; - if (!(group_bulk_load_state == rhs.group_bulk_load_state)) - return false; - if (__isset.metadata != rhs.__isset.metadata) - return false; - else if (__isset.metadata && !(metadata == rhs.metadata)) - return false; - if (__isset.total_download_progress != rhs.__isset.total_download_progress) - return false; - else if (__isset.total_download_progress && !(total_download_progress == rhs.total_download_progress)) - return false; - if (__isset.is_group_ingestion_finished != rhs.__isset.is_group_ingestion_finished) - return false; - else if (__isset.is_group_ingestion_finished && !(is_group_ingestion_finished == rhs.is_group_ingestion_finished)) - return false; - if (__isset.is_group_bulk_load_context_cleaned_up != rhs.__isset.is_group_bulk_load_context_cleaned_up) - return false; - else if (__isset.is_group_bulk_load_context_cleaned_up && !(is_group_bulk_load_context_cleaned_up == rhs.is_group_bulk_load_context_cleaned_up)) - return false; - if (__isset.is_group_bulk_load_paused != rhs.__isset.is_group_bulk_load_paused) - return false; - else if (__isset.is_group_bulk_load_paused && !(is_group_bulk_load_paused == rhs.is_group_bulk_load_paused)) - return false; - return true; - } - bool operator != (const bulk_load_response &rhs) const { - return !(*this == rhs); - } - - bool operator < (const bulk_load_response & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class bulk_load_response +{ +public: + bulk_load_response(const bulk_load_response &); + bulk_load_response(bulk_load_response &&); + bulk_load_response &operator=(const bulk_load_response &); + bulk_load_response &operator=(bulk_load_response &&); + bulk_load_response() + : app_name(), + primary_bulk_load_status((bulk_load_status::type)0), + total_download_progress(0), + is_group_ingestion_finished(0), + is_group_bulk_load_context_cleaned_up(0), + is_group_bulk_load_paused(0) + { + } + + virtual ~bulk_load_response() throw(); + ::dsn::error_code err; + ::dsn::gpid pid; + std::string app_name; + bulk_load_status::type primary_bulk_load_status; + std::map<::dsn::rpc_address, partition_bulk_load_state> group_bulk_load_state; + bulk_load_metadata metadata; + int32_t total_download_progress; + bool is_group_ingestion_finished; + bool is_group_bulk_load_context_cleaned_up; + bool is_group_bulk_load_paused; + + _bulk_load_response__isset __isset; + + void __set_err(const ::dsn::error_code &val); + + void __set_pid(const ::dsn::gpid &val); + + void __set_app_name(const std::string &val); + + void __set_primary_bulk_load_status(const bulk_load_status::type val); + + void + __set_group_bulk_load_state(const std::map<::dsn::rpc_address, partition_bulk_load_state> &val); + + void __set_metadata(const bulk_load_metadata &val); + + void __set_total_download_progress(const int32_t val); + + void __set_is_group_ingestion_finished(const bool val); + + void __set_is_group_bulk_load_context_cleaned_up(const bool val); + + void __set_is_group_bulk_load_paused(const bool val); + + bool operator==(const bulk_load_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(pid == rhs.pid)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(primary_bulk_load_status == rhs.primary_bulk_load_status)) + return false; + if (!(group_bulk_load_state == rhs.group_bulk_load_state)) + return false; + if (__isset.metadata != rhs.__isset.metadata) + return false; + else if (__isset.metadata && !(metadata == rhs.metadata)) + return false; + if (__isset.total_download_progress != rhs.__isset.total_download_progress) + return false; + else if (__isset.total_download_progress && + !(total_download_progress == rhs.total_download_progress)) + return false; + if (__isset.is_group_ingestion_finished != rhs.__isset.is_group_ingestion_finished) + return false; + else if (__isset.is_group_ingestion_finished && + !(is_group_ingestion_finished == rhs.is_group_ingestion_finished)) + return false; + if (__isset.is_group_bulk_load_context_cleaned_up != + rhs.__isset.is_group_bulk_load_context_cleaned_up) + return false; + else if (__isset.is_group_bulk_load_context_cleaned_up && + !(is_group_bulk_load_context_cleaned_up == + rhs.is_group_bulk_load_context_cleaned_up)) + return false; + if (__isset.is_group_bulk_load_paused != rhs.__isset.is_group_bulk_load_paused) + return false; + else if (__isset.is_group_bulk_load_paused && + !(is_group_bulk_load_paused == rhs.is_group_bulk_load_paused)) + return false; + return true; + } + bool operator!=(const bulk_load_response &rhs) const { return !(*this == rhs); } + + bool operator<(const bulk_load_response &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(bulk_load_response &a, bulk_load_response &b); -inline std::ostream& operator<<(std::ostream& out, const bulk_load_response& obj) +inline std::ostream &operator<<(std::ostream &out, const bulk_load_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _group_bulk_load_request__isset { - _group_bulk_load_request__isset() : app_name(false), target_address(false), config(false), provider_name(false), cluster_name(false), meta_bulk_load_status(false), remote_root_path(false) {} - bool app_name :1; - bool target_address :1; - bool config :1; - bool provider_name :1; - bool cluster_name :1; - bool meta_bulk_load_status :1; - bool remote_root_path :1; +typedef struct _group_bulk_load_request__isset +{ + _group_bulk_load_request__isset() + : app_name(false), + target_address(false), + config(false), + provider_name(false), + cluster_name(false), + meta_bulk_load_status(false), + remote_root_path(false) + { + } + bool app_name : 1; + bool target_address : 1; + bool config : 1; + bool provider_name : 1; + bool cluster_name : 1; + bool meta_bulk_load_status : 1; + bool remote_root_path : 1; } _group_bulk_load_request__isset; -class group_bulk_load_request { - public: - - group_bulk_load_request(const group_bulk_load_request&); - group_bulk_load_request(group_bulk_load_request&&); - group_bulk_load_request& operator=(const group_bulk_load_request&); - group_bulk_load_request& operator=(group_bulk_load_request&&); - group_bulk_load_request() : app_name(), provider_name(), cluster_name(), meta_bulk_load_status((bulk_load_status::type)0), remote_root_path() { - } - - virtual ~group_bulk_load_request() throw(); - std::string app_name; - ::dsn::rpc_address target_address; - replica_configuration config; - std::string provider_name; - std::string cluster_name; - bulk_load_status::type meta_bulk_load_status; - std::string remote_root_path; - - _group_bulk_load_request__isset __isset; - - void __set_app_name(const std::string& val); - - void __set_target_address(const ::dsn::rpc_address& val); - - void __set_config(const replica_configuration& val); - - void __set_provider_name(const std::string& val); - - void __set_cluster_name(const std::string& val); - - void __set_meta_bulk_load_status(const bulk_load_status::type val); - - void __set_remote_root_path(const std::string& val); - - bool operator == (const group_bulk_load_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(target_address == rhs.target_address)) - return false; - if (!(config == rhs.config)) - return false; - if (!(provider_name == rhs.provider_name)) - return false; - if (!(cluster_name == rhs.cluster_name)) - return false; - if (!(meta_bulk_load_status == rhs.meta_bulk_load_status)) - return false; - if (!(remote_root_path == rhs.remote_root_path)) - return false; - return true; - } - bool operator != (const group_bulk_load_request &rhs) const { - return !(*this == rhs); - } - - bool operator < (const group_bulk_load_request & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class group_bulk_load_request +{ +public: + group_bulk_load_request(const group_bulk_load_request &); + group_bulk_load_request(group_bulk_load_request &&); + group_bulk_load_request &operator=(const group_bulk_load_request &); + group_bulk_load_request &operator=(group_bulk_load_request &&); + group_bulk_load_request() + : app_name(), + provider_name(), + cluster_name(), + meta_bulk_load_status((bulk_load_status::type)0), + remote_root_path() + { + } + + virtual ~group_bulk_load_request() throw(); + std::string app_name; + ::dsn::rpc_address target_address; + replica_configuration config; + std::string provider_name; + std::string cluster_name; + bulk_load_status::type meta_bulk_load_status; + std::string remote_root_path; + + _group_bulk_load_request__isset __isset; + + void __set_app_name(const std::string &val); + + void __set_target_address(const ::dsn::rpc_address &val); + + void __set_config(const replica_configuration &val); + + void __set_provider_name(const std::string &val); + + void __set_cluster_name(const std::string &val); + + void __set_meta_bulk_load_status(const bulk_load_status::type val); + + void __set_remote_root_path(const std::string &val); + + bool operator==(const group_bulk_load_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(target_address == rhs.target_address)) + return false; + if (!(config == rhs.config)) + return false; + if (!(provider_name == rhs.provider_name)) + return false; + if (!(cluster_name == rhs.cluster_name)) + return false; + if (!(meta_bulk_load_status == rhs.meta_bulk_load_status)) + return false; + if (!(remote_root_path == rhs.remote_root_path)) + return false; + return true; + } + bool operator!=(const group_bulk_load_request &rhs) const { return !(*this == rhs); } + + bool operator<(const group_bulk_load_request &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(group_bulk_load_request &a, group_bulk_load_request &b); -inline std::ostream& operator<<(std::ostream& out, const group_bulk_load_request& obj) +inline std::ostream &operator<<(std::ostream &out, const group_bulk_load_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _group_bulk_load_response__isset { - _group_bulk_load_response__isset() : err(false), status(false), bulk_load_state(false) {} - bool err :1; - bool status :1; - bool bulk_load_state :1; +typedef struct _group_bulk_load_response__isset +{ + _group_bulk_load_response__isset() : err(false), status(false), bulk_load_state(false) {} + bool err : 1; + bool status : 1; + bool bulk_load_state : 1; } _group_bulk_load_response__isset; -class group_bulk_load_response { - public: - - group_bulk_load_response(const group_bulk_load_response&); - group_bulk_load_response(group_bulk_load_response&&); - group_bulk_load_response& operator=(const group_bulk_load_response&); - group_bulk_load_response& operator=(group_bulk_load_response&&); - group_bulk_load_response() : status((bulk_load_status::type)0) { - } +class group_bulk_load_response +{ +public: + group_bulk_load_response(const group_bulk_load_response &); + group_bulk_load_response(group_bulk_load_response &&); + group_bulk_load_response &operator=(const group_bulk_load_response &); + group_bulk_load_response &operator=(group_bulk_load_response &&); + group_bulk_load_response() : status((bulk_load_status::type)0) {} - virtual ~group_bulk_load_response() throw(); - ::dsn::error_code err; - bulk_load_status::type status; - partition_bulk_load_state bulk_load_state; + virtual ~group_bulk_load_response() throw(); + ::dsn::error_code err; + bulk_load_status::type status; + partition_bulk_load_state bulk_load_state; - _group_bulk_load_response__isset __isset; + _group_bulk_load_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_status(const bulk_load_status::type val); + void __set_status(const bulk_load_status::type val); - void __set_bulk_load_state(const partition_bulk_load_state& val); + void __set_bulk_load_state(const partition_bulk_load_state &val); - bool operator == (const group_bulk_load_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(status == rhs.status)) - return false; - if (!(bulk_load_state == rhs.bulk_load_state)) - return false; - return true; - } - bool operator != (const group_bulk_load_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const group_bulk_load_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(status == rhs.status)) + return false; + if (!(bulk_load_state == rhs.bulk_load_state)) + return false; + return true; + } + bool operator!=(const group_bulk_load_response &rhs) const { return !(*this == rhs); } - bool operator < (const group_bulk_load_response & ) const; + bool operator<(const group_bulk_load_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(group_bulk_load_response &a, group_bulk_load_response &b); -inline std::ostream& operator<<(std::ostream& out, const group_bulk_load_response& obj) +inline std::ostream &operator<<(std::ostream &out, const group_bulk_load_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ingestion_request__isset { - _ingestion_request__isset() : app_name(false), metadata(false) {} - bool app_name :1; - bool metadata :1; +typedef struct _ingestion_request__isset +{ + _ingestion_request__isset() : app_name(false), metadata(false) {} + bool app_name : 1; + bool metadata : 1; } _ingestion_request__isset; -class ingestion_request { - public: - - ingestion_request(const ingestion_request&); - ingestion_request(ingestion_request&&); - ingestion_request& operator=(const ingestion_request&); - ingestion_request& operator=(ingestion_request&&); - ingestion_request() : app_name() { - } +class ingestion_request +{ +public: + ingestion_request(const ingestion_request &); + ingestion_request(ingestion_request &&); + ingestion_request &operator=(const ingestion_request &); + ingestion_request &operator=(ingestion_request &&); + ingestion_request() : app_name() {} - virtual ~ingestion_request() throw(); - std::string app_name; - bulk_load_metadata metadata; + virtual ~ingestion_request() throw(); + std::string app_name; + bulk_load_metadata metadata; - _ingestion_request__isset __isset; + _ingestion_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - void __set_metadata(const bulk_load_metadata& val); + void __set_metadata(const bulk_load_metadata &val); - bool operator == (const ingestion_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(metadata == rhs.metadata)) - return false; - return true; - } - bool operator != (const ingestion_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const ingestion_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(metadata == rhs.metadata)) + return false; + return true; + } + bool operator!=(const ingestion_request &rhs) const { return !(*this == rhs); } - bool operator < (const ingestion_request & ) const; + bool operator<(const ingestion_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(ingestion_request &a, ingestion_request &b); -inline std::ostream& operator<<(std::ostream& out, const ingestion_request& obj) +inline std::ostream &operator<<(std::ostream &out, const ingestion_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _ingestion_response__isset { - _ingestion_response__isset() : err(false), rocksdb_error(false) {} - bool err :1; - bool rocksdb_error :1; +typedef struct _ingestion_response__isset +{ + _ingestion_response__isset() : err(false), rocksdb_error(false) {} + bool err : 1; + bool rocksdb_error : 1; } _ingestion_response__isset; -class ingestion_response { - public: - - ingestion_response(const ingestion_response&); - ingestion_response(ingestion_response&&); - ingestion_response& operator=(const ingestion_response&); - ingestion_response& operator=(ingestion_response&&); - ingestion_response() : rocksdb_error(0) { - } +class ingestion_response +{ +public: + ingestion_response(const ingestion_response &); + ingestion_response(ingestion_response &&); + ingestion_response &operator=(const ingestion_response &); + ingestion_response &operator=(ingestion_response &&); + ingestion_response() : rocksdb_error(0) {} - virtual ~ingestion_response() throw(); - ::dsn::error_code err; - int32_t rocksdb_error; + virtual ~ingestion_response() throw(); + ::dsn::error_code err; + int32_t rocksdb_error; - _ingestion_response__isset __isset; + _ingestion_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_rocksdb_error(const int32_t val); + void __set_rocksdb_error(const int32_t val); - bool operator == (const ingestion_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(rocksdb_error == rhs.rocksdb_error)) - return false; - return true; - } - bool operator != (const ingestion_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const ingestion_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(rocksdb_error == rhs.rocksdb_error)) + return false; + return true; + } + bool operator!=(const ingestion_response &rhs) const { return !(*this == rhs); } - bool operator < (const ingestion_response & ) const; + bool operator<(const ingestion_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(ingestion_response &a, ingestion_response &b); -inline std::ostream& operator<<(std::ostream& out, const ingestion_response& obj) +inline std::ostream &operator<<(std::ostream &out, const ingestion_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _control_bulk_load_request__isset { - _control_bulk_load_request__isset() : app_name(false), type(false) {} - bool app_name :1; - bool type :1; +typedef struct _control_bulk_load_request__isset +{ + _control_bulk_load_request__isset() : app_name(false), type(false) {} + bool app_name : 1; + bool type : 1; } _control_bulk_load_request__isset; -class control_bulk_load_request { - public: - - control_bulk_load_request(const control_bulk_load_request&); - control_bulk_load_request(control_bulk_load_request&&); - control_bulk_load_request& operator=(const control_bulk_load_request&); - control_bulk_load_request& operator=(control_bulk_load_request&&); - control_bulk_load_request() : app_name(), type((bulk_load_control_type::type)0) { - } +class control_bulk_load_request +{ +public: + control_bulk_load_request(const control_bulk_load_request &); + control_bulk_load_request(control_bulk_load_request &&); + control_bulk_load_request &operator=(const control_bulk_load_request &); + control_bulk_load_request &operator=(control_bulk_load_request &&); + control_bulk_load_request() : app_name(), type((bulk_load_control_type::type)0) {} - virtual ~control_bulk_load_request() throw(); - std::string app_name; - bulk_load_control_type::type type; + virtual ~control_bulk_load_request() throw(); + std::string app_name; + bulk_load_control_type::type type; - _control_bulk_load_request__isset __isset; + _control_bulk_load_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - void __set_type(const bulk_load_control_type::type val); + void __set_type(const bulk_load_control_type::type val); - bool operator == (const control_bulk_load_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - if (!(type == rhs.type)) - return false; - return true; - } - bool operator != (const control_bulk_load_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const control_bulk_load_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + if (!(type == rhs.type)) + return false; + return true; + } + bool operator!=(const control_bulk_load_request &rhs) const { return !(*this == rhs); } - bool operator < (const control_bulk_load_request & ) const; + bool operator<(const control_bulk_load_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(control_bulk_load_request &a, control_bulk_load_request &b); -inline std::ostream& operator<<(std::ostream& out, const control_bulk_load_request& obj) +inline std::ostream &operator<<(std::ostream &out, const control_bulk_load_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _control_bulk_load_response__isset { - _control_bulk_load_response__isset() : err(false), hint_msg(false) {} - bool err :1; - bool hint_msg :1; +typedef struct _control_bulk_load_response__isset +{ + _control_bulk_load_response__isset() : err(false), hint_msg(false) {} + bool err : 1; + bool hint_msg : 1; } _control_bulk_load_response__isset; -class control_bulk_load_response { - public: - - control_bulk_load_response(const control_bulk_load_response&); - control_bulk_load_response(control_bulk_load_response&&); - control_bulk_load_response& operator=(const control_bulk_load_response&); - control_bulk_load_response& operator=(control_bulk_load_response&&); - control_bulk_load_response() : hint_msg() { - } +class control_bulk_load_response +{ +public: + control_bulk_load_response(const control_bulk_load_response &); + control_bulk_load_response(control_bulk_load_response &&); + control_bulk_load_response &operator=(const control_bulk_load_response &); + control_bulk_load_response &operator=(control_bulk_load_response &&); + control_bulk_load_response() : hint_msg() {} - virtual ~control_bulk_load_response() throw(); - ::dsn::error_code err; - std::string hint_msg; + virtual ~control_bulk_load_response() throw(); + ::dsn::error_code err; + std::string hint_msg; - _control_bulk_load_response__isset __isset; + _control_bulk_load_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_hint_msg(const std::string& val); + void __set_hint_msg(const std::string &val); - bool operator == (const control_bulk_load_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (__isset.hint_msg != rhs.__isset.hint_msg) - return false; - else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator != (const control_bulk_load_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const control_bulk_load_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (__isset.hint_msg != rhs.__isset.hint_msg) + return false; + else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator!=(const control_bulk_load_response &rhs) const { return !(*this == rhs); } - bool operator < (const control_bulk_load_response & ) const; + bool operator<(const control_bulk_load_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(control_bulk_load_response &a, control_bulk_load_response &b); -inline std::ostream& operator<<(std::ostream& out, const control_bulk_load_response& obj) +inline std::ostream &operator<<(std::ostream &out, const control_bulk_load_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_bulk_load_request__isset { - _query_bulk_load_request__isset() : app_name(false) {} - bool app_name :1; +typedef struct _query_bulk_load_request__isset +{ + _query_bulk_load_request__isset() : app_name(false) {} + bool app_name : 1; } _query_bulk_load_request__isset; -class query_bulk_load_request { - public: - - query_bulk_load_request(const query_bulk_load_request&); - query_bulk_load_request(query_bulk_load_request&&); - query_bulk_load_request& operator=(const query_bulk_load_request&); - query_bulk_load_request& operator=(query_bulk_load_request&&); - query_bulk_load_request() : app_name() { - } +class query_bulk_load_request +{ +public: + query_bulk_load_request(const query_bulk_load_request &); + query_bulk_load_request(query_bulk_load_request &&); + query_bulk_load_request &operator=(const query_bulk_load_request &); + query_bulk_load_request &operator=(query_bulk_load_request &&); + query_bulk_load_request() : app_name() {} - virtual ~query_bulk_load_request() throw(); - std::string app_name; + virtual ~query_bulk_load_request() throw(); + std::string app_name; - _query_bulk_load_request__isset __isset; + _query_bulk_load_request__isset __isset; - void __set_app_name(const std::string& val); + void __set_app_name(const std::string &val); - bool operator == (const query_bulk_load_request & rhs) const - { - if (!(app_name == rhs.app_name)) - return false; - return true; - } - bool operator != (const query_bulk_load_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const query_bulk_load_request &rhs) const + { + if (!(app_name == rhs.app_name)) + return false; + return true; + } + bool operator!=(const query_bulk_load_request &rhs) const { return !(*this == rhs); } - bool operator < (const query_bulk_load_request & ) const; + bool operator<(const query_bulk_load_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(query_bulk_load_request &a, query_bulk_load_request &b); -inline std::ostream& operator<<(std::ostream& out, const query_bulk_load_request& obj) +inline std::ostream &operator<<(std::ostream &out, const query_bulk_load_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _query_bulk_load_response__isset { - _query_bulk_load_response__isset() : err(false), app_name(false), app_status(false), partitions_status(false), max_replica_count(false), bulk_load_states(false), hint_msg(false) {} - bool err :1; - bool app_name :1; - bool app_status :1; - bool partitions_status :1; - bool max_replica_count :1; - bool bulk_load_states :1; - bool hint_msg :1; +typedef struct _query_bulk_load_response__isset +{ + _query_bulk_load_response__isset() + : err(false), + app_name(false), + app_status(false), + partitions_status(false), + max_replica_count(false), + bulk_load_states(false), + hint_msg(false) + { + } + bool err : 1; + bool app_name : 1; + bool app_status : 1; + bool partitions_status : 1; + bool max_replica_count : 1; + bool bulk_load_states : 1; + bool hint_msg : 1; } _query_bulk_load_response__isset; -class query_bulk_load_response { - public: - - query_bulk_load_response(const query_bulk_load_response&); - query_bulk_load_response(query_bulk_load_response&&); - query_bulk_load_response& operator=(const query_bulk_load_response&); - query_bulk_load_response& operator=(query_bulk_load_response&&); - query_bulk_load_response() : app_name(), app_status((bulk_load_status::type)0), max_replica_count(0), hint_msg() { - } - - virtual ~query_bulk_load_response() throw(); - ::dsn::error_code err; - std::string app_name; - bulk_load_status::type app_status; - std::vector partitions_status; - int32_t max_replica_count; - std::vector > bulk_load_states; - std::string hint_msg; - - _query_bulk_load_response__isset __isset; - - void __set_err(const ::dsn::error_code& val); - - void __set_app_name(const std::string& val); - - void __set_app_status(const bulk_load_status::type val); - - void __set_partitions_status(const std::vector & val); - - void __set_max_replica_count(const int32_t val); - - void __set_bulk_load_states(const std::vector > & val); - - void __set_hint_msg(const std::string& val); - - bool operator == (const query_bulk_load_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (!(app_name == rhs.app_name)) - return false; - if (!(app_status == rhs.app_status)) - return false; - if (!(partitions_status == rhs.partitions_status)) - return false; - if (!(max_replica_count == rhs.max_replica_count)) - return false; - if (!(bulk_load_states == rhs.bulk_load_states)) - return false; - if (__isset.hint_msg != rhs.__isset.hint_msg) - return false; - else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) - return false; - return true; - } - bool operator != (const query_bulk_load_response &rhs) const { - return !(*this == rhs); - } - - bool operator < (const query_bulk_load_response & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; +class query_bulk_load_response +{ +public: + query_bulk_load_response(const query_bulk_load_response &); + query_bulk_load_response(query_bulk_load_response &&); + query_bulk_load_response &operator=(const query_bulk_load_response &); + query_bulk_load_response &operator=(query_bulk_load_response &&); + query_bulk_load_response() + : app_name(), app_status((bulk_load_status::type)0), max_replica_count(0), hint_msg() + { + } + + virtual ~query_bulk_load_response() throw(); + ::dsn::error_code err; + std::string app_name; + bulk_load_status::type app_status; + std::vector partitions_status; + int32_t max_replica_count; + std::vector> bulk_load_states; + std::string hint_msg; + + _query_bulk_load_response__isset __isset; + + void __set_err(const ::dsn::error_code &val); + + void __set_app_name(const std::string &val); + + void __set_app_status(const bulk_load_status::type val); + + void __set_partitions_status(const std::vector &val); + + void __set_max_replica_count(const int32_t val); + + void __set_bulk_load_states( + const std::vector> &val); + + void __set_hint_msg(const std::string &val); + + bool operator==(const query_bulk_load_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (!(app_name == rhs.app_name)) + return false; + if (!(app_status == rhs.app_status)) + return false; + if (!(partitions_status == rhs.partitions_status)) + return false; + if (!(max_replica_count == rhs.max_replica_count)) + return false; + if (!(bulk_load_states == rhs.bulk_load_states)) + return false; + if (__isset.hint_msg != rhs.__isset.hint_msg) + return false; + else if (__isset.hint_msg && !(hint_msg == rhs.hint_msg)) + return false; + return true; + } + bool operator!=(const query_bulk_load_response &rhs) const { return !(*this == rhs); } + + bool operator<(const query_bulk_load_response &) const; + + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; + + virtual void printTo(std::ostream &out) const; }; void swap(query_bulk_load_response &a, query_bulk_load_response &b); -inline std::ostream& operator<<(std::ostream& out, const query_bulk_load_response& obj) +inline std::ostream &operator<<(std::ostream &out, const query_bulk_load_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _detect_hotkey_request__isset { - _detect_hotkey_request__isset() : type(false), action(false), pid(false) {} - bool type :1; - bool action :1; - bool pid :1; +typedef struct _detect_hotkey_request__isset +{ + _detect_hotkey_request__isset() : type(false), action(false), pid(false) {} + bool type : 1; + bool action : 1; + bool pid : 1; } _detect_hotkey_request__isset; -class detect_hotkey_request { - public: - - detect_hotkey_request(const detect_hotkey_request&); - detect_hotkey_request(detect_hotkey_request&&); - detect_hotkey_request& operator=(const detect_hotkey_request&); - detect_hotkey_request& operator=(detect_hotkey_request&&); - detect_hotkey_request() : type((hotkey_type::type)0), action((detect_action::type)0) { - } +class detect_hotkey_request +{ +public: + detect_hotkey_request(const detect_hotkey_request &); + detect_hotkey_request(detect_hotkey_request &&); + detect_hotkey_request &operator=(const detect_hotkey_request &); + detect_hotkey_request &operator=(detect_hotkey_request &&); + detect_hotkey_request() : type((hotkey_type::type)0), action((detect_action::type)0) {} - virtual ~detect_hotkey_request() throw(); - hotkey_type::type type; - detect_action::type action; - ::dsn::gpid pid; + virtual ~detect_hotkey_request() throw(); + hotkey_type::type type; + detect_action::type action; + ::dsn::gpid pid; - _detect_hotkey_request__isset __isset; + _detect_hotkey_request__isset __isset; - void __set_type(const hotkey_type::type val); + void __set_type(const hotkey_type::type val); - void __set_action(const detect_action::type val); + void __set_action(const detect_action::type val); - void __set_pid(const ::dsn::gpid& val); + void __set_pid(const ::dsn::gpid &val); - bool operator == (const detect_hotkey_request & rhs) const - { - if (!(type == rhs.type)) - return false; - if (!(action == rhs.action)) - return false; - if (!(pid == rhs.pid)) - return false; - return true; - } - bool operator != (const detect_hotkey_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const detect_hotkey_request &rhs) const + { + if (!(type == rhs.type)) + return false; + if (!(action == rhs.action)) + return false; + if (!(pid == rhs.pid)) + return false; + return true; + } + bool operator!=(const detect_hotkey_request &rhs) const { return !(*this == rhs); } - bool operator < (const detect_hotkey_request & ) const; + bool operator<(const detect_hotkey_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(detect_hotkey_request &a, detect_hotkey_request &b); -inline std::ostream& operator<<(std::ostream& out, const detect_hotkey_request& obj) +inline std::ostream &operator<<(std::ostream &out, const detect_hotkey_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _detect_hotkey_response__isset { - _detect_hotkey_response__isset() : err(false), err_hint(false), hotkey_result(false) {} - bool err :1; - bool err_hint :1; - bool hotkey_result :1; +typedef struct _detect_hotkey_response__isset +{ + _detect_hotkey_response__isset() : err(false), err_hint(false), hotkey_result(false) {} + bool err : 1; + bool err_hint : 1; + bool hotkey_result : 1; } _detect_hotkey_response__isset; -class detect_hotkey_response { - public: - - detect_hotkey_response(const detect_hotkey_response&); - detect_hotkey_response(detect_hotkey_response&&); - detect_hotkey_response& operator=(const detect_hotkey_response&); - detect_hotkey_response& operator=(detect_hotkey_response&&); - detect_hotkey_response() : err_hint(), hotkey_result() { - } +class detect_hotkey_response +{ +public: + detect_hotkey_response(const detect_hotkey_response &); + detect_hotkey_response(detect_hotkey_response &&); + detect_hotkey_response &operator=(const detect_hotkey_response &); + detect_hotkey_response &operator=(detect_hotkey_response &&); + detect_hotkey_response() : err_hint(), hotkey_result() {} - virtual ~detect_hotkey_response() throw(); - ::dsn::error_code err; - std::string err_hint; - std::string hotkey_result; + virtual ~detect_hotkey_response() throw(); + ::dsn::error_code err; + std::string err_hint; + std::string hotkey_result; - _detect_hotkey_response__isset __isset; + _detect_hotkey_response__isset __isset; - void __set_err(const ::dsn::error_code& val); + void __set_err(const ::dsn::error_code &val); - void __set_err_hint(const std::string& val); + void __set_err_hint(const std::string &val); - void __set_hotkey_result(const std::string& val); + void __set_hotkey_result(const std::string &val); - bool operator == (const detect_hotkey_response & rhs) const - { - if (!(err == rhs.err)) - return false; - if (__isset.err_hint != rhs.__isset.err_hint) - return false; - else if (__isset.err_hint && !(err_hint == rhs.err_hint)) - return false; - if (__isset.hotkey_result != rhs.__isset.hotkey_result) - return false; - else if (__isset.hotkey_result && !(hotkey_result == rhs.hotkey_result)) - return false; - return true; - } - bool operator != (const detect_hotkey_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const detect_hotkey_response &rhs) const + { + if (!(err == rhs.err)) + return false; + if (__isset.err_hint != rhs.__isset.err_hint) + return false; + else if (__isset.err_hint && !(err_hint == rhs.err_hint)) + return false; + if (__isset.hotkey_result != rhs.__isset.hotkey_result) + return false; + else if (__isset.hotkey_result && !(hotkey_result == rhs.hotkey_result)) + return false; + return true; + } + bool operator!=(const detect_hotkey_response &rhs) const { return !(*this == rhs); } - bool operator < (const detect_hotkey_response & ) const; + bool operator<(const detect_hotkey_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(detect_hotkey_response &a, detect_hotkey_response &b); -inline std::ostream& operator<<(std::ostream& out, const detect_hotkey_response& obj) +inline std::ostream &operator<<(std::ostream &out, const detect_hotkey_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } - -}} // namespace +} +} // namespace #endif diff --git a/src/common/replication_types.cpp b/src/common/replication_types.cpp index fb1d18d015..dd31aed20d 100644 --- a/src/common/replication_types.cpp +++ b/src/common/replication_types.cpp @@ -11,17714 +11,18289 @@ #include -namespace dsn { namespace replication { - -int _kpartition_statusValues[] = { - partition_status::PS_INVALID, - partition_status::PS_INACTIVE, - partition_status::PS_ERROR, - partition_status::PS_PRIMARY, - partition_status::PS_SECONDARY, - partition_status::PS_POTENTIAL_SECONDARY, - partition_status::PS_PARTITION_SPLIT -}; -const char* _kpartition_statusNames[] = { - "PS_INVALID", - "PS_INACTIVE", - "PS_ERROR", - "PS_PRIMARY", - "PS_SECONDARY", - "PS_POTENTIAL_SECONDARY", - "PS_PARTITION_SPLIT" -}; -const std::map _partition_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(7, _kpartition_statusValues, _kpartition_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kread_semanticValues[] = { - read_semantic::ReadInvalid, - read_semantic::ReadLastUpdate, - read_semantic::ReadOutdated, - read_semantic::ReadSnapshot -}; -const char* _kread_semanticNames[] = { - "ReadInvalid", - "ReadLastUpdate", - "ReadOutdated", - "ReadSnapshot" -}; -const std::map _read_semantic_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kread_semanticValues, _kread_semanticNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); +namespace dsn { +namespace replication { + +int _kpartition_statusValues[] = {partition_status::PS_INVALID, + partition_status::PS_INACTIVE, + partition_status::PS_ERROR, + partition_status::PS_PRIMARY, + partition_status::PS_SECONDARY, + partition_status::PS_POTENTIAL_SECONDARY, + partition_status::PS_PARTITION_SPLIT}; +const char *_kpartition_statusNames[] = {"PS_INVALID", + "PS_INACTIVE", + "PS_ERROR", + "PS_PRIMARY", + "PS_SECONDARY", + "PS_POTENTIAL_SECONDARY", + "PS_PARTITION_SPLIT"}; +const std::map _partition_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(7, _kpartition_statusValues, _kpartition_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kread_semanticValues[] = {read_semantic::ReadInvalid, + read_semantic::ReadLastUpdate, + read_semantic::ReadOutdated, + read_semantic::ReadSnapshot}; +const char *_kread_semanticNames[] = { + "ReadInvalid", "ReadLastUpdate", "ReadOutdated", "ReadSnapshot"}; +const std::map _read_semantic_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(4, _kread_semanticValues, _kread_semanticNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); int _klearn_typeValues[] = { - learn_type::LT_INVALID, - learn_type::LT_CACHE, - learn_type::LT_APP, - learn_type::LT_LOG -}; -const char* _klearn_typeNames[] = { - "LT_INVALID", - "LT_CACHE", - "LT_APP", - "LT_LOG" -}; -const std::map _learn_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _klearn_typeValues, _klearn_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _klearner_statusValues[] = { - learner_status::LearningInvalid, - learner_status::LearningWithoutPrepare, - learner_status::LearningWithPrepareTransient, - learner_status::LearningWithPrepare, - learner_status::LearningSucceeded, - learner_status::LearningFailed -}; -const char* _klearner_statusNames[] = { - "LearningInvalid", - "LearningWithoutPrepare", - "LearningWithPrepareTransient", - "LearningWithPrepare", - "LearningSucceeded", - "LearningFailed" -}; -const std::map _learner_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _klearner_statusValues, _klearner_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _ksplit_statusValues[] = { - split_status::NOT_SPLIT, - split_status::SPLITTING, - split_status::PAUSING, - split_status::PAUSED, - split_status::CANCELING -}; -const char* _ksplit_statusNames[] = { - "NOT_SPLIT", - "SPLITTING", - "PAUSING", - "PAUSED", - "CANCELING" -}; -const std::map _split_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _ksplit_statusValues, _ksplit_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kconfig_typeValues[] = { - config_type::CT_INVALID, - config_type::CT_ASSIGN_PRIMARY, - config_type::CT_UPGRADE_TO_PRIMARY, - config_type::CT_ADD_SECONDARY, - config_type::CT_UPGRADE_TO_SECONDARY, - config_type::CT_DOWNGRADE_TO_SECONDARY, - config_type::CT_DOWNGRADE_TO_INACTIVE, - config_type::CT_REMOVE, - config_type::CT_ADD_SECONDARY_FOR_LB, - config_type::CT_PRIMARY_FORCE_UPDATE_BALLOT, - config_type::CT_DROP_PARTITION, - config_type::CT_REGISTER_CHILD -}; -const char* _kconfig_typeNames[] = { - "CT_INVALID", - "CT_ASSIGN_PRIMARY", - "CT_UPGRADE_TO_PRIMARY", - "CT_ADD_SECONDARY", - "CT_UPGRADE_TO_SECONDARY", - "CT_DOWNGRADE_TO_SECONDARY", - "CT_DOWNGRADE_TO_INACTIVE", - "CT_REMOVE", - "CT_ADD_SECONDARY_FOR_LB", - "CT_PRIMARY_FORCE_UPDATE_BALLOT", - "CT_DROP_PARTITION", - "CT_REGISTER_CHILD" -}; -const std::map _config_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(12, _kconfig_typeValues, _kconfig_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + learn_type::LT_INVALID, learn_type::LT_CACHE, learn_type::LT_APP, learn_type::LT_LOG}; +const char *_klearn_typeNames[] = {"LT_INVALID", "LT_CACHE", "LT_APP", "LT_LOG"}; +const std::map _learn_type_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(4, _klearn_typeValues, _klearn_typeNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _klearner_statusValues[] = {learner_status::LearningInvalid, + learner_status::LearningWithoutPrepare, + learner_status::LearningWithPrepareTransient, + learner_status::LearningWithPrepare, + learner_status::LearningSucceeded, + learner_status::LearningFailed}; +const char *_klearner_statusNames[] = {"LearningInvalid", + "LearningWithoutPrepare", + "LearningWithPrepareTransient", + "LearningWithPrepare", + "LearningSucceeded", + "LearningFailed"}; +const std::map _learner_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(6, _klearner_statusValues, _klearner_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _ksplit_statusValues[] = {split_status::NOT_SPLIT, + split_status::SPLITTING, + split_status::PAUSING, + split_status::PAUSED, + split_status::CANCELING}; +const char *_ksplit_statusNames[] = {"NOT_SPLIT", "SPLITTING", "PAUSING", "PAUSED", "CANCELING"}; +const std::map _split_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(5, _ksplit_statusValues, _ksplit_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kconfig_typeValues[] = {config_type::CT_INVALID, + config_type::CT_ASSIGN_PRIMARY, + config_type::CT_UPGRADE_TO_PRIMARY, + config_type::CT_ADD_SECONDARY, + config_type::CT_UPGRADE_TO_SECONDARY, + config_type::CT_DOWNGRADE_TO_SECONDARY, + config_type::CT_DOWNGRADE_TO_INACTIVE, + config_type::CT_REMOVE, + config_type::CT_ADD_SECONDARY_FOR_LB, + config_type::CT_PRIMARY_FORCE_UPDATE_BALLOT, + config_type::CT_DROP_PARTITION, + config_type::CT_REGISTER_CHILD}; +const char *_kconfig_typeNames[] = {"CT_INVALID", + "CT_ASSIGN_PRIMARY", + "CT_UPGRADE_TO_PRIMARY", + "CT_ADD_SECONDARY", + "CT_UPGRADE_TO_SECONDARY", + "CT_DOWNGRADE_TO_SECONDARY", + "CT_DOWNGRADE_TO_INACTIVE", + "CT_REMOVE", + "CT_ADD_SECONDARY_FOR_LB", + "CT_PRIMARY_FORCE_UPDATE_BALLOT", + "CT_DROP_PARTITION", + "CT_REGISTER_CHILD"}; +const std::map _config_type_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(12, _kconfig_typeValues, _kconfig_typeNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); int _knode_statusValues[] = { - node_status::NS_INVALID, - node_status::NS_ALIVE, - node_status::NS_UNALIVE -}; -const char* _knode_statusNames[] = { - "NS_INVALID", - "NS_ALIVE", - "NS_UNALIVE" -}; -const std::map _node_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _knode_statusValues, _knode_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kmeta_function_levelValues[] = { - meta_function_level::fl_stopped, - meta_function_level::fl_blind, - meta_function_level::fl_freezed, - meta_function_level::fl_steady, - meta_function_level::fl_lively, - meta_function_level::fl_invalid -}; -const char* _kmeta_function_levelNames[] = { - "fl_stopped", - "fl_blind", - "fl_freezed", - "fl_steady", - "fl_lively", - "fl_invalid" -}; -const std::map _meta_function_level_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _kmeta_function_levelValues, _kmeta_function_levelNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kbalancer_request_typeValues[] = { - balancer_request_type::move_primary, - balancer_request_type::copy_primary, - balancer_request_type::copy_secondary -}; -const char* _kbalancer_request_typeNames[] = { - "move_primary", - "copy_primary", - "copy_secondary" -}; -const std::map _balancer_request_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kbalancer_request_typeValues, _kbalancer_request_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kapp_env_operationValues[] = { - app_env_operation::APP_ENV_OP_INVALID, - app_env_operation::APP_ENV_OP_SET, - app_env_operation::APP_ENV_OP_DEL, - app_env_operation::APP_ENV_OP_CLEAR -}; -const char* _kapp_env_operationNames[] = { - "APP_ENV_OP_INVALID", - "APP_ENV_OP_SET", - "APP_ENV_OP_DEL", - "APP_ENV_OP_CLEAR" -}; -const std::map _app_env_operation_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kapp_env_operationValues, _kapp_env_operationNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kduplication_statusValues[] = { - duplication_status::DS_INIT, - duplication_status::DS_START, - duplication_status::DS_PAUSE, - duplication_status::DS_REMOVED -}; -const char* _kduplication_statusNames[] = { - "DS_INIT", - "DS_START", - "DS_PAUSE", - "DS_REMOVED" -}; -const std::map _duplication_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kduplication_statusValues, _kduplication_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kduplication_fail_modeValues[] = { - duplication_fail_mode::FAIL_SLOW, - duplication_fail_mode::FAIL_SKIP, - duplication_fail_mode::FAIL_FAST -}; -const char* _kduplication_fail_modeNames[] = { - "FAIL_SLOW", - "FAIL_SKIP", - "FAIL_FAST" -}; -const std::map _duplication_fail_mode_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kduplication_fail_modeValues, _kduplication_fail_modeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kbulk_load_statusValues[] = { - bulk_load_status::BLS_INVALID, - bulk_load_status::BLS_DOWNLOADING, - bulk_load_status::BLS_DOWNLOADED, - bulk_load_status::BLS_INGESTING, - bulk_load_status::BLS_SUCCEED, - bulk_load_status::BLS_FAILED, - bulk_load_status::BLS_PAUSING, - bulk_load_status::BLS_PAUSED, - bulk_load_status::BLS_CANCELED -}; -const char* _kbulk_load_statusNames[] = { - "BLS_INVALID", - "BLS_DOWNLOADING", - "BLS_DOWNLOADED", - "BLS_INGESTING", - "BLS_SUCCEED", - "BLS_FAILED", - "BLS_PAUSING", - "BLS_PAUSED", - "BLS_CANCELED" -}; -const std::map _bulk_load_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(9, _kbulk_load_statusValues, _kbulk_load_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kingestion_statusValues[] = { - ingestion_status::IS_INVALID, - ingestion_status::IS_RUNNING, - ingestion_status::IS_SUCCEED, - ingestion_status::IS_FAILED -}; -const char* _kingestion_statusNames[] = { - "IS_INVALID", - "IS_RUNNING", - "IS_SUCCEED", - "IS_FAILED" -}; -const std::map _ingestion_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kingestion_statusValues, _kingestion_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kbulk_load_control_typeValues[] = { - bulk_load_control_type::BLC_PAUSE, - bulk_load_control_type::BLC_RESTART, - bulk_load_control_type::BLC_CANCEL, - bulk_load_control_type::BLC_FORCE_CANCEL -}; -const char* _kbulk_load_control_typeNames[] = { - "BLC_PAUSE", - "BLC_RESTART", - "BLC_CANCEL", - "BLC_FORCE_CANCEL" -}; -const std::map _bulk_load_control_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kbulk_load_control_typeValues, _kbulk_load_control_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _khotkey_typeValues[] = { - hotkey_type::READ, - hotkey_type::WRITE -}; -const char* _khotkey_typeNames[] = { - "READ", - "WRITE" -}; -const std::map _hotkey_type_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _khotkey_typeValues, _khotkey_typeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kdetect_actionValues[] = { - detect_action::START, - detect_action::STOP, - detect_action::QUERY -}; -const char* _kdetect_actionNames[] = { - "START", - "STOP", - "QUERY" -}; -const std::map _detect_action_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kdetect_actionValues, _kdetect_actionNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kdisk_migration_statusValues[] = { - disk_migration_status::IDLE, - disk_migration_status::MOVING, - disk_migration_status::MOVED, - disk_migration_status::CLOSED -}; -const char* _kdisk_migration_statusNames[] = { - "IDLE", - "MOVING", - "MOVED", - "CLOSED" -}; -const std::map _disk_migration_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kdisk_migration_statusValues, _kdisk_migration_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - - -mutation_header::~mutation_header() throw() { -} - - -void mutation_header::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void mutation_header::__set_ballot(const int64_t val) { - this->ballot = val; -} - -void mutation_header::__set_decree(const int64_t val) { - this->decree = val; -} - -void mutation_header::__set_log_offset(const int64_t val) { - this->log_offset = val; -} - -void mutation_header::__set_last_committed_decree(const int64_t val) { - this->last_committed_decree = val; -} - -void mutation_header::__set_timestamp(const int64_t val) { - this->timestamp = val; -} - -uint32_t mutation_header::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->decree); - this->__isset.decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->log_offset); - this->__isset.log_offset = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->timestamp); - this->__isset.timestamp = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + node_status::NS_INVALID, node_status::NS_ALIVE, node_status::NS_UNALIVE}; +const char *_knode_statusNames[] = {"NS_INVALID", "NS_ALIVE", "NS_UNALIVE"}; +const std::map _node_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(3, _knode_statusValues, _knode_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kmeta_function_levelValues[] = {meta_function_level::fl_stopped, + meta_function_level::fl_blind, + meta_function_level::fl_freezed, + meta_function_level::fl_steady, + meta_function_level::fl_lively, + meta_function_level::fl_invalid}; +const char *_kmeta_function_levelNames[] = { + "fl_stopped", "fl_blind", "fl_freezed", "fl_steady", "fl_lively", "fl_invalid"}; +const std::map _meta_function_level_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(6, _kmeta_function_levelValues, _kmeta_function_levelNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kbalancer_request_typeValues[] = {balancer_request_type::move_primary, + balancer_request_type::copy_primary, + balancer_request_type::copy_secondary}; +const char *_kbalancer_request_typeNames[] = {"move_primary", "copy_primary", "copy_secondary"}; +const std::map _balancer_request_type_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(3, _kbalancer_request_typeValues, _kbalancer_request_typeNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kapp_env_operationValues[] = {app_env_operation::APP_ENV_OP_INVALID, + app_env_operation::APP_ENV_OP_SET, + app_env_operation::APP_ENV_OP_DEL, + app_env_operation::APP_ENV_OP_CLEAR}; +const char *_kapp_env_operationNames[] = { + "APP_ENV_OP_INVALID", "APP_ENV_OP_SET", "APP_ENV_OP_DEL", "APP_ENV_OP_CLEAR"}; +const std::map _app_env_operation_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(4, _kapp_env_operationValues, _kapp_env_operationNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kduplication_statusValues[] = {duplication_status::DS_INIT, + duplication_status::DS_START, + duplication_status::DS_PAUSE, + duplication_status::DS_REMOVED}; +const char *_kduplication_statusNames[] = {"DS_INIT", "DS_START", "DS_PAUSE", "DS_REMOVED"}; +const std::map _duplication_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(4, _kduplication_statusValues, _kduplication_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kduplication_fail_modeValues[] = {duplication_fail_mode::FAIL_SLOW, + duplication_fail_mode::FAIL_SKIP, + duplication_fail_mode::FAIL_FAST}; +const char *_kduplication_fail_modeNames[] = {"FAIL_SLOW", "FAIL_SKIP", "FAIL_FAST"}; +const std::map _duplication_fail_mode_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(3, _kduplication_fail_modeValues, _kduplication_fail_modeNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kbulk_load_statusValues[] = {bulk_load_status::BLS_INVALID, + bulk_load_status::BLS_DOWNLOADING, + bulk_load_status::BLS_DOWNLOADED, + bulk_load_status::BLS_INGESTING, + bulk_load_status::BLS_SUCCEED, + bulk_load_status::BLS_FAILED, + bulk_load_status::BLS_PAUSING, + bulk_load_status::BLS_PAUSED, + bulk_load_status::BLS_CANCELED}; +const char *_kbulk_load_statusNames[] = {"BLS_INVALID", + "BLS_DOWNLOADING", + "BLS_DOWNLOADED", + "BLS_INGESTING", + "BLS_SUCCEED", + "BLS_FAILED", + "BLS_PAUSING", + "BLS_PAUSED", + "BLS_CANCELED"}; +const std::map _bulk_load_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(9, _kbulk_load_statusValues, _kbulk_load_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kingestion_statusValues[] = {ingestion_status::IS_INVALID, + ingestion_status::IS_RUNNING, + ingestion_status::IS_SUCCEED, + ingestion_status::IS_FAILED}; +const char *_kingestion_statusNames[] = {"IS_INVALID", "IS_RUNNING", "IS_SUCCEED", "IS_FAILED"}; +const std::map _ingestion_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(4, _kingestion_statusValues, _kingestion_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kbulk_load_control_typeValues[] = {bulk_load_control_type::BLC_PAUSE, + bulk_load_control_type::BLC_RESTART, + bulk_load_control_type::BLC_CANCEL, + bulk_load_control_type::BLC_FORCE_CANCEL}; +const char *_kbulk_load_control_typeNames[] = { + "BLC_PAUSE", "BLC_RESTART", "BLC_CANCEL", "BLC_FORCE_CANCEL"}; +const std::map _bulk_load_control_type_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(4, + _kbulk_load_control_typeValues, + _kbulk_load_control_typeNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _khotkey_typeValues[] = {hotkey_type::READ, hotkey_type::WRITE}; +const char *_khotkey_typeNames[] = {"READ", "WRITE"}; +const std::map _hotkey_type_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(2, _khotkey_typeValues, _khotkey_typeNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kdetect_actionValues[] = {detect_action::START, detect_action::STOP, detect_action::QUERY}; +const char *_kdetect_actionNames[] = {"START", "STOP", "QUERY"}; +const std::map _detect_action_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(3, _kdetect_actionValues, _kdetect_actionNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kdisk_migration_statusValues[] = {disk_migration_status::IDLE, + disk_migration_status::MOVING, + disk_migration_status::MOVED, + disk_migration_status::CLOSED}; +const char *_kdisk_migration_statusNames[] = {"IDLE", "MOVING", "MOVED", "CLOSED"}; +const std::map _disk_migration_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(4, _kdisk_migration_statusValues, _kdisk_migration_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +mutation_header::~mutation_header() throw() {} + +void mutation_header::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void mutation_header::__set_ballot(const int64_t val) { this->ballot = val; } + +void mutation_header::__set_decree(const int64_t val) { this->decree = val; } + +void mutation_header::__set_log_offset(const int64_t val) { this->log_offset = val; } + +void mutation_header::__set_last_committed_decree(const int64_t val) +{ + this->last_committed_decree = val; +} + +void mutation_header::__set_timestamp(const int64_t val) { this->timestamp = val; } + +uint32_t mutation_header::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->decree); + this->__isset.decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->log_offset); + this->__isset.log_offset = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->timestamp); + this->__isset.timestamp = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t mutation_header::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("mutation_header"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("decree", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("log_offset", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->log_offset); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->timestamp); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(mutation_header &a, mutation_header &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.ballot, b.ballot); - swap(a.decree, b.decree); - swap(a.log_offset, b.log_offset); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.timestamp, b.timestamp); - swap(a.__isset, b.__isset); -} +uint32_t mutation_header::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("mutation_header"); -mutation_header::mutation_header(const mutation_header& other0) { - pid = other0.pid; - ballot = other0.ballot; - decree = other0.decree; - log_offset = other0.log_offset; - last_committed_decree = other0.last_committed_decree; - timestamp = other0.timestamp; - __isset = other0.__isset; -} -mutation_header::mutation_header( mutation_header&& other1) { - pid = std::move(other1.pid); - ballot = std::move(other1.ballot); - decree = std::move(other1.decree); - log_offset = std::move(other1.log_offset); - last_committed_decree = std::move(other1.last_committed_decree); - timestamp = std::move(other1.timestamp); - __isset = std::move(other1.__isset); -} -mutation_header& mutation_header::operator=(const mutation_header& other2) { - pid = other2.pid; - ballot = other2.ballot; - decree = other2.decree; - log_offset = other2.log_offset; - last_committed_decree = other2.last_committed_decree; - timestamp = other2.timestamp; - __isset = other2.__isset; - return *this; -} -mutation_header& mutation_header::operator=(mutation_header&& other3) { - pid = std::move(other3.pid); - ballot = std::move(other3.ballot); - decree = std::move(other3.decree); - log_offset = std::move(other3.log_offset); - last_committed_decree = std::move(other3.last_committed_decree); - timestamp = std::move(other3.timestamp); - __isset = std::move(other3.__isset); - return *this; -} -void mutation_header::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "mutation_header("; - out << "pid=" << to_string(pid); - out << ", " << "ballot=" << to_string(ballot); - out << ", " << "decree=" << to_string(decree); - out << ", " << "log_offset=" << to_string(log_offset); - out << ", " << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " << "timestamp=" << to_string(timestamp); - out << ")"; -} + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); -mutation_update::~mutation_update() throw() { -} + xfer += oprot->writeFieldBegin("decree", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->decree); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("log_offset", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->log_offset); + xfer += oprot->writeFieldEnd(); -void mutation_update::__set_code(const ::dsn::task_code& val) { - this->code = val; -} + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); -void mutation_update::__set_serialization_type(const int32_t val) { - this->serialization_type = val; -} + xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->timestamp); + xfer += oprot->writeFieldEnd(); -void mutation_update::__set_data(const ::dsn::blob& val) { - this->data = val; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(mutation_header &a, mutation_header &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.ballot, b.ballot); + swap(a.decree, b.decree); + swap(a.log_offset, b.log_offset); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.timestamp, b.timestamp); + swap(a.__isset, b.__isset); +} + +mutation_header::mutation_header(const mutation_header &other0) +{ + pid = other0.pid; + ballot = other0.ballot; + decree = other0.decree; + log_offset = other0.log_offset; + last_committed_decree = other0.last_committed_decree; + timestamp = other0.timestamp; + __isset = other0.__isset; +} +mutation_header::mutation_header(mutation_header &&other1) +{ + pid = std::move(other1.pid); + ballot = std::move(other1.ballot); + decree = std::move(other1.decree); + log_offset = std::move(other1.log_offset); + last_committed_decree = std::move(other1.last_committed_decree); + timestamp = std::move(other1.timestamp); + __isset = std::move(other1.__isset); +} +mutation_header &mutation_header::operator=(const mutation_header &other2) +{ + pid = other2.pid; + ballot = other2.ballot; + decree = other2.decree; + log_offset = other2.log_offset; + last_committed_decree = other2.last_committed_decree; + timestamp = other2.timestamp; + __isset = other2.__isset; + return *this; +} +mutation_header &mutation_header::operator=(mutation_header &&other3) +{ + pid = std::move(other3.pid); + ballot = std::move(other3.ballot); + decree = std::move(other3.decree); + log_offset = std::move(other3.log_offset); + last_committed_decree = std::move(other3.last_committed_decree); + timestamp = std::move(other3.timestamp); + __isset = std::move(other3.__isset); + return *this; +} +void mutation_header::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "mutation_header("; + out << "pid=" << to_string(pid); + out << ", " + << "ballot=" << to_string(ballot); + out << ", " + << "decree=" << to_string(decree); + out << ", " + << "log_offset=" << to_string(log_offset); + out << ", " + << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " + << "timestamp=" << to_string(timestamp); + out << ")"; +} + +mutation_update::~mutation_update() throw() {} + +void mutation_update::__set_code(const ::dsn::task_code &val) { this->code = val; } + +void mutation_update::__set_serialization_type(const int32_t val) +{ + this->serialization_type = val; +} + +void mutation_update::__set_data(const ::dsn::blob &val) { this->data = val; } + +void mutation_update::__set_start_time_ns(const int64_t val) +{ + this->start_time_ns = val; + __isset.start_time_ns = true; +} + +uint32_t mutation_update::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->code.read(iprot); + this->__isset.code = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->serialization_type); + this->__isset.serialization_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->data.read(iprot); + this->__isset.data = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->start_time_ns); + this->__isset.start_time_ns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void mutation_update::__set_start_time_ns(const int64_t val) { - this->start_time_ns = val; -__isset.start_time_ns = true; -} + xfer += iprot->readStructEnd(); -uint32_t mutation_update::read(::apache::thrift::protocol::TProtocol* iprot) { + return xfer; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t mutation_update::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("mutation_update"); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->code.write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("serialization_type", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->serialization_type); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("data", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->data.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->code.read(iprot); - this->__isset.code = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->serialization_type); - this->__isset.serialization_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->data.read(iprot); - this->__isset.data = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->start_time_ns); - this->__isset.start_time_ns = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + if (this->__isset.start_time_ns) { + xfer += oprot->writeFieldBegin("start_time_ns", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->start_time_ns); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(mutation_update &a, mutation_update &b) +{ + using ::std::swap; + swap(a.code, b.code); + swap(a.serialization_type, b.serialization_type); + swap(a.data, b.data); + swap(a.start_time_ns, b.start_time_ns); + swap(a.__isset, b.__isset); +} + +mutation_update::mutation_update(const mutation_update &other4) +{ + code = other4.code; + serialization_type = other4.serialization_type; + data = other4.data; + start_time_ns = other4.start_time_ns; + __isset = other4.__isset; +} +mutation_update::mutation_update(mutation_update &&other5) +{ + code = std::move(other5.code); + serialization_type = std::move(other5.serialization_type); + data = std::move(other5.data); + start_time_ns = std::move(other5.start_time_ns); + __isset = std::move(other5.__isset); +} +mutation_update &mutation_update::operator=(const mutation_update &other6) +{ + code = other6.code; + serialization_type = other6.serialization_type; + data = other6.data; + start_time_ns = other6.start_time_ns; + __isset = other6.__isset; + return *this; +} +mutation_update &mutation_update::operator=(mutation_update &&other7) +{ + code = std::move(other7.code); + serialization_type = std::move(other7.serialization_type); + data = std::move(other7.data); + start_time_ns = std::move(other7.start_time_ns); + __isset = std::move(other7.__isset); + return *this; +} +void mutation_update::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "mutation_update("; + out << "code=" << to_string(code); + out << ", " + << "serialization_type=" << to_string(serialization_type); + out << ", " + << "data=" << to_string(data); + out << ", " + << "start_time_ns="; + (__isset.start_time_ns ? (out << to_string(start_time_ns)) : (out << "")); + out << ")"; +} + +mutation_data::~mutation_data() throw() {} + +void mutation_data::__set_header(const mutation_header &val) { this->header = val; } + +void mutation_data::__set_updates(const std::vector &val) { this->updates = val; } + +uint32_t mutation_data::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->header.read(iprot); + this->__isset.header = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->updates.clear(); + uint32_t _size8; + ::apache::thrift::protocol::TType _etype11; + xfer += iprot->readListBegin(_etype11, _size8); + this->updates.resize(_size8); + uint32_t _i12; + for (_i12 = 0; _i12 < _size8; ++_i12) { + xfer += this->updates[_i12].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.updates = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t mutation_update::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("mutation_update"); - - xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->code.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t mutation_data::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("mutation_data"); - xfer += oprot->writeFieldBegin("serialization_type", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->serialization_type); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("data", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->data.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("header", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->header.write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.start_time_ns) { - xfer += oprot->writeFieldBegin("start_time_ns", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->start_time_ns); + xfer += oprot->writeFieldBegin("updates", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->updates.size())); + std::vector::const_iterator _iter13; + for (_iter13 = this->updates.begin(); _iter13 != this->updates.end(); ++_iter13) { + xfer += (*_iter13).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(mutation_update &a, mutation_update &b) { - using ::std::swap; - swap(a.code, b.code); - swap(a.serialization_type, b.serialization_type); - swap(a.data, b.data); - swap(a.start_time_ns, b.start_time_ns); - swap(a.__isset, b.__isset); +void swap(mutation_data &a, mutation_data &b) +{ + using ::std::swap; + swap(a.header, b.header); + swap(a.updates, b.updates); + swap(a.__isset, b.__isset); } -mutation_update::mutation_update(const mutation_update& other4) { - code = other4.code; - serialization_type = other4.serialization_type; - data = other4.data; - start_time_ns = other4.start_time_ns; - __isset = other4.__isset; +mutation_data::mutation_data(const mutation_data &other14) +{ + header = other14.header; + updates = other14.updates; + __isset = other14.__isset; } -mutation_update::mutation_update( mutation_update&& other5) { - code = std::move(other5.code); - serialization_type = std::move(other5.serialization_type); - data = std::move(other5.data); - start_time_ns = std::move(other5.start_time_ns); - __isset = std::move(other5.__isset); +mutation_data::mutation_data(mutation_data &&other15) +{ + header = std::move(other15.header); + updates = std::move(other15.updates); + __isset = std::move(other15.__isset); } -mutation_update& mutation_update::operator=(const mutation_update& other6) { - code = other6.code; - serialization_type = other6.serialization_type; - data = other6.data; - start_time_ns = other6.start_time_ns; - __isset = other6.__isset; - return *this; +mutation_data &mutation_data::operator=(const mutation_data &other16) +{ + header = other16.header; + updates = other16.updates; + __isset = other16.__isset; + return *this; } -mutation_update& mutation_update::operator=(mutation_update&& other7) { - code = std::move(other7.code); - serialization_type = std::move(other7.serialization_type); - data = std::move(other7.data); - start_time_ns = std::move(other7.start_time_ns); - __isset = std::move(other7.__isset); - return *this; +mutation_data &mutation_data::operator=(mutation_data &&other17) +{ + header = std::move(other17.header); + updates = std::move(other17.updates); + __isset = std::move(other17.__isset); + return *this; } -void mutation_update::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "mutation_update("; - out << "code=" << to_string(code); - out << ", " << "serialization_type=" << to_string(serialization_type); - out << ", " << "data=" << to_string(data); - out << ", " << "start_time_ns="; (__isset.start_time_ns ? (out << to_string(start_time_ns)) : (out << "")); - out << ")"; +void mutation_data::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "mutation_data("; + out << "header=" << to_string(header); + out << ", " + << "updates=" << to_string(updates); + out << ")"; } +replica_configuration::~replica_configuration() throw() {} -mutation_data::~mutation_data() throw() { -} +void replica_configuration::__set_pid(const ::dsn::gpid &val) { this->pid = val; } +void replica_configuration::__set_ballot(const int64_t val) { this->ballot = val; } -void mutation_data::__set_header(const mutation_header& val) { - this->header = val; -} +void replica_configuration::__set_primary(const ::dsn::rpc_address &val) { this->primary = val; } + +void replica_configuration::__set_status(const partition_status::type val) { this->status = val; } -void mutation_data::__set_updates(const std::vector & val) { - this->updates = val; +void replica_configuration::__set_learner_signature(const int64_t val) +{ + this->learner_signature = val; } -uint32_t mutation_data::read(::apache::thrift::protocol::TProtocol* iprot) { +void replica_configuration::__set_pop_all(const bool val) +{ + this->pop_all = val; + __isset.pop_all = true; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t replica_configuration::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->header.read(iprot); - this->__isset.header = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->updates.clear(); - uint32_t _size8; - ::apache::thrift::protocol::TType _etype11; - xfer += iprot->readListBegin(_etype11, _size8); - this->updates.resize(_size8); - uint32_t _i12; - for (_i12 = 0; _i12 < _size8; ++_i12) - { - xfer += this->updates[_i12].read(iprot); + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->primary.read(iprot); + this->__isset.primary = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast18; + xfer += iprot->readI32(ecast18); + this->status = (partition_status::type)ecast18; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->learner_signature); + this->__isset.learner_signature = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->pop_all); + this->__isset.pop_all = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.updates = true; - } else { - xfer += iprot->skip(ftype); + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t mutation_data::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("mutation_data"); +uint32_t replica_configuration::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_configuration"); - xfer += oprot->writeFieldBegin("header", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->header.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("updates", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->updates.size())); - std::vector ::const_iterator _iter13; - for (_iter13 = this->updates.begin(); _iter13 != this->updates.end(); ++_iter13) - { - xfer += (*_iter13).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("primary", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->primary.write(oprot); + xfer += oprot->writeFieldEnd(); -void swap(mutation_data &a, mutation_data &b) { - using ::std::swap; - swap(a.header, b.header); - swap(a.updates, b.updates); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); -mutation_data::mutation_data(const mutation_data& other14) { - header = other14.header; - updates = other14.updates; - __isset = other14.__isset; -} -mutation_data::mutation_data( mutation_data&& other15) { - header = std::move(other15.header); - updates = std::move(other15.updates); - __isset = std::move(other15.__isset); -} -mutation_data& mutation_data::operator=(const mutation_data& other16) { - header = other16.header; - updates = other16.updates; - __isset = other16.__isset; - return *this; -} -mutation_data& mutation_data::operator=(mutation_data&& other17) { - header = std::move(other17.header); - updates = std::move(other17.updates); - __isset = std::move(other17.__isset); - return *this; -} -void mutation_data::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "mutation_data("; - out << "header=" << to_string(header); - out << ", " << "updates=" << to_string(updates); - out << ")"; -} + xfer += oprot->writeFieldBegin("learner_signature", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->learner_signature); + xfer += oprot->writeFieldEnd(); + if (this->__isset.pop_all) { + xfer += oprot->writeFieldBegin("pop_all", ::apache::thrift::protocol::T_BOOL, 6); + xfer += oprot->writeBool(this->pop_all); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(replica_configuration &a, replica_configuration &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.ballot, b.ballot); + swap(a.primary, b.primary); + swap(a.status, b.status); + swap(a.learner_signature, b.learner_signature); + swap(a.pop_all, b.pop_all); + swap(a.__isset, b.__isset); +} + +replica_configuration::replica_configuration(const replica_configuration &other19) +{ + pid = other19.pid; + ballot = other19.ballot; + primary = other19.primary; + status = other19.status; + learner_signature = other19.learner_signature; + pop_all = other19.pop_all; + __isset = other19.__isset; +} +replica_configuration::replica_configuration(replica_configuration &&other20) +{ + pid = std::move(other20.pid); + ballot = std::move(other20.ballot); + primary = std::move(other20.primary); + status = std::move(other20.status); + learner_signature = std::move(other20.learner_signature); + pop_all = std::move(other20.pop_all); + __isset = std::move(other20.__isset); +} +replica_configuration &replica_configuration::operator=(const replica_configuration &other21) +{ + pid = other21.pid; + ballot = other21.ballot; + primary = other21.primary; + status = other21.status; + learner_signature = other21.learner_signature; + pop_all = other21.pop_all; + __isset = other21.__isset; + return *this; +} +replica_configuration &replica_configuration::operator=(replica_configuration &&other22) +{ + pid = std::move(other22.pid); + ballot = std::move(other22.ballot); + primary = std::move(other22.primary); + status = std::move(other22.status); + learner_signature = std::move(other22.learner_signature); + pop_all = std::move(other22.pop_all); + __isset = std::move(other22.__isset); + return *this; +} +void replica_configuration::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "replica_configuration("; + out << "pid=" << to_string(pid); + out << ", " + << "ballot=" << to_string(ballot); + out << ", " + << "primary=" << to_string(primary); + out << ", " + << "status=" << to_string(status); + out << ", " + << "learner_signature=" << to_string(learner_signature); + out << ", " + << "pop_all="; + (__isset.pop_all ? (out << to_string(pop_all)) : (out << "")); + out << ")"; +} + +prepare_msg::~prepare_msg() throw() {} + +void prepare_msg::__set_config(const replica_configuration &val) { this->config = val; } + +void prepare_msg::__set_mu(const mutation_data &val) { this->mu = val; } + +uint32_t prepare_msg::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->mu.read(iprot); + this->__isset.mu = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -replica_configuration::~replica_configuration() throw() { + xfer += iprot->readStructEnd(); + + return xfer; } +uint32_t prepare_msg::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("prepare_msg"); -void replica_configuration::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); -void replica_configuration::__set_ballot(const int64_t val) { - this->ballot = val; -} + xfer += oprot->writeFieldBegin("mu", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->mu.write(oprot); + xfer += oprot->writeFieldEnd(); -void replica_configuration::__set_primary(const ::dsn::rpc_address& val) { - this->primary = val; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void replica_configuration::__set_status(const partition_status::type val) { - this->status = val; +void swap(prepare_msg &a, prepare_msg &b) +{ + using ::std::swap; + swap(a.config, b.config); + swap(a.mu, b.mu); + swap(a.__isset, b.__isset); } -void replica_configuration::__set_learner_signature(const int64_t val) { - this->learner_signature = val; +prepare_msg::prepare_msg(const prepare_msg &other23) +{ + config = other23.config; + mu = other23.mu; + __isset = other23.__isset; } - -void replica_configuration::__set_pop_all(const bool val) { - this->pop_all = val; -__isset.pop_all = true; +prepare_msg::prepare_msg(prepare_msg &&other24) +{ + config = std::move(other24.config); + mu = std::move(other24.mu); + __isset = std::move(other24.__isset); +} +prepare_msg &prepare_msg::operator=(const prepare_msg &other25) +{ + config = other25.config; + mu = other25.mu; + __isset = other25.__isset; + return *this; +} +prepare_msg &prepare_msg::operator=(prepare_msg &&other26) +{ + config = std::move(other26.config); + mu = std::move(other26.mu); + __isset = std::move(other26.__isset); + return *this; +} +void prepare_msg::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "prepare_msg("; + out << "config=" << to_string(config); + out << ", " + << "mu=" << to_string(mu); + out << ")"; } -uint32_t replica_configuration::read(::apache::thrift::protocol::TProtocol* iprot) { +read_request_header::~read_request_header() throw() {} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +void read_request_header::__set_pid(const ::dsn::gpid &val) { this->pid = val; } - xfer += iprot->readStructBegin(fname); +void read_request_header::__set_code(const ::dsn::task_code &val) { this->code = val; } - using ::apache::thrift::protocol::TProtocolException; +void read_request_header::__set_semantic(const read_semantic::type val) { this->semantic = val; } +void read_request_header::__set_version_decree(const int64_t val) { this->version_decree = val; } - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->primary.read(iprot); - this->__isset.primary = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast18; - xfer += iprot->readI32(ecast18); - this->status = (partition_status::type)ecast18; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->learner_signature); - this->__isset.learner_signature = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->pop_all); - this->__isset.pop_all = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; +uint32_t read_request_header::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->code.read(iprot); + this->__isset.code = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast27; + xfer += iprot->readI32(ecast27); + this->semantic = (read_semantic::type)ecast27; + this->__isset.semantic = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->version_decree); + this->__isset.version_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t replica_configuration::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_configuration"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldBegin("primary", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->primary.write(oprot); - xfer += oprot->writeFieldEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); +uint32_t read_request_header::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("read_request_header"); - xfer += oprot->writeFieldBegin("learner_signature", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->learner_signature); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.pop_all) { - xfer += oprot->writeFieldBegin("pop_all", ::apache::thrift::protocol::T_BOOL, 6); - xfer += oprot->writeBool(this->pop_all); + xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->code.write(oprot); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} -void swap(replica_configuration &a, replica_configuration &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.ballot, b.ballot); - swap(a.primary, b.primary); - swap(a.status, b.status); - swap(a.learner_signature, b.learner_signature); - swap(a.pop_all, b.pop_all); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("semantic", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->semantic); + xfer += oprot->writeFieldEnd(); -replica_configuration::replica_configuration(const replica_configuration& other19) { - pid = other19.pid; - ballot = other19.ballot; - primary = other19.primary; - status = other19.status; - learner_signature = other19.learner_signature; - pop_all = other19.pop_all; - __isset = other19.__isset; -} -replica_configuration::replica_configuration( replica_configuration&& other20) { - pid = std::move(other20.pid); - ballot = std::move(other20.ballot); - primary = std::move(other20.primary); - status = std::move(other20.status); - learner_signature = std::move(other20.learner_signature); - pop_all = std::move(other20.pop_all); - __isset = std::move(other20.__isset); -} -replica_configuration& replica_configuration::operator=(const replica_configuration& other21) { - pid = other21.pid; - ballot = other21.ballot; - primary = other21.primary; - status = other21.status; - learner_signature = other21.learner_signature; - pop_all = other21.pop_all; - __isset = other21.__isset; - return *this; -} -replica_configuration& replica_configuration::operator=(replica_configuration&& other22) { - pid = std::move(other22.pid); - ballot = std::move(other22.ballot); - primary = std::move(other22.primary); - status = std::move(other22.status); - learner_signature = std::move(other22.learner_signature); - pop_all = std::move(other22.pop_all); - __isset = std::move(other22.__isset); - return *this; -} -void replica_configuration::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "replica_configuration("; - out << "pid=" << to_string(pid); - out << ", " << "ballot=" << to_string(ballot); - out << ", " << "primary=" << to_string(primary); - out << ", " << "status=" << to_string(status); - out << ", " << "learner_signature=" << to_string(learner_signature); - out << ", " << "pop_all="; (__isset.pop_all ? (out << to_string(pop_all)) : (out << "")); - out << ")"; -} + xfer += oprot->writeFieldBegin("version_decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->version_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(read_request_header &a, read_request_header &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.code, b.code); + swap(a.semantic, b.semantic); + swap(a.version_decree, b.version_decree); + swap(a.__isset, b.__isset); +} + +read_request_header::read_request_header(const read_request_header &other28) +{ + pid = other28.pid; + code = other28.code; + semantic = other28.semantic; + version_decree = other28.version_decree; + __isset = other28.__isset; +} +read_request_header::read_request_header(read_request_header &&other29) +{ + pid = std::move(other29.pid); + code = std::move(other29.code); + semantic = std::move(other29.semantic); + version_decree = std::move(other29.version_decree); + __isset = std::move(other29.__isset); +} +read_request_header &read_request_header::operator=(const read_request_header &other30) +{ + pid = other30.pid; + code = other30.code; + semantic = other30.semantic; + version_decree = other30.version_decree; + __isset = other30.__isset; + return *this; +} +read_request_header &read_request_header::operator=(read_request_header &&other31) +{ + pid = std::move(other31.pid); + code = std::move(other31.code); + semantic = std::move(other31.semantic); + version_decree = std::move(other31.version_decree); + __isset = std::move(other31.__isset); + return *this; +} +void read_request_header::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "read_request_header("; + out << "pid=" << to_string(pid); + out << ", " + << "code=" << to_string(code); + out << ", " + << "semantic=" << to_string(semantic); + out << ", " + << "version_decree=" << to_string(version_decree); + out << ")"; +} + +write_request_header::~write_request_header() throw() {} + +void write_request_header::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void write_request_header::__set_code(const ::dsn::task_code &val) { this->code = val; } + +uint32_t write_request_header::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->code.read(iprot); + this->__isset.code = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -prepare_msg::~prepare_msg() throw() { -} - - -void prepare_msg::__set_config(const replica_configuration& val) { - this->config = val; + return xfer; } -void prepare_msg::__set_mu(const mutation_data& val) { - this->mu = val; -} +uint32_t write_request_header::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("write_request_header"); -uint32_t prepare_msg::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->code.write(oprot); + xfer += oprot->writeFieldEnd(); - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->mu.read(iprot); - this->__isset.mu = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(write_request_header &a, write_request_header &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.code, b.code); + swap(a.__isset, b.__isset); +} + +write_request_header::write_request_header(const write_request_header &other32) +{ + pid = other32.pid; + code = other32.code; + __isset = other32.__isset; +} +write_request_header::write_request_header(write_request_header &&other33) +{ + pid = std::move(other33.pid); + code = std::move(other33.code); + __isset = std::move(other33.__isset); +} +write_request_header &write_request_header::operator=(const write_request_header &other34) +{ + pid = other34.pid; + code = other34.code; + __isset = other34.__isset; + return *this; +} +write_request_header &write_request_header::operator=(write_request_header &&other35) +{ + pid = std::move(other35.pid); + code = std::move(other35.code); + __isset = std::move(other35.__isset); + return *this; +} +void write_request_header::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "write_request_header("; + out << "pid=" << to_string(pid); + out << ", " + << "code=" << to_string(code); + out << ")"; +} + +rw_response_header::~rw_response_header() throw() {} + +void rw_response_header::__set_err(const ::dsn::error_code &val) { this->err = val; } + +uint32_t rw_response_header::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t prepare_msg::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("prepare_msg"); - - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t rw_response_header::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("rw_response_header"); - xfer += oprot->writeFieldBegin("mu", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->mu.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(prepare_msg &a, prepare_msg &b) { - using ::std::swap; - swap(a.config, b.config); - swap(a.mu, b.mu); - swap(a.__isset, b.__isset); +void swap(rw_response_header &a, rw_response_header &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); } -prepare_msg::prepare_msg(const prepare_msg& other23) { - config = other23.config; - mu = other23.mu; - __isset = other23.__isset; +rw_response_header::rw_response_header(const rw_response_header &other36) +{ + err = other36.err; + __isset = other36.__isset; } -prepare_msg::prepare_msg( prepare_msg&& other24) { - config = std::move(other24.config); - mu = std::move(other24.mu); - __isset = std::move(other24.__isset); +rw_response_header::rw_response_header(rw_response_header &&other37) +{ + err = std::move(other37.err); + __isset = std::move(other37.__isset); } -prepare_msg& prepare_msg::operator=(const prepare_msg& other25) { - config = other25.config; - mu = other25.mu; - __isset = other25.__isset; - return *this; +rw_response_header &rw_response_header::operator=(const rw_response_header &other38) +{ + err = other38.err; + __isset = other38.__isset; + return *this; } -prepare_msg& prepare_msg::operator=(prepare_msg&& other26) { - config = std::move(other26.config); - mu = std::move(other26.mu); - __isset = std::move(other26.__isset); - return *this; +rw_response_header &rw_response_header::operator=(rw_response_header &&other39) +{ + err = std::move(other39.err); + __isset = std::move(other39.__isset); + return *this; } -void prepare_msg::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "prepare_msg("; - out << "config=" << to_string(config); - out << ", " << "mu=" << to_string(mu); - out << ")"; +void rw_response_header::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "rw_response_header("; + out << "err=" << to_string(err); + out << ")"; } +prepare_ack::~prepare_ack() throw() {} -read_request_header::~read_request_header() throw() { -} +void prepare_ack::__set_pid(const ::dsn::gpid &val) { this->pid = val; } +void prepare_ack::__set_err(const ::dsn::error_code &val) { this->err = val; } -void read_request_header::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} +void prepare_ack::__set_ballot(const int64_t val) { this->ballot = val; } -void read_request_header::__set_code(const ::dsn::task_code& val) { - this->code = val; -} +void prepare_ack::__set_decree(const int64_t val) { this->decree = val; } -void read_request_header::__set_semantic(const read_semantic::type val) { - this->semantic = val; +void prepare_ack::__set_last_committed_decree_in_app(const int64_t val) +{ + this->last_committed_decree_in_app = val; } -void read_request_header::__set_version_decree(const int64_t val) { - this->version_decree = val; +void prepare_ack::__set_last_committed_decree_in_prepare_list(const int64_t val) +{ + this->last_committed_decree_in_prepare_list = val; } -uint32_t read_request_header::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t prepare_ack::read(::apache::thrift::protocol::TProtocol *iprot) +{ - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->code.read(iprot); - this->__isset.code = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast27; - xfer += iprot->readI32(ecast27); - this->semantic = (read_semantic::type)ecast27; - this->__isset.semantic = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->version_decree); - this->__isset.version_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->decree); + this->__isset.decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_app); + this->__isset.last_committed_decree_in_app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); + this->__isset.last_committed_decree_in_prepare_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t read_request_header::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("read_request_header"); +uint32_t prepare_ack::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("prepare_ack"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->code.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("semantic", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->semantic); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("version_decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->version_decree); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin( + "last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->last_committed_decree_in_app); + xfer += oprot->writeFieldEnd(); -void swap(read_request_header &a, read_request_header &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.code, b.code); - swap(a.semantic, b.semantic); - swap(a.version_decree, b.version_decree); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin( + "last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); + xfer += oprot->writeFieldEnd(); -read_request_header::read_request_header(const read_request_header& other28) { - pid = other28.pid; - code = other28.code; - semantic = other28.semantic; - version_decree = other28.version_decree; - __isset = other28.__isset; -} -read_request_header::read_request_header( read_request_header&& other29) { - pid = std::move(other29.pid); - code = std::move(other29.code); - semantic = std::move(other29.semantic); - version_decree = std::move(other29.version_decree); - __isset = std::move(other29.__isset); -} -read_request_header& read_request_header::operator=(const read_request_header& other30) { - pid = other30.pid; - code = other30.code; - semantic = other30.semantic; - version_decree = other30.version_decree; - __isset = other30.__isset; - return *this; -} -read_request_header& read_request_header::operator=(read_request_header&& other31) { - pid = std::move(other31.pid); - code = std::move(other31.code); - semantic = std::move(other31.semantic); - version_decree = std::move(other31.version_decree); - __isset = std::move(other31.__isset); - return *this; -} -void read_request_header::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "read_request_header("; - out << "pid=" << to_string(pid); - out << ", " << "code=" << to_string(code); - out << ", " << "semantic=" << to_string(semantic); - out << ", " << "version_decree=" << to_string(version_decree); - out << ")"; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(prepare_ack &a, prepare_ack &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.err, b.err); + swap(a.ballot, b.ballot); + swap(a.decree, b.decree); + swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); + swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); + swap(a.__isset, b.__isset); +} + +prepare_ack::prepare_ack(const prepare_ack &other40) +{ + pid = other40.pid; + err = other40.err; + ballot = other40.ballot; + decree = other40.decree; + last_committed_decree_in_app = other40.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other40.last_committed_decree_in_prepare_list; + __isset = other40.__isset; +} +prepare_ack::prepare_ack(prepare_ack &&other41) +{ + pid = std::move(other41.pid); + err = std::move(other41.err); + ballot = std::move(other41.ballot); + decree = std::move(other41.decree); + last_committed_decree_in_app = std::move(other41.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = + std::move(other41.last_committed_decree_in_prepare_list); + __isset = std::move(other41.__isset); +} +prepare_ack &prepare_ack::operator=(const prepare_ack &other42) +{ + pid = other42.pid; + err = other42.err; + ballot = other42.ballot; + decree = other42.decree; + last_committed_decree_in_app = other42.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other42.last_committed_decree_in_prepare_list; + __isset = other42.__isset; + return *this; +} +prepare_ack &prepare_ack::operator=(prepare_ack &&other43) +{ + pid = std::move(other43.pid); + err = std::move(other43.err); + ballot = std::move(other43.ballot); + decree = std::move(other43.decree); + last_committed_decree_in_app = std::move(other43.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = + std::move(other43.last_committed_decree_in_prepare_list); + __isset = std::move(other43.__isset); + return *this; +} +void prepare_ack::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "prepare_ack("; + out << "pid=" << to_string(pid); + out << ", " + << "err=" << to_string(err); + out << ", " + << "ballot=" << to_string(ballot); + out << ", " + << "decree=" << to_string(decree); + out << ", " + << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); + out << ", " + << "last_committed_decree_in_prepare_list=" + << to_string(last_committed_decree_in_prepare_list); + out << ")"; +} + +learn_state::~learn_state() throw() {} + +void learn_state::__set_from_decree_excluded(const int64_t val) +{ + this->from_decree_excluded = val; +} + +void learn_state::__set_to_decree_included(const int64_t val) { this->to_decree_included = val; } + +void learn_state::__set_meta(const ::dsn::blob &val) { this->meta = val; } + +void learn_state::__set_files(const std::vector &val) { this->files = val; } + +void learn_state::__set_learn_start_decree(const int64_t val) +{ + this->learn_start_decree = val; + __isset.learn_start_decree = true; +} + +uint32_t learn_state::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->from_decree_excluded); + this->__isset.from_decree_excluded = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->to_decree_included); + this->__isset.to_decree_included = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->meta.read(iprot); + this->__isset.meta = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->files.clear(); + uint32_t _size44; + ::apache::thrift::protocol::TType _etype47; + xfer += iprot->readListBegin(_etype47, _size44); + this->files.resize(_size44); + uint32_t _i48; + for (_i48 = 0; _i48 < _size44; ++_i48) { + xfer += iprot->readString(this->files[_i48]); + } + xfer += iprot->readListEnd(); + } + this->__isset.files = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->learn_start_decree); + this->__isset.learn_start_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -write_request_header::~write_request_header() throw() { + return xfer; } +uint32_t learn_state::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("learn_state"); -void write_request_header::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} + xfer += oprot->writeFieldBegin("from_decree_excluded", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->from_decree_excluded); + xfer += oprot->writeFieldEnd(); -void write_request_header::__set_code(const ::dsn::task_code& val) { - this->code = val; -} + xfer += oprot->writeFieldBegin("to_decree_included", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->to_decree_included); + xfer += oprot->writeFieldEnd(); -uint32_t write_request_header::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldBegin("meta", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->meta.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, + static_cast(this->files.size())); + std::vector::const_iterator _iter49; + for (_iter49 = this->files.begin(); _iter49 != this->files.end(); ++_iter49) { + xfer += oprot->writeString((*_iter49)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + if (this->__isset.learn_start_decree) { + xfer += oprot->writeFieldBegin("learn_start_decree", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->learn_start_decree); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(learn_state &a, learn_state &b) +{ + using ::std::swap; + swap(a.from_decree_excluded, b.from_decree_excluded); + swap(a.to_decree_included, b.to_decree_included); + swap(a.meta, b.meta); + swap(a.files, b.files); + swap(a.learn_start_decree, b.learn_start_decree); + swap(a.__isset, b.__isset); +} + +learn_state::learn_state(const learn_state &other50) +{ + from_decree_excluded = other50.from_decree_excluded; + to_decree_included = other50.to_decree_included; + meta = other50.meta; + files = other50.files; + learn_start_decree = other50.learn_start_decree; + __isset = other50.__isset; +} +learn_state::learn_state(learn_state &&other51) +{ + from_decree_excluded = std::move(other51.from_decree_excluded); + to_decree_included = std::move(other51.to_decree_included); + meta = std::move(other51.meta); + files = std::move(other51.files); + learn_start_decree = std::move(other51.learn_start_decree); + __isset = std::move(other51.__isset); +} +learn_state &learn_state::operator=(const learn_state &other52) +{ + from_decree_excluded = other52.from_decree_excluded; + to_decree_included = other52.to_decree_included; + meta = other52.meta; + files = other52.files; + learn_start_decree = other52.learn_start_decree; + __isset = other52.__isset; + return *this; +} +learn_state &learn_state::operator=(learn_state &&other53) +{ + from_decree_excluded = std::move(other53.from_decree_excluded); + to_decree_included = std::move(other53.to_decree_included); + meta = std::move(other53.meta); + files = std::move(other53.files); + learn_start_decree = std::move(other53.learn_start_decree); + __isset = std::move(other53.__isset); + return *this; +} +void learn_state::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "learn_state("; + out << "from_decree_excluded=" << to_string(from_decree_excluded); + out << ", " + << "to_decree_included=" << to_string(to_decree_included); + out << ", " + << "meta=" << to_string(meta); + out << ", " + << "files=" << to_string(files); + out << ", " + << "learn_start_decree="; + (__isset.learn_start_decree ? (out << to_string(learn_start_decree)) : (out << "")); + out << ")"; +} + +learn_request::~learn_request() throw() {} + +void learn_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void learn_request::__set_learner(const ::dsn::rpc_address &val) { this->learner = val; } + +void learn_request::__set_signature(const int64_t val) { this->signature = val; } + +void learn_request::__set_last_committed_decree_in_app(const int64_t val) +{ + this->last_committed_decree_in_app = val; +} + +void learn_request::__set_last_committed_decree_in_prepare_list(const int64_t val) +{ + this->last_committed_decree_in_prepare_list = val; +} + +void learn_request::__set_app_specific_learn_request(const ::dsn::blob &val) +{ + this->app_specific_learn_request = val; +} + +void learn_request::__set_max_gced_decree(const int64_t val) +{ + this->max_gced_decree = val; + __isset.max_gced_decree = true; +} + +uint32_t learn_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->learner.read(iprot); + this->__isset.learner = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->signature); + this->__isset.signature = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_app); + this->__isset.last_committed_decree_in_app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); + this->__isset.last_committed_decree_in_prepare_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->app_specific_learn_request.read(iprot); + this->__isset.app_specific_learn_request = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->max_gced_decree); + this->__isset.max_gced_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructEnd(); - using ::apache::thrift::protocol::TProtocolException; + return xfer; +} +uint32_t learn_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("learn_request"); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->code.read(iprot); - this->__isset.code = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldBegin("learner", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->learner.write(oprot); + xfer += oprot->writeFieldEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("signature", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->signature); + xfer += oprot->writeFieldEnd(); -uint32_t write_request_header::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("write_request_header"); + xfer += oprot->writeFieldBegin( + "last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->last_committed_decree_in_app); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin( + "last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("code", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->code.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin( + "app_specific_learn_request", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->app_specific_learn_request.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + if (this->__isset.max_gced_decree) { + xfer += oprot->writeFieldBegin("max_gced_decree", ::apache::thrift::protocol::T_I64, 7); + xfer += oprot->writeI64(this->max_gced_decree); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(learn_request &a, learn_request &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.learner, b.learner); + swap(a.signature, b.signature); + swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); + swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); + swap(a.app_specific_learn_request, b.app_specific_learn_request); + swap(a.max_gced_decree, b.max_gced_decree); + swap(a.__isset, b.__isset); +} + +learn_request::learn_request(const learn_request &other54) +{ + pid = other54.pid; + learner = other54.learner; + signature = other54.signature; + last_committed_decree_in_app = other54.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other54.last_committed_decree_in_prepare_list; + app_specific_learn_request = other54.app_specific_learn_request; + max_gced_decree = other54.max_gced_decree; + __isset = other54.__isset; +} +learn_request::learn_request(learn_request &&other55) +{ + pid = std::move(other55.pid); + learner = std::move(other55.learner); + signature = std::move(other55.signature); + last_committed_decree_in_app = std::move(other55.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = + std::move(other55.last_committed_decree_in_prepare_list); + app_specific_learn_request = std::move(other55.app_specific_learn_request); + max_gced_decree = std::move(other55.max_gced_decree); + __isset = std::move(other55.__isset); +} +learn_request &learn_request::operator=(const learn_request &other56) +{ + pid = other56.pid; + learner = other56.learner; + signature = other56.signature; + last_committed_decree_in_app = other56.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other56.last_committed_decree_in_prepare_list; + app_specific_learn_request = other56.app_specific_learn_request; + max_gced_decree = other56.max_gced_decree; + __isset = other56.__isset; + return *this; +} +learn_request &learn_request::operator=(learn_request &&other57) +{ + pid = std::move(other57.pid); + learner = std::move(other57.learner); + signature = std::move(other57.signature); + last_committed_decree_in_app = std::move(other57.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = + std::move(other57.last_committed_decree_in_prepare_list); + app_specific_learn_request = std::move(other57.app_specific_learn_request); + max_gced_decree = std::move(other57.max_gced_decree); + __isset = std::move(other57.__isset); + return *this; +} +void learn_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "learn_request("; + out << "pid=" << to_string(pid); + out << ", " + << "learner=" << to_string(learner); + out << ", " + << "signature=" << to_string(signature); + out << ", " + << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); + out << ", " + << "last_committed_decree_in_prepare_list=" + << to_string(last_committed_decree_in_prepare_list); + out << ", " + << "app_specific_learn_request=" << to_string(app_specific_learn_request); + out << ", " + << "max_gced_decree="; + (__isset.max_gced_decree ? (out << to_string(max_gced_decree)) : (out << "")); + out << ")"; +} + +learn_response::~learn_response() throw() {} + +void learn_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void learn_response::__set_config(const replica_configuration &val) { this->config = val; } + +void learn_response::__set_last_committed_decree(const int64_t val) +{ + this->last_committed_decree = val; +} + +void learn_response::__set_prepare_start_decree(const int64_t val) +{ + this->prepare_start_decree = val; +} + +void learn_response::__set_type(const learn_type::type val) { this->type = val; } + +void learn_response::__set_state(const learn_state &val) { this->state = val; } + +void learn_response::__set_address(const ::dsn::rpc_address &val) { this->address = val; } + +void learn_response::__set_base_local_dir(const std::string &val) { this->base_local_dir = val; } + +uint32_t learn_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->prepare_start_decree); + this->__isset.prepare_start_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast58; + xfer += iprot->readI32(ecast58); + this->type = (learn_type::type)ecast58; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->state.read(iprot); + this->__isset.state = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->address.read(iprot); + this->__isset.address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->base_local_dir); + this->__isset.base_local_dir = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void swap(write_request_header &a, write_request_header &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.code, b.code); - swap(a.__isset, b.__isset); -} + xfer += iprot->readStructEnd(); -write_request_header::write_request_header(const write_request_header& other32) { - pid = other32.pid; - code = other32.code; - __isset = other32.__isset; -} -write_request_header::write_request_header( write_request_header&& other33) { - pid = std::move(other33.pid); - code = std::move(other33.code); - __isset = std::move(other33.__isset); -} -write_request_header& write_request_header::operator=(const write_request_header& other34) { - pid = other34.pid; - code = other34.code; - __isset = other34.__isset; - return *this; -} -write_request_header& write_request_header::operator=(write_request_header&& other35) { - pid = std::move(other35.pid); - code = std::move(other35.code); - __isset = std::move(other35.__isset); - return *this; -} -void write_request_header::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "write_request_header("; - out << "pid=" << to_string(pid); - out << ", " << "code=" << to_string(code); - out << ")"; + return xfer; } +uint32_t learn_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("learn_response"); -rw_response_header::~rw_response_header() throw() { -} + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); -void rw_response_header::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); -uint32_t rw_response_header::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldBegin("prepare_start_decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->prepare_start_decree); + xfer += oprot->writeFieldEnd(); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("state", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->state.write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("address", ::apache::thrift::protocol::T_STRUCT, 7); + xfer += this->address.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("base_local_dir", ::apache::thrift::protocol::T_STRING, 8); + xfer += oprot->writeString(this->base_local_dir); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(learn_response &a, learn_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.config, b.config); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.prepare_start_decree, b.prepare_start_decree); + swap(a.type, b.type); + swap(a.state, b.state); + swap(a.address, b.address); + swap(a.base_local_dir, b.base_local_dir); + swap(a.__isset, b.__isset); +} + +learn_response::learn_response(const learn_response &other59) +{ + err = other59.err; + config = other59.config; + last_committed_decree = other59.last_committed_decree; + prepare_start_decree = other59.prepare_start_decree; + type = other59.type; + state = other59.state; + address = other59.address; + base_local_dir = other59.base_local_dir; + __isset = other59.__isset; +} +learn_response::learn_response(learn_response &&other60) +{ + err = std::move(other60.err); + config = std::move(other60.config); + last_committed_decree = std::move(other60.last_committed_decree); + prepare_start_decree = std::move(other60.prepare_start_decree); + type = std::move(other60.type); + state = std::move(other60.state); + address = std::move(other60.address); + base_local_dir = std::move(other60.base_local_dir); + __isset = std::move(other60.__isset); +} +learn_response &learn_response::operator=(const learn_response &other61) +{ + err = other61.err; + config = other61.config; + last_committed_decree = other61.last_committed_decree; + prepare_start_decree = other61.prepare_start_decree; + type = other61.type; + state = other61.state; + address = other61.address; + base_local_dir = other61.base_local_dir; + __isset = other61.__isset; + return *this; +} +learn_response &learn_response::operator=(learn_response &&other62) +{ + err = std::move(other62.err); + config = std::move(other62.config); + last_committed_decree = std::move(other62.last_committed_decree); + prepare_start_decree = std::move(other62.prepare_start_decree); + type = std::move(other62.type); + state = std::move(other62.state); + address = std::move(other62.address); + base_local_dir = std::move(other62.base_local_dir); + __isset = std::move(other62.__isset); + return *this; +} +void learn_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "learn_response("; + out << "err=" << to_string(err); + out << ", " + << "config=" << to_string(config); + out << ", " + << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " + << "prepare_start_decree=" << to_string(prepare_start_decree); + out << ", " + << "type=" << to_string(type); + out << ", " + << "state=" << to_string(state); + out << ", " + << "address=" << to_string(address); + out << ", " + << "base_local_dir=" << to_string(base_local_dir); + out << ")"; +} + +learn_notify_response::~learn_notify_response() throw() {} + +void learn_notify_response::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void learn_notify_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void learn_notify_response::__set_signature(const int64_t val) { this->signature = val; } + +uint32_t learn_notify_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->signature); + this->__isset.signature = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t rw_response_header::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("rw_response_header"); +uint32_t learn_notify_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("learn_notify_response"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("signature", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->signature); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(rw_response_header &a, rw_response_header &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); +void swap(learn_notify_response &a, learn_notify_response &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.err, b.err); + swap(a.signature, b.signature); + swap(a.__isset, b.__isset); } -rw_response_header::rw_response_header(const rw_response_header& other36) { - err = other36.err; - __isset = other36.__isset; +learn_notify_response::learn_notify_response(const learn_notify_response &other63) +{ + pid = other63.pid; + err = other63.err; + signature = other63.signature; + __isset = other63.__isset; } -rw_response_header::rw_response_header( rw_response_header&& other37) { - err = std::move(other37.err); - __isset = std::move(other37.__isset); +learn_notify_response::learn_notify_response(learn_notify_response &&other64) +{ + pid = std::move(other64.pid); + err = std::move(other64.err); + signature = std::move(other64.signature); + __isset = std::move(other64.__isset); } -rw_response_header& rw_response_header::operator=(const rw_response_header& other38) { - err = other38.err; - __isset = other38.__isset; - return *this; +learn_notify_response &learn_notify_response::operator=(const learn_notify_response &other65) +{ + pid = other65.pid; + err = other65.err; + signature = other65.signature; + __isset = other65.__isset; + return *this; } -rw_response_header& rw_response_header::operator=(rw_response_header&& other39) { - err = std::move(other39.err); - __isset = std::move(other39.__isset); - return *this; +learn_notify_response &learn_notify_response::operator=(learn_notify_response &&other66) +{ + pid = std::move(other66.pid); + err = std::move(other66.err); + signature = std::move(other66.signature); + __isset = std::move(other66.__isset); + return *this; } -void rw_response_header::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "rw_response_header("; - out << "err=" << to_string(err); - out << ")"; +void learn_notify_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "learn_notify_response("; + out << "pid=" << to_string(pid); + out << ", " + << "err=" << to_string(err); + out << ", " + << "signature=" << to_string(signature); + out << ")"; } +group_check_request::~group_check_request() throw() {} -prepare_ack::~prepare_ack() throw() { -} - +void group_check_request::__set_app(const ::dsn::app_info &val) { this->app = val; } -void prepare_ack::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} +void group_check_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } -void prepare_ack::__set_err(const ::dsn::error_code& val) { - this->err = val; -} +void group_check_request::__set_config(const replica_configuration &val) { this->config = val; } -void prepare_ack::__set_ballot(const int64_t val) { - this->ballot = val; +void group_check_request::__set_last_committed_decree(const int64_t val) +{ + this->last_committed_decree = val; } -void prepare_ack::__set_decree(const int64_t val) { - this->decree = val; +void group_check_request::__set_confirmed_decree(const int64_t val) +{ + this->confirmed_decree = val; + __isset.confirmed_decree = true; } -void prepare_ack::__set_last_committed_decree_in_app(const int64_t val) { - this->last_committed_decree_in_app = val; +void group_check_request::__set_child_gpid(const ::dsn::gpid &val) +{ + this->child_gpid = val; + __isset.child_gpid = true; } -void prepare_ack::__set_last_committed_decree_in_prepare_list(const int64_t val) { - this->last_committed_decree_in_prepare_list = val; +void group_check_request::__set_meta_split_status(const split_status::type val) +{ + this->meta_split_status = val; + __isset.meta_split_status = true; } -uint32_t prepare_ack::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); +uint32_t group_check_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ - using ::apache::thrift::protocol::TProtocolException; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + xfer += iprot->readStructBegin(fname); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->decree); - this->__isset.decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_app); - this->__isset.last_committed_decree_in_app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); - this->__isset.last_committed_decree_in_prepare_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t prepare_ack::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("prepare_ack"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->last_committed_decree_in_app); - xfer += oprot->writeFieldEnd(); + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->app.read(iprot); + this->__isset.app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->confirmed_decree); + this->__isset.confirmed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_gpid.read(iprot); + this->__isset.child_gpid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast67; + xfer += iprot->readI32(ecast67); + this->meta_split_status = (split_status::type)ecast67; + this->__isset.meta_split_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldBegin("last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(prepare_ack &a, prepare_ack &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.err, b.err); - swap(a.ballot, b.ballot); - swap(a.decree, b.decree); - swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); - swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); - swap(a.__isset, b.__isset); -} +uint32_t group_check_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("group_check_request"); -prepare_ack::prepare_ack(const prepare_ack& other40) { - pid = other40.pid; - err = other40.err; - ballot = other40.ballot; - decree = other40.decree; - last_committed_decree_in_app = other40.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other40.last_committed_decree_in_prepare_list; - __isset = other40.__isset; -} -prepare_ack::prepare_ack( prepare_ack&& other41) { - pid = std::move(other41.pid); - err = std::move(other41.err); - ballot = std::move(other41.ballot); - decree = std::move(other41.decree); - last_committed_decree_in_app = std::move(other41.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = std::move(other41.last_committed_decree_in_prepare_list); - __isset = std::move(other41.__isset); -} -prepare_ack& prepare_ack::operator=(const prepare_ack& other42) { - pid = other42.pid; - err = other42.err; - ballot = other42.ballot; - decree = other42.decree; - last_committed_decree_in_app = other42.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other42.last_committed_decree_in_prepare_list; - __isset = other42.__isset; - return *this; -} -prepare_ack& prepare_ack::operator=(prepare_ack&& other43) { - pid = std::move(other43.pid); - err = std::move(other43.err); - ballot = std::move(other43.ballot); - decree = std::move(other43.decree); - last_committed_decree_in_app = std::move(other43.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = std::move(other43.last_committed_decree_in_prepare_list); - __isset = std::move(other43.__isset); - return *this; -} -void prepare_ack::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "prepare_ack("; - out << "pid=" << to_string(pid); - out << ", " << "err=" << to_string(err); - out << ", " << "ballot=" << to_string(ballot); - out << ", " << "decree=" << to_string(decree); - out << ", " << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); - out << ", " << "last_committed_decree_in_prepare_list=" << to_string(last_committed_decree_in_prepare_list); - out << ")"; -} + xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->app.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); -learn_state::~learn_state() throw() { -} + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); -void learn_state::__set_from_decree_excluded(const int64_t val) { - this->from_decree_excluded = val; -} + if (this->__isset.confirmed_decree) { + xfer += oprot->writeFieldBegin("confirmed_decree", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->confirmed_decree); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.child_gpid) { + xfer += oprot->writeFieldBegin("child_gpid", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->child_gpid.write(oprot); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.meta_split_status) { + xfer += oprot->writeFieldBegin("meta_split_status", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32((int32_t)this->meta_split_status); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(group_check_request &a, group_check_request &b) +{ + using ::std::swap; + swap(a.app, b.app); + swap(a.node, b.node); + swap(a.config, b.config); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.confirmed_decree, b.confirmed_decree); + swap(a.child_gpid, b.child_gpid); + swap(a.meta_split_status, b.meta_split_status); + swap(a.__isset, b.__isset); +} + +group_check_request::group_check_request(const group_check_request &other68) +{ + app = other68.app; + node = other68.node; + config = other68.config; + last_committed_decree = other68.last_committed_decree; + confirmed_decree = other68.confirmed_decree; + child_gpid = other68.child_gpid; + meta_split_status = other68.meta_split_status; + __isset = other68.__isset; +} +group_check_request::group_check_request(group_check_request &&other69) +{ + app = std::move(other69.app); + node = std::move(other69.node); + config = std::move(other69.config); + last_committed_decree = std::move(other69.last_committed_decree); + confirmed_decree = std::move(other69.confirmed_decree); + child_gpid = std::move(other69.child_gpid); + meta_split_status = std::move(other69.meta_split_status); + __isset = std::move(other69.__isset); +} +group_check_request &group_check_request::operator=(const group_check_request &other70) +{ + app = other70.app; + node = other70.node; + config = other70.config; + last_committed_decree = other70.last_committed_decree; + confirmed_decree = other70.confirmed_decree; + child_gpid = other70.child_gpid; + meta_split_status = other70.meta_split_status; + __isset = other70.__isset; + return *this; +} +group_check_request &group_check_request::operator=(group_check_request &&other71) +{ + app = std::move(other71.app); + node = std::move(other71.node); + config = std::move(other71.config); + last_committed_decree = std::move(other71.last_committed_decree); + confirmed_decree = std::move(other71.confirmed_decree); + child_gpid = std::move(other71.child_gpid); + meta_split_status = std::move(other71.meta_split_status); + __isset = std::move(other71.__isset); + return *this; +} +void group_check_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "group_check_request("; + out << "app=" << to_string(app); + out << ", " + << "node=" << to_string(node); + out << ", " + << "config=" << to_string(config); + out << ", " + << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " + << "confirmed_decree="; + (__isset.confirmed_decree ? (out << to_string(confirmed_decree)) : (out << "")); + out << ", " + << "child_gpid="; + (__isset.child_gpid ? (out << to_string(child_gpid)) : (out << "")); + out << ", " + << "meta_split_status="; + (__isset.meta_split_status ? (out << to_string(meta_split_status)) : (out << "")); + out << ")"; +} + +group_check_response::~group_check_response() throw() {} + +void group_check_response::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void group_check_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void group_check_response::__set_last_committed_decree_in_app(const int64_t val) +{ + this->last_committed_decree_in_app = val; +} + +void group_check_response::__set_last_committed_decree_in_prepare_list(const int64_t val) +{ + this->last_committed_decree_in_prepare_list = val; +} + +void group_check_response::__set_learner_status_(const learner_status::type val) +{ + this->learner_status_ = val; +} + +void group_check_response::__set_learner_signature(const int64_t val) +{ + this->learner_signature = val; +} + +void group_check_response::__set_node(const ::dsn::rpc_address &val) { this->node = val; } + +uint32_t group_check_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_app); + this->__isset.last_committed_decree_in_app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); + this->__isset.last_committed_decree_in_prepare_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast72; + xfer += iprot->readI32(ecast72); + this->learner_status_ = (learner_status::type)ecast72; + this->__isset.learner_status_ = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->learner_signature); + this->__isset.learner_signature = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void learn_state::__set_to_decree_included(const int64_t val) { - this->to_decree_included = val; -} + xfer += iprot->readStructEnd(); -void learn_state::__set_meta(const ::dsn::blob& val) { - this->meta = val; + return xfer; } -void learn_state::__set_files(const std::vector & val) { - this->files = val; -} +uint32_t group_check_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("group_check_response"); -void learn_state::__set_learn_start_decree(const int64_t val) { - this->learn_start_decree = val; -__isset.learn_start_decree = true; -} + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); -uint32_t learn_state::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldBegin( + "last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->last_committed_decree_in_app); + xfer += oprot->writeFieldEnd(); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin( + "last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("learner_status_", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((int32_t)this->learner_status_); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("learner_signature", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->learner_signature); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 7); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->from_decree_excluded); - this->__isset.from_decree_excluded = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->to_decree_included); - this->__isset.to_decree_included = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->meta.read(iprot); - this->__isset.meta = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->files.clear(); - uint32_t _size44; - ::apache::thrift::protocol::TType _etype47; - xfer += iprot->readListBegin(_etype47, _size44); - this->files.resize(_size44); - uint32_t _i48; - for (_i48 = 0; _i48 < _size44; ++_i48) - { - xfer += iprot->readString(this->files[_i48]); - } - xfer += iprot->readListEnd(); - } - this->__isset.files = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->learn_start_decree); - this->__isset.learn_start_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(group_check_response &a, group_check_response &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.err, b.err); + swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); + swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); + swap(a.learner_status_, b.learner_status_); + swap(a.learner_signature, b.learner_signature); + swap(a.node, b.node); + swap(a.__isset, b.__isset); +} + +group_check_response::group_check_response(const group_check_response &other73) +{ + pid = other73.pid; + err = other73.err; + last_committed_decree_in_app = other73.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other73.last_committed_decree_in_prepare_list; + learner_status_ = other73.learner_status_; + learner_signature = other73.learner_signature; + node = other73.node; + __isset = other73.__isset; +} +group_check_response::group_check_response(group_check_response &&other74) +{ + pid = std::move(other74.pid); + err = std::move(other74.err); + last_committed_decree_in_app = std::move(other74.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = + std::move(other74.last_committed_decree_in_prepare_list); + learner_status_ = std::move(other74.learner_status_); + learner_signature = std::move(other74.learner_signature); + node = std::move(other74.node); + __isset = std::move(other74.__isset); +} +group_check_response &group_check_response::operator=(const group_check_response &other75) +{ + pid = other75.pid; + err = other75.err; + last_committed_decree_in_app = other75.last_committed_decree_in_app; + last_committed_decree_in_prepare_list = other75.last_committed_decree_in_prepare_list; + learner_status_ = other75.learner_status_; + learner_signature = other75.learner_signature; + node = other75.node; + __isset = other75.__isset; + return *this; +} +group_check_response &group_check_response::operator=(group_check_response &&other76) +{ + pid = std::move(other76.pid); + err = std::move(other76.err); + last_committed_decree_in_app = std::move(other76.last_committed_decree_in_app); + last_committed_decree_in_prepare_list = + std::move(other76.last_committed_decree_in_prepare_list); + learner_status_ = std::move(other76.learner_status_); + learner_signature = std::move(other76.learner_signature); + node = std::move(other76.node); + __isset = std::move(other76.__isset); + return *this; +} +void group_check_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "group_check_response("; + out << "pid=" << to_string(pid); + out << ", " + << "err=" << to_string(err); + out << ", " + << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); + out << ", " + << "last_committed_decree_in_prepare_list=" + << to_string(last_committed_decree_in_prepare_list); + out << ", " + << "learner_status_=" << to_string(learner_status_); + out << ", " + << "learner_signature=" << to_string(learner_signature); + out << ", " + << "node=" << to_string(node); + out << ")"; +} + +node_info::~node_info() throw() {} + +void node_info::__set_status(const node_status::type val) { this->status = val; } + +void node_info::__set_address(const ::dsn::rpc_address &val) { this->address = val; } + +uint32_t node_info::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast77; + xfer += iprot->readI32(ecast77); + this->status = (node_status::type)ecast77; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->address.read(iprot); + this->__isset.address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t learn_state::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("learn_state"); - - xfer += oprot->writeFieldBegin("from_decree_excluded", ::apache::thrift::protocol::T_I64, 1); - xfer += oprot->writeI64(this->from_decree_excluded); - xfer += oprot->writeFieldEnd(); +uint32_t node_info::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("node_info"); - xfer += oprot->writeFieldBegin("to_decree_included", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->to_decree_included); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("meta", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->meta.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->files.size())); - std::vector ::const_iterator _iter49; - for (_iter49 = this->files.begin(); _iter49 != this->files.end(); ++_iter49) - { - xfer += oprot->writeString((*_iter49)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - if (this->__isset.learn_start_decree) { - xfer += oprot->writeFieldBegin("learn_start_decree", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->learn_start_decree); + xfer += oprot->writeFieldBegin("address", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->address.write(oprot); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(learn_state &a, learn_state &b) { - using ::std::swap; - swap(a.from_decree_excluded, b.from_decree_excluded); - swap(a.to_decree_included, b.to_decree_included); - swap(a.meta, b.meta); - swap(a.files, b.files); - swap(a.learn_start_decree, b.learn_start_decree); - swap(a.__isset, b.__isset); +void swap(node_info &a, node_info &b) +{ + using ::std::swap; + swap(a.status, b.status); + swap(a.address, b.address); + swap(a.__isset, b.__isset); } -learn_state::learn_state(const learn_state& other50) { - from_decree_excluded = other50.from_decree_excluded; - to_decree_included = other50.to_decree_included; - meta = other50.meta; - files = other50.files; - learn_start_decree = other50.learn_start_decree; - __isset = other50.__isset; +node_info::node_info(const node_info &other78) +{ + status = other78.status; + address = other78.address; + __isset = other78.__isset; } -learn_state::learn_state( learn_state&& other51) { - from_decree_excluded = std::move(other51.from_decree_excluded); - to_decree_included = std::move(other51.to_decree_included); - meta = std::move(other51.meta); - files = std::move(other51.files); - learn_start_decree = std::move(other51.learn_start_decree); - __isset = std::move(other51.__isset); +node_info::node_info(node_info &&other79) +{ + status = std::move(other79.status); + address = std::move(other79.address); + __isset = std::move(other79.__isset); } -learn_state& learn_state::operator=(const learn_state& other52) { - from_decree_excluded = other52.from_decree_excluded; - to_decree_included = other52.to_decree_included; - meta = other52.meta; - files = other52.files; - learn_start_decree = other52.learn_start_decree; - __isset = other52.__isset; - return *this; +node_info &node_info::operator=(const node_info &other80) +{ + status = other80.status; + address = other80.address; + __isset = other80.__isset; + return *this; } -learn_state& learn_state::operator=(learn_state&& other53) { - from_decree_excluded = std::move(other53.from_decree_excluded); - to_decree_included = std::move(other53.to_decree_included); - meta = std::move(other53.meta); - files = std::move(other53.files); - learn_start_decree = std::move(other53.learn_start_decree); - __isset = std::move(other53.__isset); - return *this; +node_info &node_info::operator=(node_info &&other81) +{ + status = std::move(other81.status); + address = std::move(other81.address); + __isset = std::move(other81.__isset); + return *this; } -void learn_state::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "learn_state("; - out << "from_decree_excluded=" << to_string(from_decree_excluded); - out << ", " << "to_decree_included=" << to_string(to_decree_included); - out << ", " << "meta=" << to_string(meta); - out << ", " << "files=" << to_string(files); - out << ", " << "learn_start_decree="; (__isset.learn_start_decree ? (out << to_string(learn_start_decree)) : (out << "")); - out << ")"; +void node_info::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "node_info("; + out << "status=" << to_string(status); + out << ", " + << "address=" << to_string(address); + out << ")"; } +configuration_update_request::~configuration_update_request() throw() {} + +void configuration_update_request::__set_info(const ::dsn::app_info &val) { this->info = val; } -learn_request::~learn_request() throw() { +void configuration_update_request::__set_config(const ::dsn::partition_configuration &val) +{ + this->config = val; } +void configuration_update_request::__set_type(const config_type::type val) { this->type = val; } -void learn_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} +void configuration_update_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } -void learn_request::__set_learner(const ::dsn::rpc_address& val) { - this->learner = val; +void configuration_update_request::__set_host_node(const ::dsn::rpc_address &val) +{ + this->host_node = val; } -void learn_request::__set_signature(const int64_t val) { - this->signature = val; +void configuration_update_request::__set_meta_split_status(const split_status::type val) +{ + this->meta_split_status = val; + __isset.meta_split_status = true; } -void learn_request::__set_last_committed_decree_in_app(const int64_t val) { - this->last_committed_decree_in_app = val; -} +uint32_t configuration_update_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ -void learn_request::__set_last_committed_decree_in_prepare_list(const int64_t val) { - this->last_committed_decree_in_prepare_list = val; -} + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; -void learn_request::__set_app_specific_learn_request(const ::dsn::blob& val) { - this->app_specific_learn_request = val; -} + xfer += iprot->readStructBegin(fname); -void learn_request::__set_max_gced_decree(const int64_t val) { - this->max_gced_decree = val; -__isset.max_gced_decree = true; -} + using ::apache::thrift::protocol::TProtocolException; -uint32_t learn_request::read(::apache::thrift::protocol::TProtocol* iprot) { + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->info.read(iprot); + this->__isset.info = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast82; + xfer += iprot->readI32(ecast82); + this->type = (config_type::type)ecast82; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->host_node.read(iprot); + this->__isset.host_node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast83; + xfer += iprot->readI32(ecast83); + this->meta_split_status = (split_status::type)ecast83; + this->__isset.meta_split_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructEnd(); - xfer += iprot->readStructBegin(fname); + return xfer; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t configuration_update_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_update_request"); + xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->info.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->learner.read(iprot); - this->__isset.learner = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->signature); - this->__isset.signature = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_app); - this->__isset.last_committed_decree_in_app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); - this->__isset.last_committed_decree_in_prepare_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->app_specific_learn_request.read(iprot); - this->__isset.app_specific_learn_request = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->max_gced_decree); - this->__isset.max_gced_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t learn_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("learn_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("learner", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->learner.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("signature", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->signature); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->last_committed_decree_in_app); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_specific_learn_request", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->app_specific_learn_request.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.max_gced_decree) { - xfer += oprot->writeFieldBegin("max_gced_decree", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->max_gced_decree); + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->type); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} -void swap(learn_request &a, learn_request &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.learner, b.learner); - swap(a.signature, b.signature); - swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); - swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); - swap(a.app_specific_learn_request, b.app_specific_learn_request); - swap(a.max_gced_decree, b.max_gced_decree); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); -learn_request::learn_request(const learn_request& other54) { - pid = other54.pid; - learner = other54.learner; - signature = other54.signature; - last_committed_decree_in_app = other54.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other54.last_committed_decree_in_prepare_list; - app_specific_learn_request = other54.app_specific_learn_request; - max_gced_decree = other54.max_gced_decree; - __isset = other54.__isset; -} -learn_request::learn_request( learn_request&& other55) { - pid = std::move(other55.pid); - learner = std::move(other55.learner); - signature = std::move(other55.signature); - last_committed_decree_in_app = std::move(other55.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = std::move(other55.last_committed_decree_in_prepare_list); - app_specific_learn_request = std::move(other55.app_specific_learn_request); - max_gced_decree = std::move(other55.max_gced_decree); - __isset = std::move(other55.__isset); -} -learn_request& learn_request::operator=(const learn_request& other56) { - pid = other56.pid; - learner = other56.learner; - signature = other56.signature; - last_committed_decree_in_app = other56.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other56.last_committed_decree_in_prepare_list; - app_specific_learn_request = other56.app_specific_learn_request; - max_gced_decree = other56.max_gced_decree; - __isset = other56.__isset; - return *this; -} -learn_request& learn_request::operator=(learn_request&& other57) { - pid = std::move(other57.pid); - learner = std::move(other57.learner); - signature = std::move(other57.signature); - last_committed_decree_in_app = std::move(other57.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = std::move(other57.last_committed_decree_in_prepare_list); - app_specific_learn_request = std::move(other57.app_specific_learn_request); - max_gced_decree = std::move(other57.max_gced_decree); - __isset = std::move(other57.__isset); - return *this; -} -void learn_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "learn_request("; - out << "pid=" << to_string(pid); - out << ", " << "learner=" << to_string(learner); - out << ", " << "signature=" << to_string(signature); - out << ", " << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); - out << ", " << "last_committed_decree_in_prepare_list=" << to_string(last_committed_decree_in_prepare_list); - out << ", " << "app_specific_learn_request=" << to_string(app_specific_learn_request); - out << ", " << "max_gced_decree="; (__isset.max_gced_decree ? (out << to_string(max_gced_decree)) : (out << "")); - out << ")"; -} + xfer += oprot->writeFieldBegin("host_node", ::apache::thrift::protocol::T_STRUCT, 5); + xfer += this->host_node.write(oprot); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.meta_split_status) { + xfer += oprot->writeFieldBegin("meta_split_status", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((int32_t)this->meta_split_status); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_update_request &a, configuration_update_request &b) +{ + using ::std::swap; + swap(a.info, b.info); + swap(a.config, b.config); + swap(a.type, b.type); + swap(a.node, b.node); + swap(a.host_node, b.host_node); + swap(a.meta_split_status, b.meta_split_status); + swap(a.__isset, b.__isset); +} + +configuration_update_request::configuration_update_request( + const configuration_update_request &other84) +{ + info = other84.info; + config = other84.config; + type = other84.type; + node = other84.node; + host_node = other84.host_node; + meta_split_status = other84.meta_split_status; + __isset = other84.__isset; +} +configuration_update_request::configuration_update_request(configuration_update_request &&other85) +{ + info = std::move(other85.info); + config = std::move(other85.config); + type = std::move(other85.type); + node = std::move(other85.node); + host_node = std::move(other85.host_node); + meta_split_status = std::move(other85.meta_split_status); + __isset = std::move(other85.__isset); +} +configuration_update_request &configuration_update_request:: +operator=(const configuration_update_request &other86) +{ + info = other86.info; + config = other86.config; + type = other86.type; + node = other86.node; + host_node = other86.host_node; + meta_split_status = other86.meta_split_status; + __isset = other86.__isset; + return *this; +} +configuration_update_request &configuration_update_request:: +operator=(configuration_update_request &&other87) +{ + info = std::move(other87.info); + config = std::move(other87.config); + type = std::move(other87.type); + node = std::move(other87.node); + host_node = std::move(other87.host_node); + meta_split_status = std::move(other87.meta_split_status); + __isset = std::move(other87.__isset); + return *this; +} +void configuration_update_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_update_request("; + out << "info=" << to_string(info); + out << ", " + << "config=" << to_string(config); + out << ", " + << "type=" << to_string(type); + out << ", " + << "node=" << to_string(node); + out << ", " + << "host_node=" << to_string(host_node); + out << ", " + << "meta_split_status="; + (__isset.meta_split_status ? (out << to_string(meta_split_status)) : (out << "")); + out << ")"; +} + +configuration_update_response::~configuration_update_response() throw() {} + +void configuration_update_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void configuration_update_response::__set_config(const ::dsn::partition_configuration &val) +{ + this->config = val; +} + +uint32_t configuration_update_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -learn_response::~learn_response() throw() { + return xfer; } +uint32_t configuration_update_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_update_response"); -void learn_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); -void learn_response::__set_config(const replica_configuration& val) { - this->config = val; -} + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); -void learn_response::__set_last_committed_decree(const int64_t val) { - this->last_committed_decree = val; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void learn_response::__set_prepare_start_decree(const int64_t val) { - this->prepare_start_decree = val; +void swap(configuration_update_response &a, configuration_update_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.config, b.config); + swap(a.__isset, b.__isset); } -void learn_response::__set_type(const learn_type::type val) { - this->type = val; +configuration_update_response::configuration_update_response( + const configuration_update_response &other88) +{ + err = other88.err; + config = other88.config; + __isset = other88.__isset; } - -void learn_response::__set_state(const learn_state& val) { - this->state = val; +configuration_update_response::configuration_update_response( + configuration_update_response &&other89) +{ + err = std::move(other89.err); + config = std::move(other89.config); + __isset = std::move(other89.__isset); } - -void learn_response::__set_address(const ::dsn::rpc_address& val) { - this->address = val; +configuration_update_response &configuration_update_response:: +operator=(const configuration_update_response &other90) +{ + err = other90.err; + config = other90.config; + __isset = other90.__isset; + return *this; +} +configuration_update_response &configuration_update_response:: +operator=(configuration_update_response &&other91) +{ + err = std::move(other91.err); + config = std::move(other91.config); + __isset = std::move(other91.__isset); + return *this; +} +void configuration_update_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_update_response("; + out << "err=" << to_string(err); + out << ", " + << "config=" << to_string(config); + out << ")"; } -void learn_response::__set_base_local_dir(const std::string& val) { - this->base_local_dir = val; +replica_server_info::~replica_server_info() throw() {} + +void replica_server_info::__set_geo_tags(const std::map &val) +{ + this->geo_tags = val; } -uint32_t learn_response::read(::apache::thrift::protocol::TProtocol* iprot) { +void replica_server_info::__set_total_capacity_mb(const int64_t val) +{ + this->total_capacity_mb = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t replica_server_info::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->prepare_start_decree); - this->__isset.prepare_start_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast58; - xfer += iprot->readI32(ecast58); - this->type = (learn_type::type)ecast58; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->state.read(iprot); - this->__isset.state = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->address.read(iprot); - this->__isset.address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->base_local_dir); - this->__isset.base_local_dir = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t learn_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("learn_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("prepare_start_decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->prepare_start_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("state", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->state.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("address", ::apache::thrift::protocol::T_STRUCT, 7); - xfer += this->address.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("base_local_dir", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->base_local_dir); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(learn_response &a, learn_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.config, b.config); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.prepare_start_decree, b.prepare_start_decree); - swap(a.type, b.type); - swap(a.state, b.state); - swap(a.address, b.address); - swap(a.base_local_dir, b.base_local_dir); - swap(a.__isset, b.__isset); -} - -learn_response::learn_response(const learn_response& other59) { - err = other59.err; - config = other59.config; - last_committed_decree = other59.last_committed_decree; - prepare_start_decree = other59.prepare_start_decree; - type = other59.type; - state = other59.state; - address = other59.address; - base_local_dir = other59.base_local_dir; - __isset = other59.__isset; -} -learn_response::learn_response( learn_response&& other60) { - err = std::move(other60.err); - config = std::move(other60.config); - last_committed_decree = std::move(other60.last_committed_decree); - prepare_start_decree = std::move(other60.prepare_start_decree); - type = std::move(other60.type); - state = std::move(other60.state); - address = std::move(other60.address); - base_local_dir = std::move(other60.base_local_dir); - __isset = std::move(other60.__isset); -} -learn_response& learn_response::operator=(const learn_response& other61) { - err = other61.err; - config = other61.config; - last_committed_decree = other61.last_committed_decree; - prepare_start_decree = other61.prepare_start_decree; - type = other61.type; - state = other61.state; - address = other61.address; - base_local_dir = other61.base_local_dir; - __isset = other61.__isset; - return *this; -} -learn_response& learn_response::operator=(learn_response&& other62) { - err = std::move(other62.err); - config = std::move(other62.config); - last_committed_decree = std::move(other62.last_committed_decree); - prepare_start_decree = std::move(other62.prepare_start_decree); - type = std::move(other62.type); - state = std::move(other62.state); - address = std::move(other62.address); - base_local_dir = std::move(other62.base_local_dir); - __isset = std::move(other62.__isset); - return *this; -} -void learn_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "learn_response("; - out << "err=" << to_string(err); - out << ", " << "config=" << to_string(config); - out << ", " << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " << "prepare_start_decree=" << to_string(prepare_start_decree); - out << ", " << "type=" << to_string(type); - out << ", " << "state=" << to_string(state); - out << ", " << "address=" << to_string(address); - out << ", " << "base_local_dir=" << to_string(base_local_dir); - out << ")"; -} - - -learn_notify_response::~learn_notify_response() throw() { -} - - -void learn_notify_response::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void learn_notify_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void learn_notify_response::__set_signature(const int64_t val) { - this->signature = val; -} - -uint32_t learn_notify_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->signature); - this->__isset.signature = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->geo_tags.clear(); + uint32_t _size92; + ::apache::thrift::protocol::TType _ktype93; + ::apache::thrift::protocol::TType _vtype94; + xfer += iprot->readMapBegin(_ktype93, _vtype94, _size92); + uint32_t _i96; + for (_i96 = 0; _i96 < _size92; ++_i96) { + std::string _key97; + xfer += iprot->readString(_key97); + std::string &_val98 = this->geo_tags[_key97]; + xfer += iprot->readString(_val98); + } + xfer += iprot->readMapEnd(); + } + this->__isset.geo_tags = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->total_capacity_mb); + this->__isset.total_capacity_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t learn_notify_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("learn_notify_response"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t replica_server_info::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_server_info"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("geo_tags", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, + ::apache::thrift::protocol::T_STRING, + static_cast(this->geo_tags.size())); + std::map::const_iterator _iter99; + for (_iter99 = this->geo_tags.begin(); _iter99 != this->geo_tags.end(); ++_iter99) { + xfer += oprot->writeString(_iter99->first); + xfer += oprot->writeString(_iter99->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("signature", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->signature); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("total_capacity_mb", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->total_capacity_mb); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(learn_notify_response &a, learn_notify_response &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.err, b.err); - swap(a.signature, b.signature); - swap(a.__isset, b.__isset); +void swap(replica_server_info &a, replica_server_info &b) +{ + using ::std::swap; + swap(a.geo_tags, b.geo_tags); + swap(a.total_capacity_mb, b.total_capacity_mb); + swap(a.__isset, b.__isset); } -learn_notify_response::learn_notify_response(const learn_notify_response& other63) { - pid = other63.pid; - err = other63.err; - signature = other63.signature; - __isset = other63.__isset; +replica_server_info::replica_server_info(const replica_server_info &other100) +{ + geo_tags = other100.geo_tags; + total_capacity_mb = other100.total_capacity_mb; + __isset = other100.__isset; } -learn_notify_response::learn_notify_response( learn_notify_response&& other64) { - pid = std::move(other64.pid); - err = std::move(other64.err); - signature = std::move(other64.signature); - __isset = std::move(other64.__isset); +replica_server_info::replica_server_info(replica_server_info &&other101) +{ + geo_tags = std::move(other101.geo_tags); + total_capacity_mb = std::move(other101.total_capacity_mb); + __isset = std::move(other101.__isset); } -learn_notify_response& learn_notify_response::operator=(const learn_notify_response& other65) { - pid = other65.pid; - err = other65.err; - signature = other65.signature; - __isset = other65.__isset; - return *this; +replica_server_info &replica_server_info::operator=(const replica_server_info &other102) +{ + geo_tags = other102.geo_tags; + total_capacity_mb = other102.total_capacity_mb; + __isset = other102.__isset; + return *this; } -learn_notify_response& learn_notify_response::operator=(learn_notify_response&& other66) { - pid = std::move(other66.pid); - err = std::move(other66.err); - signature = std::move(other66.signature); - __isset = std::move(other66.__isset); - return *this; +replica_server_info &replica_server_info::operator=(replica_server_info &&other103) +{ + geo_tags = std::move(other103.geo_tags); + total_capacity_mb = std::move(other103.total_capacity_mb); + __isset = std::move(other103.__isset); + return *this; } -void learn_notify_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "learn_notify_response("; - out << "pid=" << to_string(pid); - out << ", " << "err=" << to_string(err); - out << ", " << "signature=" << to_string(signature); - out << ")"; +void replica_server_info::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "replica_server_info("; + out << "geo_tags=" << to_string(geo_tags); + out << ", " + << "total_capacity_mb=" << to_string(total_capacity_mb); + out << ")"; } +configuration_query_by_node_request::~configuration_query_by_node_request() throw() {} -group_check_request::~group_check_request() throw() { +void configuration_query_by_node_request::__set_node(const ::dsn::rpc_address &val) +{ + this->node = val; } - -void group_check_request::__set_app(const ::dsn::app_info& val) { - this->app = val; +void configuration_query_by_node_request::__set_stored_replicas( + const std::vector &val) +{ + this->stored_replicas = val; + __isset.stored_replicas = true; } -void group_check_request::__set_node(const ::dsn::rpc_address& val) { - this->node = val; +void configuration_query_by_node_request::__set_info(const replica_server_info &val) +{ + this->info = val; + __isset.info = true; } -void group_check_request::__set_config(const replica_configuration& val) { - this->config = val; -} +uint32_t configuration_query_by_node_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ -void group_check_request::__set_last_committed_decree(const int64_t val) { - this->last_committed_decree = val; -} + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; -void group_check_request::__set_confirmed_decree(const int64_t val) { - this->confirmed_decree = val; -__isset.confirmed_decree = true; -} + xfer += iprot->readStructBegin(fname); -void group_check_request::__set_child_gpid(const ::dsn::gpid& val) { - this->child_gpid = val; -__isset.child_gpid = true; -} + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->stored_replicas.clear(); + uint32_t _size104; + ::apache::thrift::protocol::TType _etype107; + xfer += iprot->readListBegin(_etype107, _size104); + this->stored_replicas.resize(_size104); + uint32_t _i108; + for (_i108 = 0; _i108 < _size104; ++_i108) { + xfer += this->stored_replicas[_i108].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.stored_replicas = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->info.read(iprot); + this->__isset.info = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void group_check_request::__set_meta_split_status(const split_status::type val) { - this->meta_split_status = val; -__isset.meta_split_status = true; + xfer += iprot->readStructEnd(); + + return xfer; } -uint32_t group_check_request::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t +configuration_query_by_node_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_by_node_request"); + + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.stored_replicas) { + xfer += oprot->writeFieldBegin("stored_replicas", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->stored_replicas.size())); + std::vector::const_iterator _iter109; + for (_iter109 = this->stored_replicas.begin(); _iter109 != this->stored_replicas.end(); + ++_iter109) { + xfer += (*_iter109).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.info) { + xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->info.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_by_node_request &a, configuration_query_by_node_request &b) +{ + using ::std::swap; + swap(a.node, b.node); + swap(a.stored_replicas, b.stored_replicas); + swap(a.info, b.info); + swap(a.__isset, b.__isset); +} + +configuration_query_by_node_request::configuration_query_by_node_request( + const configuration_query_by_node_request &other110) +{ + node = other110.node; + stored_replicas = other110.stored_replicas; + info = other110.info; + __isset = other110.__isset; +} +configuration_query_by_node_request::configuration_query_by_node_request( + configuration_query_by_node_request &&other111) +{ + node = std::move(other111.node); + stored_replicas = std::move(other111.stored_replicas); + info = std::move(other111.info); + __isset = std::move(other111.__isset); +} +configuration_query_by_node_request &configuration_query_by_node_request:: +operator=(const configuration_query_by_node_request &other112) +{ + node = other112.node; + stored_replicas = other112.stored_replicas; + info = other112.info; + __isset = other112.__isset; + return *this; +} +configuration_query_by_node_request &configuration_query_by_node_request:: +operator=(configuration_query_by_node_request &&other113) +{ + node = std::move(other113.node); + stored_replicas = std::move(other113.stored_replicas); + info = std::move(other113.info); + __isset = std::move(other113.__isset); + return *this; +} +void configuration_query_by_node_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_query_by_node_request("; + out << "node=" << to_string(node); + out << ", " + << "stored_replicas="; + (__isset.stored_replicas ? (out << to_string(stored_replicas)) : (out << "")); + out << ", " + << "info="; + (__isset.info ? (out << to_string(info)) : (out << "")); + out << ")"; +} + +configuration_query_by_node_response::~configuration_query_by_node_response() throw() {} + +void configuration_query_by_node_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; +} + +void configuration_query_by_node_response::__set_partitions( + const std::vector &val) +{ + this->partitions = val; +} + +void configuration_query_by_node_response::__set_gc_replicas(const std::vector &val) +{ + this->gc_replicas = val; + __isset.gc_replicas = true; +} + +uint32_t configuration_query_by_node_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions.clear(); + uint32_t _size114; + ::apache::thrift::protocol::TType _etype117; + xfer += iprot->readListBegin(_etype117, _size114); + this->partitions.resize(_size114); + uint32_t _i118; + for (_i118 = 0; _i118 < _size114; ++_i118) { + xfer += this->partitions[_i118].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->gc_replicas.clear(); + uint32_t _size119; + ::apache::thrift::protocol::TType _etype122; + xfer += iprot->readListBegin(_etype122, _size119); + this->gc_replicas.resize(_size119); + uint32_t _i123; + for (_i123 = 0; _i123 < _size119; ++_i123) { + xfer += this->gc_replicas[_i123].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.gc_replicas = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructEnd(); - xfer += iprot->readStructBegin(fname); + return xfer; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t +configuration_query_by_node_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_by_node_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 2); { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->app.read(iprot); - this->__isset.app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->confirmed_decree); - this->__isset.confirmed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_gpid.read(iprot); - this->__isset.child_gpid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast67; - xfer += iprot->readI32(ecast67); - this->meta_split_status = (split_status::type)ecast67; - this->__isset.meta_split_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->partitions.size())); + std::vector::const_iterator _iter124; + for (_iter124 = this->partitions.begin(); _iter124 != this->partitions.end(); ++_iter124) { + xfer += (*_iter124).write(oprot); + } + xfer += oprot->writeListEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); + xfer += oprot->writeFieldEnd(); - return xfer; -} + if (this->__isset.gc_replicas) { + xfer += oprot->writeFieldBegin("gc_replicas", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->gc_replicas.size())); + std::vector::const_iterator _iter125; + for (_iter125 = this->gc_replicas.begin(); _iter125 != this->gc_replicas.end(); + ++_iter125) { + xfer += (*_iter125).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_by_node_response &a, configuration_query_by_node_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.partitions, b.partitions); + swap(a.gc_replicas, b.gc_replicas); + swap(a.__isset, b.__isset); +} + +configuration_query_by_node_response::configuration_query_by_node_response( + const configuration_query_by_node_response &other126) +{ + err = other126.err; + partitions = other126.partitions; + gc_replicas = other126.gc_replicas; + __isset = other126.__isset; +} +configuration_query_by_node_response::configuration_query_by_node_response( + configuration_query_by_node_response &&other127) +{ + err = std::move(other127.err); + partitions = std::move(other127.partitions); + gc_replicas = std::move(other127.gc_replicas); + __isset = std::move(other127.__isset); +} +configuration_query_by_node_response &configuration_query_by_node_response:: +operator=(const configuration_query_by_node_response &other128) +{ + err = other128.err; + partitions = other128.partitions; + gc_replicas = other128.gc_replicas; + __isset = other128.__isset; + return *this; +} +configuration_query_by_node_response &configuration_query_by_node_response:: +operator=(configuration_query_by_node_response &&other129) +{ + err = std::move(other129.err); + partitions = std::move(other129.partitions); + gc_replicas = std::move(other129.gc_replicas); + __isset = std::move(other129.__isset); + return *this; +} +void configuration_query_by_node_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_query_by_node_response("; + out << "err=" << to_string(err); + out << ", " + << "partitions=" << to_string(partitions); + out << ", " + << "gc_replicas="; + (__isset.gc_replicas ? (out << to_string(gc_replicas)) : (out << "")); + out << ")"; +} + +create_app_options::~create_app_options() throw() {} + +void create_app_options::__set_partition_count(const int32_t val) { this->partition_count = val; } + +void create_app_options::__set_replica_count(const int32_t val) { this->replica_count = val; } + +void create_app_options::__set_success_if_exist(const bool val) { this->success_if_exist = val; } + +void create_app_options::__set_app_type(const std::string &val) { this->app_type = val; } + +void create_app_options::__set_is_stateful(const bool val) { this->is_stateful = val; } + +void create_app_options::__set_envs(const std::map &val) +{ + this->envs = val; +} + +uint32_t create_app_options::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_count); + this->__isset.partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->replica_count); + this->__isset.replica_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success_if_exist); + this->__isset.success_if_exist = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_type); + this->__isset.app_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_stateful); + this->__isset.is_stateful = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->envs.clear(); + uint32_t _size130; + ::apache::thrift::protocol::TType _ktype131; + ::apache::thrift::protocol::TType _vtype132; + xfer += iprot->readMapBegin(_ktype131, _vtype132, _size130); + uint32_t _i134; + for (_i134 = 0; _i134 < _size130; ++_i134) { + std::string _key135; + xfer += iprot->readString(_key135); + std::string &_val136 = this->envs[_key135]; + xfer += iprot->readString(_val136); + } + xfer += iprot->readMapEnd(); + } + this->__isset.envs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -uint32_t group_check_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("group_check_request"); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->app.write(oprot); - xfer += oprot->writeFieldEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t create_app_options::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("create_app_options"); - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->partition_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("replica_count", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->replica_count); + xfer += oprot->writeFieldEnd(); - if (this->__isset.confirmed_decree) { - xfer += oprot->writeFieldBegin("confirmed_decree", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->confirmed_decree); + xfer += oprot->writeFieldBegin("success_if_exist", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->success_if_exist); xfer += oprot->writeFieldEnd(); - } - if (this->__isset.child_gpid) { - xfer += oprot->writeFieldBegin("child_gpid", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->child_gpid.write(oprot); + + xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->app_type); xfer += oprot->writeFieldEnd(); - } - if (this->__isset.meta_split_status) { - xfer += oprot->writeFieldBegin("meta_split_status", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((int32_t)this->meta_split_status); + + xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 5); + xfer += oprot->writeBool(this->is_stateful); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} -void swap(group_check_request &a, group_check_request &b) { - using ::std::swap; - swap(a.app, b.app); - swap(a.node, b.node); - swap(a.config, b.config); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.confirmed_decree, b.confirmed_decree); - swap(a.child_gpid, b.child_gpid); - swap(a.meta_split_status, b.meta_split_status); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("envs", ::apache::thrift::protocol::T_MAP, 6); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, + ::apache::thrift::protocol::T_STRING, + static_cast(this->envs.size())); + std::map::const_iterator _iter137; + for (_iter137 = this->envs.begin(); _iter137 != this->envs.end(); ++_iter137) { + xfer += oprot->writeString(_iter137->first); + xfer += oprot->writeString(_iter137->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); -group_check_request::group_check_request(const group_check_request& other68) { - app = other68.app; - node = other68.node; - config = other68.config; - last_committed_decree = other68.last_committed_decree; - confirmed_decree = other68.confirmed_decree; - child_gpid = other68.child_gpid; - meta_split_status = other68.meta_split_status; - __isset = other68.__isset; -} -group_check_request::group_check_request( group_check_request&& other69) { - app = std::move(other69.app); - node = std::move(other69.node); - config = std::move(other69.config); - last_committed_decree = std::move(other69.last_committed_decree); - confirmed_decree = std::move(other69.confirmed_decree); - child_gpid = std::move(other69.child_gpid); - meta_split_status = std::move(other69.meta_split_status); - __isset = std::move(other69.__isset); -} -group_check_request& group_check_request::operator=(const group_check_request& other70) { - app = other70.app; - node = other70.node; - config = other70.config; - last_committed_decree = other70.last_committed_decree; - confirmed_decree = other70.confirmed_decree; - child_gpid = other70.child_gpid; - meta_split_status = other70.meta_split_status; - __isset = other70.__isset; - return *this; -} -group_check_request& group_check_request::operator=(group_check_request&& other71) { - app = std::move(other71.app); - node = std::move(other71.node); - config = std::move(other71.config); - last_committed_decree = std::move(other71.last_committed_decree); - confirmed_decree = std::move(other71.confirmed_decree); - child_gpid = std::move(other71.child_gpid); - meta_split_status = std::move(other71.meta_split_status); - __isset = std::move(other71.__isset); - return *this; -} -void group_check_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "group_check_request("; - out << "app=" << to_string(app); - out << ", " << "node=" << to_string(node); - out << ", " << "config=" << to_string(config); - out << ", " << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " << "confirmed_decree="; (__isset.confirmed_decree ? (out << to_string(confirmed_decree)) : (out << "")); - out << ", " << "child_gpid="; (__isset.child_gpid ? (out << to_string(child_gpid)) : (out << "")); - out << ", " << "meta_split_status="; (__isset.meta_split_status ? (out << to_string(meta_split_status)) : (out << "")); - out << ")"; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(create_app_options &a, create_app_options &b) +{ + using ::std::swap; + swap(a.partition_count, b.partition_count); + swap(a.replica_count, b.replica_count); + swap(a.success_if_exist, b.success_if_exist); + swap(a.app_type, b.app_type); + swap(a.is_stateful, b.is_stateful); + swap(a.envs, b.envs); + swap(a.__isset, b.__isset); +} + +create_app_options::create_app_options(const create_app_options &other138) +{ + partition_count = other138.partition_count; + replica_count = other138.replica_count; + success_if_exist = other138.success_if_exist; + app_type = other138.app_type; + is_stateful = other138.is_stateful; + envs = other138.envs; + __isset = other138.__isset; +} +create_app_options::create_app_options(create_app_options &&other139) +{ + partition_count = std::move(other139.partition_count); + replica_count = std::move(other139.replica_count); + success_if_exist = std::move(other139.success_if_exist); + app_type = std::move(other139.app_type); + is_stateful = std::move(other139.is_stateful); + envs = std::move(other139.envs); + __isset = std::move(other139.__isset); +} +create_app_options &create_app_options::operator=(const create_app_options &other140) +{ + partition_count = other140.partition_count; + replica_count = other140.replica_count; + success_if_exist = other140.success_if_exist; + app_type = other140.app_type; + is_stateful = other140.is_stateful; + envs = other140.envs; + __isset = other140.__isset; + return *this; +} +create_app_options &create_app_options::operator=(create_app_options &&other141) +{ + partition_count = std::move(other141.partition_count); + replica_count = std::move(other141.replica_count); + success_if_exist = std::move(other141.success_if_exist); + app_type = std::move(other141.app_type); + is_stateful = std::move(other141.is_stateful); + envs = std::move(other141.envs); + __isset = std::move(other141.__isset); + return *this; +} +void create_app_options::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "create_app_options("; + out << "partition_count=" << to_string(partition_count); + out << ", " + << "replica_count=" << to_string(replica_count); + out << ", " + << "success_if_exist=" << to_string(success_if_exist); + out << ", " + << "app_type=" << to_string(app_type); + out << ", " + << "is_stateful=" << to_string(is_stateful); + out << ", " + << "envs=" << to_string(envs); + out << ")"; +} + +configuration_create_app_request::~configuration_create_app_request() throw() {} + +void configuration_create_app_request::__set_app_name(const std::string &val) +{ + this->app_name = val; +} + +void configuration_create_app_request::__set_options(const create_app_options &val) +{ + this->options = val; +} + +uint32_t configuration_create_app_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->options.read(iprot); + this->__isset.options = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -group_check_response::~group_check_response() throw() { + return xfer; } +uint32_t configuration_create_app_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_create_app_request"); -void group_check_response::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); -void group_check_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += oprot->writeFieldBegin("options", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->options.write(oprot); + xfer += oprot->writeFieldEnd(); -void group_check_response::__set_last_committed_decree_in_app(const int64_t val) { - this->last_committed_decree_in_app = val; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_create_app_request &a, configuration_create_app_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.options, b.options); + swap(a.__isset, b.__isset); +} + +configuration_create_app_request::configuration_create_app_request( + const configuration_create_app_request &other142) +{ + app_name = other142.app_name; + options = other142.options; + __isset = other142.__isset; +} +configuration_create_app_request::configuration_create_app_request( + configuration_create_app_request &&other143) +{ + app_name = std::move(other143.app_name); + options = std::move(other143.options); + __isset = std::move(other143.__isset); +} +configuration_create_app_request &configuration_create_app_request:: +operator=(const configuration_create_app_request &other144) +{ + app_name = other144.app_name; + options = other144.options; + __isset = other144.__isset; + return *this; +} +configuration_create_app_request &configuration_create_app_request:: +operator=(configuration_create_app_request &&other145) +{ + app_name = std::move(other145.app_name); + options = std::move(other145.options); + __isset = std::move(other145.__isset); + return *this; +} +void configuration_create_app_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_create_app_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "options=" << to_string(options); + out << ")"; +} + +drop_app_options::~drop_app_options() throw() {} + +void drop_app_options::__set_success_if_not_exist(const bool val) +{ + this->success_if_not_exist = val; +} + +void drop_app_options::__set_reserve_seconds(const int64_t val) +{ + this->reserve_seconds = val; + __isset.reserve_seconds = true; +} + +uint32_t drop_app_options::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success_if_not_exist); + this->__isset.success_if_not_exist = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->reserve_seconds); + this->__isset.reserve_seconds = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void group_check_response::__set_last_committed_decree_in_prepare_list(const int64_t val) { - this->last_committed_decree_in_prepare_list = val; -} + xfer += iprot->readStructEnd(); -void group_check_response::__set_learner_status_(const learner_status::type val) { - this->learner_status_ = val; + return xfer; } -void group_check_response::__set_learner_signature(const int64_t val) { - this->learner_signature = val; -} +uint32_t drop_app_options::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("drop_app_options"); -void group_check_response::__set_node(const ::dsn::rpc_address& val) { - this->node = val; -} + xfer += oprot->writeFieldBegin("success_if_not_exist", ::apache::thrift::protocol::T_BOOL, 1); + xfer += oprot->writeBool(this->success_if_not_exist); + xfer += oprot->writeFieldEnd(); -uint32_t group_check_response::read(::apache::thrift::protocol::TProtocol* iprot) { + if (this->__isset.reserve_seconds) { + xfer += oprot->writeFieldBegin("reserve_seconds", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->reserve_seconds); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(drop_app_options &a, drop_app_options &b) +{ + using ::std::swap; + swap(a.success_if_not_exist, b.success_if_not_exist); + swap(a.reserve_seconds, b.reserve_seconds); + swap(a.__isset, b.__isset); +} + +drop_app_options::drop_app_options(const drop_app_options &other146) +{ + success_if_not_exist = other146.success_if_not_exist; + reserve_seconds = other146.reserve_seconds; + __isset = other146.__isset; +} +drop_app_options::drop_app_options(drop_app_options &&other147) +{ + success_if_not_exist = std::move(other147.success_if_not_exist); + reserve_seconds = std::move(other147.reserve_seconds); + __isset = std::move(other147.__isset); +} +drop_app_options &drop_app_options::operator=(const drop_app_options &other148) +{ + success_if_not_exist = other148.success_if_not_exist; + reserve_seconds = other148.reserve_seconds; + __isset = other148.__isset; + return *this; +} +drop_app_options &drop_app_options::operator=(drop_app_options &&other149) +{ + success_if_not_exist = std::move(other149.success_if_not_exist); + reserve_seconds = std::move(other149.reserve_seconds); + __isset = std::move(other149.__isset); + return *this; +} +void drop_app_options::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "drop_app_options("; + out << "success_if_not_exist=" << to_string(success_if_not_exist); + out << ", " + << "reserve_seconds="; + (__isset.reserve_seconds ? (out << to_string(reserve_seconds)) : (out << "")); + out << ")"; +} + +configuration_drop_app_request::~configuration_drop_app_request() throw() {} + +void configuration_drop_app_request::__set_app_name(const std::string &val) +{ + this->app_name = val; +} + +void configuration_drop_app_request::__set_options(const drop_app_options &val) +{ + this->options = val; +} + +uint32_t configuration_drop_app_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->options.read(iprot); + this->__isset.options = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructEnd(); - xfer += iprot->readStructBegin(fname); + return xfer; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t configuration_drop_app_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_drop_app_request"); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_app); - this->__isset.last_committed_decree_in_app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree_in_prepare_list); - this->__isset.last_committed_decree_in_prepare_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast72; - xfer += iprot->readI32(ecast72); - this->learner_status_ = (learner_status::type)ecast72; - this->__isset.learner_status_ = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->learner_signature); - this->__isset.learner_signature = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t group_check_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("group_check_response"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree_in_app", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->last_committed_decree_in_app); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree_in_prepare_list", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->last_committed_decree_in_prepare_list); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("learner_status_", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((int32_t)this->learner_status_); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("learner_signature", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->learner_signature); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 7); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("options", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->options.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(group_check_response &a, group_check_response &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.err, b.err); - swap(a.last_committed_decree_in_app, b.last_committed_decree_in_app); - swap(a.last_committed_decree_in_prepare_list, b.last_committed_decree_in_prepare_list); - swap(a.learner_status_, b.learner_status_); - swap(a.learner_signature, b.learner_signature); - swap(a.node, b.node); - swap(a.__isset, b.__isset); -} - -group_check_response::group_check_response(const group_check_response& other73) { - pid = other73.pid; - err = other73.err; - last_committed_decree_in_app = other73.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other73.last_committed_decree_in_prepare_list; - learner_status_ = other73.learner_status_; - learner_signature = other73.learner_signature; - node = other73.node; - __isset = other73.__isset; -} -group_check_response::group_check_response( group_check_response&& other74) { - pid = std::move(other74.pid); - err = std::move(other74.err); - last_committed_decree_in_app = std::move(other74.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = std::move(other74.last_committed_decree_in_prepare_list); - learner_status_ = std::move(other74.learner_status_); - learner_signature = std::move(other74.learner_signature); - node = std::move(other74.node); - __isset = std::move(other74.__isset); -} -group_check_response& group_check_response::operator=(const group_check_response& other75) { - pid = other75.pid; - err = other75.err; - last_committed_decree_in_app = other75.last_committed_decree_in_app; - last_committed_decree_in_prepare_list = other75.last_committed_decree_in_prepare_list; - learner_status_ = other75.learner_status_; - learner_signature = other75.learner_signature; - node = other75.node; - __isset = other75.__isset; - return *this; -} -group_check_response& group_check_response::operator=(group_check_response&& other76) { - pid = std::move(other76.pid); - err = std::move(other76.err); - last_committed_decree_in_app = std::move(other76.last_committed_decree_in_app); - last_committed_decree_in_prepare_list = std::move(other76.last_committed_decree_in_prepare_list); - learner_status_ = std::move(other76.learner_status_); - learner_signature = std::move(other76.learner_signature); - node = std::move(other76.node); - __isset = std::move(other76.__isset); - return *this; -} -void group_check_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "group_check_response("; - out << "pid=" << to_string(pid); - out << ", " << "err=" << to_string(err); - out << ", " << "last_committed_decree_in_app=" << to_string(last_committed_decree_in_app); - out << ", " << "last_committed_decree_in_prepare_list=" << to_string(last_committed_decree_in_prepare_list); - out << ", " << "learner_status_=" << to_string(learner_status_); - out << ", " << "learner_signature=" << to_string(learner_signature); - out << ", " << "node=" << to_string(node); - out << ")"; -} - - -node_info::~node_info() throw() { -} - - -void node_info::__set_status(const node_status::type val) { - this->status = val; -} - -void node_info::__set_address(const ::dsn::rpc_address& val) { - this->address = val; -} - -uint32_t node_info::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast77; - xfer += iprot->readI32(ecast77); - this->status = (node_status::type)ecast77; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->address.read(iprot); - this->__isset.address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_drop_app_request &a, configuration_drop_app_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.options, b.options); + swap(a.__isset, b.__isset); +} + +configuration_drop_app_request::configuration_drop_app_request( + const configuration_drop_app_request &other150) +{ + app_name = other150.app_name; + options = other150.options; + __isset = other150.__isset; +} +configuration_drop_app_request::configuration_drop_app_request( + configuration_drop_app_request &&other151) +{ + app_name = std::move(other151.app_name); + options = std::move(other151.options); + __isset = std::move(other151.__isset); +} +configuration_drop_app_request &configuration_drop_app_request:: +operator=(const configuration_drop_app_request &other152) +{ + app_name = other152.app_name; + options = other152.options; + __isset = other152.__isset; + return *this; +} +configuration_drop_app_request &configuration_drop_app_request:: +operator=(configuration_drop_app_request &&other153) +{ + app_name = std::move(other153.app_name); + options = std::move(other153.options); + __isset = std::move(other153.__isset); + return *this; +} +void configuration_drop_app_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_drop_app_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "options=" << to_string(options); + out << ")"; +} + +configuration_list_apps_request::~configuration_list_apps_request() throw() {} + +void configuration_list_apps_request::__set_status(const ::dsn::app_status::type val) +{ + this->status = val; +} + +uint32_t configuration_list_apps_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast154; + xfer += iprot->readI32(ecast154); + this->status = (::dsn::app_status::type)ecast154; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t node_info::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("node_info"); +uint32_t configuration_list_apps_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_list_apps_request"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("address", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->address.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_list_apps_request &a, configuration_list_apps_request &b) +{ + using ::std::swap; + swap(a.status, b.status); + swap(a.__isset, b.__isset); +} + +configuration_list_apps_request::configuration_list_apps_request( + const configuration_list_apps_request &other155) +{ + status = other155.status; + __isset = other155.__isset; +} +configuration_list_apps_request::configuration_list_apps_request( + configuration_list_apps_request &&other156) +{ + status = std::move(other156.status); + __isset = std::move(other156.__isset); +} +configuration_list_apps_request &configuration_list_apps_request:: +operator=(const configuration_list_apps_request &other157) +{ + status = other157.status; + __isset = other157.__isset; + return *this; +} +configuration_list_apps_request &configuration_list_apps_request:: +operator=(configuration_list_apps_request &&other158) +{ + status = std::move(other158.status); + __isset = std::move(other158.__isset); + return *this; +} +void configuration_list_apps_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_list_apps_request("; + out << "status=" << to_string(status); + out << ")"; +} + +configuration_list_nodes_request::~configuration_list_nodes_request() throw() {} + +void configuration_list_nodes_request::__set_status(const node_status::type val) +{ + this->status = val; +} + +uint32_t configuration_list_nodes_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast159; + xfer += iprot->readI32(ecast159); + this->status = (node_status::type)ecast159; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += iprot->readStructEnd(); -void swap(node_info &a, node_info &b) { - using ::std::swap; - swap(a.status, b.status); - swap(a.address, b.address); - swap(a.__isset, b.__isset); + return xfer; } -node_info::node_info(const node_info& other78) { - status = other78.status; - address = other78.address; - __isset = other78.__isset; -} -node_info::node_info( node_info&& other79) { - status = std::move(other79.status); - address = std::move(other79.address); - __isset = std::move(other79.__isset); -} -node_info& node_info::operator=(const node_info& other80) { - status = other80.status; - address = other80.address; - __isset = other80.__isset; - return *this; -} -node_info& node_info::operator=(node_info&& other81) { - status = std::move(other81.status); - address = std::move(other81.address); - __isset = std::move(other81.__isset); - return *this; -} -void node_info::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "node_info("; - out << "status=" << to_string(status); - out << ", " << "address=" << to_string(address); - out << ")"; -} +uint32_t configuration_list_nodes_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_list_nodes_request"); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); -configuration_update_request::~configuration_update_request() throw() { + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } - -void configuration_update_request::__set_info(const ::dsn::app_info& val) { - this->info = val; +void swap(configuration_list_nodes_request &a, configuration_list_nodes_request &b) +{ + using ::std::swap; + swap(a.status, b.status); + swap(a.__isset, b.__isset); } -void configuration_update_request::__set_config(const ::dsn::partition_configuration& val) { - this->config = val; +configuration_list_nodes_request::configuration_list_nodes_request( + const configuration_list_nodes_request &other160) +{ + status = other160.status; + __isset = other160.__isset; } - -void configuration_update_request::__set_type(const config_type::type val) { - this->type = val; +configuration_list_nodes_request::configuration_list_nodes_request( + configuration_list_nodes_request &&other161) +{ + status = std::move(other161.status); + __isset = std::move(other161.__isset); } - -void configuration_update_request::__set_node(const ::dsn::rpc_address& val) { - this->node = val; +configuration_list_nodes_request &configuration_list_nodes_request:: +operator=(const configuration_list_nodes_request &other162) +{ + status = other162.status; + __isset = other162.__isset; + return *this; } - -void configuration_update_request::__set_host_node(const ::dsn::rpc_address& val) { - this->host_node = val; +configuration_list_nodes_request &configuration_list_nodes_request:: +operator=(configuration_list_nodes_request &&other163) +{ + status = std::move(other163.status); + __isset = std::move(other163.__isset); + return *this; } - -void configuration_update_request::__set_meta_split_status(const split_status::type val) { - this->meta_split_status = val; -__isset.meta_split_status = true; +void configuration_list_nodes_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_list_nodes_request("; + out << "status=" << to_string(status); + out << ")"; } -uint32_t configuration_update_request::read(::apache::thrift::protocol::TProtocol* iprot) { +configuration_cluster_info_request::~configuration_cluster_info_request() throw() {} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t configuration_cluster_info_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->info.read(iprot); - this->__isset.info = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast82; - xfer += iprot->readI32(ecast82); - this->type = (config_type::type)ecast82; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->host_node.read(iprot); - this->__isset.host_node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast83; - xfer += iprot->readI32(ecast83); - this->meta_split_status = (split_status::type)ecast83; - this->__isset.meta_split_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_update_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_update_request"); - - xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->info.write(oprot); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); + return xfer; +} - xfer += oprot->writeFieldBegin("host_node", ::apache::thrift::protocol::T_STRUCT, 5); - xfer += this->host_node.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t +configuration_cluster_info_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_cluster_info_request"); - if (this->__isset.meta_split_status) { - xfer += oprot->writeFieldBegin("meta_split_status", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((int32_t)this->meta_split_status); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_update_request &a, configuration_update_request &b) { - using ::std::swap; - swap(a.info, b.info); - swap(a.config, b.config); - swap(a.type, b.type); - swap(a.node, b.node); - swap(a.host_node, b.host_node); - swap(a.meta_split_status, b.meta_split_status); - swap(a.__isset, b.__isset); +void swap(configuration_cluster_info_request &a, configuration_cluster_info_request &b) +{ + using ::std::swap; + (void)a; + (void)b; } -configuration_update_request::configuration_update_request(const configuration_update_request& other84) { - info = other84.info; - config = other84.config; - type = other84.type; - node = other84.node; - host_node = other84.host_node; - meta_split_status = other84.meta_split_status; - __isset = other84.__isset; +configuration_cluster_info_request::configuration_cluster_info_request( + const configuration_cluster_info_request &other164) +{ + (void)other164; } -configuration_update_request::configuration_update_request( configuration_update_request&& other85) { - info = std::move(other85.info); - config = std::move(other85.config); - type = std::move(other85.type); - node = std::move(other85.node); - host_node = std::move(other85.host_node); - meta_split_status = std::move(other85.meta_split_status); - __isset = std::move(other85.__isset); +configuration_cluster_info_request::configuration_cluster_info_request( + configuration_cluster_info_request &&other165) +{ + (void)other165; } -configuration_update_request& configuration_update_request::operator=(const configuration_update_request& other86) { - info = other86.info; - config = other86.config; - type = other86.type; - node = other86.node; - host_node = other86.host_node; - meta_split_status = other86.meta_split_status; - __isset = other86.__isset; - return *this; +configuration_cluster_info_request &configuration_cluster_info_request:: +operator=(const configuration_cluster_info_request &other166) +{ + (void)other166; + return *this; } -configuration_update_request& configuration_update_request::operator=(configuration_update_request&& other87) { - info = std::move(other87.info); - config = std::move(other87.config); - type = std::move(other87.type); - node = std::move(other87.node); - host_node = std::move(other87.host_node); - meta_split_status = std::move(other87.meta_split_status); - __isset = std::move(other87.__isset); - return *this; +configuration_cluster_info_request &configuration_cluster_info_request:: +operator=(configuration_cluster_info_request &&other167) +{ + (void)other167; + return *this; } -void configuration_update_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_update_request("; - out << "info=" << to_string(info); - out << ", " << "config=" << to_string(config); - out << ", " << "type=" << to_string(type); - out << ", " << "node=" << to_string(node); - out << ", " << "host_node=" << to_string(host_node); - out << ", " << "meta_split_status="; (__isset.meta_split_status ? (out << to_string(meta_split_status)) : (out << "")); - out << ")"; +void configuration_cluster_info_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_cluster_info_request("; + out << ")"; } +configuration_recall_app_request::~configuration_recall_app_request() throw() {} + +void configuration_recall_app_request::__set_app_id(const int32_t val) { this->app_id = val; } -configuration_update_response::~configuration_update_response() throw() { -} - - -void configuration_update_response::__set_err(const ::dsn::error_code& val) { - this->err = val; +void configuration_recall_app_request::__set_new_app_name(const std::string &val) +{ + this->new_app_name = val; } -void configuration_update_response::__set_config(const ::dsn::partition_configuration& val) { - this->config = val; -} +uint32_t configuration_recall_app_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ -uint32_t configuration_update_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->new_app_name); + this->__isset.new_app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t configuration_recall_app_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_recall_app_request"); + + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("new_app_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->new_app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_recall_app_request &a, configuration_recall_app_request &b) +{ + using ::std::swap; + swap(a.app_id, b.app_id); + swap(a.new_app_name, b.new_app_name); + swap(a.__isset, b.__isset); +} + +configuration_recall_app_request::configuration_recall_app_request( + const configuration_recall_app_request &other168) +{ + app_id = other168.app_id; + new_app_name = other168.new_app_name; + __isset = other168.__isset; +} +configuration_recall_app_request::configuration_recall_app_request( + configuration_recall_app_request &&other169) +{ + app_id = std::move(other169.app_id); + new_app_name = std::move(other169.new_app_name); + __isset = std::move(other169.__isset); +} +configuration_recall_app_request &configuration_recall_app_request:: +operator=(const configuration_recall_app_request &other170) +{ + app_id = other170.app_id; + new_app_name = other170.new_app_name; + __isset = other170.__isset; + return *this; +} +configuration_recall_app_request &configuration_recall_app_request:: +operator=(configuration_recall_app_request &&other171) +{ + app_id = std::move(other171.app_id); + new_app_name = std::move(other171.new_app_name); + __isset = std::move(other171.__isset); + return *this; +} +void configuration_recall_app_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_recall_app_request("; + out << "app_id=" << to_string(app_id); + out << ", " + << "new_app_name=" << to_string(new_app_name); + out << ")"; +} + +configuration_create_app_response::~configuration_create_app_response() throw() {} + +void configuration_create_app_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void configuration_create_app_response::__set_appid(const int32_t val) { this->appid = val; } + +uint32_t configuration_create_app_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->appid); + this->__isset.appid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_update_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_update_response"); +uint32_t +configuration_create_app_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_create_app_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->appid); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_create_app_response &a, configuration_create_app_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.appid, b.appid); + swap(a.__isset, b.__isset); +} + +configuration_create_app_response::configuration_create_app_response( + const configuration_create_app_response &other172) +{ + err = other172.err; + appid = other172.appid; + __isset = other172.__isset; +} +configuration_create_app_response::configuration_create_app_response( + configuration_create_app_response &&other173) +{ + err = std::move(other173.err); + appid = std::move(other173.appid); + __isset = std::move(other173.__isset); +} +configuration_create_app_response &configuration_create_app_response:: +operator=(const configuration_create_app_response &other174) +{ + err = other174.err; + appid = other174.appid; + __isset = other174.__isset; + return *this; +} +configuration_create_app_response &configuration_create_app_response:: +operator=(configuration_create_app_response &&other175) +{ + err = std::move(other175.err); + appid = std::move(other175.appid); + __isset = std::move(other175.__isset); + return *this; +} +void configuration_create_app_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_create_app_response("; + out << "err=" << to_string(err); + out << ", " + << "appid=" << to_string(appid); + out << ")"; +} + +configuration_meta_control_request::~configuration_meta_control_request() throw() {} + +void configuration_meta_control_request::__set_level(const meta_function_level::type val) +{ + this->level = val; +} + +uint32_t configuration_meta_control_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast176; + xfer += iprot->readI32(ecast176); + this->level = (meta_function_level::type)ecast176; + this->__isset.level = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(configuration_update_response &a, configuration_update_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.config, b.config); - swap(a.__isset, b.__isset); +uint32_t +configuration_meta_control_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_meta_control_request"); + + xfer += oprot->writeFieldBegin("level", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->level); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -configuration_update_response::configuration_update_response(const configuration_update_response& other88) { - err = other88.err; - config = other88.config; - __isset = other88.__isset; +void swap(configuration_meta_control_request &a, configuration_meta_control_request &b) +{ + using ::std::swap; + swap(a.level, b.level); + swap(a.__isset, b.__isset); } -configuration_update_response::configuration_update_response( configuration_update_response&& other89) { - err = std::move(other89.err); - config = std::move(other89.config); - __isset = std::move(other89.__isset); + +configuration_meta_control_request::configuration_meta_control_request( + const configuration_meta_control_request &other177) +{ + level = other177.level; + __isset = other177.__isset; } -configuration_update_response& configuration_update_response::operator=(const configuration_update_response& other90) { - err = other90.err; - config = other90.config; - __isset = other90.__isset; - return *this; +configuration_meta_control_request::configuration_meta_control_request( + configuration_meta_control_request &&other178) +{ + level = std::move(other178.level); + __isset = std::move(other178.__isset); } -configuration_update_response& configuration_update_response::operator=(configuration_update_response&& other91) { - err = std::move(other91.err); - config = std::move(other91.config); - __isset = std::move(other91.__isset); - return *this; +configuration_meta_control_request &configuration_meta_control_request:: +operator=(const configuration_meta_control_request &other179) +{ + level = other179.level; + __isset = other179.__isset; + return *this; } -void configuration_update_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_update_response("; - out << "err=" << to_string(err); - out << ", " << "config=" << to_string(config); - out << ")"; +configuration_meta_control_request &configuration_meta_control_request:: +operator=(configuration_meta_control_request &&other180) +{ + level = std::move(other180.level); + __isset = std::move(other180.__isset); + return *this; } - - -replica_server_info::~replica_server_info() throw() { +void configuration_meta_control_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_meta_control_request("; + out << "level=" << to_string(level); + out << ")"; } +configuration_meta_control_response::~configuration_meta_control_response() throw() {} -void replica_server_info::__set_geo_tags(const std::map & val) { - this->geo_tags = val; +void configuration_meta_control_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; } -void replica_server_info::__set_total_capacity_mb(const int64_t val) { - this->total_capacity_mb = val; +void configuration_meta_control_response::__set_old_level(const meta_function_level::type val) +{ + this->old_level = val; } -uint32_t replica_server_info::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t configuration_meta_control_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->geo_tags.clear(); - uint32_t _size92; - ::apache::thrift::protocol::TType _ktype93; - ::apache::thrift::protocol::TType _vtype94; - xfer += iprot->readMapBegin(_ktype93, _vtype94, _size92); - uint32_t _i96; - for (_i96 = 0; _i96 < _size92; ++_i96) - { - std::string _key97; - xfer += iprot->readString(_key97); - std::string& _val98 = this->geo_tags[_key97]; - xfer += iprot->readString(_val98); - } - xfer += iprot->readMapEnd(); - } - this->__isset.geo_tags = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->total_capacity_mb); - this->__isset.total_capacity_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast181; + xfer += iprot->readI32(ecast181); + this->old_level = (meta_function_level::type)ecast181; + this->__isset.old_level = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t replica_server_info::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_server_info"); +uint32_t +configuration_meta_control_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_meta_control_response"); - xfer += oprot->writeFieldBegin("geo_tags", ::apache::thrift::protocol::T_MAP, 1); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->geo_tags.size())); - std::map ::const_iterator _iter99; - for (_iter99 = this->geo_tags.begin(); _iter99 != this->geo_tags.end(); ++_iter99) - { - xfer += oprot->writeString(_iter99->first); - xfer += oprot->writeString(_iter99->second); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("old_level", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->old_level); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_meta_control_response &a, configuration_meta_control_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.old_level, b.old_level); + swap(a.__isset, b.__isset); +} + +configuration_meta_control_response::configuration_meta_control_response( + const configuration_meta_control_response &other182) +{ + err = other182.err; + old_level = other182.old_level; + __isset = other182.__isset; +} +configuration_meta_control_response::configuration_meta_control_response( + configuration_meta_control_response &&other183) +{ + err = std::move(other183.err); + old_level = std::move(other183.old_level); + __isset = std::move(other183.__isset); +} +configuration_meta_control_response &configuration_meta_control_response:: +operator=(const configuration_meta_control_response &other184) +{ + err = other184.err; + old_level = other184.old_level; + __isset = other184.__isset; + return *this; +} +configuration_meta_control_response &configuration_meta_control_response:: +operator=(configuration_meta_control_response &&other185) +{ + err = std::move(other185.err); + old_level = std::move(other185.old_level); + __isset = std::move(other185.__isset); + return *this; +} +void configuration_meta_control_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_meta_control_response("; + out << "err=" << to_string(err); + out << ", " + << "old_level=" << to_string(old_level); + out << ")"; +} + +configuration_proposal_action::~configuration_proposal_action() throw() {} + +void configuration_proposal_action::__set_target(const ::dsn::rpc_address &val) +{ + this->target = val; +} + +void configuration_proposal_action::__set_node(const ::dsn::rpc_address &val) { this->node = val; } + +void configuration_proposal_action::__set_type(const config_type::type val) { this->type = val; } + +uint32_t configuration_proposal_action::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->target.read(iprot); + this->__isset.target = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast186; + xfer += iprot->readI32(ecast186); + this->type = (config_type::type)ecast186; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("total_capacity_mb", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->total_capacity_mb); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(replica_server_info &a, replica_server_info &b) { - using ::std::swap; - swap(a.geo_tags, b.geo_tags); - swap(a.total_capacity_mb, b.total_capacity_mb); - swap(a.__isset, b.__isset); -} +uint32_t configuration_proposal_action::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_proposal_action"); -replica_server_info::replica_server_info(const replica_server_info& other100) { - geo_tags = other100.geo_tags; - total_capacity_mb = other100.total_capacity_mb; - __isset = other100.__isset; -} -replica_server_info::replica_server_info( replica_server_info&& other101) { - geo_tags = std::move(other101.geo_tags); - total_capacity_mb = std::move(other101.total_capacity_mb); - __isset = std::move(other101.__isset); -} -replica_server_info& replica_server_info::operator=(const replica_server_info& other102) { - geo_tags = other102.geo_tags; - total_capacity_mb = other102.total_capacity_mb; - __isset = other102.__isset; - return *this; -} -replica_server_info& replica_server_info::operator=(replica_server_info&& other103) { - geo_tags = std::move(other103.geo_tags); - total_capacity_mb = std::move(other103.total_capacity_mb); - __isset = std::move(other103.__isset); - return *this; -} -void replica_server_info::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "replica_server_info("; - out << "geo_tags=" << to_string(geo_tags); - out << ", " << "total_capacity_mb=" << to_string(total_capacity_mb); - out << ")"; -} + xfer += oprot->writeFieldBegin("target", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->target.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); -configuration_query_by_node_request::~configuration_query_by_node_request() throw() { -} + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_proposal_action &a, configuration_proposal_action &b) +{ + using ::std::swap; + swap(a.target, b.target); + swap(a.node, b.node); + swap(a.type, b.type); + swap(a.__isset, b.__isset); +} + +configuration_proposal_action::configuration_proposal_action( + const configuration_proposal_action &other187) +{ + target = other187.target; + node = other187.node; + type = other187.type; + __isset = other187.__isset; +} +configuration_proposal_action::configuration_proposal_action( + configuration_proposal_action &&other188) +{ + target = std::move(other188.target); + node = std::move(other188.node); + type = std::move(other188.type); + __isset = std::move(other188.__isset); +} +configuration_proposal_action &configuration_proposal_action:: +operator=(const configuration_proposal_action &other189) +{ + target = other189.target; + node = other189.node; + type = other189.type; + __isset = other189.__isset; + return *this; +} +configuration_proposal_action &configuration_proposal_action:: +operator=(configuration_proposal_action &&other190) +{ + target = std::move(other190.target); + node = std::move(other190.node); + type = std::move(other190.type); + __isset = std::move(other190.__isset); + return *this; +} +void configuration_proposal_action::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_proposal_action("; + out << "target=" << to_string(target); + out << ", " + << "node=" << to_string(node); + out << ", " + << "type=" << to_string(type); + out << ")"; +} + +configuration_balancer_request::~configuration_balancer_request() throw() {} + +void configuration_balancer_request::__set_gpid(const ::dsn::gpid &val) { this->gpid = val; } + +void configuration_balancer_request::__set_action_list( + const std::vector &val) +{ + this->action_list = val; +} + +void configuration_balancer_request::__set_force(const bool val) +{ + this->force = val; + __isset.force = true; +} + +void configuration_balancer_request::__set_balance_type(const balancer_request_type::type val) +{ + this->balance_type = val; + __isset.balance_type = true; +} + +uint32_t configuration_balancer_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->gpid.read(iprot); + this->__isset.gpid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->action_list.clear(); + uint32_t _size191; + ::apache::thrift::protocol::TType _etype194; + xfer += iprot->readListBegin(_etype194, _size191); + this->action_list.resize(_size191); + uint32_t _i195; + for (_i195 = 0; _i195 < _size191; ++_i195) { + xfer += this->action_list[_i195].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.action_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->force); + this->__isset.force = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast196; + xfer += iprot->readI32(ecast196); + this->balance_type = (balancer_request_type::type)ecast196; + this->__isset.balance_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -void configuration_query_by_node_request::__set_node(const ::dsn::rpc_address& val) { - this->node = val; + return xfer; } -void configuration_query_by_node_request::__set_stored_replicas(const std::vector & val) { - this->stored_replicas = val; -__isset.stored_replicas = true; -} +uint32_t configuration_balancer_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_balancer_request"); -void configuration_query_by_node_request::__set_info(const replica_server_info& val) { - this->info = val; -__isset.info = true; -} + xfer += oprot->writeFieldBegin("gpid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->gpid.write(oprot); + xfer += oprot->writeFieldEnd(); -uint32_t configuration_query_by_node_request::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldBegin("action_list", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->action_list.size())); + std::vector::const_iterator _iter197; + for (_iter197 = this->action_list.begin(); _iter197 != this->action_list.end(); + ++_iter197) { + xfer += (*_iter197).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + if (this->__isset.force) { + xfer += oprot->writeFieldBegin("force", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->force); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.balance_type) { + xfer += oprot->writeFieldBegin("balance_type", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->balance_type); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_balancer_request &a, configuration_balancer_request &b) +{ + using ::std::swap; + swap(a.gpid, b.gpid); + swap(a.action_list, b.action_list); + swap(a.force, b.force); + swap(a.balance_type, b.balance_type); + swap(a.__isset, b.__isset); +} + +configuration_balancer_request::configuration_balancer_request( + const configuration_balancer_request &other198) +{ + gpid = other198.gpid; + action_list = other198.action_list; + force = other198.force; + balance_type = other198.balance_type; + __isset = other198.__isset; +} +configuration_balancer_request::configuration_balancer_request( + configuration_balancer_request &&other199) +{ + gpid = std::move(other199.gpid); + action_list = std::move(other199.action_list); + force = std::move(other199.force); + balance_type = std::move(other199.balance_type); + __isset = std::move(other199.__isset); +} +configuration_balancer_request &configuration_balancer_request:: +operator=(const configuration_balancer_request &other200) +{ + gpid = other200.gpid; + action_list = other200.action_list; + force = other200.force; + balance_type = other200.balance_type; + __isset = other200.__isset; + return *this; +} +configuration_balancer_request &configuration_balancer_request:: +operator=(configuration_balancer_request &&other201) +{ + gpid = std::move(other201.gpid); + action_list = std::move(other201.action_list); + force = std::move(other201.force); + balance_type = std::move(other201.balance_type); + __isset = std::move(other201.__isset); + return *this; +} +void configuration_balancer_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_balancer_request("; + out << "gpid=" << to_string(gpid); + out << ", " + << "action_list=" << to_string(action_list); + out << ", " + << "force="; + (__isset.force ? (out << to_string(force)) : (out << "")); + out << ", " + << "balance_type="; + (__isset.balance_type ? (out << to_string(balance_type)) : (out << "")); + out << ")"; +} + +configuration_balancer_response::~configuration_balancer_response() throw() {} + +void configuration_balancer_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +uint32_t configuration_balancer_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructEnd(); - xfer += iprot->readStructBegin(fname); + return xfer; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t configuration_balancer_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_balancer_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->stored_replicas.clear(); - uint32_t _size104; - ::apache::thrift::protocol::TType _etype107; - xfer += iprot->readListBegin(_etype107, _size104); - this->stored_replicas.resize(_size104); - uint32_t _i108; - for (_i108 = 0; _i108 < _size104; ++_i108) - { - xfer += this->stored_replicas[_i108].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.stored_replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->info.read(iprot); - this->__isset.info = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_balancer_response &a, configuration_balancer_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); +} + +configuration_balancer_response::configuration_balancer_response( + const configuration_balancer_response &other202) +{ + err = other202.err; + __isset = other202.__isset; +} +configuration_balancer_response::configuration_balancer_response( + configuration_balancer_response &&other203) +{ + err = std::move(other203.err); + __isset = std::move(other203.__isset); +} +configuration_balancer_response &configuration_balancer_response:: +operator=(const configuration_balancer_response &other204) +{ + err = other204.err; + __isset = other204.__isset; + return *this; +} +configuration_balancer_response &configuration_balancer_response:: +operator=(configuration_balancer_response &&other205) +{ + err = std::move(other205.err); + __isset = std::move(other205.__isset); + return *this; +} +void configuration_balancer_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_balancer_response("; + out << "err=" << to_string(err); + out << ")"; +} + +configuration_drop_app_response::~configuration_drop_app_response() throw() {} + +void configuration_drop_app_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +uint32_t configuration_drop_app_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_query_by_node_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_by_node_request"); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_drop_app_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_drop_app_response"); - if (this->__isset.stored_replicas) { - xfer += oprot->writeFieldBegin("stored_replicas", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->stored_replicas.size())); - std::vector ::const_iterator _iter109; - for (_iter109 = this->stored_replicas.begin(); _iter109 != this->stored_replicas.end(); ++_iter109) - { - xfer += (*_iter109).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); xfer += oprot->writeFieldEnd(); - } - if (this->__isset.info) { - xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->info.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_query_by_node_request &a, configuration_query_by_node_request &b) { - using ::std::swap; - swap(a.node, b.node); - swap(a.stored_replicas, b.stored_replicas); - swap(a.info, b.info); - swap(a.__isset, b.__isset); +void swap(configuration_drop_app_response &a, configuration_drop_app_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); } -configuration_query_by_node_request::configuration_query_by_node_request(const configuration_query_by_node_request& other110) { - node = other110.node; - stored_replicas = other110.stored_replicas; - info = other110.info; - __isset = other110.__isset; +configuration_drop_app_response::configuration_drop_app_response( + const configuration_drop_app_response &other206) +{ + err = other206.err; + __isset = other206.__isset; } -configuration_query_by_node_request::configuration_query_by_node_request( configuration_query_by_node_request&& other111) { - node = std::move(other111.node); - stored_replicas = std::move(other111.stored_replicas); - info = std::move(other111.info); - __isset = std::move(other111.__isset); +configuration_drop_app_response::configuration_drop_app_response( + configuration_drop_app_response &&other207) +{ + err = std::move(other207.err); + __isset = std::move(other207.__isset); } -configuration_query_by_node_request& configuration_query_by_node_request::operator=(const configuration_query_by_node_request& other112) { - node = other112.node; - stored_replicas = other112.stored_replicas; - info = other112.info; - __isset = other112.__isset; - return *this; +configuration_drop_app_response &configuration_drop_app_response:: +operator=(const configuration_drop_app_response &other208) +{ + err = other208.err; + __isset = other208.__isset; + return *this; } -configuration_query_by_node_request& configuration_query_by_node_request::operator=(configuration_query_by_node_request&& other113) { - node = std::move(other113.node); - stored_replicas = std::move(other113.stored_replicas); - info = std::move(other113.info); - __isset = std::move(other113.__isset); - return *this; +configuration_drop_app_response &configuration_drop_app_response:: +operator=(configuration_drop_app_response &&other209) +{ + err = std::move(other209.err); + __isset = std::move(other209.__isset); + return *this; } -void configuration_query_by_node_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_query_by_node_request("; - out << "node=" << to_string(node); - out << ", " << "stored_replicas="; (__isset.stored_replicas ? (out << to_string(stored_replicas)) : (out << "")); - out << ", " << "info="; (__isset.info ? (out << to_string(info)) : (out << "")); - out << ")"; +void configuration_drop_app_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_drop_app_response("; + out << "err=" << to_string(err); + out << ")"; } +configuration_list_apps_response::~configuration_list_apps_response() throw() {} + +void configuration_list_apps_response::__set_err(const ::dsn::error_code &val) { this->err = val; } -configuration_query_by_node_response::~configuration_query_by_node_response() throw() { +void configuration_list_apps_response::__set_infos(const std::vector<::dsn::app_info> &val) +{ + this->infos = val; } +uint32_t configuration_list_apps_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ -void configuration_query_by_node_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; -void configuration_query_by_node_response::__set_partitions(const std::vector & val) { - this->partitions = val; -} + xfer += iprot->readStructBegin(fname); -void configuration_query_by_node_response::__set_gc_replicas(const std::vector & val) { - this->gc_replicas = val; -__isset.gc_replicas = true; -} + using ::apache::thrift::protocol::TProtocolException; -uint32_t configuration_query_by_node_response::read(::apache::thrift::protocol::TProtocol* iprot) { + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->infos.clear(); + uint32_t _size210; + ::apache::thrift::protocol::TType _etype213; + xfer += iprot->readListBegin(_etype213, _size210); + this->infos.resize(_size210); + uint32_t _i214; + for (_i214 = 0; _i214 < _size210; ++_i214) { + xfer += this->infos[_i214].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.infos = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructEnd(); - xfer += iprot->readStructBegin(fname); + return xfer; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t configuration_list_apps_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_list_apps_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("infos", ::apache::thrift::protocol::T_LIST, 2); { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partitions.clear(); - uint32_t _size114; - ::apache::thrift::protocol::TType _etype117; - xfer += iprot->readListBegin(_etype117, _size114); - this->partitions.resize(_size114); - uint32_t _i118; - for (_i118 = 0; _i118 < _size114; ++_i118) - { - xfer += this->partitions[_i118].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.partitions = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->gc_replicas.clear(); - uint32_t _size119; - ::apache::thrift::protocol::TType _etype122; - xfer += iprot->readListBegin(_etype122, _size119); - this->gc_replicas.resize(_size119); - uint32_t _i123; - for (_i123 = 0; _i123 < _size119; ++_i123) - { - xfer += this->gc_replicas[_i123].read(iprot); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->infos.size())); + std::vector<::dsn::app_info>::const_iterator _iter215; + for (_iter215 = this->infos.begin(); _iter215 != this->infos.end(); ++_iter215) { + xfer += (*_iter215).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_list_apps_response &a, configuration_list_apps_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.infos, b.infos); + swap(a.__isset, b.__isset); +} + +configuration_list_apps_response::configuration_list_apps_response( + const configuration_list_apps_response &other216) +{ + err = other216.err; + infos = other216.infos; + __isset = other216.__isset; +} +configuration_list_apps_response::configuration_list_apps_response( + configuration_list_apps_response &&other217) +{ + err = std::move(other217.err); + infos = std::move(other217.infos); + __isset = std::move(other217.__isset); +} +configuration_list_apps_response &configuration_list_apps_response:: +operator=(const configuration_list_apps_response &other218) +{ + err = other218.err; + infos = other218.infos; + __isset = other218.__isset; + return *this; +} +configuration_list_apps_response &configuration_list_apps_response:: +operator=(configuration_list_apps_response &&other219) +{ + err = std::move(other219.err); + infos = std::move(other219.infos); + __isset = std::move(other219.__isset); + return *this; +} +void configuration_list_apps_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_list_apps_response("; + out << "err=" << to_string(err); + out << ", " + << "infos=" << to_string(infos); + out << ")"; +} + +configuration_list_nodes_response::~configuration_list_nodes_response() throw() {} + +void configuration_list_nodes_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void configuration_list_nodes_response::__set_infos(const std::vector &val) +{ + this->infos = val; +} + +uint32_t configuration_list_nodes_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.gc_replicas = true; - } else { - xfer += iprot->skip(ftype); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->infos.clear(); + uint32_t _size220; + ::apache::thrift::protocol::TType _etype223; + xfer += iprot->readListBegin(_etype223, _size220); + this->infos.resize(_size220); + uint32_t _i224; + for (_i224 = 0; _i224 < _size220; ++_i224) { + xfer += this->infos[_i224].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.infos = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_query_by_node_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_by_node_response"); +uint32_t +configuration_list_nodes_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_list_nodes_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter124; - for (_iter124 = this->partitions.begin(); _iter124 != this->partitions.end(); ++_iter124) - { - xfer += (*_iter124).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - if (this->__isset.gc_replicas) { - xfer += oprot->writeFieldBegin("gc_replicas", ::apache::thrift::protocol::T_LIST, 3); + xfer += oprot->writeFieldBegin("infos", ::apache::thrift::protocol::T_LIST, 2); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->gc_replicas.size())); - std::vector ::const_iterator _iter125; - for (_iter125 = this->gc_replicas.begin(); _iter125 != this->gc_replicas.end(); ++_iter125) - { - xfer += (*_iter125).write(oprot); - } - xfer += oprot->writeListEnd(); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->infos.size())); + std::vector::const_iterator _iter225; + for (_iter225 = this->infos.begin(); _iter225 != this->infos.end(); ++_iter225) { + xfer += (*_iter225).write(oprot); + } + xfer += oprot->writeListEnd(); } xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_by_node_response &a, configuration_query_by_node_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.partitions, b.partitions); - swap(a.gc_replicas, b.gc_replicas); - swap(a.__isset, b.__isset); -} -configuration_query_by_node_response::configuration_query_by_node_response(const configuration_query_by_node_response& other126) { - err = other126.err; - partitions = other126.partitions; - gc_replicas = other126.gc_replicas; - __isset = other126.__isset; -} -configuration_query_by_node_response::configuration_query_by_node_response( configuration_query_by_node_response&& other127) { - err = std::move(other127.err); - partitions = std::move(other127.partitions); - gc_replicas = std::move(other127.gc_replicas); - __isset = std::move(other127.__isset); -} -configuration_query_by_node_response& configuration_query_by_node_response::operator=(const configuration_query_by_node_response& other128) { - err = other128.err; - partitions = other128.partitions; - gc_replicas = other128.gc_replicas; - __isset = other128.__isset; - return *this; -} -configuration_query_by_node_response& configuration_query_by_node_response::operator=(configuration_query_by_node_response&& other129) { - err = std::move(other129.err); - partitions = std::move(other129.partitions); - gc_replicas = std::move(other129.gc_replicas); - __isset = std::move(other129.__isset); - return *this; -} -void configuration_query_by_node_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_query_by_node_response("; - out << "err=" << to_string(err); - out << ", " << "partitions=" << to_string(partitions); - out << ", " << "gc_replicas="; (__isset.gc_replicas ? (out << to_string(gc_replicas)) : (out << "")); - out << ")"; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_list_nodes_response &a, configuration_list_nodes_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.infos, b.infos); + swap(a.__isset, b.__isset); +} + +configuration_list_nodes_response::configuration_list_nodes_response( + const configuration_list_nodes_response &other226) +{ + err = other226.err; + infos = other226.infos; + __isset = other226.__isset; +} +configuration_list_nodes_response::configuration_list_nodes_response( + configuration_list_nodes_response &&other227) +{ + err = std::move(other227.err); + infos = std::move(other227.infos); + __isset = std::move(other227.__isset); +} +configuration_list_nodes_response &configuration_list_nodes_response:: +operator=(const configuration_list_nodes_response &other228) +{ + err = other228.err; + infos = other228.infos; + __isset = other228.__isset; + return *this; +} +configuration_list_nodes_response &configuration_list_nodes_response:: +operator=(configuration_list_nodes_response &&other229) +{ + err = std::move(other229.err); + infos = std::move(other229.infos); + __isset = std::move(other229.__isset); + return *this; +} +void configuration_list_nodes_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_list_nodes_response("; + out << "err=" << to_string(err); + out << ", " + << "infos=" << to_string(infos); + out << ")"; +} + +configuration_cluster_info_response::~configuration_cluster_info_response() throw() {} + +void configuration_cluster_info_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; +} + +void configuration_cluster_info_response::__set_keys(const std::vector &val) +{ + this->keys = val; +} + +void configuration_cluster_info_response::__set_values(const std::vector &val) +{ + this->values = val; +} + +uint32_t configuration_cluster_info_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->keys.clear(); + uint32_t _size230; + ::apache::thrift::protocol::TType _etype233; + xfer += iprot->readListBegin(_etype233, _size230); + this->keys.resize(_size230); + uint32_t _i234; + for (_i234 = 0; _i234 < _size230; ++_i234) { + xfer += iprot->readString(this->keys[_i234]); + } + xfer += iprot->readListEnd(); + } + this->__isset.keys = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->values.clear(); + uint32_t _size235; + ::apache::thrift::protocol::TType _etype238; + xfer += iprot->readListBegin(_etype238, _size235); + this->values.resize(_size235); + uint32_t _i239; + for (_i239 = 0; _i239 < _size235; ++_i239) { + xfer += iprot->readString(this->values[_i239]); + } + xfer += iprot->readListEnd(); + } + this->__isset.values = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -create_app_options::~create_app_options() throw() { + return xfer; } +uint32_t +configuration_cluster_info_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_cluster_info_response"); -void create_app_options::__set_partition_count(const int32_t val) { - this->partition_count = val; -} + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); -void create_app_options::__set_replica_count(const int32_t val) { - this->replica_count = val; -} + xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, + static_cast(this->keys.size())); + std::vector::const_iterator _iter240; + for (_iter240 = this->keys.begin(); _iter240 != this->keys.end(); ++_iter240) { + xfer += oprot->writeString((*_iter240)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); -void create_app_options::__set_success_if_exist(const bool val) { - this->success_if_exist = val; -} + xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, + static_cast(this->values.size())); + std::vector::const_iterator _iter241; + for (_iter241 = this->values.begin(); _iter241 != this->values.end(); ++_iter241) { + xfer += oprot->writeString((*_iter241)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); -void create_app_options::__set_app_type(const std::string& val) { - this->app_type = val; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_cluster_info_response &a, configuration_cluster_info_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.keys, b.keys); + swap(a.values, b.values); + swap(a.__isset, b.__isset); +} + +configuration_cluster_info_response::configuration_cluster_info_response( + const configuration_cluster_info_response &other242) +{ + err = other242.err; + keys = other242.keys; + values = other242.values; + __isset = other242.__isset; +} +configuration_cluster_info_response::configuration_cluster_info_response( + configuration_cluster_info_response &&other243) +{ + err = std::move(other243.err); + keys = std::move(other243.keys); + values = std::move(other243.values); + __isset = std::move(other243.__isset); +} +configuration_cluster_info_response &configuration_cluster_info_response:: +operator=(const configuration_cluster_info_response &other244) +{ + err = other244.err; + keys = other244.keys; + values = other244.values; + __isset = other244.__isset; + return *this; +} +configuration_cluster_info_response &configuration_cluster_info_response:: +operator=(configuration_cluster_info_response &&other245) +{ + err = std::move(other245.err); + keys = std::move(other245.keys); + values = std::move(other245.values); + __isset = std::move(other245.__isset); + return *this; +} +void configuration_cluster_info_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_cluster_info_response("; + out << "err=" << to_string(err); + out << ", " + << "keys=" << to_string(keys); + out << ", " + << "values=" << to_string(values); + out << ")"; +} + +configuration_recall_app_response::~configuration_recall_app_response() throw() {} + +void configuration_recall_app_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void configuration_recall_app_response::__set_info(const ::dsn::app_info &val) { this->info = val; } + +uint32_t configuration_recall_app_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->info.read(iprot); + this->__isset.info = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void create_app_options::__set_is_stateful(const bool val) { - this->is_stateful = val; -} + xfer += iprot->readStructEnd(); -void create_app_options::__set_envs(const std::map & val) { - this->envs = val; + return xfer; } -uint32_t create_app_options::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t +configuration_recall_app_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_recall_app_response"); - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->info.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_count); - this->__isset.partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->replica_count); - this->__isset.replica_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success_if_exist); - this->__isset.success_if_exist = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_type); - this->__isset.app_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_stateful); - this->__isset.is_stateful = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->envs.clear(); - uint32_t _size130; - ::apache::thrift::protocol::TType _ktype131; - ::apache::thrift::protocol::TType _vtype132; - xfer += iprot->readMapBegin(_ktype131, _vtype132, _size130); - uint32_t _i134; - for (_i134 = 0; _i134 < _size130; ++_i134) - { - std::string _key135; - xfer += iprot->readString(_key135); - std::string& _val136 = this->envs[_key135]; - xfer += iprot->readString(_val136); - } - xfer += iprot->readMapEnd(); - } - this->__isset.envs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_recall_app_response &a, configuration_recall_app_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.info, b.info); + swap(a.__isset, b.__isset); +} + +configuration_recall_app_response::configuration_recall_app_response( + const configuration_recall_app_response &other246) +{ + err = other246.err; + info = other246.info; + __isset = other246.__isset; +} +configuration_recall_app_response::configuration_recall_app_response( + configuration_recall_app_response &&other247) +{ + err = std::move(other247.err); + info = std::move(other247.info); + __isset = std::move(other247.__isset); +} +configuration_recall_app_response &configuration_recall_app_response:: +operator=(const configuration_recall_app_response &other248) +{ + err = other248.err; + info = other248.info; + __isset = other248.__isset; + return *this; +} +configuration_recall_app_response &configuration_recall_app_response:: +operator=(configuration_recall_app_response &&other249) +{ + err = std::move(other249.err); + info = std::move(other249.info); + __isset = std::move(other249.__isset); + return *this; +} +void configuration_recall_app_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_recall_app_response("; + out << "err=" << to_string(err); + out << ", " + << "info=" << to_string(info); + out << ")"; +} + +query_replica_decree_request::~query_replica_decree_request() throw() {} + +void query_replica_decree_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void query_replica_decree_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } + +uint32_t query_replica_decree_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t create_app_options::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("create_app_options"); - - xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->partition_count); - xfer += oprot->writeFieldEnd(); +uint32_t query_replica_decree_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_replica_decree_request"); - xfer += oprot->writeFieldBegin("replica_count", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->replica_count); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("success_if_exist", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->success_if_exist); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->app_type); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->is_stateful); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("envs", ::apache::thrift::protocol::T_MAP, 6); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->envs.size())); - std::map ::const_iterator _iter137; - for (_iter137 = this->envs.begin(); _iter137 != this->envs.end(); ++_iter137) - { - xfer += oprot->writeString(_iter137->first); - xfer += oprot->writeString(_iter137->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(create_app_options &a, create_app_options &b) { - using ::std::swap; - swap(a.partition_count, b.partition_count); - swap(a.replica_count, b.replica_count); - swap(a.success_if_exist, b.success_if_exist); - swap(a.app_type, b.app_type); - swap(a.is_stateful, b.is_stateful); - swap(a.envs, b.envs); - swap(a.__isset, b.__isset); -} - -create_app_options::create_app_options(const create_app_options& other138) { - partition_count = other138.partition_count; - replica_count = other138.replica_count; - success_if_exist = other138.success_if_exist; - app_type = other138.app_type; - is_stateful = other138.is_stateful; - envs = other138.envs; - __isset = other138.__isset; -} -create_app_options::create_app_options( create_app_options&& other139) { - partition_count = std::move(other139.partition_count); - replica_count = std::move(other139.replica_count); - success_if_exist = std::move(other139.success_if_exist); - app_type = std::move(other139.app_type); - is_stateful = std::move(other139.is_stateful); - envs = std::move(other139.envs); - __isset = std::move(other139.__isset); -} -create_app_options& create_app_options::operator=(const create_app_options& other140) { - partition_count = other140.partition_count; - replica_count = other140.replica_count; - success_if_exist = other140.success_if_exist; - app_type = other140.app_type; - is_stateful = other140.is_stateful; - envs = other140.envs; - __isset = other140.__isset; - return *this; -} -create_app_options& create_app_options::operator=(create_app_options&& other141) { - partition_count = std::move(other141.partition_count); - replica_count = std::move(other141.replica_count); - success_if_exist = std::move(other141.success_if_exist); - app_type = std::move(other141.app_type); - is_stateful = std::move(other141.is_stateful); - envs = std::move(other141.envs); - __isset = std::move(other141.__isset); - return *this; -} -void create_app_options::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "create_app_options("; - out << "partition_count=" << to_string(partition_count); - out << ", " << "replica_count=" << to_string(replica_count); - out << ", " << "success_if_exist=" << to_string(success_if_exist); - out << ", " << "app_type=" << to_string(app_type); - out << ", " << "is_stateful=" << to_string(is_stateful); - out << ", " << "envs=" << to_string(envs); - out << ")"; -} - - -configuration_create_app_request::~configuration_create_app_request() throw() { -} - - -void configuration_create_app_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -void configuration_create_app_request::__set_options(const create_app_options& val) { - this->options = val; -} - -uint32_t configuration_create_app_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->options.read(iprot); - this->__isset.options = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(query_replica_decree_request &a, query_replica_decree_request &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.node, b.node); + swap(a.__isset, b.__isset); +} + +query_replica_decree_request::query_replica_decree_request( + const query_replica_decree_request &other250) +{ + pid = other250.pid; + node = other250.node; + __isset = other250.__isset; +} +query_replica_decree_request::query_replica_decree_request(query_replica_decree_request &&other251) +{ + pid = std::move(other251.pid); + node = std::move(other251.node); + __isset = std::move(other251.__isset); +} +query_replica_decree_request &query_replica_decree_request:: +operator=(const query_replica_decree_request &other252) +{ + pid = other252.pid; + node = other252.node; + __isset = other252.__isset; + return *this; +} +query_replica_decree_request &query_replica_decree_request:: +operator=(query_replica_decree_request &&other253) +{ + pid = std::move(other253.pid); + node = std::move(other253.node); + __isset = std::move(other253.__isset); + return *this; +} +void query_replica_decree_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_replica_decree_request("; + out << "pid=" << to_string(pid); + out << ", " + << "node=" << to_string(node); + out << ")"; +} + +query_replica_decree_response::~query_replica_decree_response() throw() {} + +void query_replica_decree_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void query_replica_decree_response::__set_last_decree(const int64_t val) +{ + this->last_decree = val; +} + +uint32_t query_replica_decree_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_decree); + this->__isset.last_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_create_app_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_create_app_request"); +uint32_t query_replica_decree_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_replica_decree_response"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("options", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->options.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("last_decree", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->last_decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_create_app_request &a, configuration_create_app_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.options, b.options); - swap(a.__isset, b.__isset); +void swap(query_replica_decree_response &a, query_replica_decree_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.last_decree, b.last_decree); + swap(a.__isset, b.__isset); } -configuration_create_app_request::configuration_create_app_request(const configuration_create_app_request& other142) { - app_name = other142.app_name; - options = other142.options; - __isset = other142.__isset; +query_replica_decree_response::query_replica_decree_response( + const query_replica_decree_response &other254) +{ + err = other254.err; + last_decree = other254.last_decree; + __isset = other254.__isset; } -configuration_create_app_request::configuration_create_app_request( configuration_create_app_request&& other143) { - app_name = std::move(other143.app_name); - options = std::move(other143.options); - __isset = std::move(other143.__isset); +query_replica_decree_response::query_replica_decree_response( + query_replica_decree_response &&other255) +{ + err = std::move(other255.err); + last_decree = std::move(other255.last_decree); + __isset = std::move(other255.__isset); } -configuration_create_app_request& configuration_create_app_request::operator=(const configuration_create_app_request& other144) { - app_name = other144.app_name; - options = other144.options; - __isset = other144.__isset; - return *this; +query_replica_decree_response &query_replica_decree_response:: +operator=(const query_replica_decree_response &other256) +{ + err = other256.err; + last_decree = other256.last_decree; + __isset = other256.__isset; + return *this; } -configuration_create_app_request& configuration_create_app_request::operator=(configuration_create_app_request&& other145) { - app_name = std::move(other145.app_name); - options = std::move(other145.options); - __isset = std::move(other145.__isset); - return *this; +query_replica_decree_response &query_replica_decree_response:: +operator=(query_replica_decree_response &&other257) +{ + err = std::move(other257.err); + last_decree = std::move(other257.last_decree); + __isset = std::move(other257.__isset); + return *this; } -void configuration_create_app_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_create_app_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "options=" << to_string(options); - out << ")"; +void query_replica_decree_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_replica_decree_response("; + out << "err=" << to_string(err); + out << ", " + << "last_decree=" << to_string(last_decree); + out << ")"; } +replica_info::~replica_info() throw() {} -drop_app_options::~drop_app_options() throw() { -} +void replica_info::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void replica_info::__set_ballot(const int64_t val) { this->ballot = val; } +void replica_info::__set_status(const partition_status::type val) { this->status = val; } -void drop_app_options::__set_success_if_not_exist(const bool val) { - this->success_if_not_exist = val; +void replica_info::__set_last_committed_decree(const int64_t val) +{ + this->last_committed_decree = val; } -void drop_app_options::__set_reserve_seconds(const int64_t val) { - this->reserve_seconds = val; -__isset.reserve_seconds = true; +void replica_info::__set_last_prepared_decree(const int64_t val) +{ + this->last_prepared_decree = val; } -uint32_t drop_app_options::read(::apache::thrift::protocol::TProtocol* iprot) { +void replica_info::__set_last_durable_decree(const int64_t val) { this->last_durable_decree = val; } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +void replica_info::__set_app_type(const std::string &val) { this->app_type = val; } - xfer += iprot->readStructBegin(fname); +void replica_info::__set_disk_tag(const std::string &val) { this->disk_tag = val; } - using ::apache::thrift::protocol::TProtocolException; +uint32_t replica_info::read(::apache::thrift::protocol::TProtocol *iprot) +{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success_if_not_exist); - this->__isset.success_if_not_exist = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->reserve_seconds); - this->__isset.reserve_seconds = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast258; + xfer += iprot->readI32(ecast258); + this->status = (partition_status::type)ecast258; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_prepared_decree); + this->__isset.last_prepared_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_durable_decree); + this->__isset.last_durable_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_type); + this->__isset.app_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->disk_tag); + this->__isset.disk_tag = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t drop_app_options::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("drop_app_options"); +uint32_t replica_info::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_info"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_prepared_decree", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->last_prepared_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_durable_decree", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->last_durable_decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("success_if_not_exist", ::apache::thrift::protocol::T_BOOL, 1); - xfer += oprot->writeBool(this->success_if_not_exist); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->app_type); + xfer += oprot->writeFieldEnd(); - if (this->__isset.reserve_seconds) { - xfer += oprot->writeFieldBegin("reserve_seconds", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->reserve_seconds); + xfer += oprot->writeFieldBegin("disk_tag", ::apache::thrift::protocol::T_STRING, 8); + xfer += oprot->writeString(this->disk_tag); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(replica_info &a, replica_info &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.ballot, b.ballot); + swap(a.status, b.status); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.last_prepared_decree, b.last_prepared_decree); + swap(a.last_durable_decree, b.last_durable_decree); + swap(a.app_type, b.app_type); + swap(a.disk_tag, b.disk_tag); + swap(a.__isset, b.__isset); +} + +replica_info::replica_info(const replica_info &other259) +{ + pid = other259.pid; + ballot = other259.ballot; + status = other259.status; + last_committed_decree = other259.last_committed_decree; + last_prepared_decree = other259.last_prepared_decree; + last_durable_decree = other259.last_durable_decree; + app_type = other259.app_type; + disk_tag = other259.disk_tag; + __isset = other259.__isset; +} +replica_info::replica_info(replica_info &&other260) +{ + pid = std::move(other260.pid); + ballot = std::move(other260.ballot); + status = std::move(other260.status); + last_committed_decree = std::move(other260.last_committed_decree); + last_prepared_decree = std::move(other260.last_prepared_decree); + last_durable_decree = std::move(other260.last_durable_decree); + app_type = std::move(other260.app_type); + disk_tag = std::move(other260.disk_tag); + __isset = std::move(other260.__isset); +} +replica_info &replica_info::operator=(const replica_info &other261) +{ + pid = other261.pid; + ballot = other261.ballot; + status = other261.status; + last_committed_decree = other261.last_committed_decree; + last_prepared_decree = other261.last_prepared_decree; + last_durable_decree = other261.last_durable_decree; + app_type = other261.app_type; + disk_tag = other261.disk_tag; + __isset = other261.__isset; + return *this; +} +replica_info &replica_info::operator=(replica_info &&other262) +{ + pid = std::move(other262.pid); + ballot = std::move(other262.ballot); + status = std::move(other262.status); + last_committed_decree = std::move(other262.last_committed_decree); + last_prepared_decree = std::move(other262.last_prepared_decree); + last_durable_decree = std::move(other262.last_durable_decree); + app_type = std::move(other262.app_type); + disk_tag = std::move(other262.disk_tag); + __isset = std::move(other262.__isset); + return *this; +} +void replica_info::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "replica_info("; + out << "pid=" << to_string(pid); + out << ", " + << "ballot=" << to_string(ballot); + out << ", " + << "status=" << to_string(status); + out << ", " + << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " + << "last_prepared_decree=" << to_string(last_prepared_decree); + out << ", " + << "last_durable_decree=" << to_string(last_durable_decree); + out << ", " + << "app_type=" << to_string(app_type); + out << ", " + << "disk_tag=" << to_string(disk_tag); + out << ")"; +} + +query_replica_info_request::~query_replica_info_request() throw() {} + +void query_replica_info_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } + +uint32_t query_replica_info_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; } -void swap(drop_app_options &a, drop_app_options &b) { - using ::std::swap; - swap(a.success_if_not_exist, b.success_if_not_exist); - swap(a.reserve_seconds, b.reserve_seconds); - swap(a.__isset, b.__isset); +uint32_t query_replica_info_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_replica_info_request"); + + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -drop_app_options::drop_app_options(const drop_app_options& other146) { - success_if_not_exist = other146.success_if_not_exist; - reserve_seconds = other146.reserve_seconds; - __isset = other146.__isset; +void swap(query_replica_info_request &a, query_replica_info_request &b) +{ + using ::std::swap; + swap(a.node, b.node); + swap(a.__isset, b.__isset); } -drop_app_options::drop_app_options( drop_app_options&& other147) { - success_if_not_exist = std::move(other147.success_if_not_exist); - reserve_seconds = std::move(other147.reserve_seconds); - __isset = std::move(other147.__isset); + +query_replica_info_request::query_replica_info_request(const query_replica_info_request &other263) +{ + node = other263.node; + __isset = other263.__isset; } -drop_app_options& drop_app_options::operator=(const drop_app_options& other148) { - success_if_not_exist = other148.success_if_not_exist; - reserve_seconds = other148.reserve_seconds; - __isset = other148.__isset; - return *this; +query_replica_info_request::query_replica_info_request(query_replica_info_request &&other264) +{ + node = std::move(other264.node); + __isset = std::move(other264.__isset); } -drop_app_options& drop_app_options::operator=(drop_app_options&& other149) { - success_if_not_exist = std::move(other149.success_if_not_exist); - reserve_seconds = std::move(other149.reserve_seconds); - __isset = std::move(other149.__isset); - return *this; +query_replica_info_request &query_replica_info_request:: +operator=(const query_replica_info_request &other265) +{ + node = other265.node; + __isset = other265.__isset; + return *this; } -void drop_app_options::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "drop_app_options("; - out << "success_if_not_exist=" << to_string(success_if_not_exist); - out << ", " << "reserve_seconds="; (__isset.reserve_seconds ? (out << to_string(reserve_seconds)) : (out << "")); - out << ")"; +query_replica_info_request &query_replica_info_request:: +operator=(query_replica_info_request &&other266) +{ + node = std::move(other266.node); + __isset = std::move(other266.__isset); + return *this; } - - -configuration_drop_app_request::~configuration_drop_app_request() throw() { +void query_replica_info_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_replica_info_request("; + out << "node=" << to_string(node); + out << ")"; } +query_replica_info_response::~query_replica_info_response() throw() {} -void configuration_drop_app_request::__set_app_name(const std::string& val) { - this->app_name = val; -} +void query_replica_info_response::__set_err(const ::dsn::error_code &val) { this->err = val; } -void configuration_drop_app_request::__set_options(const drop_app_options& val) { - this->options = val; +void query_replica_info_response::__set_replicas(const std::vector &val) +{ + this->replicas = val; } -uint32_t configuration_drop_app_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t query_replica_info_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->options.read(iprot); - this->__isset.options = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->replicas.clear(); + uint32_t _size267; + ::apache::thrift::protocol::TType _etype270; + xfer += iprot->readListBegin(_etype270, _size267); + this->replicas.resize(_size267); + uint32_t _i271; + for (_i271 = 0; _i271 < _size267; ++_i271) { + xfer += this->replicas[_i271].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.replicas = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_drop_app_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_drop_app_request"); +uint32_t query_replica_info_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_replica_info_response"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("options", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->options.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("replicas", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->replicas.size())); + std::vector::const_iterator _iter272; + for (_iter272 = this->replicas.begin(); _iter272 != this->replicas.end(); ++_iter272) { + xfer += (*_iter272).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_drop_app_request &a, configuration_drop_app_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.options, b.options); - swap(a.__isset, b.__isset); +void swap(query_replica_info_response &a, query_replica_info_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.replicas, b.replicas); + swap(a.__isset, b.__isset); } -configuration_drop_app_request::configuration_drop_app_request(const configuration_drop_app_request& other150) { - app_name = other150.app_name; - options = other150.options; - __isset = other150.__isset; +query_replica_info_response::query_replica_info_response( + const query_replica_info_response &other273) +{ + err = other273.err; + replicas = other273.replicas; + __isset = other273.__isset; } -configuration_drop_app_request::configuration_drop_app_request( configuration_drop_app_request&& other151) { - app_name = std::move(other151.app_name); - options = std::move(other151.options); - __isset = std::move(other151.__isset); +query_replica_info_response::query_replica_info_response(query_replica_info_response &&other274) +{ + err = std::move(other274.err); + replicas = std::move(other274.replicas); + __isset = std::move(other274.__isset); } -configuration_drop_app_request& configuration_drop_app_request::operator=(const configuration_drop_app_request& other152) { - app_name = other152.app_name; - options = other152.options; - __isset = other152.__isset; - return *this; +query_replica_info_response &query_replica_info_response:: +operator=(const query_replica_info_response &other275) +{ + err = other275.err; + replicas = other275.replicas; + __isset = other275.__isset; + return *this; } -configuration_drop_app_request& configuration_drop_app_request::operator=(configuration_drop_app_request&& other153) { - app_name = std::move(other153.app_name); - options = std::move(other153.options); - __isset = std::move(other153.__isset); - return *this; +query_replica_info_response &query_replica_info_response:: +operator=(query_replica_info_response &&other276) +{ + err = std::move(other276.err); + replicas = std::move(other276.replicas); + __isset = std::move(other276.__isset); + return *this; } -void configuration_drop_app_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_drop_app_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "options=" << to_string(options); - out << ")"; +void query_replica_info_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_replica_info_response("; + out << "err=" << to_string(err); + out << ", " + << "replicas=" << to_string(replicas); + out << ")"; } +disk_info::~disk_info() throw() {} -configuration_list_apps_request::~configuration_list_apps_request() throw() { -} +void disk_info::__set_tag(const std::string &val) { this->tag = val; } +void disk_info::__set_full_dir(const std::string &val) { this->full_dir = val; } -void configuration_list_apps_request::__set_status(const ::dsn::app_status::type val) { - this->status = val; +void disk_info::__set_disk_capacity_mb(const int64_t val) { this->disk_capacity_mb = val; } + +void disk_info::__set_disk_available_mb(const int64_t val) { this->disk_available_mb = val; } + +void disk_info::__set_holding_primary_replicas(const std::map> &val) +{ + this->holding_primary_replicas = val; } -uint32_t configuration_list_apps_request::read(::apache::thrift::protocol::TProtocol* iprot) { +void disk_info::__set_holding_secondary_replicas( + const std::map> &val) +{ + this->holding_secondary_replicas = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t disk_info::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tag); + this->__isset.tag = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->full_dir); + this->__isset.full_dir = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->disk_capacity_mb); + this->__isset.disk_capacity_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->disk_available_mb); + this->__isset.disk_available_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->holding_primary_replicas.clear(); + uint32_t _size277; + ::apache::thrift::protocol::TType _ktype278; + ::apache::thrift::protocol::TType _vtype279; + xfer += iprot->readMapBegin(_ktype278, _vtype279, _size277); + uint32_t _i281; + for (_i281 = 0; _i281 < _size277; ++_i281) { + int32_t _key282; + xfer += iprot->readI32(_key282); + std::set<::dsn::gpid> &_val283 = this->holding_primary_replicas[_key282]; + { + _val283.clear(); + uint32_t _size284; + ::apache::thrift::protocol::TType _etype287; + xfer += iprot->readSetBegin(_etype287, _size284); + uint32_t _i288; + for (_i288 = 0; _i288 < _size284; ++_i288) { + ::dsn::gpid _elem289; + xfer += _elem289.read(iprot); + _val283.insert(_elem289); + } + xfer += iprot->readSetEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.holding_primary_replicas = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->holding_secondary_replicas.clear(); + uint32_t _size290; + ::apache::thrift::protocol::TType _ktype291; + ::apache::thrift::protocol::TType _vtype292; + xfer += iprot->readMapBegin(_ktype291, _vtype292, _size290); + uint32_t _i294; + for (_i294 = 0; _i294 < _size290; ++_i294) { + int32_t _key295; + xfer += iprot->readI32(_key295); + std::set<::dsn::gpid> &_val296 = this->holding_secondary_replicas[_key295]; + { + _val296.clear(); + uint32_t _size297; + ::apache::thrift::protocol::TType _etype300; + xfer += iprot->readSetBegin(_etype300, _size297); + uint32_t _i301; + for (_i301 = 0; _i301 < _size297; ++_i301) { + ::dsn::gpid _elem302; + xfer += _elem302.read(iprot); + _val296.insert(_elem302); + } + xfer += iprot->readSetEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.holding_secondary_replicas = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t disk_info::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("disk_info"); + + xfer += oprot->writeFieldBegin("tag", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->tag); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("full_dir", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->full_dir); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("disk_capacity_mb", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->disk_capacity_mb); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("disk_available_mb", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->disk_available_mb); + xfer += oprot->writeFieldEnd(); + + xfer += + oprot->writeFieldBegin("holding_primary_replicas", ::apache::thrift::protocol::T_MAP, 5); { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast154; - xfer += iprot->readI32(ecast154); - this->status = ( ::dsn::app_status::type)ecast154; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, + ::apache::thrift::protocol::T_SET, + static_cast(this->holding_primary_replicas.size())); + std::map>::const_iterator _iter303; + for (_iter303 = this->holding_primary_replicas.begin(); + _iter303 != this->holding_primary_replicas.end(); + ++_iter303) { + xfer += oprot->writeI32(_iter303->first); + { + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(_iter303->second.size())); + std::set<::dsn::gpid>::const_iterator _iter304; + for (_iter304 = _iter303->second.begin(); _iter304 != _iter303->second.end(); + ++_iter304) { + xfer += (*_iter304).write(oprot); + } + xfer += oprot->writeSetEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += + oprot->writeFieldBegin("holding_secondary_replicas", ::apache::thrift::protocol::T_MAP, 6); + { + xfer += + oprot->writeMapBegin(::apache::thrift::protocol::T_I32, + ::apache::thrift::protocol::T_SET, + static_cast(this->holding_secondary_replicas.size())); + std::map>::const_iterator _iter305; + for (_iter305 = this->holding_secondary_replicas.begin(); + _iter305 != this->holding_secondary_replicas.end(); + ++_iter305) { + xfer += oprot->writeI32(_iter305->first); + { + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(_iter305->second.size())); + std::set<::dsn::gpid>::const_iterator _iter306; + for (_iter306 = _iter305->second.begin(); _iter306 != _iter305->second.end(); + ++_iter306) { + xfer += (*_iter306).write(oprot); + } + xfer += oprot->writeSetEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(disk_info &a, disk_info &b) +{ + using ::std::swap; + swap(a.tag, b.tag); + swap(a.full_dir, b.full_dir); + swap(a.disk_capacity_mb, b.disk_capacity_mb); + swap(a.disk_available_mb, b.disk_available_mb); + swap(a.holding_primary_replicas, b.holding_primary_replicas); + swap(a.holding_secondary_replicas, b.holding_secondary_replicas); + swap(a.__isset, b.__isset); +} + +disk_info::disk_info(const disk_info &other307) +{ + tag = other307.tag; + full_dir = other307.full_dir; + disk_capacity_mb = other307.disk_capacity_mb; + disk_available_mb = other307.disk_available_mb; + holding_primary_replicas = other307.holding_primary_replicas; + holding_secondary_replicas = other307.holding_secondary_replicas; + __isset = other307.__isset; +} +disk_info::disk_info(disk_info &&other308) +{ + tag = std::move(other308.tag); + full_dir = std::move(other308.full_dir); + disk_capacity_mb = std::move(other308.disk_capacity_mb); + disk_available_mb = std::move(other308.disk_available_mb); + holding_primary_replicas = std::move(other308.holding_primary_replicas); + holding_secondary_replicas = std::move(other308.holding_secondary_replicas); + __isset = std::move(other308.__isset); +} +disk_info &disk_info::operator=(const disk_info &other309) +{ + tag = other309.tag; + full_dir = other309.full_dir; + disk_capacity_mb = other309.disk_capacity_mb; + disk_available_mb = other309.disk_available_mb; + holding_primary_replicas = other309.holding_primary_replicas; + holding_secondary_replicas = other309.holding_secondary_replicas; + __isset = other309.__isset; + return *this; +} +disk_info &disk_info::operator=(disk_info &&other310) +{ + tag = std::move(other310.tag); + full_dir = std::move(other310.full_dir); + disk_capacity_mb = std::move(other310.disk_capacity_mb); + disk_available_mb = std::move(other310.disk_available_mb); + holding_primary_replicas = std::move(other310.holding_primary_replicas); + holding_secondary_replicas = std::move(other310.holding_secondary_replicas); + __isset = std::move(other310.__isset); + return *this; +} +void disk_info::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "disk_info("; + out << "tag=" << to_string(tag); + out << ", " + << "full_dir=" << to_string(full_dir); + out << ", " + << "disk_capacity_mb=" << to_string(disk_capacity_mb); + out << ", " + << "disk_available_mb=" << to_string(disk_available_mb); + out << ", " + << "holding_primary_replicas=" << to_string(holding_primary_replicas); + out << ", " + << "holding_secondary_replicas=" << to_string(holding_secondary_replicas); + out << ")"; +} + +query_disk_info_request::~query_disk_info_request() throw() {} + +void query_disk_info_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } + +void query_disk_info_request::__set_app_name(const std::string &val) { this->app_name = val; } + +uint32_t query_disk_info_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_list_apps_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_list_apps_request"); +uint32_t query_disk_info_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_disk_info_request"); + + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_list_apps_request &a, configuration_list_apps_request &b) { - using ::std::swap; - swap(a.status, b.status); - swap(a.__isset, b.__isset); +void swap(query_disk_info_request &a, query_disk_info_request &b) +{ + using ::std::swap; + swap(a.node, b.node); + swap(a.app_name, b.app_name); + swap(a.__isset, b.__isset); } -configuration_list_apps_request::configuration_list_apps_request(const configuration_list_apps_request& other155) { - status = other155.status; - __isset = other155.__isset; +query_disk_info_request::query_disk_info_request(const query_disk_info_request &other311) +{ + node = other311.node; + app_name = other311.app_name; + __isset = other311.__isset; } -configuration_list_apps_request::configuration_list_apps_request( configuration_list_apps_request&& other156) { - status = std::move(other156.status); - __isset = std::move(other156.__isset); +query_disk_info_request::query_disk_info_request(query_disk_info_request &&other312) +{ + node = std::move(other312.node); + app_name = std::move(other312.app_name); + __isset = std::move(other312.__isset); } -configuration_list_apps_request& configuration_list_apps_request::operator=(const configuration_list_apps_request& other157) { - status = other157.status; - __isset = other157.__isset; - return *this; +query_disk_info_request &query_disk_info_request::operator=(const query_disk_info_request &other313) +{ + node = other313.node; + app_name = other313.app_name; + __isset = other313.__isset; + return *this; } -configuration_list_apps_request& configuration_list_apps_request::operator=(configuration_list_apps_request&& other158) { - status = std::move(other158.status); - __isset = std::move(other158.__isset); - return *this; +query_disk_info_request &query_disk_info_request::operator=(query_disk_info_request &&other314) +{ + node = std::move(other314.node); + app_name = std::move(other314.app_name); + __isset = std::move(other314.__isset); + return *this; } -void configuration_list_apps_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_list_apps_request("; - out << "status=" << to_string(status); - out << ")"; +void query_disk_info_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_disk_info_request("; + out << "node=" << to_string(node); + out << ", " + << "app_name=" << to_string(app_name); + out << ")"; } +query_disk_info_response::~query_disk_info_response() throw() {} -configuration_list_nodes_request::~configuration_list_nodes_request() throw() { -} +void query_disk_info_response::__set_err(const ::dsn::error_code &val) { this->err = val; } +void query_disk_info_response::__set_total_capacity_mb(const int64_t val) +{ + this->total_capacity_mb = val; +} -void configuration_list_nodes_request::__set_status(const node_status::type val) { - this->status = val; +void query_disk_info_response::__set_total_available_mb(const int64_t val) +{ + this->total_available_mb = val; } -uint32_t configuration_list_nodes_request::read(::apache::thrift::protocol::TProtocol* iprot) { +void query_disk_info_response::__set_disk_infos(const std::vector &val) +{ + this->disk_infos = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t query_disk_info_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast159; - xfer += iprot->readI32(ecast159); - this->status = (node_status::type)ecast159; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->total_capacity_mb); + this->__isset.total_capacity_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->total_available_mb); + this->__isset.total_available_mb = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->disk_infos.clear(); + uint32_t _size315; + ::apache::thrift::protocol::TType _etype318; + xfer += iprot->readListBegin(_etype318, _size315); + this->disk_infos.resize(_size315); + uint32_t _i319; + for (_i319 = 0; _i319 < _size315; ++_i319) { + xfer += this->disk_infos[_i319].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.disk_infos = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_list_nodes_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_list_nodes_request"); +uint32_t query_disk_info_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_disk_info_response"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("total_capacity_mb", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->total_capacity_mb); + xfer += oprot->writeFieldEnd(); -void swap(configuration_list_nodes_request &a, configuration_list_nodes_request &b) { - using ::std::swap; - swap(a.status, b.status); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("total_available_mb", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->total_available_mb); + xfer += oprot->writeFieldEnd(); -configuration_list_nodes_request::configuration_list_nodes_request(const configuration_list_nodes_request& other160) { - status = other160.status; - __isset = other160.__isset; -} -configuration_list_nodes_request::configuration_list_nodes_request( configuration_list_nodes_request&& other161) { - status = std::move(other161.status); - __isset = std::move(other161.__isset); -} -configuration_list_nodes_request& configuration_list_nodes_request::operator=(const configuration_list_nodes_request& other162) { - status = other162.status; - __isset = other162.__isset; - return *this; -} -configuration_list_nodes_request& configuration_list_nodes_request::operator=(configuration_list_nodes_request&& other163) { - status = std::move(other163.status); - __isset = std::move(other163.__isset); - return *this; -} -void configuration_list_nodes_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_list_nodes_request("; - out << "status=" << to_string(status); - out << ")"; -} + xfer += oprot->writeFieldBegin("disk_infos", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->disk_infos.size())); + std::vector::const_iterator _iter320; + for (_iter320 = this->disk_infos.begin(); _iter320 != this->disk_infos.end(); ++_iter320) { + xfer += (*_iter320).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(query_disk_info_response &a, query_disk_info_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.total_capacity_mb, b.total_capacity_mb); + swap(a.total_available_mb, b.total_available_mb); + swap(a.disk_infos, b.disk_infos); + swap(a.__isset, b.__isset); +} + +query_disk_info_response::query_disk_info_response(const query_disk_info_response &other321) +{ + err = other321.err; + total_capacity_mb = other321.total_capacity_mb; + total_available_mb = other321.total_available_mb; + disk_infos = other321.disk_infos; + __isset = other321.__isset; +} +query_disk_info_response::query_disk_info_response(query_disk_info_response &&other322) +{ + err = std::move(other322.err); + total_capacity_mb = std::move(other322.total_capacity_mb); + total_available_mb = std::move(other322.total_available_mb); + disk_infos = std::move(other322.disk_infos); + __isset = std::move(other322.__isset); +} +query_disk_info_response &query_disk_info_response:: +operator=(const query_disk_info_response &other323) +{ + err = other323.err; + total_capacity_mb = other323.total_capacity_mb; + total_available_mb = other323.total_available_mb; + disk_infos = other323.disk_infos; + __isset = other323.__isset; + return *this; +} +query_disk_info_response &query_disk_info_response::operator=(query_disk_info_response &&other324) +{ + err = std::move(other324.err); + total_capacity_mb = std::move(other324.total_capacity_mb); + total_available_mb = std::move(other324.total_available_mb); + disk_infos = std::move(other324.disk_infos); + __isset = std::move(other324.__isset); + return *this; +} +void query_disk_info_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_disk_info_response("; + out << "err=" << to_string(err); + out << ", " + << "total_capacity_mb=" << to_string(total_capacity_mb); + out << ", " + << "total_available_mb=" << to_string(total_available_mb); + out << ", " + << "disk_infos=" << to_string(disk_infos); + out << ")"; +} + +replica_disk_migrate_request::~replica_disk_migrate_request() throw() {} + +void replica_disk_migrate_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void replica_disk_migrate_request::__set_origin_disk(const std::string &val) +{ + this->origin_disk = val; +} + +void replica_disk_migrate_request::__set_target_disk(const std::string &val) +{ + this->target_disk = val; +} + +uint32_t replica_disk_migrate_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->origin_disk); + this->__isset.origin_disk = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->target_disk); + this->__isset.target_disk = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -configuration_cluster_info_request::~configuration_cluster_info_request() throw() { + return xfer; } +uint32_t replica_disk_migrate_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_disk_migrate_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("origin_disk", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->origin_disk); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("target_disk", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->target_disk); + xfer += oprot->writeFieldEnd(); -uint32_t configuration_cluster_info_request::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(replica_disk_migrate_request &a, replica_disk_migrate_request &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.origin_disk, b.origin_disk); + swap(a.target_disk, b.target_disk); + swap(a.__isset, b.__isset); +} + +replica_disk_migrate_request::replica_disk_migrate_request( + const replica_disk_migrate_request &other325) +{ + pid = other325.pid; + origin_disk = other325.origin_disk; + target_disk = other325.target_disk; + __isset = other325.__isset; +} +replica_disk_migrate_request::replica_disk_migrate_request(replica_disk_migrate_request &&other326) +{ + pid = std::move(other326.pid); + origin_disk = std::move(other326.origin_disk); + target_disk = std::move(other326.target_disk); + __isset = std::move(other326.__isset); +} +replica_disk_migrate_request &replica_disk_migrate_request:: +operator=(const replica_disk_migrate_request &other327) +{ + pid = other327.pid; + origin_disk = other327.origin_disk; + target_disk = other327.target_disk; + __isset = other327.__isset; + return *this; +} +replica_disk_migrate_request &replica_disk_migrate_request:: +operator=(replica_disk_migrate_request &&other328) +{ + pid = std::move(other328.pid); + origin_disk = std::move(other328.origin_disk); + target_disk = std::move(other328.target_disk); + __isset = std::move(other328.__isset); + return *this; +} +void replica_disk_migrate_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "replica_disk_migrate_request("; + out << "pid=" << to_string(pid); + out << ", " + << "origin_disk=" << to_string(origin_disk); + out << ", " + << "target_disk=" << to_string(target_disk); + out << ")"; +} + +replica_disk_migrate_response::~replica_disk_migrate_response() throw() {} + +void replica_disk_migrate_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void replica_disk_migrate_response::__set_hint(const std::string &val) +{ + this->hint = val; + __isset.hint = true; +} + +uint32_t replica_disk_migrate_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint); + this->__isset.hint = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructEnd(); - xfer += iprot->readStructBegin(fname); + return xfer; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t replica_disk_migrate_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("replica_disk_migrate_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + if (this->__isset.hint) { + xfer += oprot->writeFieldBegin("hint", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(replica_disk_migrate_response &a, replica_disk_migrate_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.hint, b.hint); + swap(a.__isset, b.__isset); +} + +replica_disk_migrate_response::replica_disk_migrate_response( + const replica_disk_migrate_response &other329) +{ + err = other329.err; + hint = other329.hint; + __isset = other329.__isset; +} +replica_disk_migrate_response::replica_disk_migrate_response( + replica_disk_migrate_response &&other330) +{ + err = std::move(other330.err); + hint = std::move(other330.hint); + __isset = std::move(other330.__isset); +} +replica_disk_migrate_response &replica_disk_migrate_response:: +operator=(const replica_disk_migrate_response &other331) +{ + err = other331.err; + hint = other331.hint; + __isset = other331.__isset; + return *this; +} +replica_disk_migrate_response &replica_disk_migrate_response:: +operator=(replica_disk_migrate_response &&other332) +{ + err = std::move(other332.err); + hint = std::move(other332.hint); + __isset = std::move(other332.__isset); + return *this; +} +void replica_disk_migrate_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "replica_disk_migrate_response("; + out << "err=" << to_string(err); + out << ", " + << "hint="; + (__isset.hint ? (out << to_string(hint)) : (out << "")); + out << ")"; +} + +query_app_info_request::~query_app_info_request() throw() {} + +void query_app_info_request::__set_meta_server(const ::dsn::rpc_address &val) +{ + this->meta_server = val; +} + +uint32_t query_app_info_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->meta_server.read(iprot); + this->__isset.meta_server = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->skip(ftype); - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_cluster_info_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_cluster_info_request"); +uint32_t query_app_info_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_app_info_request"); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("meta_server", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->meta_server.write(oprot); + xfer += oprot->writeFieldEnd(); -void swap(configuration_cluster_info_request &a, configuration_cluster_info_request &b) { - using ::std::swap; - (void) a; - (void) b; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -configuration_cluster_info_request::configuration_cluster_info_request(const configuration_cluster_info_request& other164) { - (void) other164; +void swap(query_app_info_request &a, query_app_info_request &b) +{ + using ::std::swap; + swap(a.meta_server, b.meta_server); + swap(a.__isset, b.__isset); } -configuration_cluster_info_request::configuration_cluster_info_request( configuration_cluster_info_request&& other165) { - (void) other165; + +query_app_info_request::query_app_info_request(const query_app_info_request &other333) +{ + meta_server = other333.meta_server; + __isset = other333.__isset; } -configuration_cluster_info_request& configuration_cluster_info_request::operator=(const configuration_cluster_info_request& other166) { - (void) other166; - return *this; +query_app_info_request::query_app_info_request(query_app_info_request &&other334) +{ + meta_server = std::move(other334.meta_server); + __isset = std::move(other334.__isset); } -configuration_cluster_info_request& configuration_cluster_info_request::operator=(configuration_cluster_info_request&& other167) { - (void) other167; - return *this; +query_app_info_request &query_app_info_request::operator=(const query_app_info_request &other335) +{ + meta_server = other335.meta_server; + __isset = other335.__isset; + return *this; } -void configuration_cluster_info_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_cluster_info_request("; - out << ")"; +query_app_info_request &query_app_info_request::operator=(query_app_info_request &&other336) +{ + meta_server = std::move(other336.meta_server); + __isset = std::move(other336.__isset); + return *this; } - - -configuration_recall_app_request::~configuration_recall_app_request() throw() { +void query_app_info_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_app_info_request("; + out << "meta_server=" << to_string(meta_server); + out << ")"; } +query_app_info_response::~query_app_info_response() throw() {} -void configuration_recall_app_request::__set_app_id(const int32_t val) { - this->app_id = val; -} +void query_app_info_response::__set_err(const ::dsn::error_code &val) { this->err = val; } -void configuration_recall_app_request::__set_new_app_name(const std::string& val) { - this->new_app_name = val; +void query_app_info_response::__set_apps(const std::vector<::dsn::app_info> &val) +{ + this->apps = val; } -uint32_t configuration_recall_app_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t query_app_info_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->new_app_name); - this->__isset.new_app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->apps.clear(); + uint32_t _size337; + ::apache::thrift::protocol::TType _etype340; + xfer += iprot->readListBegin(_etype340, _size337); + this->apps.resize(_size337); + uint32_t _i341; + for (_i341 = 0; _i341 < _size337; ++_i341) { + xfer += this->apps[_i341].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.apps = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_recall_app_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_recall_app_request"); +uint32_t query_app_info_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_app_info_response"); - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("new_app_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->new_app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("apps", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->apps.size())); + std::vector<::dsn::app_info>::const_iterator _iter342; + for (_iter342 = this->apps.begin(); _iter342 != this->apps.end(); ++_iter342) { + xfer += (*_iter342).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_recall_app_request &a, configuration_recall_app_request &b) { - using ::std::swap; - swap(a.app_id, b.app_id); - swap(a.new_app_name, b.new_app_name); - swap(a.__isset, b.__isset); +void swap(query_app_info_response &a, query_app_info_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.apps, b.apps); + swap(a.__isset, b.__isset); } -configuration_recall_app_request::configuration_recall_app_request(const configuration_recall_app_request& other168) { - app_id = other168.app_id; - new_app_name = other168.new_app_name; - __isset = other168.__isset; +query_app_info_response::query_app_info_response(const query_app_info_response &other343) +{ + err = other343.err; + apps = other343.apps; + __isset = other343.__isset; } -configuration_recall_app_request::configuration_recall_app_request( configuration_recall_app_request&& other169) { - app_id = std::move(other169.app_id); - new_app_name = std::move(other169.new_app_name); - __isset = std::move(other169.__isset); +query_app_info_response::query_app_info_response(query_app_info_response &&other344) +{ + err = std::move(other344.err); + apps = std::move(other344.apps); + __isset = std::move(other344.__isset); } -configuration_recall_app_request& configuration_recall_app_request::operator=(const configuration_recall_app_request& other170) { - app_id = other170.app_id; - new_app_name = other170.new_app_name; - __isset = other170.__isset; - return *this; +query_app_info_response &query_app_info_response::operator=(const query_app_info_response &other345) +{ + err = other345.err; + apps = other345.apps; + __isset = other345.__isset; + return *this; } -configuration_recall_app_request& configuration_recall_app_request::operator=(configuration_recall_app_request&& other171) { - app_id = std::move(other171.app_id); - new_app_name = std::move(other171.new_app_name); - __isset = std::move(other171.__isset); - return *this; +query_app_info_response &query_app_info_response::operator=(query_app_info_response &&other346) +{ + err = std::move(other346.err); + apps = std::move(other346.apps); + __isset = std::move(other346.__isset); + return *this; } -void configuration_recall_app_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_recall_app_request("; - out << "app_id=" << to_string(app_id); - out << ", " << "new_app_name=" << to_string(new_app_name); - out << ")"; +void query_app_info_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_app_info_response("; + out << "err=" << to_string(err); + out << ", " + << "apps=" << to_string(apps); + out << ")"; } +configuration_recovery_request::~configuration_recovery_request() throw() {} -configuration_create_app_response::~configuration_create_app_response() throw() { +void configuration_recovery_request::__set_recovery_set(const std::vector<::dsn::rpc_address> &val) +{ + this->recovery_set = val; } - -void configuration_create_app_response::__set_err(const ::dsn::error_code& val) { - this->err = val; +void configuration_recovery_request::__set_skip_bad_nodes(const bool val) +{ + this->skip_bad_nodes = val; } -void configuration_create_app_response::__set_appid(const int32_t val) { - this->appid = val; +void configuration_recovery_request::__set_skip_lost_partitions(const bool val) +{ + this->skip_lost_partitions = val; } -uint32_t configuration_create_app_response::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t configuration_recovery_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->appid); - this->__isset.appid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->recovery_set.clear(); + uint32_t _size347; + ::apache::thrift::protocol::TType _etype350; + xfer += iprot->readListBegin(_etype350, _size347); + this->recovery_set.resize(_size347); + uint32_t _i351; + for (_i351 = 0; _i351 < _size347; ++_i351) { + xfer += this->recovery_set[_i351].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.recovery_set = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->skip_bad_nodes); + this->__isset.skip_bad_nodes = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->skip_lost_partitions); + this->__isset.skip_lost_partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_create_app_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_create_app_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->appid); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} +uint32_t configuration_recovery_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_recovery_request"); -void swap(configuration_create_app_response &a, configuration_create_app_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.appid, b.appid); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("recovery_set", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->recovery_set.size())); + std::vector<::dsn::rpc_address>::const_iterator _iter352; + for (_iter352 = this->recovery_set.begin(); _iter352 != this->recovery_set.end(); + ++_iter352) { + xfer += (*_iter352).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); -configuration_create_app_response::configuration_create_app_response(const configuration_create_app_response& other172) { - err = other172.err; - appid = other172.appid; - __isset = other172.__isset; -} -configuration_create_app_response::configuration_create_app_response( configuration_create_app_response&& other173) { - err = std::move(other173.err); - appid = std::move(other173.appid); - __isset = std::move(other173.__isset); -} -configuration_create_app_response& configuration_create_app_response::operator=(const configuration_create_app_response& other174) { - err = other174.err; - appid = other174.appid; - __isset = other174.__isset; - return *this; -} -configuration_create_app_response& configuration_create_app_response::operator=(configuration_create_app_response&& other175) { - err = std::move(other175.err); - appid = std::move(other175.appid); - __isset = std::move(other175.__isset); - return *this; -} -void configuration_create_app_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_create_app_response("; - out << "err=" << to_string(err); - out << ", " << "appid=" << to_string(appid); - out << ")"; -} + xfer += oprot->writeFieldBegin("skip_bad_nodes", ::apache::thrift::protocol::T_BOOL, 2); + xfer += oprot->writeBool(this->skip_bad_nodes); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("skip_lost_partitions", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->skip_lost_partitions); + xfer += oprot->writeFieldEnd(); -configuration_meta_control_request::~configuration_meta_control_request() throw() { -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_recovery_request &a, configuration_recovery_request &b) +{ + using ::std::swap; + swap(a.recovery_set, b.recovery_set); + swap(a.skip_bad_nodes, b.skip_bad_nodes); + swap(a.skip_lost_partitions, b.skip_lost_partitions); + swap(a.__isset, b.__isset); +} + +configuration_recovery_request::configuration_recovery_request( + const configuration_recovery_request &other353) +{ + recovery_set = other353.recovery_set; + skip_bad_nodes = other353.skip_bad_nodes; + skip_lost_partitions = other353.skip_lost_partitions; + __isset = other353.__isset; +} +configuration_recovery_request::configuration_recovery_request( + configuration_recovery_request &&other354) +{ + recovery_set = std::move(other354.recovery_set); + skip_bad_nodes = std::move(other354.skip_bad_nodes); + skip_lost_partitions = std::move(other354.skip_lost_partitions); + __isset = std::move(other354.__isset); +} +configuration_recovery_request &configuration_recovery_request:: +operator=(const configuration_recovery_request &other355) +{ + recovery_set = other355.recovery_set; + skip_bad_nodes = other355.skip_bad_nodes; + skip_lost_partitions = other355.skip_lost_partitions; + __isset = other355.__isset; + return *this; +} +configuration_recovery_request &configuration_recovery_request:: +operator=(configuration_recovery_request &&other356) +{ + recovery_set = std::move(other356.recovery_set); + skip_bad_nodes = std::move(other356.skip_bad_nodes); + skip_lost_partitions = std::move(other356.skip_lost_partitions); + __isset = std::move(other356.__isset); + return *this; +} +void configuration_recovery_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_recovery_request("; + out << "recovery_set=" << to_string(recovery_set); + out << ", " + << "skip_bad_nodes=" << to_string(skip_bad_nodes); + out << ", " + << "skip_lost_partitions=" << to_string(skip_lost_partitions); + out << ")"; +} + +configuration_recovery_response::~configuration_recovery_response() throw() {} + +void configuration_recovery_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void configuration_recovery_response::__set_hint_message(const std::string &val) +{ + this->hint_message = val; +} + +uint32_t configuration_recovery_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_message); + this->__isset.hint_message = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -void configuration_meta_control_request::__set_level(const meta_function_level::type val) { - this->level = val; + return xfer; } -uint32_t configuration_meta_control_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t configuration_recovery_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_recovery_response"); - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_message); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast176; - xfer += iprot->readI32(ecast176); - this->level = (meta_function_level::type)ecast176; - this->__isset.level = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_recovery_response &a, configuration_recovery_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_message, b.hint_message); + swap(a.__isset, b.__isset); +} + +configuration_recovery_response::configuration_recovery_response( + const configuration_recovery_response &other357) +{ + err = other357.err; + hint_message = other357.hint_message; + __isset = other357.__isset; +} +configuration_recovery_response::configuration_recovery_response( + configuration_recovery_response &&other358) +{ + err = std::move(other358.err); + hint_message = std::move(other358.hint_message); + __isset = std::move(other358.__isset); +} +configuration_recovery_response &configuration_recovery_response:: +operator=(const configuration_recovery_response &other359) +{ + err = other359.err; + hint_message = other359.hint_message; + __isset = other359.__isset; + return *this; +} +configuration_recovery_response &configuration_recovery_response:: +operator=(configuration_recovery_response &&other360) +{ + err = std::move(other360.err); + hint_message = std::move(other360.hint_message); + __isset = std::move(other360.__isset); + return *this; +} +void configuration_recovery_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_recovery_response("; + out << "err=" << to_string(err); + out << ", " + << "hint_message=" << to_string(hint_message); + out << ")"; +} + +policy_info::~policy_info() throw() {} + +void policy_info::__set_policy_name(const std::string &val) { this->policy_name = val; } + +void policy_info::__set_backup_provider_type(const std::string &val) +{ + this->backup_provider_type = val; +} + +uint32_t policy_info::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_provider_type); + this->__isset.backup_provider_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_meta_control_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_meta_control_request"); +uint32_t policy_info::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("policy_info"); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("level", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->level); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->backup_provider_type); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_meta_control_request &a, configuration_meta_control_request &b) { - using ::std::swap; - swap(a.level, b.level); - swap(a.__isset, b.__isset); +void swap(policy_info &a, policy_info &b) +{ + using ::std::swap; + swap(a.policy_name, b.policy_name); + swap(a.backup_provider_type, b.backup_provider_type); + swap(a.__isset, b.__isset); } -configuration_meta_control_request::configuration_meta_control_request(const configuration_meta_control_request& other177) { - level = other177.level; - __isset = other177.__isset; +policy_info::policy_info(const policy_info &other361) +{ + policy_name = other361.policy_name; + backup_provider_type = other361.backup_provider_type; + __isset = other361.__isset; } -configuration_meta_control_request::configuration_meta_control_request( configuration_meta_control_request&& other178) { - level = std::move(other178.level); - __isset = std::move(other178.__isset); +policy_info::policy_info(policy_info &&other362) +{ + policy_name = std::move(other362.policy_name); + backup_provider_type = std::move(other362.backup_provider_type); + __isset = std::move(other362.__isset); } -configuration_meta_control_request& configuration_meta_control_request::operator=(const configuration_meta_control_request& other179) { - level = other179.level; - __isset = other179.__isset; - return *this; +policy_info &policy_info::operator=(const policy_info &other363) +{ + policy_name = other363.policy_name; + backup_provider_type = other363.backup_provider_type; + __isset = other363.__isset; + return *this; } -configuration_meta_control_request& configuration_meta_control_request::operator=(configuration_meta_control_request&& other180) { - level = std::move(other180.level); - __isset = std::move(other180.__isset); - return *this; +policy_info &policy_info::operator=(policy_info &&other364) +{ + policy_name = std::move(other364.policy_name); + backup_provider_type = std::move(other364.backup_provider_type); + __isset = std::move(other364.__isset); + return *this; } -void configuration_meta_control_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_meta_control_request("; - out << "level=" << to_string(level); - out << ")"; +void policy_info::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "policy_info("; + out << "policy_name=" << to_string(policy_name); + out << ", " + << "backup_provider_type=" << to_string(backup_provider_type); + out << ")"; } +configuration_restore_request::~configuration_restore_request() throw() {} -configuration_meta_control_response::~configuration_meta_control_response() throw() { +void configuration_restore_request::__set_cluster_name(const std::string &val) +{ + this->cluster_name = val; } +void configuration_restore_request::__set_policy_name(const std::string &val) +{ + this->policy_name = val; +} + +void configuration_restore_request::__set_time_stamp(const int64_t val) { this->time_stamp = val; } + +void configuration_restore_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void configuration_restore_request::__set_app_id(const int32_t val) { this->app_id = val; } -void configuration_meta_control_response::__set_err(const ::dsn::error_code& val) { - this->err = val; +void configuration_restore_request::__set_new_app_name(const std::string &val) +{ + this->new_app_name = val; } -void configuration_meta_control_response::__set_old_level(const meta_function_level::type val) { - this->old_level = val; +void configuration_restore_request::__set_backup_provider_name(const std::string &val) +{ + this->backup_provider_name = val; } -uint32_t configuration_meta_control_response::read(::apache::thrift::protocol::TProtocol* iprot) { +void configuration_restore_request::__set_skip_bad_partition(const bool val) +{ + this->skip_bad_partition = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t configuration_restore_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast181; - xfer += iprot->readI32(ecast181); - this->old_level = (meta_function_level::type)ecast181; - this->__isset.old_level = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cluster_name); + this->__isset.cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->time_stamp); + this->__isset.time_stamp = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->new_app_name); + this->__isset.new_app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_provider_name); + this->__isset.backup_provider_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->skip_bad_partition); + this->__isset.skip_bad_partition = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_meta_control_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_meta_control_response"); +uint32_t configuration_restore_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_restore_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->cluster_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("old_level", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->old_level); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("time_stamp", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->time_stamp); + xfer += oprot->writeFieldEnd(); -void swap(configuration_meta_control_response &a, configuration_meta_control_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.old_level, b.old_level); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); -configuration_meta_control_response::configuration_meta_control_response(const configuration_meta_control_response& other182) { - err = other182.err; - old_level = other182.old_level; - __isset = other182.__isset; -} -configuration_meta_control_response::configuration_meta_control_response( configuration_meta_control_response&& other183) { - err = std::move(other183.err); - old_level = std::move(other183.old_level); - __isset = std::move(other183.__isset); -} -configuration_meta_control_response& configuration_meta_control_response::operator=(const configuration_meta_control_response& other184) { - err = other184.err; - old_level = other184.old_level; - __isset = other184.__isset; - return *this; -} -configuration_meta_control_response& configuration_meta_control_response::operator=(configuration_meta_control_response&& other185) { - err = std::move(other185.err); - old_level = std::move(other185.old_level); - __isset = std::move(other185.__isset); - return *this; -} -void configuration_meta_control_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_meta_control_response("; - out << "err=" << to_string(err); - out << ", " << "old_level=" << to_string(old_level); - out << ")"; -} + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("new_app_name", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->new_app_name); + xfer += oprot->writeFieldEnd(); -configuration_proposal_action::~configuration_proposal_action() throw() { -} + xfer += oprot->writeFieldBegin("backup_provider_name", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->backup_provider_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("skip_bad_partition", ::apache::thrift::protocol::T_BOOL, 8); + xfer += oprot->writeBool(this->skip_bad_partition); + xfer += oprot->writeFieldEnd(); -void configuration_proposal_action::__set_target(const ::dsn::rpc_address& val) { - this->target = val; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_restore_request &a, configuration_restore_request &b) +{ + using ::std::swap; + swap(a.cluster_name, b.cluster_name); + swap(a.policy_name, b.policy_name); + swap(a.time_stamp, b.time_stamp); + swap(a.app_name, b.app_name); + swap(a.app_id, b.app_id); + swap(a.new_app_name, b.new_app_name); + swap(a.backup_provider_name, b.backup_provider_name); + swap(a.skip_bad_partition, b.skip_bad_partition); + swap(a.__isset, b.__isset); +} + +configuration_restore_request::configuration_restore_request( + const configuration_restore_request &other365) +{ + cluster_name = other365.cluster_name; + policy_name = other365.policy_name; + time_stamp = other365.time_stamp; + app_name = other365.app_name; + app_id = other365.app_id; + new_app_name = other365.new_app_name; + backup_provider_name = other365.backup_provider_name; + skip_bad_partition = other365.skip_bad_partition; + __isset = other365.__isset; +} +configuration_restore_request::configuration_restore_request( + configuration_restore_request &&other366) +{ + cluster_name = std::move(other366.cluster_name); + policy_name = std::move(other366.policy_name); + time_stamp = std::move(other366.time_stamp); + app_name = std::move(other366.app_name); + app_id = std::move(other366.app_id); + new_app_name = std::move(other366.new_app_name); + backup_provider_name = std::move(other366.backup_provider_name); + skip_bad_partition = std::move(other366.skip_bad_partition); + __isset = std::move(other366.__isset); +} +configuration_restore_request &configuration_restore_request:: +operator=(const configuration_restore_request &other367) +{ + cluster_name = other367.cluster_name; + policy_name = other367.policy_name; + time_stamp = other367.time_stamp; + app_name = other367.app_name; + app_id = other367.app_id; + new_app_name = other367.new_app_name; + backup_provider_name = other367.backup_provider_name; + skip_bad_partition = other367.skip_bad_partition; + __isset = other367.__isset; + return *this; +} +configuration_restore_request &configuration_restore_request:: +operator=(configuration_restore_request &&other368) +{ + cluster_name = std::move(other368.cluster_name); + policy_name = std::move(other368.policy_name); + time_stamp = std::move(other368.time_stamp); + app_name = std::move(other368.app_name); + app_id = std::move(other368.app_id); + new_app_name = std::move(other368.new_app_name); + backup_provider_name = std::move(other368.backup_provider_name); + skip_bad_partition = std::move(other368.skip_bad_partition); + __isset = std::move(other368.__isset); + return *this; +} +void configuration_restore_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_restore_request("; + out << "cluster_name=" << to_string(cluster_name); + out << ", " + << "policy_name=" << to_string(policy_name); + out << ", " + << "time_stamp=" << to_string(time_stamp); + out << ", " + << "app_name=" << to_string(app_name); + out << ", " + << "app_id=" << to_string(app_id); + out << ", " + << "new_app_name=" << to_string(new_app_name); + out << ", " + << "backup_provider_name=" << to_string(backup_provider_name); + out << ", " + << "skip_bad_partition=" << to_string(skip_bad_partition); + out << ")"; +} + +backup_request::~backup_request() throw() {} + +void backup_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void backup_request::__set_policy(const policy_info &val) { this->policy = val; } + +void backup_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void backup_request::__set_backup_id(const int64_t val) { this->backup_id = val; } + +uint32_t backup_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->policy.read(iprot); + this->__isset.policy = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->backup_id); + this->__isset.backup_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void configuration_proposal_action::__set_node(const ::dsn::rpc_address& val) { - this->node = val; -} + xfer += iprot->readStructEnd(); -void configuration_proposal_action::__set_type(const config_type::type val) { - this->type = val; + return xfer; } -uint32_t configuration_proposal_action::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t backup_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("backup_request"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("policy", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->policy.write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->backup_id); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->target.read(iprot); - this->__isset.target = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast186; - xfer += iprot->readI32(ecast186); - this->type = (config_type::type)ecast186; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(backup_request &a, backup_request &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.policy, b.policy); + swap(a.app_name, b.app_name); + swap(a.backup_id, b.backup_id); + swap(a.__isset, b.__isset); +} + +backup_request::backup_request(const backup_request &other369) +{ + pid = other369.pid; + policy = other369.policy; + app_name = other369.app_name; + backup_id = other369.backup_id; + __isset = other369.__isset; +} +backup_request::backup_request(backup_request &&other370) +{ + pid = std::move(other370.pid); + policy = std::move(other370.policy); + app_name = std::move(other370.app_name); + backup_id = std::move(other370.backup_id); + __isset = std::move(other370.__isset); +} +backup_request &backup_request::operator=(const backup_request &other371) +{ + pid = other371.pid; + policy = other371.policy; + app_name = other371.app_name; + backup_id = other371.backup_id; + __isset = other371.__isset; + return *this; +} +backup_request &backup_request::operator=(backup_request &&other372) +{ + pid = std::move(other372.pid); + policy = std::move(other372.policy); + app_name = std::move(other372.app_name); + backup_id = std::move(other372.backup_id); + __isset = std::move(other372.__isset); + return *this; +} +void backup_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "backup_request("; + out << "pid=" << to_string(pid); + out << ", " + << "policy=" << to_string(policy); + out << ", " + << "app_name=" << to_string(app_name); + out << ", " + << "backup_id=" << to_string(backup_id); + out << ")"; +} + +backup_response::~backup_response() throw() {} + +void backup_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void backup_response::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void backup_response::__set_progress(const int32_t val) { this->progress = val; } + +void backup_response::__set_policy_name(const std::string &val) { this->policy_name = val; } + +void backup_response::__set_backup_id(const int64_t val) { this->backup_id = val; } + +void backup_response::__set_checkpoint_total_size(const int64_t val) +{ + this->checkpoint_total_size = val; +} + +uint32_t backup_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->progress); + this->__isset.progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->backup_id); + this->__isset.backup_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->checkpoint_total_size); + this->__isset.checkpoint_total_size = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_proposal_action::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_proposal_action"); +uint32_t backup_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("backup_response"); - xfer += oprot->writeFieldBegin("target", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->target.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->progress); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->backup_id); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("checkpoint_total_size", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->checkpoint_total_size); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(backup_response &a, backup_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.pid, b.pid); + swap(a.progress, b.progress); + swap(a.policy_name, b.policy_name); + swap(a.backup_id, b.backup_id); + swap(a.checkpoint_total_size, b.checkpoint_total_size); + swap(a.__isset, b.__isset); +} + +backup_response::backup_response(const backup_response &other373) +{ + err = other373.err; + pid = other373.pid; + progress = other373.progress; + policy_name = other373.policy_name; + backup_id = other373.backup_id; + checkpoint_total_size = other373.checkpoint_total_size; + __isset = other373.__isset; +} +backup_response::backup_response(backup_response &&other374) +{ + err = std::move(other374.err); + pid = std::move(other374.pid); + progress = std::move(other374.progress); + policy_name = std::move(other374.policy_name); + backup_id = std::move(other374.backup_id); + checkpoint_total_size = std::move(other374.checkpoint_total_size); + __isset = std::move(other374.__isset); +} +backup_response &backup_response::operator=(const backup_response &other375) +{ + err = other375.err; + pid = other375.pid; + progress = other375.progress; + policy_name = other375.policy_name; + backup_id = other375.backup_id; + checkpoint_total_size = other375.checkpoint_total_size; + __isset = other375.__isset; + return *this; +} +backup_response &backup_response::operator=(backup_response &&other376) +{ + err = std::move(other376.err); + pid = std::move(other376.pid); + progress = std::move(other376.progress); + policy_name = std::move(other376.policy_name); + backup_id = std::move(other376.backup_id); + checkpoint_total_size = std::move(other376.checkpoint_total_size); + __isset = std::move(other376.__isset); + return *this; +} +void backup_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "backup_response("; + out << "err=" << to_string(err); + out << ", " + << "pid=" << to_string(pid); + out << ", " + << "progress=" << to_string(progress); + out << ", " + << "policy_name=" << to_string(policy_name); + out << ", " + << "backup_id=" << to_string(backup_id); + out << ", " + << "checkpoint_total_size=" << to_string(checkpoint_total_size); + out << ")"; +} + +backup_clear_request::~backup_clear_request() throw() {} + +void backup_clear_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void backup_clear_request::__set_policy_name(const std::string &val) { this->policy_name = val; } + +uint32_t backup_clear_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); + return xfer; +} + +uint32_t backup_clear_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("backup_clear_request"); + + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_proposal_action &a, configuration_proposal_action &b) { - using ::std::swap; - swap(a.target, b.target); - swap(a.node, b.node); - swap(a.type, b.type); - swap(a.__isset, b.__isset); +void swap(backup_clear_request &a, backup_clear_request &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.policy_name, b.policy_name); + swap(a.__isset, b.__isset); } -configuration_proposal_action::configuration_proposal_action(const configuration_proposal_action& other187) { - target = other187.target; - node = other187.node; - type = other187.type; - __isset = other187.__isset; +backup_clear_request::backup_clear_request(const backup_clear_request &other377) +{ + pid = other377.pid; + policy_name = other377.policy_name; + __isset = other377.__isset; } -configuration_proposal_action::configuration_proposal_action( configuration_proposal_action&& other188) { - target = std::move(other188.target); - node = std::move(other188.node); - type = std::move(other188.type); - __isset = std::move(other188.__isset); +backup_clear_request::backup_clear_request(backup_clear_request &&other378) +{ + pid = std::move(other378.pid); + policy_name = std::move(other378.policy_name); + __isset = std::move(other378.__isset); } -configuration_proposal_action& configuration_proposal_action::operator=(const configuration_proposal_action& other189) { - target = other189.target; - node = other189.node; - type = other189.type; - __isset = other189.__isset; - return *this; +backup_clear_request &backup_clear_request::operator=(const backup_clear_request &other379) +{ + pid = other379.pid; + policy_name = other379.policy_name; + __isset = other379.__isset; + return *this; } -configuration_proposal_action& configuration_proposal_action::operator=(configuration_proposal_action&& other190) { - target = std::move(other190.target); - node = std::move(other190.node); - type = std::move(other190.type); - __isset = std::move(other190.__isset); - return *this; +backup_clear_request &backup_clear_request::operator=(backup_clear_request &&other380) +{ + pid = std::move(other380.pid); + policy_name = std::move(other380.policy_name); + __isset = std::move(other380.__isset); + return *this; } -void configuration_proposal_action::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_proposal_action("; - out << "target=" << to_string(target); - out << ", " << "node=" << to_string(node); - out << ", " << "type=" << to_string(type); - out << ")"; +void backup_clear_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "backup_clear_request("; + out << "pid=" << to_string(pid); + out << ", " + << "policy_name=" << to_string(policy_name); + out << ")"; } +configuration_modify_backup_policy_request::~configuration_modify_backup_policy_request() throw() {} -configuration_balancer_request::~configuration_balancer_request() throw() { +void configuration_modify_backup_policy_request::__set_policy_name(const std::string &val) +{ + this->policy_name = val; } - -void configuration_balancer_request::__set_gpid(const ::dsn::gpid& val) { - this->gpid = val; +void configuration_modify_backup_policy_request::__set_add_appids(const std::vector &val) +{ + this->add_appids = val; + __isset.add_appids = true; } -void configuration_balancer_request::__set_action_list(const std::vector & val) { - this->action_list = val; +void configuration_modify_backup_policy_request::__set_removal_appids( + const std::vector &val) +{ + this->removal_appids = val; + __isset.removal_appids = true; } -void configuration_balancer_request::__set_force(const bool val) { - this->force = val; -__isset.force = true; +void configuration_modify_backup_policy_request::__set_new_backup_interval_sec(const int64_t val) +{ + this->new_backup_interval_sec = val; + __isset.new_backup_interval_sec = true; } -void configuration_balancer_request::__set_balance_type(const balancer_request_type::type val) { - this->balance_type = val; -__isset.balance_type = true; +void configuration_modify_backup_policy_request::__set_backup_history_count_to_keep( + const int32_t val) +{ + this->backup_history_count_to_keep = val; + __isset.backup_history_count_to_keep = true; } -uint32_t configuration_balancer_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +void configuration_modify_backup_policy_request::__set_is_disable(const bool val) +{ + this->is_disable = val; + __isset.is_disable = true; +} - xfer += iprot->readStructBegin(fname); +void configuration_modify_backup_policy_request::__set_start_time(const std::string &val) +{ + this->start_time = val; + __isset.start_time = true; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t +configuration_modify_backup_policy_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->gpid.read(iprot); - this->__isset.gpid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->action_list.clear(); - uint32_t _size191; - ::apache::thrift::protocol::TType _etype194; - xfer += iprot->readListBegin(_etype194, _size191); - this->action_list.resize(_size191); - uint32_t _i195; - for (_i195 = 0; _i195 < _size191; ++_i195) - { - xfer += this->action_list[_i195].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.action_list = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->force); - this->__isset.force = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast196; - xfer += iprot->readI32(ecast196); - this->balance_type = (balancer_request_type::type)ecast196; - this->__isset.balance_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructEnd(); + using ::apache::thrift::protocol::TProtocolException; - return xfer; -} - -uint32_t configuration_balancer_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_balancer_request"); - - xfer += oprot->writeFieldBegin("gpid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->gpid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("action_list", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->action_list.size())); - std::vector ::const_iterator _iter197; - for (_iter197 = this->action_list.begin(); _iter197 != this->action_list.end(); ++_iter197) - { - xfer += (*_iter197).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - if (this->__isset.force) { - xfer += oprot->writeFieldBegin("force", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->force); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.balance_type) { - xfer += oprot->writeFieldBegin("balance_type", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->balance_type); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_balancer_request &a, configuration_balancer_request &b) { - using ::std::swap; - swap(a.gpid, b.gpid); - swap(a.action_list, b.action_list); - swap(a.force, b.force); - swap(a.balance_type, b.balance_type); - swap(a.__isset, b.__isset); -} - -configuration_balancer_request::configuration_balancer_request(const configuration_balancer_request& other198) { - gpid = other198.gpid; - action_list = other198.action_list; - force = other198.force; - balance_type = other198.balance_type; - __isset = other198.__isset; -} -configuration_balancer_request::configuration_balancer_request( configuration_balancer_request&& other199) { - gpid = std::move(other199.gpid); - action_list = std::move(other199.action_list); - force = std::move(other199.force); - balance_type = std::move(other199.balance_type); - __isset = std::move(other199.__isset); -} -configuration_balancer_request& configuration_balancer_request::operator=(const configuration_balancer_request& other200) { - gpid = other200.gpid; - action_list = other200.action_list; - force = other200.force; - balance_type = other200.balance_type; - __isset = other200.__isset; - return *this; -} -configuration_balancer_request& configuration_balancer_request::operator=(configuration_balancer_request&& other201) { - gpid = std::move(other201.gpid); - action_list = std::move(other201.action_list); - force = std::move(other201.force); - balance_type = std::move(other201.balance_type); - __isset = std::move(other201.__isset); - return *this; -} -void configuration_balancer_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_balancer_request("; - out << "gpid=" << to_string(gpid); - out << ", " << "action_list=" << to_string(action_list); - out << ", " << "force="; (__isset.force ? (out << to_string(force)) : (out << "")); - out << ", " << "balance_type="; (__isset.balance_type ? (out << to_string(balance_type)) : (out << "")); - out << ")"; -} - - -configuration_balancer_response::~configuration_balancer_response() throw() { -} - - -void configuration_balancer_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -uint32_t configuration_balancer_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_balancer_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_balancer_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_balancer_response &a, configuration_balancer_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); -} - -configuration_balancer_response::configuration_balancer_response(const configuration_balancer_response& other202) { - err = other202.err; - __isset = other202.__isset; -} -configuration_balancer_response::configuration_balancer_response( configuration_balancer_response&& other203) { - err = std::move(other203.err); - __isset = std::move(other203.__isset); -} -configuration_balancer_response& configuration_balancer_response::operator=(const configuration_balancer_response& other204) { - err = other204.err; - __isset = other204.__isset; - return *this; -} -configuration_balancer_response& configuration_balancer_response::operator=(configuration_balancer_response&& other205) { - err = std::move(other205.err); - __isset = std::move(other205.__isset); - return *this; -} -void configuration_balancer_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_balancer_response("; - out << "err=" << to_string(err); - out << ")"; -} - - -configuration_drop_app_response::~configuration_drop_app_response() throw() { -} - - -void configuration_drop_app_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -uint32_t configuration_drop_app_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_drop_app_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_drop_app_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_drop_app_response &a, configuration_drop_app_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); -} - -configuration_drop_app_response::configuration_drop_app_response(const configuration_drop_app_response& other206) { - err = other206.err; - __isset = other206.__isset; -} -configuration_drop_app_response::configuration_drop_app_response( configuration_drop_app_response&& other207) { - err = std::move(other207.err); - __isset = std::move(other207.__isset); -} -configuration_drop_app_response& configuration_drop_app_response::operator=(const configuration_drop_app_response& other208) { - err = other208.err; - __isset = other208.__isset; - return *this; -} -configuration_drop_app_response& configuration_drop_app_response::operator=(configuration_drop_app_response&& other209) { - err = std::move(other209.err); - __isset = std::move(other209.__isset); - return *this; -} -void configuration_drop_app_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_drop_app_response("; - out << "err=" << to_string(err); - out << ")"; -} - - -configuration_list_apps_response::~configuration_list_apps_response() throw() { -} - - -void configuration_list_apps_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_list_apps_response::__set_infos(const std::vector< ::dsn::app_info> & val) { - this->infos = val; -} - -uint32_t configuration_list_apps_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->infos.clear(); - uint32_t _size210; - ::apache::thrift::protocol::TType _etype213; - xfer += iprot->readListBegin(_etype213, _size210); - this->infos.resize(_size210); - uint32_t _i214; - for (_i214 = 0; _i214 < _size210; ++_i214) - { - xfer += this->infos[_i214].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.infos = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_list_apps_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_list_apps_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("infos", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->infos.size())); - std::vector< ::dsn::app_info> ::const_iterator _iter215; - for (_iter215 = this->infos.begin(); _iter215 != this->infos.end(); ++_iter215) - { - xfer += (*_iter215).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_list_apps_response &a, configuration_list_apps_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.infos, b.infos); - swap(a.__isset, b.__isset); -} - -configuration_list_apps_response::configuration_list_apps_response(const configuration_list_apps_response& other216) { - err = other216.err; - infos = other216.infos; - __isset = other216.__isset; -} -configuration_list_apps_response::configuration_list_apps_response( configuration_list_apps_response&& other217) { - err = std::move(other217.err); - infos = std::move(other217.infos); - __isset = std::move(other217.__isset); -} -configuration_list_apps_response& configuration_list_apps_response::operator=(const configuration_list_apps_response& other218) { - err = other218.err; - infos = other218.infos; - __isset = other218.__isset; - return *this; -} -configuration_list_apps_response& configuration_list_apps_response::operator=(configuration_list_apps_response&& other219) { - err = std::move(other219.err); - infos = std::move(other219.infos); - __isset = std::move(other219.__isset); - return *this; -} -void configuration_list_apps_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_list_apps_response("; - out << "err=" << to_string(err); - out << ", " << "infos=" << to_string(infos); - out << ")"; -} - - -configuration_list_nodes_response::~configuration_list_nodes_response() throw() { -} - - -void configuration_list_nodes_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_list_nodes_response::__set_infos(const std::vector & val) { - this->infos = val; -} - -uint32_t configuration_list_nodes_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->infos.clear(); - uint32_t _size220; - ::apache::thrift::protocol::TType _etype223; - xfer += iprot->readListBegin(_etype223, _size220); - this->infos.resize(_size220); - uint32_t _i224; - for (_i224 = 0; _i224 < _size220; ++_i224) - { - xfer += this->infos[_i224].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.infos = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_list_nodes_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_list_nodes_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("infos", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->infos.size())); - std::vector ::const_iterator _iter225; - for (_iter225 = this->infos.begin(); _iter225 != this->infos.end(); ++_iter225) - { - xfer += (*_iter225).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_list_nodes_response &a, configuration_list_nodes_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.infos, b.infos); - swap(a.__isset, b.__isset); -} - -configuration_list_nodes_response::configuration_list_nodes_response(const configuration_list_nodes_response& other226) { - err = other226.err; - infos = other226.infos; - __isset = other226.__isset; -} -configuration_list_nodes_response::configuration_list_nodes_response( configuration_list_nodes_response&& other227) { - err = std::move(other227.err); - infos = std::move(other227.infos); - __isset = std::move(other227.__isset); -} -configuration_list_nodes_response& configuration_list_nodes_response::operator=(const configuration_list_nodes_response& other228) { - err = other228.err; - infos = other228.infos; - __isset = other228.__isset; - return *this; -} -configuration_list_nodes_response& configuration_list_nodes_response::operator=(configuration_list_nodes_response&& other229) { - err = std::move(other229.err); - infos = std::move(other229.infos); - __isset = std::move(other229.__isset); - return *this; -} -void configuration_list_nodes_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_list_nodes_response("; - out << "err=" << to_string(err); - out << ", " << "infos=" << to_string(infos); - out << ")"; -} - - -configuration_cluster_info_response::~configuration_cluster_info_response() throw() { -} - - -void configuration_cluster_info_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_cluster_info_response::__set_keys(const std::vector & val) { - this->keys = val; -} - -void configuration_cluster_info_response::__set_values(const std::vector & val) { - this->values = val; -} - -uint32_t configuration_cluster_info_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->keys.clear(); - uint32_t _size230; - ::apache::thrift::protocol::TType _etype233; - xfer += iprot->readListBegin(_etype233, _size230); - this->keys.resize(_size230); - uint32_t _i234; - for (_i234 = 0; _i234 < _size230; ++_i234) - { - xfer += iprot->readString(this->keys[_i234]); - } - xfer += iprot->readListEnd(); - } - this->__isset.keys = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->values.clear(); - uint32_t _size235; - ::apache::thrift::protocol::TType _etype238; - xfer += iprot->readListBegin(_etype238, _size235); - this->values.resize(_size235); - uint32_t _i239; - for (_i239 = 0; _i239 < _size235; ++_i239) - { - xfer += iprot->readString(this->values[_i239]); - } - xfer += iprot->readListEnd(); - } - this->__isset.values = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_cluster_info_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_cluster_info_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->keys.size())); - std::vector ::const_iterator _iter240; - for (_iter240 = this->keys.begin(); _iter240 != this->keys.end(); ++_iter240) - { - xfer += oprot->writeString((*_iter240)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter241; - for (_iter241 = this->values.begin(); _iter241 != this->values.end(); ++_iter241) - { - xfer += oprot->writeString((*_iter241)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_cluster_info_response &a, configuration_cluster_info_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.keys, b.keys); - swap(a.values, b.values); - swap(a.__isset, b.__isset); -} - -configuration_cluster_info_response::configuration_cluster_info_response(const configuration_cluster_info_response& other242) { - err = other242.err; - keys = other242.keys; - values = other242.values; - __isset = other242.__isset; -} -configuration_cluster_info_response::configuration_cluster_info_response( configuration_cluster_info_response&& other243) { - err = std::move(other243.err); - keys = std::move(other243.keys); - values = std::move(other243.values); - __isset = std::move(other243.__isset); -} -configuration_cluster_info_response& configuration_cluster_info_response::operator=(const configuration_cluster_info_response& other244) { - err = other244.err; - keys = other244.keys; - values = other244.values; - __isset = other244.__isset; - return *this; -} -configuration_cluster_info_response& configuration_cluster_info_response::operator=(configuration_cluster_info_response&& other245) { - err = std::move(other245.err); - keys = std::move(other245.keys); - values = std::move(other245.values); - __isset = std::move(other245.__isset); - return *this; -} -void configuration_cluster_info_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_cluster_info_response("; - out << "err=" << to_string(err); - out << ", " << "keys=" << to_string(keys); - out << ", " << "values=" << to_string(values); - out << ")"; -} - - -configuration_recall_app_response::~configuration_recall_app_response() throw() { -} - - -void configuration_recall_app_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_recall_app_response::__set_info(const ::dsn::app_info& val) { - this->info = val; -} - -uint32_t configuration_recall_app_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->info.read(iprot); - this->__isset.info = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_recall_app_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_recall_app_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("info", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->info.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_recall_app_response &a, configuration_recall_app_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.info, b.info); - swap(a.__isset, b.__isset); -} - -configuration_recall_app_response::configuration_recall_app_response(const configuration_recall_app_response& other246) { - err = other246.err; - info = other246.info; - __isset = other246.__isset; -} -configuration_recall_app_response::configuration_recall_app_response( configuration_recall_app_response&& other247) { - err = std::move(other247.err); - info = std::move(other247.info); - __isset = std::move(other247.__isset); -} -configuration_recall_app_response& configuration_recall_app_response::operator=(const configuration_recall_app_response& other248) { - err = other248.err; - info = other248.info; - __isset = other248.__isset; - return *this; -} -configuration_recall_app_response& configuration_recall_app_response::operator=(configuration_recall_app_response&& other249) { - err = std::move(other249.err); - info = std::move(other249.info); - __isset = std::move(other249.__isset); - return *this; -} -void configuration_recall_app_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_recall_app_response("; - out << "err=" << to_string(err); - out << ", " << "info=" << to_string(info); - out << ")"; -} - - -query_replica_decree_request::~query_replica_decree_request() throw() { -} - - -void query_replica_decree_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void query_replica_decree_request::__set_node(const ::dsn::rpc_address& val) { - this->node = val; -} - -uint32_t query_replica_decree_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t query_replica_decree_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_replica_decree_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_replica_decree_request &a, query_replica_decree_request &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.node, b.node); - swap(a.__isset, b.__isset); -} - -query_replica_decree_request::query_replica_decree_request(const query_replica_decree_request& other250) { - pid = other250.pid; - node = other250.node; - __isset = other250.__isset; -} -query_replica_decree_request::query_replica_decree_request( query_replica_decree_request&& other251) { - pid = std::move(other251.pid); - node = std::move(other251.node); - __isset = std::move(other251.__isset); -} -query_replica_decree_request& query_replica_decree_request::operator=(const query_replica_decree_request& other252) { - pid = other252.pid; - node = other252.node; - __isset = other252.__isset; - return *this; -} -query_replica_decree_request& query_replica_decree_request::operator=(query_replica_decree_request&& other253) { - pid = std::move(other253.pid); - node = std::move(other253.node); - __isset = std::move(other253.__isset); - return *this; -} -void query_replica_decree_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_replica_decree_request("; - out << "pid=" << to_string(pid); - out << ", " << "node=" << to_string(node); - out << ")"; -} - - -query_replica_decree_response::~query_replica_decree_response() throw() { -} - - -void query_replica_decree_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void query_replica_decree_response::__set_last_decree(const int64_t val) { - this->last_decree = val; -} - -uint32_t query_replica_decree_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_decree); - this->__isset.last_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t query_replica_decree_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_replica_decree_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_decree", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->last_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_replica_decree_response &a, query_replica_decree_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.last_decree, b.last_decree); - swap(a.__isset, b.__isset); -} - -query_replica_decree_response::query_replica_decree_response(const query_replica_decree_response& other254) { - err = other254.err; - last_decree = other254.last_decree; - __isset = other254.__isset; -} -query_replica_decree_response::query_replica_decree_response( query_replica_decree_response&& other255) { - err = std::move(other255.err); - last_decree = std::move(other255.last_decree); - __isset = std::move(other255.__isset); -} -query_replica_decree_response& query_replica_decree_response::operator=(const query_replica_decree_response& other256) { - err = other256.err; - last_decree = other256.last_decree; - __isset = other256.__isset; - return *this; -} -query_replica_decree_response& query_replica_decree_response::operator=(query_replica_decree_response&& other257) { - err = std::move(other257.err); - last_decree = std::move(other257.last_decree); - __isset = std::move(other257.__isset); - return *this; -} -void query_replica_decree_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_replica_decree_response("; - out << "err=" << to_string(err); - out << ", " << "last_decree=" << to_string(last_decree); - out << ")"; -} - - -replica_info::~replica_info() throw() { -} - - -void replica_info::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void replica_info::__set_ballot(const int64_t val) { - this->ballot = val; -} - -void replica_info::__set_status(const partition_status::type val) { - this->status = val; -} - -void replica_info::__set_last_committed_decree(const int64_t val) { - this->last_committed_decree = val; -} - -void replica_info::__set_last_prepared_decree(const int64_t val) { - this->last_prepared_decree = val; -} - -void replica_info::__set_last_durable_decree(const int64_t val) { - this->last_durable_decree = val; -} - -void replica_info::__set_app_type(const std::string& val) { - this->app_type = val; -} - -void replica_info::__set_disk_tag(const std::string& val) { - this->disk_tag = val; -} - -uint32_t replica_info::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast258; - xfer += iprot->readI32(ecast258); - this->status = (partition_status::type)ecast258; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_prepared_decree); - this->__isset.last_prepared_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_durable_decree); - this->__isset.last_durable_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_type); - this->__isset.app_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->disk_tag); - this->__isset.disk_tag = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t replica_info::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_info"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_prepared_decree", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->last_prepared_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_durable_decree", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->last_durable_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->app_type); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("disk_tag", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->disk_tag); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(replica_info &a, replica_info &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.ballot, b.ballot); - swap(a.status, b.status); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.last_prepared_decree, b.last_prepared_decree); - swap(a.last_durable_decree, b.last_durable_decree); - swap(a.app_type, b.app_type); - swap(a.disk_tag, b.disk_tag); - swap(a.__isset, b.__isset); -} - -replica_info::replica_info(const replica_info& other259) { - pid = other259.pid; - ballot = other259.ballot; - status = other259.status; - last_committed_decree = other259.last_committed_decree; - last_prepared_decree = other259.last_prepared_decree; - last_durable_decree = other259.last_durable_decree; - app_type = other259.app_type; - disk_tag = other259.disk_tag; - __isset = other259.__isset; -} -replica_info::replica_info( replica_info&& other260) { - pid = std::move(other260.pid); - ballot = std::move(other260.ballot); - status = std::move(other260.status); - last_committed_decree = std::move(other260.last_committed_decree); - last_prepared_decree = std::move(other260.last_prepared_decree); - last_durable_decree = std::move(other260.last_durable_decree); - app_type = std::move(other260.app_type); - disk_tag = std::move(other260.disk_tag); - __isset = std::move(other260.__isset); -} -replica_info& replica_info::operator=(const replica_info& other261) { - pid = other261.pid; - ballot = other261.ballot; - status = other261.status; - last_committed_decree = other261.last_committed_decree; - last_prepared_decree = other261.last_prepared_decree; - last_durable_decree = other261.last_durable_decree; - app_type = other261.app_type; - disk_tag = other261.disk_tag; - __isset = other261.__isset; - return *this; -} -replica_info& replica_info::operator=(replica_info&& other262) { - pid = std::move(other262.pid); - ballot = std::move(other262.ballot); - status = std::move(other262.status); - last_committed_decree = std::move(other262.last_committed_decree); - last_prepared_decree = std::move(other262.last_prepared_decree); - last_durable_decree = std::move(other262.last_durable_decree); - app_type = std::move(other262.app_type); - disk_tag = std::move(other262.disk_tag); - __isset = std::move(other262.__isset); - return *this; -} -void replica_info::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "replica_info("; - out << "pid=" << to_string(pid); - out << ", " << "ballot=" << to_string(ballot); - out << ", " << "status=" << to_string(status); - out << ", " << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " << "last_prepared_decree=" << to_string(last_prepared_decree); - out << ", " << "last_durable_decree=" << to_string(last_durable_decree); - out << ", " << "app_type=" << to_string(app_type); - out << ", " << "disk_tag=" << to_string(disk_tag); - out << ")"; -} - - -query_replica_info_request::~query_replica_info_request() throw() { -} - - -void query_replica_info_request::__set_node(const ::dsn::rpc_address& val) { - this->node = val; -} - -uint32_t query_replica_info_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t query_replica_info_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_replica_info_request"); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_replica_info_request &a, query_replica_info_request &b) { - using ::std::swap; - swap(a.node, b.node); - swap(a.__isset, b.__isset); -} - -query_replica_info_request::query_replica_info_request(const query_replica_info_request& other263) { - node = other263.node; - __isset = other263.__isset; -} -query_replica_info_request::query_replica_info_request( query_replica_info_request&& other264) { - node = std::move(other264.node); - __isset = std::move(other264.__isset); -} -query_replica_info_request& query_replica_info_request::operator=(const query_replica_info_request& other265) { - node = other265.node; - __isset = other265.__isset; - return *this; -} -query_replica_info_request& query_replica_info_request::operator=(query_replica_info_request&& other266) { - node = std::move(other266.node); - __isset = std::move(other266.__isset); - return *this; -} -void query_replica_info_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_replica_info_request("; - out << "node=" << to_string(node); - out << ")"; -} - - -query_replica_info_response::~query_replica_info_response() throw() { -} - - -void query_replica_info_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void query_replica_info_response::__set_replicas(const std::vector & val) { - this->replicas = val; -} - -uint32_t query_replica_info_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->replicas.clear(); - uint32_t _size267; - ::apache::thrift::protocol::TType _etype270; - xfer += iprot->readListBegin(_etype270, _size267); - this->replicas.resize(_size267); - uint32_t _i271; - for (_i271 = 0; _i271 < _size267; ++_i271) - { - xfer += this->replicas[_i271].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t query_replica_info_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_replica_info_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("replicas", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->replicas.size())); - std::vector ::const_iterator _iter272; - for (_iter272 = this->replicas.begin(); _iter272 != this->replicas.end(); ++_iter272) - { - xfer += (*_iter272).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_replica_info_response &a, query_replica_info_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.replicas, b.replicas); - swap(a.__isset, b.__isset); -} - -query_replica_info_response::query_replica_info_response(const query_replica_info_response& other273) { - err = other273.err; - replicas = other273.replicas; - __isset = other273.__isset; -} -query_replica_info_response::query_replica_info_response( query_replica_info_response&& other274) { - err = std::move(other274.err); - replicas = std::move(other274.replicas); - __isset = std::move(other274.__isset); -} -query_replica_info_response& query_replica_info_response::operator=(const query_replica_info_response& other275) { - err = other275.err; - replicas = other275.replicas; - __isset = other275.__isset; - return *this; -} -query_replica_info_response& query_replica_info_response::operator=(query_replica_info_response&& other276) { - err = std::move(other276.err); - replicas = std::move(other276.replicas); - __isset = std::move(other276.__isset); - return *this; -} -void query_replica_info_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_replica_info_response("; - out << "err=" << to_string(err); - out << ", " << "replicas=" << to_string(replicas); - out << ")"; -} - - -disk_info::~disk_info() throw() { -} - - -void disk_info::__set_tag(const std::string& val) { - this->tag = val; -} - -void disk_info::__set_full_dir(const std::string& val) { - this->full_dir = val; -} - -void disk_info::__set_disk_capacity_mb(const int64_t val) { - this->disk_capacity_mb = val; -} - -void disk_info::__set_disk_available_mb(const int64_t val) { - this->disk_available_mb = val; -} - -void disk_info::__set_holding_primary_replicas(const std::map > & val) { - this->holding_primary_replicas = val; -} - -void disk_info::__set_holding_secondary_replicas(const std::map > & val) { - this->holding_secondary_replicas = val; -} - -uint32_t disk_info::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tag); - this->__isset.tag = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->full_dir); - this->__isset.full_dir = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->disk_capacity_mb); - this->__isset.disk_capacity_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->disk_available_mb); - this->__isset.disk_available_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->holding_primary_replicas.clear(); - uint32_t _size277; - ::apache::thrift::protocol::TType _ktype278; - ::apache::thrift::protocol::TType _vtype279; - xfer += iprot->readMapBegin(_ktype278, _vtype279, _size277); - uint32_t _i281; - for (_i281 = 0; _i281 < _size277; ++_i281) - { - int32_t _key282; - xfer += iprot->readI32(_key282); - std::set< ::dsn::gpid> & _val283 = this->holding_primary_replicas[_key282]; - { - _val283.clear(); - uint32_t _size284; - ::apache::thrift::protocol::TType _etype287; - xfer += iprot->readSetBegin(_etype287, _size284); - uint32_t _i288; - for (_i288 = 0; _i288 < _size284; ++_i288) - { - ::dsn::gpid _elem289; - xfer += _elem289.read(iprot); - _val283.insert(_elem289); - } - xfer += iprot->readSetEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.holding_primary_replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->holding_secondary_replicas.clear(); - uint32_t _size290; - ::apache::thrift::protocol::TType _ktype291; - ::apache::thrift::protocol::TType _vtype292; - xfer += iprot->readMapBegin(_ktype291, _vtype292, _size290); - uint32_t _i294; - for (_i294 = 0; _i294 < _size290; ++_i294) - { - int32_t _key295; - xfer += iprot->readI32(_key295); - std::set< ::dsn::gpid> & _val296 = this->holding_secondary_replicas[_key295]; - { - _val296.clear(); - uint32_t _size297; - ::apache::thrift::protocol::TType _etype300; - xfer += iprot->readSetBegin(_etype300, _size297); - uint32_t _i301; - for (_i301 = 0; _i301 < _size297; ++_i301) - { - ::dsn::gpid _elem302; - xfer += _elem302.read(iprot); - _val296.insert(_elem302); - } - xfer += iprot->readSetEnd(); - } - } - xfer += iprot->readMapEnd(); - } - this->__isset.holding_secondary_replicas = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t disk_info::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("disk_info"); - - xfer += oprot->writeFieldBegin("tag", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->tag); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("full_dir", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->full_dir); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("disk_capacity_mb", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->disk_capacity_mb); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("disk_available_mb", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->disk_available_mb); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("holding_primary_replicas", ::apache::thrift::protocol::T_MAP, 5); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_SET, static_cast(this->holding_primary_replicas.size())); - std::map > ::const_iterator _iter303; - for (_iter303 = this->holding_primary_replicas.begin(); _iter303 != this->holding_primary_replicas.end(); ++_iter303) - { - xfer += oprot->writeI32(_iter303->first); - { - xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter303->second.size())); - std::set< ::dsn::gpid> ::const_iterator _iter304; - for (_iter304 = _iter303->second.begin(); _iter304 != _iter303->second.end(); ++_iter304) - { - xfer += (*_iter304).write(oprot); - } - xfer += oprot->writeSetEnd(); - } - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("holding_secondary_replicas", ::apache::thrift::protocol::T_MAP, 6); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_SET, static_cast(this->holding_secondary_replicas.size())); - std::map > ::const_iterator _iter305; - for (_iter305 = this->holding_secondary_replicas.begin(); _iter305 != this->holding_secondary_replicas.end(); ++_iter305) - { - xfer += oprot->writeI32(_iter305->first); - { - xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter305->second.size())); - std::set< ::dsn::gpid> ::const_iterator _iter306; - for (_iter306 = _iter305->second.begin(); _iter306 != _iter305->second.end(); ++_iter306) - { - xfer += (*_iter306).write(oprot); - } - xfer += oprot->writeSetEnd(); - } - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(disk_info &a, disk_info &b) { - using ::std::swap; - swap(a.tag, b.tag); - swap(a.full_dir, b.full_dir); - swap(a.disk_capacity_mb, b.disk_capacity_mb); - swap(a.disk_available_mb, b.disk_available_mb); - swap(a.holding_primary_replicas, b.holding_primary_replicas); - swap(a.holding_secondary_replicas, b.holding_secondary_replicas); - swap(a.__isset, b.__isset); -} - -disk_info::disk_info(const disk_info& other307) { - tag = other307.tag; - full_dir = other307.full_dir; - disk_capacity_mb = other307.disk_capacity_mb; - disk_available_mb = other307.disk_available_mb; - holding_primary_replicas = other307.holding_primary_replicas; - holding_secondary_replicas = other307.holding_secondary_replicas; - __isset = other307.__isset; -} -disk_info::disk_info( disk_info&& other308) { - tag = std::move(other308.tag); - full_dir = std::move(other308.full_dir); - disk_capacity_mb = std::move(other308.disk_capacity_mb); - disk_available_mb = std::move(other308.disk_available_mb); - holding_primary_replicas = std::move(other308.holding_primary_replicas); - holding_secondary_replicas = std::move(other308.holding_secondary_replicas); - __isset = std::move(other308.__isset); -} -disk_info& disk_info::operator=(const disk_info& other309) { - tag = other309.tag; - full_dir = other309.full_dir; - disk_capacity_mb = other309.disk_capacity_mb; - disk_available_mb = other309.disk_available_mb; - holding_primary_replicas = other309.holding_primary_replicas; - holding_secondary_replicas = other309.holding_secondary_replicas; - __isset = other309.__isset; - return *this; -} -disk_info& disk_info::operator=(disk_info&& other310) { - tag = std::move(other310.tag); - full_dir = std::move(other310.full_dir); - disk_capacity_mb = std::move(other310.disk_capacity_mb); - disk_available_mb = std::move(other310.disk_available_mb); - holding_primary_replicas = std::move(other310.holding_primary_replicas); - holding_secondary_replicas = std::move(other310.holding_secondary_replicas); - __isset = std::move(other310.__isset); - return *this; -} -void disk_info::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "disk_info("; - out << "tag=" << to_string(tag); - out << ", " << "full_dir=" << to_string(full_dir); - out << ", " << "disk_capacity_mb=" << to_string(disk_capacity_mb); - out << ", " << "disk_available_mb=" << to_string(disk_available_mb); - out << ", " << "holding_primary_replicas=" << to_string(holding_primary_replicas); - out << ", " << "holding_secondary_replicas=" << to_string(holding_secondary_replicas); - out << ")"; -} - - -query_disk_info_request::~query_disk_info_request() throw() { -} - - -void query_disk_info_request::__set_node(const ::dsn::rpc_address& val) { - this->node = val; -} - -void query_disk_info_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -uint32_t query_disk_info_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t query_disk_info_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_disk_info_request"); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_disk_info_request &a, query_disk_info_request &b) { - using ::std::swap; - swap(a.node, b.node); - swap(a.app_name, b.app_name); - swap(a.__isset, b.__isset); -} - -query_disk_info_request::query_disk_info_request(const query_disk_info_request& other311) { - node = other311.node; - app_name = other311.app_name; - __isset = other311.__isset; -} -query_disk_info_request::query_disk_info_request( query_disk_info_request&& other312) { - node = std::move(other312.node); - app_name = std::move(other312.app_name); - __isset = std::move(other312.__isset); -} -query_disk_info_request& query_disk_info_request::operator=(const query_disk_info_request& other313) { - node = other313.node; - app_name = other313.app_name; - __isset = other313.__isset; - return *this; -} -query_disk_info_request& query_disk_info_request::operator=(query_disk_info_request&& other314) { - node = std::move(other314.node); - app_name = std::move(other314.app_name); - __isset = std::move(other314.__isset); - return *this; -} -void query_disk_info_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_disk_info_request("; - out << "node=" << to_string(node); - out << ", " << "app_name=" << to_string(app_name); - out << ")"; -} - - -query_disk_info_response::~query_disk_info_response() throw() { -} - - -void query_disk_info_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void query_disk_info_response::__set_total_capacity_mb(const int64_t val) { - this->total_capacity_mb = val; -} - -void query_disk_info_response::__set_total_available_mb(const int64_t val) { - this->total_available_mb = val; -} - -void query_disk_info_response::__set_disk_infos(const std::vector & val) { - this->disk_infos = val; -} - -uint32_t query_disk_info_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->total_capacity_mb); - this->__isset.total_capacity_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->total_available_mb); - this->__isset.total_available_mb = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->disk_infos.clear(); - uint32_t _size315; - ::apache::thrift::protocol::TType _etype318; - xfer += iprot->readListBegin(_etype318, _size315); - this->disk_infos.resize(_size315); - uint32_t _i319; - for (_i319 = 0; _i319 < _size315; ++_i319) - { - xfer += this->disk_infos[_i319].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.disk_infos = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t query_disk_info_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_disk_info_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("total_capacity_mb", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->total_capacity_mb); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("total_available_mb", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->total_available_mb); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("disk_infos", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->disk_infos.size())); - std::vector ::const_iterator _iter320; - for (_iter320 = this->disk_infos.begin(); _iter320 != this->disk_infos.end(); ++_iter320) - { - xfer += (*_iter320).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_disk_info_response &a, query_disk_info_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.total_capacity_mb, b.total_capacity_mb); - swap(a.total_available_mb, b.total_available_mb); - swap(a.disk_infos, b.disk_infos); - swap(a.__isset, b.__isset); -} - -query_disk_info_response::query_disk_info_response(const query_disk_info_response& other321) { - err = other321.err; - total_capacity_mb = other321.total_capacity_mb; - total_available_mb = other321.total_available_mb; - disk_infos = other321.disk_infos; - __isset = other321.__isset; -} -query_disk_info_response::query_disk_info_response( query_disk_info_response&& other322) { - err = std::move(other322.err); - total_capacity_mb = std::move(other322.total_capacity_mb); - total_available_mb = std::move(other322.total_available_mb); - disk_infos = std::move(other322.disk_infos); - __isset = std::move(other322.__isset); -} -query_disk_info_response& query_disk_info_response::operator=(const query_disk_info_response& other323) { - err = other323.err; - total_capacity_mb = other323.total_capacity_mb; - total_available_mb = other323.total_available_mb; - disk_infos = other323.disk_infos; - __isset = other323.__isset; - return *this; -} -query_disk_info_response& query_disk_info_response::operator=(query_disk_info_response&& other324) { - err = std::move(other324.err); - total_capacity_mb = std::move(other324.total_capacity_mb); - total_available_mb = std::move(other324.total_available_mb); - disk_infos = std::move(other324.disk_infos); - __isset = std::move(other324.__isset); - return *this; -} -void query_disk_info_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_disk_info_response("; - out << "err=" << to_string(err); - out << ", " << "total_capacity_mb=" << to_string(total_capacity_mb); - out << ", " << "total_available_mb=" << to_string(total_available_mb); - out << ", " << "disk_infos=" << to_string(disk_infos); - out << ")"; -} - - -replica_disk_migrate_request::~replica_disk_migrate_request() throw() { -} - - -void replica_disk_migrate_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void replica_disk_migrate_request::__set_origin_disk(const std::string& val) { - this->origin_disk = val; -} - -void replica_disk_migrate_request::__set_target_disk(const std::string& val) { - this->target_disk = val; -} - -uint32_t replica_disk_migrate_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->origin_disk); - this->__isset.origin_disk = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->target_disk); - this->__isset.target_disk = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t replica_disk_migrate_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_disk_migrate_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("origin_disk", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->origin_disk); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("target_disk", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->target_disk); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(replica_disk_migrate_request &a, replica_disk_migrate_request &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.origin_disk, b.origin_disk); - swap(a.target_disk, b.target_disk); - swap(a.__isset, b.__isset); -} - -replica_disk_migrate_request::replica_disk_migrate_request(const replica_disk_migrate_request& other325) { - pid = other325.pid; - origin_disk = other325.origin_disk; - target_disk = other325.target_disk; - __isset = other325.__isset; -} -replica_disk_migrate_request::replica_disk_migrate_request( replica_disk_migrate_request&& other326) { - pid = std::move(other326.pid); - origin_disk = std::move(other326.origin_disk); - target_disk = std::move(other326.target_disk); - __isset = std::move(other326.__isset); -} -replica_disk_migrate_request& replica_disk_migrate_request::operator=(const replica_disk_migrate_request& other327) { - pid = other327.pid; - origin_disk = other327.origin_disk; - target_disk = other327.target_disk; - __isset = other327.__isset; - return *this; -} -replica_disk_migrate_request& replica_disk_migrate_request::operator=(replica_disk_migrate_request&& other328) { - pid = std::move(other328.pid); - origin_disk = std::move(other328.origin_disk); - target_disk = std::move(other328.target_disk); - __isset = std::move(other328.__isset); - return *this; -} -void replica_disk_migrate_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "replica_disk_migrate_request("; - out << "pid=" << to_string(pid); - out << ", " << "origin_disk=" << to_string(origin_disk); - out << ", " << "target_disk=" << to_string(target_disk); - out << ")"; -} - - -replica_disk_migrate_response::~replica_disk_migrate_response() throw() { -} - - -void replica_disk_migrate_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void replica_disk_migrate_response::__set_hint(const std::string& val) { - this->hint = val; -__isset.hint = true; -} - -uint32_t replica_disk_migrate_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint); - this->__isset.hint = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t replica_disk_migrate_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("replica_disk_migrate_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.hint) { - xfer += oprot->writeFieldBegin("hint", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(replica_disk_migrate_response &a, replica_disk_migrate_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.hint, b.hint); - swap(a.__isset, b.__isset); -} - -replica_disk_migrate_response::replica_disk_migrate_response(const replica_disk_migrate_response& other329) { - err = other329.err; - hint = other329.hint; - __isset = other329.__isset; -} -replica_disk_migrate_response::replica_disk_migrate_response( replica_disk_migrate_response&& other330) { - err = std::move(other330.err); - hint = std::move(other330.hint); - __isset = std::move(other330.__isset); -} -replica_disk_migrate_response& replica_disk_migrate_response::operator=(const replica_disk_migrate_response& other331) { - err = other331.err; - hint = other331.hint; - __isset = other331.__isset; - return *this; -} -replica_disk_migrate_response& replica_disk_migrate_response::operator=(replica_disk_migrate_response&& other332) { - err = std::move(other332.err); - hint = std::move(other332.hint); - __isset = std::move(other332.__isset); - return *this; -} -void replica_disk_migrate_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "replica_disk_migrate_response("; - out << "err=" << to_string(err); - out << ", " << "hint="; (__isset.hint ? (out << to_string(hint)) : (out << "")); - out << ")"; -} - - -query_app_info_request::~query_app_info_request() throw() { -} - - -void query_app_info_request::__set_meta_server(const ::dsn::rpc_address& val) { - this->meta_server = val; -} - -uint32_t query_app_info_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->meta_server.read(iprot); - this->__isset.meta_server = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t query_app_info_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_app_info_request"); - - xfer += oprot->writeFieldBegin("meta_server", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->meta_server.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_app_info_request &a, query_app_info_request &b) { - using ::std::swap; - swap(a.meta_server, b.meta_server); - swap(a.__isset, b.__isset); -} - -query_app_info_request::query_app_info_request(const query_app_info_request& other333) { - meta_server = other333.meta_server; - __isset = other333.__isset; -} -query_app_info_request::query_app_info_request( query_app_info_request&& other334) { - meta_server = std::move(other334.meta_server); - __isset = std::move(other334.__isset); -} -query_app_info_request& query_app_info_request::operator=(const query_app_info_request& other335) { - meta_server = other335.meta_server; - __isset = other335.__isset; - return *this; -} -query_app_info_request& query_app_info_request::operator=(query_app_info_request&& other336) { - meta_server = std::move(other336.meta_server); - __isset = std::move(other336.__isset); - return *this; -} -void query_app_info_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_app_info_request("; - out << "meta_server=" << to_string(meta_server); - out << ")"; -} - - -query_app_info_response::~query_app_info_response() throw() { -} - - -void query_app_info_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void query_app_info_response::__set_apps(const std::vector< ::dsn::app_info> & val) { - this->apps = val; -} - -uint32_t query_app_info_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->apps.clear(); - uint32_t _size337; - ::apache::thrift::protocol::TType _etype340; - xfer += iprot->readListBegin(_etype340, _size337); - this->apps.resize(_size337); - uint32_t _i341; - for (_i341 = 0; _i341 < _size337; ++_i341) - { - xfer += this->apps[_i341].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.apps = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t query_app_info_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_app_info_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("apps", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->apps.size())); - std::vector< ::dsn::app_info> ::const_iterator _iter342; - for (_iter342 = this->apps.begin(); _iter342 != this->apps.end(); ++_iter342) - { - xfer += (*_iter342).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(query_app_info_response &a, query_app_info_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.apps, b.apps); - swap(a.__isset, b.__isset); -} - -query_app_info_response::query_app_info_response(const query_app_info_response& other343) { - err = other343.err; - apps = other343.apps; - __isset = other343.__isset; -} -query_app_info_response::query_app_info_response( query_app_info_response&& other344) { - err = std::move(other344.err); - apps = std::move(other344.apps); - __isset = std::move(other344.__isset); -} -query_app_info_response& query_app_info_response::operator=(const query_app_info_response& other345) { - err = other345.err; - apps = other345.apps; - __isset = other345.__isset; - return *this; -} -query_app_info_response& query_app_info_response::operator=(query_app_info_response&& other346) { - err = std::move(other346.err); - apps = std::move(other346.apps); - __isset = std::move(other346.__isset); - return *this; -} -void query_app_info_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_app_info_response("; - out << "err=" << to_string(err); - out << ", " << "apps=" << to_string(apps); - out << ")"; -} - - -configuration_recovery_request::~configuration_recovery_request() throw() { -} - - -void configuration_recovery_request::__set_recovery_set(const std::vector< ::dsn::rpc_address> & val) { - this->recovery_set = val; -} - -void configuration_recovery_request::__set_skip_bad_nodes(const bool val) { - this->skip_bad_nodes = val; -} - -void configuration_recovery_request::__set_skip_lost_partitions(const bool val) { - this->skip_lost_partitions = val; -} - -uint32_t configuration_recovery_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->recovery_set.clear(); - uint32_t _size347; - ::apache::thrift::protocol::TType _etype350; - xfer += iprot->readListBegin(_etype350, _size347); - this->recovery_set.resize(_size347); - uint32_t _i351; - for (_i351 = 0; _i351 < _size347; ++_i351) - { - xfer += this->recovery_set[_i351].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.recovery_set = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->skip_bad_nodes); - this->__isset.skip_bad_nodes = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->skip_lost_partitions); - this->__isset.skip_lost_partitions = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_recovery_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_recovery_request"); - - xfer += oprot->writeFieldBegin("recovery_set", ::apache::thrift::protocol::T_LIST, 1); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->recovery_set.size())); - std::vector< ::dsn::rpc_address> ::const_iterator _iter352; - for (_iter352 = this->recovery_set.begin(); _iter352 != this->recovery_set.end(); ++_iter352) - { - xfer += (*_iter352).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("skip_bad_nodes", ::apache::thrift::protocol::T_BOOL, 2); - xfer += oprot->writeBool(this->skip_bad_nodes); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("skip_lost_partitions", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->skip_lost_partitions); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_recovery_request &a, configuration_recovery_request &b) { - using ::std::swap; - swap(a.recovery_set, b.recovery_set); - swap(a.skip_bad_nodes, b.skip_bad_nodes); - swap(a.skip_lost_partitions, b.skip_lost_partitions); - swap(a.__isset, b.__isset); -} - -configuration_recovery_request::configuration_recovery_request(const configuration_recovery_request& other353) { - recovery_set = other353.recovery_set; - skip_bad_nodes = other353.skip_bad_nodes; - skip_lost_partitions = other353.skip_lost_partitions; - __isset = other353.__isset; -} -configuration_recovery_request::configuration_recovery_request( configuration_recovery_request&& other354) { - recovery_set = std::move(other354.recovery_set); - skip_bad_nodes = std::move(other354.skip_bad_nodes); - skip_lost_partitions = std::move(other354.skip_lost_partitions); - __isset = std::move(other354.__isset); -} -configuration_recovery_request& configuration_recovery_request::operator=(const configuration_recovery_request& other355) { - recovery_set = other355.recovery_set; - skip_bad_nodes = other355.skip_bad_nodes; - skip_lost_partitions = other355.skip_lost_partitions; - __isset = other355.__isset; - return *this; -} -configuration_recovery_request& configuration_recovery_request::operator=(configuration_recovery_request&& other356) { - recovery_set = std::move(other356.recovery_set); - skip_bad_nodes = std::move(other356.skip_bad_nodes); - skip_lost_partitions = std::move(other356.skip_lost_partitions); - __isset = std::move(other356.__isset); - return *this; -} -void configuration_recovery_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_recovery_request("; - out << "recovery_set=" << to_string(recovery_set); - out << ", " << "skip_bad_nodes=" << to_string(skip_bad_nodes); - out << ", " << "skip_lost_partitions=" << to_string(skip_lost_partitions); - out << ")"; -} - - -configuration_recovery_response::~configuration_recovery_response() throw() { -} - - -void configuration_recovery_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_recovery_response::__set_hint_message(const std::string& val) { - this->hint_message = val; -} - -uint32_t configuration_recovery_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_message); - this->__isset.hint_message = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_recovery_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_recovery_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_message); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_recovery_response &a, configuration_recovery_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_message, b.hint_message); - swap(a.__isset, b.__isset); -} - -configuration_recovery_response::configuration_recovery_response(const configuration_recovery_response& other357) { - err = other357.err; - hint_message = other357.hint_message; - __isset = other357.__isset; -} -configuration_recovery_response::configuration_recovery_response( configuration_recovery_response&& other358) { - err = std::move(other358.err); - hint_message = std::move(other358.hint_message); - __isset = std::move(other358.__isset); -} -configuration_recovery_response& configuration_recovery_response::operator=(const configuration_recovery_response& other359) { - err = other359.err; - hint_message = other359.hint_message; - __isset = other359.__isset; - return *this; -} -configuration_recovery_response& configuration_recovery_response::operator=(configuration_recovery_response&& other360) { - err = std::move(other360.err); - hint_message = std::move(other360.hint_message); - __isset = std::move(other360.__isset); - return *this; -} -void configuration_recovery_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_recovery_response("; - out << "err=" << to_string(err); - out << ", " << "hint_message=" << to_string(hint_message); - out << ")"; -} - - -policy_info::~policy_info() throw() { -} - - -void policy_info::__set_policy_name(const std::string& val) { - this->policy_name = val; -} - -void policy_info::__set_backup_provider_type(const std::string& val) { - this->backup_provider_type = val; -} - -uint32_t policy_info::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_provider_type); - this->__isset.backup_provider_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t policy_info::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("policy_info"); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->backup_provider_type); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(policy_info &a, policy_info &b) { - using ::std::swap; - swap(a.policy_name, b.policy_name); - swap(a.backup_provider_type, b.backup_provider_type); - swap(a.__isset, b.__isset); -} - -policy_info::policy_info(const policy_info& other361) { - policy_name = other361.policy_name; - backup_provider_type = other361.backup_provider_type; - __isset = other361.__isset; -} -policy_info::policy_info( policy_info&& other362) { - policy_name = std::move(other362.policy_name); - backup_provider_type = std::move(other362.backup_provider_type); - __isset = std::move(other362.__isset); -} -policy_info& policy_info::operator=(const policy_info& other363) { - policy_name = other363.policy_name; - backup_provider_type = other363.backup_provider_type; - __isset = other363.__isset; - return *this; -} -policy_info& policy_info::operator=(policy_info&& other364) { - policy_name = std::move(other364.policy_name); - backup_provider_type = std::move(other364.backup_provider_type); - __isset = std::move(other364.__isset); - return *this; -} -void policy_info::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "policy_info("; - out << "policy_name=" << to_string(policy_name); - out << ", " << "backup_provider_type=" << to_string(backup_provider_type); - out << ")"; -} - - -configuration_restore_request::~configuration_restore_request() throw() { -} - - -void configuration_restore_request::__set_cluster_name(const std::string& val) { - this->cluster_name = val; -} - -void configuration_restore_request::__set_policy_name(const std::string& val) { - this->policy_name = val; -} - -void configuration_restore_request::__set_time_stamp(const int64_t val) { - this->time_stamp = val; -} - -void configuration_restore_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -void configuration_restore_request::__set_app_id(const int32_t val) { - this->app_id = val; -} - -void configuration_restore_request::__set_new_app_name(const std::string& val) { - this->new_app_name = val; -} - -void configuration_restore_request::__set_backup_provider_name(const std::string& val) { - this->backup_provider_name = val; -} - -void configuration_restore_request::__set_skip_bad_partition(const bool val) { - this->skip_bad_partition = val; -} - -uint32_t configuration_restore_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cluster_name); - this->__isset.cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->time_stamp); - this->__isset.time_stamp = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->new_app_name); - this->__isset.new_app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_provider_name); - this->__isset.backup_provider_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->skip_bad_partition); - this->__isset.skip_bad_partition = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_restore_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_restore_request"); - - xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->cluster_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("time_stamp", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->time_stamp); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("new_app_name", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->new_app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_provider_name", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->backup_provider_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("skip_bad_partition", ::apache::thrift::protocol::T_BOOL, 8); - xfer += oprot->writeBool(this->skip_bad_partition); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_restore_request &a, configuration_restore_request &b) { - using ::std::swap; - swap(a.cluster_name, b.cluster_name); - swap(a.policy_name, b.policy_name); - swap(a.time_stamp, b.time_stamp); - swap(a.app_name, b.app_name); - swap(a.app_id, b.app_id); - swap(a.new_app_name, b.new_app_name); - swap(a.backup_provider_name, b.backup_provider_name); - swap(a.skip_bad_partition, b.skip_bad_partition); - swap(a.__isset, b.__isset); -} - -configuration_restore_request::configuration_restore_request(const configuration_restore_request& other365) { - cluster_name = other365.cluster_name; - policy_name = other365.policy_name; - time_stamp = other365.time_stamp; - app_name = other365.app_name; - app_id = other365.app_id; - new_app_name = other365.new_app_name; - backup_provider_name = other365.backup_provider_name; - skip_bad_partition = other365.skip_bad_partition; - __isset = other365.__isset; -} -configuration_restore_request::configuration_restore_request( configuration_restore_request&& other366) { - cluster_name = std::move(other366.cluster_name); - policy_name = std::move(other366.policy_name); - time_stamp = std::move(other366.time_stamp); - app_name = std::move(other366.app_name); - app_id = std::move(other366.app_id); - new_app_name = std::move(other366.new_app_name); - backup_provider_name = std::move(other366.backup_provider_name); - skip_bad_partition = std::move(other366.skip_bad_partition); - __isset = std::move(other366.__isset); -} -configuration_restore_request& configuration_restore_request::operator=(const configuration_restore_request& other367) { - cluster_name = other367.cluster_name; - policy_name = other367.policy_name; - time_stamp = other367.time_stamp; - app_name = other367.app_name; - app_id = other367.app_id; - new_app_name = other367.new_app_name; - backup_provider_name = other367.backup_provider_name; - skip_bad_partition = other367.skip_bad_partition; - __isset = other367.__isset; - return *this; -} -configuration_restore_request& configuration_restore_request::operator=(configuration_restore_request&& other368) { - cluster_name = std::move(other368.cluster_name); - policy_name = std::move(other368.policy_name); - time_stamp = std::move(other368.time_stamp); - app_name = std::move(other368.app_name); - app_id = std::move(other368.app_id); - new_app_name = std::move(other368.new_app_name); - backup_provider_name = std::move(other368.backup_provider_name); - skip_bad_partition = std::move(other368.skip_bad_partition); - __isset = std::move(other368.__isset); - return *this; -} -void configuration_restore_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_restore_request("; - out << "cluster_name=" << to_string(cluster_name); - out << ", " << "policy_name=" << to_string(policy_name); - out << ", " << "time_stamp=" << to_string(time_stamp); - out << ", " << "app_name=" << to_string(app_name); - out << ", " << "app_id=" << to_string(app_id); - out << ", " << "new_app_name=" << to_string(new_app_name); - out << ", " << "backup_provider_name=" << to_string(backup_provider_name); - out << ", " << "skip_bad_partition=" << to_string(skip_bad_partition); - out << ")"; -} - - -backup_request::~backup_request() throw() { -} - - -void backup_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void backup_request::__set_policy(const policy_info& val) { - this->policy = val; -} - -void backup_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -void backup_request::__set_backup_id(const int64_t val) { - this->backup_id = val; -} - -uint32_t backup_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->policy.read(iprot); - this->__isset.policy = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->backup_id); - this->__isset.backup_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t backup_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("backup_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("policy", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->policy.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->backup_id); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(backup_request &a, backup_request &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.policy, b.policy); - swap(a.app_name, b.app_name); - swap(a.backup_id, b.backup_id); - swap(a.__isset, b.__isset); -} - -backup_request::backup_request(const backup_request& other369) { - pid = other369.pid; - policy = other369.policy; - app_name = other369.app_name; - backup_id = other369.backup_id; - __isset = other369.__isset; -} -backup_request::backup_request( backup_request&& other370) { - pid = std::move(other370.pid); - policy = std::move(other370.policy); - app_name = std::move(other370.app_name); - backup_id = std::move(other370.backup_id); - __isset = std::move(other370.__isset); -} -backup_request& backup_request::operator=(const backup_request& other371) { - pid = other371.pid; - policy = other371.policy; - app_name = other371.app_name; - backup_id = other371.backup_id; - __isset = other371.__isset; - return *this; -} -backup_request& backup_request::operator=(backup_request&& other372) { - pid = std::move(other372.pid); - policy = std::move(other372.policy); - app_name = std::move(other372.app_name); - backup_id = std::move(other372.backup_id); - __isset = std::move(other372.__isset); - return *this; -} -void backup_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "backup_request("; - out << "pid=" << to_string(pid); - out << ", " << "policy=" << to_string(policy); - out << ", " << "app_name=" << to_string(app_name); - out << ", " << "backup_id=" << to_string(backup_id); - out << ")"; -} - - -backup_response::~backup_response() throw() { -} - - -void backup_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void backup_response::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void backup_response::__set_progress(const int32_t val) { - this->progress = val; -} - -void backup_response::__set_policy_name(const std::string& val) { - this->policy_name = val; -} - -void backup_response::__set_backup_id(const int64_t val) { - this->backup_id = val; -} - -void backup_response::__set_checkpoint_total_size(const int64_t val) { - this->checkpoint_total_size = val; -} - -uint32_t backup_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->progress); - this->__isset.progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->backup_id); - this->__isset.backup_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->checkpoint_total_size); - this->__isset.checkpoint_total_size = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t backup_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("backup_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->progress); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->backup_id); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("checkpoint_total_size", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->checkpoint_total_size); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(backup_response &a, backup_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.pid, b.pid); - swap(a.progress, b.progress); - swap(a.policy_name, b.policy_name); - swap(a.backup_id, b.backup_id); - swap(a.checkpoint_total_size, b.checkpoint_total_size); - swap(a.__isset, b.__isset); -} - -backup_response::backup_response(const backup_response& other373) { - err = other373.err; - pid = other373.pid; - progress = other373.progress; - policy_name = other373.policy_name; - backup_id = other373.backup_id; - checkpoint_total_size = other373.checkpoint_total_size; - __isset = other373.__isset; -} -backup_response::backup_response( backup_response&& other374) { - err = std::move(other374.err); - pid = std::move(other374.pid); - progress = std::move(other374.progress); - policy_name = std::move(other374.policy_name); - backup_id = std::move(other374.backup_id); - checkpoint_total_size = std::move(other374.checkpoint_total_size); - __isset = std::move(other374.__isset); -} -backup_response& backup_response::operator=(const backup_response& other375) { - err = other375.err; - pid = other375.pid; - progress = other375.progress; - policy_name = other375.policy_name; - backup_id = other375.backup_id; - checkpoint_total_size = other375.checkpoint_total_size; - __isset = other375.__isset; - return *this; -} -backup_response& backup_response::operator=(backup_response&& other376) { - err = std::move(other376.err); - pid = std::move(other376.pid); - progress = std::move(other376.progress); - policy_name = std::move(other376.policy_name); - backup_id = std::move(other376.backup_id); - checkpoint_total_size = std::move(other376.checkpoint_total_size); - __isset = std::move(other376.__isset); - return *this; -} -void backup_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "backup_response("; - out << "err=" << to_string(err); - out << ", " << "pid=" << to_string(pid); - out << ", " << "progress=" << to_string(progress); - out << ", " << "policy_name=" << to_string(policy_name); - out << ", " << "backup_id=" << to_string(backup_id); - out << ", " << "checkpoint_total_size=" << to_string(checkpoint_total_size); - out << ")"; -} - - -backup_clear_request::~backup_clear_request() throw() { -} - - -void backup_clear_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void backup_clear_request::__set_policy_name(const std::string& val) { - this->policy_name = val; -} - -uint32_t backup_clear_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t backup_clear_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("backup_clear_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(backup_clear_request &a, backup_clear_request &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.policy_name, b.policy_name); - swap(a.__isset, b.__isset); -} - -backup_clear_request::backup_clear_request(const backup_clear_request& other377) { - pid = other377.pid; - policy_name = other377.policy_name; - __isset = other377.__isset; -} -backup_clear_request::backup_clear_request( backup_clear_request&& other378) { - pid = std::move(other378.pid); - policy_name = std::move(other378.policy_name); - __isset = std::move(other378.__isset); -} -backup_clear_request& backup_clear_request::operator=(const backup_clear_request& other379) { - pid = other379.pid; - policy_name = other379.policy_name; - __isset = other379.__isset; - return *this; -} -backup_clear_request& backup_clear_request::operator=(backup_clear_request&& other380) { - pid = std::move(other380.pid); - policy_name = std::move(other380.policy_name); - __isset = std::move(other380.__isset); - return *this; -} -void backup_clear_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "backup_clear_request("; - out << "pid=" << to_string(pid); - out << ", " << "policy_name=" << to_string(policy_name); - out << ")"; -} - - -configuration_modify_backup_policy_request::~configuration_modify_backup_policy_request() throw() { -} - - -void configuration_modify_backup_policy_request::__set_policy_name(const std::string& val) { - this->policy_name = val; -} - -void configuration_modify_backup_policy_request::__set_add_appids(const std::vector & val) { - this->add_appids = val; -__isset.add_appids = true; -} - -void configuration_modify_backup_policy_request::__set_removal_appids(const std::vector & val) { - this->removal_appids = val; -__isset.removal_appids = true; -} - -void configuration_modify_backup_policy_request::__set_new_backup_interval_sec(const int64_t val) { - this->new_backup_interval_sec = val; -__isset.new_backup_interval_sec = true; -} - -void configuration_modify_backup_policy_request::__set_backup_history_count_to_keep(const int32_t val) { - this->backup_history_count_to_keep = val; -__isset.backup_history_count_to_keep = true; -} - -void configuration_modify_backup_policy_request::__set_is_disable(const bool val) { - this->is_disable = val; -__isset.is_disable = true; -} - -void configuration_modify_backup_policy_request::__set_start_time(const std::string& val) { - this->start_time = val; -__isset.start_time = true; -} - -uint32_t configuration_modify_backup_policy_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->add_appids.clear(); - uint32_t _size381; - ::apache::thrift::protocol::TType _etype384; - xfer += iprot->readListBegin(_etype384, _size381); - this->add_appids.resize(_size381); - uint32_t _i385; - for (_i385 = 0; _i385 < _size381; ++_i385) - { - xfer += iprot->readI32(this->add_appids[_i385]); - } - xfer += iprot->readListEnd(); - } - this->__isset.add_appids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->removal_appids.clear(); - uint32_t _size386; - ::apache::thrift::protocol::TType _etype389; - xfer += iprot->readListBegin(_etype389, _size386); - this->removal_appids.resize(_size386); - uint32_t _i390; - for (_i390 = 0; _i390 < _size386; ++_i390) - { - xfer += iprot->readI32(this->removal_appids[_i390]); - } - xfer += iprot->readListEnd(); - } - this->__isset.removal_appids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->new_backup_interval_sec); - this->__isset.new_backup_interval_sec = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->backup_history_count_to_keep); - this->__isset.backup_history_count_to_keep = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_disable); - this->__isset.is_disable = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->start_time); - this->__isset.start_time = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_modify_backup_policy_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_modify_backup_policy_request"); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.add_appids) { - xfer += oprot->writeFieldBegin("add_appids", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->add_appids.size())); - std::vector ::const_iterator _iter391; - for (_iter391 = this->add_appids.begin(); _iter391 != this->add_appids.end(); ++_iter391) - { - xfer += oprot->writeI32((*_iter391)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.removal_appids) { - xfer += oprot->writeFieldBegin("removal_appids", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->removal_appids.size())); - std::vector ::const_iterator _iter392; - for (_iter392 = this->removal_appids.begin(); _iter392 != this->removal_appids.end(); ++_iter392) - { - xfer += oprot->writeI32((*_iter392)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.new_backup_interval_sec) { - xfer += oprot->writeFieldBegin("new_backup_interval_sec", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->new_backup_interval_sec); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.backup_history_count_to_keep) { - xfer += oprot->writeFieldBegin("backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->backup_history_count_to_keep); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_disable) { - xfer += oprot->writeFieldBegin("is_disable", ::apache::thrift::protocol::T_BOOL, 6); - xfer += oprot->writeBool(this->is_disable); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.start_time) { - xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->start_time); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_modify_backup_policy_request &a, configuration_modify_backup_policy_request &b) { - using ::std::swap; - swap(a.policy_name, b.policy_name); - swap(a.add_appids, b.add_appids); - swap(a.removal_appids, b.removal_appids); - swap(a.new_backup_interval_sec, b.new_backup_interval_sec); - swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); - swap(a.is_disable, b.is_disable); - swap(a.start_time, b.start_time); - swap(a.__isset, b.__isset); -} - -configuration_modify_backup_policy_request::configuration_modify_backup_policy_request(const configuration_modify_backup_policy_request& other393) { - policy_name = other393.policy_name; - add_appids = other393.add_appids; - removal_appids = other393.removal_appids; - new_backup_interval_sec = other393.new_backup_interval_sec; - backup_history_count_to_keep = other393.backup_history_count_to_keep; - is_disable = other393.is_disable; - start_time = other393.start_time; - __isset = other393.__isset; -} -configuration_modify_backup_policy_request::configuration_modify_backup_policy_request( configuration_modify_backup_policy_request&& other394) { - policy_name = std::move(other394.policy_name); - add_appids = std::move(other394.add_appids); - removal_appids = std::move(other394.removal_appids); - new_backup_interval_sec = std::move(other394.new_backup_interval_sec); - backup_history_count_to_keep = std::move(other394.backup_history_count_to_keep); - is_disable = std::move(other394.is_disable); - start_time = std::move(other394.start_time); - __isset = std::move(other394.__isset); -} -configuration_modify_backup_policy_request& configuration_modify_backup_policy_request::operator=(const configuration_modify_backup_policy_request& other395) { - policy_name = other395.policy_name; - add_appids = other395.add_appids; - removal_appids = other395.removal_appids; - new_backup_interval_sec = other395.new_backup_interval_sec; - backup_history_count_to_keep = other395.backup_history_count_to_keep; - is_disable = other395.is_disable; - start_time = other395.start_time; - __isset = other395.__isset; - return *this; -} -configuration_modify_backup_policy_request& configuration_modify_backup_policy_request::operator=(configuration_modify_backup_policy_request&& other396) { - policy_name = std::move(other396.policy_name); - add_appids = std::move(other396.add_appids); - removal_appids = std::move(other396.removal_appids); - new_backup_interval_sec = std::move(other396.new_backup_interval_sec); - backup_history_count_to_keep = std::move(other396.backup_history_count_to_keep); - is_disable = std::move(other396.is_disable); - start_time = std::move(other396.start_time); - __isset = std::move(other396.__isset); - return *this; -} -void configuration_modify_backup_policy_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_modify_backup_policy_request("; - out << "policy_name=" << to_string(policy_name); - out << ", " << "add_appids="; (__isset.add_appids ? (out << to_string(add_appids)) : (out << "")); - out << ", " << "removal_appids="; (__isset.removal_appids ? (out << to_string(removal_appids)) : (out << "")); - out << ", " << "new_backup_interval_sec="; (__isset.new_backup_interval_sec ? (out << to_string(new_backup_interval_sec)) : (out << "")); - out << ", " << "backup_history_count_to_keep="; (__isset.backup_history_count_to_keep ? (out << to_string(backup_history_count_to_keep)) : (out << "")); - out << ", " << "is_disable="; (__isset.is_disable ? (out << to_string(is_disable)) : (out << "")); - out << ", " << "start_time="; (__isset.start_time ? (out << to_string(start_time)) : (out << "")); - out << ")"; -} - - -configuration_modify_backup_policy_response::~configuration_modify_backup_policy_response() throw() { -} - - -void configuration_modify_backup_policy_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_modify_backup_policy_response::__set_hint_message(const std::string& val) { - this->hint_message = val; -} - -uint32_t configuration_modify_backup_policy_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_message); - this->__isset.hint_message = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_modify_backup_policy_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_modify_backup_policy_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_message); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_modify_backup_policy_response &a, configuration_modify_backup_policy_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_message, b.hint_message); - swap(a.__isset, b.__isset); -} - -configuration_modify_backup_policy_response::configuration_modify_backup_policy_response(const configuration_modify_backup_policy_response& other397) { - err = other397.err; - hint_message = other397.hint_message; - __isset = other397.__isset; -} -configuration_modify_backup_policy_response::configuration_modify_backup_policy_response( configuration_modify_backup_policy_response&& other398) { - err = std::move(other398.err); - hint_message = std::move(other398.hint_message); - __isset = std::move(other398.__isset); -} -configuration_modify_backup_policy_response& configuration_modify_backup_policy_response::operator=(const configuration_modify_backup_policy_response& other399) { - err = other399.err; - hint_message = other399.hint_message; - __isset = other399.__isset; - return *this; -} -configuration_modify_backup_policy_response& configuration_modify_backup_policy_response::operator=(configuration_modify_backup_policy_response&& other400) { - err = std::move(other400.err); - hint_message = std::move(other400.hint_message); - __isset = std::move(other400.__isset); - return *this; -} -void configuration_modify_backup_policy_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_modify_backup_policy_response("; - out << "err=" << to_string(err); - out << ", " << "hint_message=" << to_string(hint_message); - out << ")"; -} - - -configuration_add_backup_policy_request::~configuration_add_backup_policy_request() throw() { -} - - -void configuration_add_backup_policy_request::__set_backup_provider_type(const std::string& val) { - this->backup_provider_type = val; -} - -void configuration_add_backup_policy_request::__set_policy_name(const std::string& val) { - this->policy_name = val; -} - -void configuration_add_backup_policy_request::__set_app_ids(const std::vector & val) { - this->app_ids = val; -} - -void configuration_add_backup_policy_request::__set_backup_interval_seconds(const int64_t val) { - this->backup_interval_seconds = val; -} - -void configuration_add_backup_policy_request::__set_backup_history_count_to_keep(const int32_t val) { - this->backup_history_count_to_keep = val; -} - -void configuration_add_backup_policy_request::__set_start_time(const std::string& val) { - this->start_time = val; -} - -uint32_t configuration_add_backup_policy_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_provider_type); - this->__isset.backup_provider_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->app_ids.clear(); - uint32_t _size401; - ::apache::thrift::protocol::TType _etype404; - xfer += iprot->readListBegin(_etype404, _size401); - this->app_ids.resize(_size401); - uint32_t _i405; - for (_i405 = 0; _i405 < _size401; ++_i405) - { - xfer += iprot->readI32(this->app_ids[_i405]); - } - xfer += iprot->readListEnd(); - } - this->__isset.app_ids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->backup_interval_seconds); - this->__isset.backup_interval_seconds = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->backup_history_count_to_keep); - this->__isset.backup_history_count_to_keep = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->start_time); - this->__isset.start_time = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_add_backup_policy_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_add_backup_policy_request"); - - xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->backup_provider_type); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->app_ids.size())); - std::vector ::const_iterator _iter406; - for (_iter406 = this->app_ids.begin(); _iter406 != this->app_ids.end(); ++_iter406) - { - xfer += oprot->writeI32((*_iter406)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_interval_seconds", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->backup_interval_seconds); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->backup_history_count_to_keep); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->start_time); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_add_backup_policy_request &a, configuration_add_backup_policy_request &b) { - using ::std::swap; - swap(a.backup_provider_type, b.backup_provider_type); - swap(a.policy_name, b.policy_name); - swap(a.app_ids, b.app_ids); - swap(a.backup_interval_seconds, b.backup_interval_seconds); - swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); - swap(a.start_time, b.start_time); - swap(a.__isset, b.__isset); -} - -configuration_add_backup_policy_request::configuration_add_backup_policy_request(const configuration_add_backup_policy_request& other407) { - backup_provider_type = other407.backup_provider_type; - policy_name = other407.policy_name; - app_ids = other407.app_ids; - backup_interval_seconds = other407.backup_interval_seconds; - backup_history_count_to_keep = other407.backup_history_count_to_keep; - start_time = other407.start_time; - __isset = other407.__isset; -} -configuration_add_backup_policy_request::configuration_add_backup_policy_request( configuration_add_backup_policy_request&& other408) { - backup_provider_type = std::move(other408.backup_provider_type); - policy_name = std::move(other408.policy_name); - app_ids = std::move(other408.app_ids); - backup_interval_seconds = std::move(other408.backup_interval_seconds); - backup_history_count_to_keep = std::move(other408.backup_history_count_to_keep); - start_time = std::move(other408.start_time); - __isset = std::move(other408.__isset); -} -configuration_add_backup_policy_request& configuration_add_backup_policy_request::operator=(const configuration_add_backup_policy_request& other409) { - backup_provider_type = other409.backup_provider_type; - policy_name = other409.policy_name; - app_ids = other409.app_ids; - backup_interval_seconds = other409.backup_interval_seconds; - backup_history_count_to_keep = other409.backup_history_count_to_keep; - start_time = other409.start_time; - __isset = other409.__isset; - return *this; -} -configuration_add_backup_policy_request& configuration_add_backup_policy_request::operator=(configuration_add_backup_policy_request&& other410) { - backup_provider_type = std::move(other410.backup_provider_type); - policy_name = std::move(other410.policy_name); - app_ids = std::move(other410.app_ids); - backup_interval_seconds = std::move(other410.backup_interval_seconds); - backup_history_count_to_keep = std::move(other410.backup_history_count_to_keep); - start_time = std::move(other410.start_time); - __isset = std::move(other410.__isset); - return *this; -} -void configuration_add_backup_policy_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_add_backup_policy_request("; - out << "backup_provider_type=" << to_string(backup_provider_type); - out << ", " << "policy_name=" << to_string(policy_name); - out << ", " << "app_ids=" << to_string(app_ids); - out << ", " << "backup_interval_seconds=" << to_string(backup_interval_seconds); - out << ", " << "backup_history_count_to_keep=" << to_string(backup_history_count_to_keep); - out << ", " << "start_time=" << to_string(start_time); - out << ")"; -} - - -configuration_add_backup_policy_response::~configuration_add_backup_policy_response() throw() { -} - - -void configuration_add_backup_policy_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_add_backup_policy_response::__set_hint_message(const std::string& val) { - this->hint_message = val; -} - -uint32_t configuration_add_backup_policy_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_message); - this->__isset.hint_message = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_add_backup_policy_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_add_backup_policy_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_message); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_add_backup_policy_response &a, configuration_add_backup_policy_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_message, b.hint_message); - swap(a.__isset, b.__isset); -} - -configuration_add_backup_policy_response::configuration_add_backup_policy_response(const configuration_add_backup_policy_response& other411) { - err = other411.err; - hint_message = other411.hint_message; - __isset = other411.__isset; -} -configuration_add_backup_policy_response::configuration_add_backup_policy_response( configuration_add_backup_policy_response&& other412) { - err = std::move(other412.err); - hint_message = std::move(other412.hint_message); - __isset = std::move(other412.__isset); -} -configuration_add_backup_policy_response& configuration_add_backup_policy_response::operator=(const configuration_add_backup_policy_response& other413) { - err = other413.err; - hint_message = other413.hint_message; - __isset = other413.__isset; - return *this; -} -configuration_add_backup_policy_response& configuration_add_backup_policy_response::operator=(configuration_add_backup_policy_response&& other414) { - err = std::move(other414.err); - hint_message = std::move(other414.hint_message); - __isset = std::move(other414.__isset); - return *this; -} -void configuration_add_backup_policy_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_add_backup_policy_response("; - out << "err=" << to_string(err); - out << ", " << "hint_message=" << to_string(hint_message); - out << ")"; -} - - -policy_entry::~policy_entry() throw() { -} - - -void policy_entry::__set_policy_name(const std::string& val) { - this->policy_name = val; -} - -void policy_entry::__set_backup_provider_type(const std::string& val) { - this->backup_provider_type = val; -} - -void policy_entry::__set_backup_interval_seconds(const std::string& val) { - this->backup_interval_seconds = val; -} - -void policy_entry::__set_app_ids(const std::set & val) { - this->app_ids = val; -} - -void policy_entry::__set_backup_history_count_to_keep(const int32_t val) { - this->backup_history_count_to_keep = val; -} - -void policy_entry::__set_start_time(const std::string& val) { - this->start_time = val; -} - -void policy_entry::__set_is_disable(const bool val) { - this->is_disable = val; -} - -uint32_t policy_entry::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->policy_name); - this->__isset.policy_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_provider_type); - this->__isset.backup_provider_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->backup_interval_seconds); - this->__isset.backup_interval_seconds = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_SET) { - { - this->app_ids.clear(); - uint32_t _size415; - ::apache::thrift::protocol::TType _etype418; - xfer += iprot->readSetBegin(_etype418, _size415); - uint32_t _i419; - for (_i419 = 0; _i419 < _size415; ++_i419) - { - int32_t _elem420; - xfer += iprot->readI32(_elem420); - this->app_ids.insert(_elem420); - } - xfer += iprot->readSetEnd(); - } - this->__isset.app_ids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->backup_history_count_to_keep); - this->__isset.backup_history_count_to_keep = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->start_time); - this->__isset.start_time = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_disable); - this->__isset.is_disable = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t policy_entry::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("policy_entry"); - - xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->policy_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->backup_provider_type); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_interval_seconds", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->backup_interval_seconds); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_SET, 4); - { - xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, static_cast(this->app_ids.size())); - std::set ::const_iterator _iter421; - for (_iter421 = this->app_ids.begin(); _iter421 != this->app_ids.end(); ++_iter421) - { - xfer += oprot->writeI32((*_iter421)); - } - xfer += oprot->writeSetEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->backup_history_count_to_keep); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->start_time); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("is_disable", ::apache::thrift::protocol::T_BOOL, 7); - xfer += oprot->writeBool(this->is_disable); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(policy_entry &a, policy_entry &b) { - using ::std::swap; - swap(a.policy_name, b.policy_name); - swap(a.backup_provider_type, b.backup_provider_type); - swap(a.backup_interval_seconds, b.backup_interval_seconds); - swap(a.app_ids, b.app_ids); - swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); - swap(a.start_time, b.start_time); - swap(a.is_disable, b.is_disable); - swap(a.__isset, b.__isset); -} - -policy_entry::policy_entry(const policy_entry& other422) { - policy_name = other422.policy_name; - backup_provider_type = other422.backup_provider_type; - backup_interval_seconds = other422.backup_interval_seconds; - app_ids = other422.app_ids; - backup_history_count_to_keep = other422.backup_history_count_to_keep; - start_time = other422.start_time; - is_disable = other422.is_disable; - __isset = other422.__isset; -} -policy_entry::policy_entry( policy_entry&& other423) { - policy_name = std::move(other423.policy_name); - backup_provider_type = std::move(other423.backup_provider_type); - backup_interval_seconds = std::move(other423.backup_interval_seconds); - app_ids = std::move(other423.app_ids); - backup_history_count_to_keep = std::move(other423.backup_history_count_to_keep); - start_time = std::move(other423.start_time); - is_disable = std::move(other423.is_disable); - __isset = std::move(other423.__isset); -} -policy_entry& policy_entry::operator=(const policy_entry& other424) { - policy_name = other424.policy_name; - backup_provider_type = other424.backup_provider_type; - backup_interval_seconds = other424.backup_interval_seconds; - app_ids = other424.app_ids; - backup_history_count_to_keep = other424.backup_history_count_to_keep; - start_time = other424.start_time; - is_disable = other424.is_disable; - __isset = other424.__isset; - return *this; -} -policy_entry& policy_entry::operator=(policy_entry&& other425) { - policy_name = std::move(other425.policy_name); - backup_provider_type = std::move(other425.backup_provider_type); - backup_interval_seconds = std::move(other425.backup_interval_seconds); - app_ids = std::move(other425.app_ids); - backup_history_count_to_keep = std::move(other425.backup_history_count_to_keep); - start_time = std::move(other425.start_time); - is_disable = std::move(other425.is_disable); - __isset = std::move(other425.__isset); - return *this; -} -void policy_entry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "policy_entry("; - out << "policy_name=" << to_string(policy_name); - out << ", " << "backup_provider_type=" << to_string(backup_provider_type); - out << ", " << "backup_interval_seconds=" << to_string(backup_interval_seconds); - out << ", " << "app_ids=" << to_string(app_ids); - out << ", " << "backup_history_count_to_keep=" << to_string(backup_history_count_to_keep); - out << ", " << "start_time=" << to_string(start_time); - out << ", " << "is_disable=" << to_string(is_disable); - out << ")"; -} - - -backup_entry::~backup_entry() throw() { -} - - -void backup_entry::__set_backup_id(const int64_t val) { - this->backup_id = val; -} - -void backup_entry::__set_start_time_ms(const int64_t val) { - this->start_time_ms = val; -} - -void backup_entry::__set_end_time_ms(const int64_t val) { - this->end_time_ms = val; -} - -void backup_entry::__set_app_ids(const std::set & val) { - this->app_ids = val; -} - -uint32_t backup_entry::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->backup_id); - this->__isset.backup_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->start_time_ms); - this->__isset.start_time_ms = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->end_time_ms); - this->__isset.end_time_ms = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_SET) { - { - this->app_ids.clear(); - uint32_t _size426; - ::apache::thrift::protocol::TType _etype429; - xfer += iprot->readSetBegin(_etype429, _size426); - uint32_t _i430; - for (_i430 = 0; _i430 < _size426; ++_i430) - { - int32_t _elem431; - xfer += iprot->readI32(_elem431); - this->app_ids.insert(_elem431); - } - xfer += iprot->readSetEnd(); - } - this->__isset.app_ids = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t backup_entry::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("backup_entry"); - - xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 1); - xfer += oprot->writeI64(this->backup_id); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("start_time_ms", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->start_time_ms); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("end_time_ms", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->end_time_ms); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_SET, 4); - { - xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, static_cast(this->app_ids.size())); - std::set ::const_iterator _iter432; - for (_iter432 = this->app_ids.begin(); _iter432 != this->app_ids.end(); ++_iter432) - { - xfer += oprot->writeI32((*_iter432)); - } - xfer += oprot->writeSetEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(backup_entry &a, backup_entry &b) { - using ::std::swap; - swap(a.backup_id, b.backup_id); - swap(a.start_time_ms, b.start_time_ms); - swap(a.end_time_ms, b.end_time_ms); - swap(a.app_ids, b.app_ids); - swap(a.__isset, b.__isset); -} - -backup_entry::backup_entry(const backup_entry& other433) { - backup_id = other433.backup_id; - start_time_ms = other433.start_time_ms; - end_time_ms = other433.end_time_ms; - app_ids = other433.app_ids; - __isset = other433.__isset; -} -backup_entry::backup_entry( backup_entry&& other434) { - backup_id = std::move(other434.backup_id); - start_time_ms = std::move(other434.start_time_ms); - end_time_ms = std::move(other434.end_time_ms); - app_ids = std::move(other434.app_ids); - __isset = std::move(other434.__isset); -} -backup_entry& backup_entry::operator=(const backup_entry& other435) { - backup_id = other435.backup_id; - start_time_ms = other435.start_time_ms; - end_time_ms = other435.end_time_ms; - app_ids = other435.app_ids; - __isset = other435.__isset; - return *this; -} -backup_entry& backup_entry::operator=(backup_entry&& other436) { - backup_id = std::move(other436.backup_id); - start_time_ms = std::move(other436.start_time_ms); - end_time_ms = std::move(other436.end_time_ms); - app_ids = std::move(other436.app_ids); - __isset = std::move(other436.__isset); - return *this; -} -void backup_entry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "backup_entry("; - out << "backup_id=" << to_string(backup_id); - out << ", " << "start_time_ms=" << to_string(start_time_ms); - out << ", " << "end_time_ms=" << to_string(end_time_ms); - out << ", " << "app_ids=" << to_string(app_ids); - out << ")"; -} - - -configuration_query_backup_policy_request::~configuration_query_backup_policy_request() throw() { -} - - -void configuration_query_backup_policy_request::__set_policy_names(const std::vector & val) { - this->policy_names = val; -} - -void configuration_query_backup_policy_request::__set_backup_info_count(const int32_t val) { - this->backup_info_count = val; -} - -uint32_t configuration_query_backup_policy_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->policy_names.clear(); - uint32_t _size437; - ::apache::thrift::protocol::TType _etype440; - xfer += iprot->readListBegin(_etype440, _size437); - this->policy_names.resize(_size437); - uint32_t _i441; - for (_i441 = 0; _i441 < _size437; ++_i441) - { - xfer += iprot->readString(this->policy_names[_i441]); - } - xfer += iprot->readListEnd(); - } - this->__isset.policy_names = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->backup_info_count); - this->__isset.backup_info_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_query_backup_policy_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_backup_policy_request"); - - xfer += oprot->writeFieldBegin("policy_names", ::apache::thrift::protocol::T_LIST, 1); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->policy_names.size())); - std::vector ::const_iterator _iter442; - for (_iter442 = this->policy_names.begin(); _iter442 != this->policy_names.end(); ++_iter442) - { - xfer += oprot->writeString((*_iter442)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_info_count", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->backup_info_count); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_backup_policy_request &a, configuration_query_backup_policy_request &b) { - using ::std::swap; - swap(a.policy_names, b.policy_names); - swap(a.backup_info_count, b.backup_info_count); - swap(a.__isset, b.__isset); -} - -configuration_query_backup_policy_request::configuration_query_backup_policy_request(const configuration_query_backup_policy_request& other443) { - policy_names = other443.policy_names; - backup_info_count = other443.backup_info_count; - __isset = other443.__isset; -} -configuration_query_backup_policy_request::configuration_query_backup_policy_request( configuration_query_backup_policy_request&& other444) { - policy_names = std::move(other444.policy_names); - backup_info_count = std::move(other444.backup_info_count); - __isset = std::move(other444.__isset); -} -configuration_query_backup_policy_request& configuration_query_backup_policy_request::operator=(const configuration_query_backup_policy_request& other445) { - policy_names = other445.policy_names; - backup_info_count = other445.backup_info_count; - __isset = other445.__isset; - return *this; -} -configuration_query_backup_policy_request& configuration_query_backup_policy_request::operator=(configuration_query_backup_policy_request&& other446) { - policy_names = std::move(other446.policy_names); - backup_info_count = std::move(other446.backup_info_count); - __isset = std::move(other446.__isset); - return *this; -} -void configuration_query_backup_policy_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_query_backup_policy_request("; - out << "policy_names=" << to_string(policy_names); - out << ", " << "backup_info_count=" << to_string(backup_info_count); - out << ")"; -} - - -configuration_query_backup_policy_response::~configuration_query_backup_policy_response() throw() { -} - - -void configuration_query_backup_policy_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_query_backup_policy_response::__set_policys(const std::vector & val) { - this->policys = val; -} - -void configuration_query_backup_policy_response::__set_backup_infos(const std::vector > & val) { - this->backup_infos = val; -} - -void configuration_query_backup_policy_response::__set_hint_msg(const std::string& val) { - this->hint_msg = val; -__isset.hint_msg = true; -} - -uint32_t configuration_query_backup_policy_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->policys.clear(); - uint32_t _size447; - ::apache::thrift::protocol::TType _etype450; - xfer += iprot->readListBegin(_etype450, _size447); - this->policys.resize(_size447); - uint32_t _i451; - for (_i451 = 0; _i451 < _size447; ++_i451) - { - xfer += this->policys[_i451].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.policys = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->backup_infos.clear(); - uint32_t _size452; - ::apache::thrift::protocol::TType _etype455; - xfer += iprot->readListBegin(_etype455, _size452); - this->backup_infos.resize(_size452); - uint32_t _i456; - for (_i456 = 0; _i456 < _size452; ++_i456) - { - { - this->backup_infos[_i456].clear(); - uint32_t _size457; - ::apache::thrift::protocol::TType _etype460; - xfer += iprot->readListBegin(_etype460, _size457); - this->backup_infos[_i456].resize(_size457); - uint32_t _i461; - for (_i461 = 0; _i461 < _size457; ++_i461) - { - xfer += this->backup_infos[_i456][_i461].read(iprot); - } - xfer += iprot->readListEnd(); - } - } - xfer += iprot->readListEnd(); - } - this->__isset.backup_infos = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_query_backup_policy_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_backup_policy_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("policys", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->policys.size())); - std::vector ::const_iterator _iter462; - for (_iter462 = this->policys.begin(); _iter462 != this->policys.end(); ++_iter462) - { - xfer += (*_iter462).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("backup_infos", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, static_cast(this->backup_infos.size())); - std::vector > ::const_iterator _iter463; - for (_iter463 = this->backup_infos.begin(); _iter463 != this->backup_infos.end(); ++_iter463) - { - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*_iter463).size())); - std::vector ::const_iterator _iter464; - for (_iter464 = (*_iter463).begin(); _iter464 != (*_iter463).end(); ++_iter464) - { - xfer += (*_iter464).write(oprot); - } - xfer += oprot->writeListEnd(); - } - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - if (this->__isset.hint_msg) { - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->hint_msg); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_backup_policy_response &a, configuration_query_backup_policy_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.policys, b.policys); - swap(a.backup_infos, b.backup_infos); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); -} - -configuration_query_backup_policy_response::configuration_query_backup_policy_response(const configuration_query_backup_policy_response& other465) { - err = other465.err; - policys = other465.policys; - backup_infos = other465.backup_infos; - hint_msg = other465.hint_msg; - __isset = other465.__isset; -} -configuration_query_backup_policy_response::configuration_query_backup_policy_response( configuration_query_backup_policy_response&& other466) { - err = std::move(other466.err); - policys = std::move(other466.policys); - backup_infos = std::move(other466.backup_infos); - hint_msg = std::move(other466.hint_msg); - __isset = std::move(other466.__isset); -} -configuration_query_backup_policy_response& configuration_query_backup_policy_response::operator=(const configuration_query_backup_policy_response& other467) { - err = other467.err; - policys = other467.policys; - backup_infos = other467.backup_infos; - hint_msg = other467.hint_msg; - __isset = other467.__isset; - return *this; -} -configuration_query_backup_policy_response& configuration_query_backup_policy_response::operator=(configuration_query_backup_policy_response&& other468) { - err = std::move(other468.err); - policys = std::move(other468.policys); - backup_infos = std::move(other468.backup_infos); - hint_msg = std::move(other468.hint_msg); - __isset = std::move(other468.__isset); - return *this; -} -void configuration_query_backup_policy_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_query_backup_policy_response("; - out << "err=" << to_string(err); - out << ", " << "policys=" << to_string(policys); - out << ", " << "backup_infos=" << to_string(backup_infos); - out << ", " << "hint_msg="; (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); - out << ")"; -} - - -configuration_report_restore_status_request::~configuration_report_restore_status_request() throw() { -} - - -void configuration_report_restore_status_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -void configuration_report_restore_status_request::__set_restore_status(const ::dsn::error_code& val) { - this->restore_status = val; -} - -void configuration_report_restore_status_request::__set_progress(const int32_t val) { - this->progress = val; -} - -void configuration_report_restore_status_request::__set_reason(const std::string& val) { - this->reason = val; -__isset.reason = true; -} - -uint32_t configuration_report_restore_status_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->restore_status.read(iprot); - this->__isset.restore_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->progress); - this->__isset.progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->reason); - this->__isset.reason = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_report_restore_status_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_report_restore_status_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("restore_status", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->restore_status.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->progress); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.reason) { - xfer += oprot->writeFieldBegin("reason", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->reason); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_report_restore_status_request &a, configuration_report_restore_status_request &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.restore_status, b.restore_status); - swap(a.progress, b.progress); - swap(a.reason, b.reason); - swap(a.__isset, b.__isset); -} - -configuration_report_restore_status_request::configuration_report_restore_status_request(const configuration_report_restore_status_request& other469) { - pid = other469.pid; - restore_status = other469.restore_status; - progress = other469.progress; - reason = other469.reason; - __isset = other469.__isset; -} -configuration_report_restore_status_request::configuration_report_restore_status_request( configuration_report_restore_status_request&& other470) { - pid = std::move(other470.pid); - restore_status = std::move(other470.restore_status); - progress = std::move(other470.progress); - reason = std::move(other470.reason); - __isset = std::move(other470.__isset); -} -configuration_report_restore_status_request& configuration_report_restore_status_request::operator=(const configuration_report_restore_status_request& other471) { - pid = other471.pid; - restore_status = other471.restore_status; - progress = other471.progress; - reason = other471.reason; - __isset = other471.__isset; - return *this; -} -configuration_report_restore_status_request& configuration_report_restore_status_request::operator=(configuration_report_restore_status_request&& other472) { - pid = std::move(other472.pid); - restore_status = std::move(other472.restore_status); - progress = std::move(other472.progress); - reason = std::move(other472.reason); - __isset = std::move(other472.__isset); - return *this; -} -void configuration_report_restore_status_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_report_restore_status_request("; - out << "pid=" << to_string(pid); - out << ", " << "restore_status=" << to_string(restore_status); - out << ", " << "progress=" << to_string(progress); - out << ", " << "reason="; (__isset.reason ? (out << to_string(reason)) : (out << "")); - out << ")"; -} - - -configuration_report_restore_status_response::~configuration_report_restore_status_response() throw() { -} - - -void configuration_report_restore_status_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -uint32_t configuration_report_restore_status_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_report_restore_status_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_report_restore_status_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_report_restore_status_response &a, configuration_report_restore_status_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); -} - -configuration_report_restore_status_response::configuration_report_restore_status_response(const configuration_report_restore_status_response& other473) { - err = other473.err; - __isset = other473.__isset; -} -configuration_report_restore_status_response::configuration_report_restore_status_response( configuration_report_restore_status_response&& other474) { - err = std::move(other474.err); - __isset = std::move(other474.__isset); -} -configuration_report_restore_status_response& configuration_report_restore_status_response::operator=(const configuration_report_restore_status_response& other475) { - err = other475.err; - __isset = other475.__isset; - return *this; -} -configuration_report_restore_status_response& configuration_report_restore_status_response::operator=(configuration_report_restore_status_response&& other476) { - err = std::move(other476.err); - __isset = std::move(other476.__isset); - return *this; -} -void configuration_report_restore_status_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_report_restore_status_response("; - out << "err=" << to_string(err); - out << ")"; -} - - -configuration_query_restore_request::~configuration_query_restore_request() throw() { -} - - -void configuration_query_restore_request::__set_restore_app_id(const int32_t val) { - this->restore_app_id = val; -} - -uint32_t configuration_query_restore_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->restore_app_id); - this->__isset.restore_app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_query_restore_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_restore_request"); - - xfer += oprot->writeFieldBegin("restore_app_id", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->restore_app_id); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_restore_request &a, configuration_query_restore_request &b) { - using ::std::swap; - swap(a.restore_app_id, b.restore_app_id); - swap(a.__isset, b.__isset); -} - -configuration_query_restore_request::configuration_query_restore_request(const configuration_query_restore_request& other477) { - restore_app_id = other477.restore_app_id; - __isset = other477.__isset; -} -configuration_query_restore_request::configuration_query_restore_request( configuration_query_restore_request&& other478) { - restore_app_id = std::move(other478.restore_app_id); - __isset = std::move(other478.__isset); -} -configuration_query_restore_request& configuration_query_restore_request::operator=(const configuration_query_restore_request& other479) { - restore_app_id = other479.restore_app_id; - __isset = other479.__isset; - return *this; -} -configuration_query_restore_request& configuration_query_restore_request::operator=(configuration_query_restore_request&& other480) { - restore_app_id = std::move(other480.restore_app_id); - __isset = std::move(other480.__isset); - return *this; -} -void configuration_query_restore_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_query_restore_request("; - out << "restore_app_id=" << to_string(restore_app_id); - out << ")"; -} - - -configuration_query_restore_response::~configuration_query_restore_response() throw() { -} - - -void configuration_query_restore_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_query_restore_response::__set_restore_status(const std::vector< ::dsn::error_code> & val) { - this->restore_status = val; -} - -void configuration_query_restore_response::__set_restore_progress(const std::vector & val) { - this->restore_progress = val; -} - -uint32_t configuration_query_restore_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->restore_status.clear(); - uint32_t _size481; - ::apache::thrift::protocol::TType _etype484; - xfer += iprot->readListBegin(_etype484, _size481); - this->restore_status.resize(_size481); - uint32_t _i485; - for (_i485 = 0; _i485 < _size481; ++_i485) - { - xfer += this->restore_status[_i485].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.restore_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->restore_progress.clear(); - uint32_t _size486; - ::apache::thrift::protocol::TType _etype489; - xfer += iprot->readListBegin(_etype489, _size486); - this->restore_progress.resize(_size486); - uint32_t _i490; - for (_i490 = 0; _i490 < _size486; ++_i490) - { - xfer += iprot->readI32(this->restore_progress[_i490]); - } - xfer += iprot->readListEnd(); - } - this->__isset.restore_progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_query_restore_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_restore_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("restore_status", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->restore_status.size())); - std::vector< ::dsn::error_code> ::const_iterator _iter491; - for (_iter491 = this->restore_status.begin(); _iter491 != this->restore_status.end(); ++_iter491) - { - xfer += (*_iter491).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("restore_progress", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->restore_progress.size())); - std::vector ::const_iterator _iter492; - for (_iter492 = this->restore_progress.begin(); _iter492 != this->restore_progress.end(); ++_iter492) - { - xfer += oprot->writeI32((*_iter492)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_query_restore_response &a, configuration_query_restore_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.restore_status, b.restore_status); - swap(a.restore_progress, b.restore_progress); - swap(a.__isset, b.__isset); -} - -configuration_query_restore_response::configuration_query_restore_response(const configuration_query_restore_response& other493) { - err = other493.err; - restore_status = other493.restore_status; - restore_progress = other493.restore_progress; - __isset = other493.__isset; -} -configuration_query_restore_response::configuration_query_restore_response( configuration_query_restore_response&& other494) { - err = std::move(other494.err); - restore_status = std::move(other494.restore_status); - restore_progress = std::move(other494.restore_progress); - __isset = std::move(other494.__isset); -} -configuration_query_restore_response& configuration_query_restore_response::operator=(const configuration_query_restore_response& other495) { - err = other495.err; - restore_status = other495.restore_status; - restore_progress = other495.restore_progress; - __isset = other495.__isset; - return *this; -} -configuration_query_restore_response& configuration_query_restore_response::operator=(configuration_query_restore_response&& other496) { - err = std::move(other496.err); - restore_status = std::move(other496.restore_status); - restore_progress = std::move(other496.restore_progress); - __isset = std::move(other496.__isset); - return *this; -} -void configuration_query_restore_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_query_restore_response("; - out << "err=" << to_string(err); - out << ", " << "restore_status=" << to_string(restore_status); - out << ", " << "restore_progress=" << to_string(restore_progress); - out << ")"; -} - - -file_meta::~file_meta() throw() { -} - - -void file_meta::__set_name(const std::string& val) { - this->name = val; -} - -void file_meta::__set_size(const int64_t val) { - this->size = val; -} - -void file_meta::__set_md5(const std::string& val) { - this->md5 = val; -} - -uint32_t file_meta::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->name); - this->__isset.name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->size); - this->__isset.size = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->md5); - this->__isset.md5 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t file_meta::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("file_meta"); - - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("size", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->size); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("md5", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->md5); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(file_meta &a, file_meta &b) { - using ::std::swap; - swap(a.name, b.name); - swap(a.size, b.size); - swap(a.md5, b.md5); - swap(a.__isset, b.__isset); -} - -file_meta::file_meta(const file_meta& other497) { - name = other497.name; - size = other497.size; - md5 = other497.md5; - __isset = other497.__isset; -} -file_meta::file_meta( file_meta&& other498) { - name = std::move(other498.name); - size = std::move(other498.size); - md5 = std::move(other498.md5); - __isset = std::move(other498.__isset); -} -file_meta& file_meta::operator=(const file_meta& other499) { - name = other499.name; - size = other499.size; - md5 = other499.md5; - __isset = other499.__isset; - return *this; -} -file_meta& file_meta::operator=(file_meta&& other500) { - name = std::move(other500.name); - size = std::move(other500.size); - md5 = std::move(other500.md5); - __isset = std::move(other500.__isset); - return *this; -} -void file_meta::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "file_meta("; - out << "name=" << to_string(name); - out << ", " << "size=" << to_string(size); - out << ", " << "md5=" << to_string(md5); - out << ")"; -} - - -configuration_update_app_env_request::~configuration_update_app_env_request() throw() { -} - - -void configuration_update_app_env_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -void configuration_update_app_env_request::__set_op(const app_env_operation::type val) { - this->op = val; -} - -void configuration_update_app_env_request::__set_keys(const std::vector & val) { - this->keys = val; -__isset.keys = true; -} - -void configuration_update_app_env_request::__set_values(const std::vector & val) { - this->values = val; -__isset.values = true; -} - -void configuration_update_app_env_request::__set_clear_prefix(const std::string& val) { - this->clear_prefix = val; -__isset.clear_prefix = true; -} - -uint32_t configuration_update_app_env_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast501; - xfer += iprot->readI32(ecast501); - this->op = (app_env_operation::type)ecast501; - this->__isset.op = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->keys.clear(); - uint32_t _size502; - ::apache::thrift::protocol::TType _etype505; - xfer += iprot->readListBegin(_etype505, _size502); - this->keys.resize(_size502); - uint32_t _i506; - for (_i506 = 0; _i506 < _size502; ++_i506) - { - xfer += iprot->readString(this->keys[_i506]); - } - xfer += iprot->readListEnd(); - } - this->__isset.keys = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->values.clear(); - uint32_t _size507; - ::apache::thrift::protocol::TType _etype510; - xfer += iprot->readListBegin(_etype510, _size507); - this->values.resize(_size507); - uint32_t _i511; - for (_i511 = 0; _i511 < _size507; ++_i511) - { - xfer += iprot->readString(this->values[_i511]); - } - xfer += iprot->readListEnd(); - } - this->__isset.values = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->clear_prefix); - this->__isset.clear_prefix = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_update_app_env_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_update_app_env_request"); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("op", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->op); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.keys) { - xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->keys.size())); - std::vector ::const_iterator _iter512; - for (_iter512 = this->keys.begin(); _iter512 != this->keys.end(); ++_iter512) - { - xfer += oprot->writeString((*_iter512)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.values) { - xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter513; - for (_iter513 = this->values.begin(); _iter513 != this->values.end(); ++_iter513) - { - xfer += oprot->writeString((*_iter513)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.clear_prefix) { - xfer += oprot->writeFieldBegin("clear_prefix", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->clear_prefix); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_update_app_env_request &a, configuration_update_app_env_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.op, b.op); - swap(a.keys, b.keys); - swap(a.values, b.values); - swap(a.clear_prefix, b.clear_prefix); - swap(a.__isset, b.__isset); -} - -configuration_update_app_env_request::configuration_update_app_env_request(const configuration_update_app_env_request& other514) { - app_name = other514.app_name; - op = other514.op; - keys = other514.keys; - values = other514.values; - clear_prefix = other514.clear_prefix; - __isset = other514.__isset; -} -configuration_update_app_env_request::configuration_update_app_env_request( configuration_update_app_env_request&& other515) { - app_name = std::move(other515.app_name); - op = std::move(other515.op); - keys = std::move(other515.keys); - values = std::move(other515.values); - clear_prefix = std::move(other515.clear_prefix); - __isset = std::move(other515.__isset); -} -configuration_update_app_env_request& configuration_update_app_env_request::operator=(const configuration_update_app_env_request& other516) { - app_name = other516.app_name; - op = other516.op; - keys = other516.keys; - values = other516.values; - clear_prefix = other516.clear_prefix; - __isset = other516.__isset; - return *this; -} -configuration_update_app_env_request& configuration_update_app_env_request::operator=(configuration_update_app_env_request&& other517) { - app_name = std::move(other517.app_name); - op = std::move(other517.op); - keys = std::move(other517.keys); - values = std::move(other517.values); - clear_prefix = std::move(other517.clear_prefix); - __isset = std::move(other517.__isset); - return *this; -} -void configuration_update_app_env_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_update_app_env_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "op=" << to_string(op); - out << ", " << "keys="; (__isset.keys ? (out << to_string(keys)) : (out << "")); - out << ", " << "values="; (__isset.values ? (out << to_string(values)) : (out << "")); - out << ", " << "clear_prefix="; (__isset.clear_prefix ? (out << to_string(clear_prefix)) : (out << "")); - out << ")"; -} - - -configuration_update_app_env_response::~configuration_update_app_env_response() throw() { -} - - -void configuration_update_app_env_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void configuration_update_app_env_response::__set_hint_message(const std::string& val) { - this->hint_message = val; -} - -uint32_t configuration_update_app_env_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_message); - this->__isset.hint_message = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t configuration_update_app_env_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_update_app_env_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_message); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(configuration_update_app_env_response &a, configuration_update_app_env_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_message, b.hint_message); - swap(a.__isset, b.__isset); -} - -configuration_update_app_env_response::configuration_update_app_env_response(const configuration_update_app_env_response& other518) { - err = other518.err; - hint_message = other518.hint_message; - __isset = other518.__isset; -} -configuration_update_app_env_response::configuration_update_app_env_response( configuration_update_app_env_response&& other519) { - err = std::move(other519.err); - hint_message = std::move(other519.hint_message); - __isset = std::move(other519.__isset); -} -configuration_update_app_env_response& configuration_update_app_env_response::operator=(const configuration_update_app_env_response& other520) { - err = other520.err; - hint_message = other520.hint_message; - __isset = other520.__isset; - return *this; -} -configuration_update_app_env_response& configuration_update_app_env_response::operator=(configuration_update_app_env_response&& other521) { - err = std::move(other521.err); - hint_message = std::move(other521.hint_message); - __isset = std::move(other521.__isset); - return *this; -} -void configuration_update_app_env_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_update_app_env_response("; - out << "err=" << to_string(err); - out << ", " << "hint_message=" << to_string(hint_message); - out << ")"; -} - - -duplication_add_request::~duplication_add_request() throw() { -} - - -void duplication_add_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -void duplication_add_request::__set_remote_cluster_name(const std::string& val) { - this->remote_cluster_name = val; -} - -void duplication_add_request::__set_freezed(const bool val) { - this->freezed = val; -} - -uint32_t duplication_add_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_cluster_name); - this->__isset.remote_cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->freezed); - this->__isset.freezed = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t duplication_add_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_add_request"); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("remote_cluster_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->remote_cluster_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("freezed", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->freezed); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_add_request &a, duplication_add_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.remote_cluster_name, b.remote_cluster_name); - swap(a.freezed, b.freezed); - swap(a.__isset, b.__isset); -} - -duplication_add_request::duplication_add_request(const duplication_add_request& other522) { - app_name = other522.app_name; - remote_cluster_name = other522.remote_cluster_name; - freezed = other522.freezed; - __isset = other522.__isset; -} -duplication_add_request::duplication_add_request( duplication_add_request&& other523) { - app_name = std::move(other523.app_name); - remote_cluster_name = std::move(other523.remote_cluster_name); - freezed = std::move(other523.freezed); - __isset = std::move(other523.__isset); -} -duplication_add_request& duplication_add_request::operator=(const duplication_add_request& other524) { - app_name = other524.app_name; - remote_cluster_name = other524.remote_cluster_name; - freezed = other524.freezed; - __isset = other524.__isset; - return *this; -} -duplication_add_request& duplication_add_request::operator=(duplication_add_request&& other525) { - app_name = std::move(other525.app_name); - remote_cluster_name = std::move(other525.remote_cluster_name); - freezed = std::move(other525.freezed); - __isset = std::move(other525.__isset); - return *this; -} -void duplication_add_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_add_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "remote_cluster_name=" << to_string(remote_cluster_name); - out << ", " << "freezed=" << to_string(freezed); - out << ")"; -} - - -duplication_add_response::~duplication_add_response() throw() { -} - - -void duplication_add_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void duplication_add_response::__set_appid(const int32_t val) { - this->appid = val; -} - -void duplication_add_response::__set_dupid(const int32_t val) { - this->dupid = val; -} - -void duplication_add_response::__set_hint(const std::string& val) { - this->hint = val; -__isset.hint = true; -} - -uint32_t duplication_add_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->appid); - this->__isset.appid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->dupid); - this->__isset.dupid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint); - this->__isset.hint = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t duplication_add_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_add_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->appid); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->dupid); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.hint) { - xfer += oprot->writeFieldBegin("hint", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->hint); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_add_response &a, duplication_add_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.appid, b.appid); - swap(a.dupid, b.dupid); - swap(a.hint, b.hint); - swap(a.__isset, b.__isset); -} - -duplication_add_response::duplication_add_response(const duplication_add_response& other526) { - err = other526.err; - appid = other526.appid; - dupid = other526.dupid; - hint = other526.hint; - __isset = other526.__isset; -} -duplication_add_response::duplication_add_response( duplication_add_response&& other527) { - err = std::move(other527.err); - appid = std::move(other527.appid); - dupid = std::move(other527.dupid); - hint = std::move(other527.hint); - __isset = std::move(other527.__isset); -} -duplication_add_response& duplication_add_response::operator=(const duplication_add_response& other528) { - err = other528.err; - appid = other528.appid; - dupid = other528.dupid; - hint = other528.hint; - __isset = other528.__isset; - return *this; -} -duplication_add_response& duplication_add_response::operator=(duplication_add_response&& other529) { - err = std::move(other529.err); - appid = std::move(other529.appid); - dupid = std::move(other529.dupid); - hint = std::move(other529.hint); - __isset = std::move(other529.__isset); - return *this; -} -void duplication_add_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_add_response("; - out << "err=" << to_string(err); - out << ", " << "appid=" << to_string(appid); - out << ", " << "dupid=" << to_string(dupid); - out << ", " << "hint="; (__isset.hint ? (out << to_string(hint)) : (out << "")); - out << ")"; -} - - -duplication_modify_request::~duplication_modify_request() throw() { -} - - -void duplication_modify_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -void duplication_modify_request::__set_dupid(const int32_t val) { - this->dupid = val; -} - -void duplication_modify_request::__set_status(const duplication_status::type val) { - this->status = val; -__isset.status = true; -} - -void duplication_modify_request::__set_fail_mode(const duplication_fail_mode::type val) { - this->fail_mode = val; -__isset.fail_mode = true; -} - -uint32_t duplication_modify_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->dupid); - this->__isset.dupid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast530; - xfer += iprot->readI32(ecast530); - this->status = (duplication_status::type)ecast530; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast531; - xfer += iprot->readI32(ecast531); - this->fail_mode = (duplication_fail_mode::type)ecast531; - this->__isset.fail_mode = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t duplication_modify_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_modify_request"); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->dupid); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.status) { - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.fail_mode) { - xfer += oprot->writeFieldBegin("fail_mode", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->fail_mode); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_modify_request &a, duplication_modify_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.dupid, b.dupid); - swap(a.status, b.status); - swap(a.fail_mode, b.fail_mode); - swap(a.__isset, b.__isset); -} - -duplication_modify_request::duplication_modify_request(const duplication_modify_request& other532) { - app_name = other532.app_name; - dupid = other532.dupid; - status = other532.status; - fail_mode = other532.fail_mode; - __isset = other532.__isset; -} -duplication_modify_request::duplication_modify_request( duplication_modify_request&& other533) { - app_name = std::move(other533.app_name); - dupid = std::move(other533.dupid); - status = std::move(other533.status); - fail_mode = std::move(other533.fail_mode); - __isset = std::move(other533.__isset); -} -duplication_modify_request& duplication_modify_request::operator=(const duplication_modify_request& other534) { - app_name = other534.app_name; - dupid = other534.dupid; - status = other534.status; - fail_mode = other534.fail_mode; - __isset = other534.__isset; - return *this; -} -duplication_modify_request& duplication_modify_request::operator=(duplication_modify_request&& other535) { - app_name = std::move(other535.app_name); - dupid = std::move(other535.dupid); - status = std::move(other535.status); - fail_mode = std::move(other535.fail_mode); - __isset = std::move(other535.__isset); - return *this; -} -void duplication_modify_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_modify_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "dupid=" << to_string(dupid); - out << ", " << "status="; (__isset.status ? (out << to_string(status)) : (out << "")); - out << ", " << "fail_mode="; (__isset.fail_mode ? (out << to_string(fail_mode)) : (out << "")); - out << ")"; -} - - -duplication_modify_response::~duplication_modify_response() throw() { -} - - -void duplication_modify_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void duplication_modify_response::__set_appid(const int32_t val) { - this->appid = val; -} - -uint32_t duplication_modify_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->appid); - this->__isset.appid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t duplication_modify_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_modify_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->appid); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_modify_response &a, duplication_modify_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.appid, b.appid); - swap(a.__isset, b.__isset); -} - -duplication_modify_response::duplication_modify_response(const duplication_modify_response& other536) { - err = other536.err; - appid = other536.appid; - __isset = other536.__isset; -} -duplication_modify_response::duplication_modify_response( duplication_modify_response&& other537) { - err = std::move(other537.err); - appid = std::move(other537.appid); - __isset = std::move(other537.__isset); -} -duplication_modify_response& duplication_modify_response::operator=(const duplication_modify_response& other538) { - err = other538.err; - appid = other538.appid; - __isset = other538.__isset; - return *this; -} -duplication_modify_response& duplication_modify_response::operator=(duplication_modify_response&& other539) { - err = std::move(other539.err); - appid = std::move(other539.appid); - __isset = std::move(other539.__isset); - return *this; -} -void duplication_modify_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_modify_response("; - out << "err=" << to_string(err); - out << ", " << "appid=" << to_string(appid); - out << ")"; -} - - -duplication_entry::~duplication_entry() throw() { -} - - -void duplication_entry::__set_dupid(const int32_t val) { - this->dupid = val; -} - -void duplication_entry::__set_status(const duplication_status::type val) { - this->status = val; -} - -void duplication_entry::__set_remote(const std::string& val) { - this->remote = val; -} - -void duplication_entry::__set_create_ts(const int64_t val) { - this->create_ts = val; -} - -void duplication_entry::__set_progress(const std::map & val) { - this->progress = val; -__isset.progress = true; -} - -void duplication_entry::__set_fail_mode(const duplication_fail_mode::type val) { - this->fail_mode = val; -__isset.fail_mode = true; -} - -uint32_t duplication_entry::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->dupid); - this->__isset.dupid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast540; - xfer += iprot->readI32(ecast540); - this->status = (duplication_status::type)ecast540; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote); - this->__isset.remote = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->create_ts); - this->__isset.create_ts = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->progress.clear(); - uint32_t _size541; - ::apache::thrift::protocol::TType _ktype542; - ::apache::thrift::protocol::TType _vtype543; - xfer += iprot->readMapBegin(_ktype542, _vtype543, _size541); - uint32_t _i545; - for (_i545 = 0; _i545 < _size541; ++_i545) - { - int32_t _key546; - xfer += iprot->readI32(_key546); - int64_t& _val547 = this->progress[_key546]; - xfer += iprot->readI64(_val547); - } - xfer += iprot->readMapEnd(); - } - this->__isset.progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast548; - xfer += iprot->readI32(ecast548); - this->fail_mode = (duplication_fail_mode::type)ecast548; - this->__isset.fail_mode = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t duplication_entry::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_entry"); - - xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->dupid); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("remote", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->remote); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("create_ts", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->create_ts); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.progress) { - xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_MAP, 5); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_I64, static_cast(this->progress.size())); - std::map ::const_iterator _iter549; - for (_iter549 = this->progress.begin(); _iter549 != this->progress.end(); ++_iter549) - { - xfer += oprot->writeI32(_iter549->first); - xfer += oprot->writeI64(_iter549->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.fail_mode) { - xfer += oprot->writeFieldBegin("fail_mode", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((int32_t)this->fail_mode); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_entry &a, duplication_entry &b) { - using ::std::swap; - swap(a.dupid, b.dupid); - swap(a.status, b.status); - swap(a.remote, b.remote); - swap(a.create_ts, b.create_ts); - swap(a.progress, b.progress); - swap(a.fail_mode, b.fail_mode); - swap(a.__isset, b.__isset); -} - -duplication_entry::duplication_entry(const duplication_entry& other550) { - dupid = other550.dupid; - status = other550.status; - remote = other550.remote; - create_ts = other550.create_ts; - progress = other550.progress; - fail_mode = other550.fail_mode; - __isset = other550.__isset; -} -duplication_entry::duplication_entry( duplication_entry&& other551) { - dupid = std::move(other551.dupid); - status = std::move(other551.status); - remote = std::move(other551.remote); - create_ts = std::move(other551.create_ts); - progress = std::move(other551.progress); - fail_mode = std::move(other551.fail_mode); - __isset = std::move(other551.__isset); -} -duplication_entry& duplication_entry::operator=(const duplication_entry& other552) { - dupid = other552.dupid; - status = other552.status; - remote = other552.remote; - create_ts = other552.create_ts; - progress = other552.progress; - fail_mode = other552.fail_mode; - __isset = other552.__isset; - return *this; -} -duplication_entry& duplication_entry::operator=(duplication_entry&& other553) { - dupid = std::move(other553.dupid); - status = std::move(other553.status); - remote = std::move(other553.remote); - create_ts = std::move(other553.create_ts); - progress = std::move(other553.progress); - fail_mode = std::move(other553.fail_mode); - __isset = std::move(other553.__isset); - return *this; -} -void duplication_entry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_entry("; - out << "dupid=" << to_string(dupid); - out << ", " << "status=" << to_string(status); - out << ", " << "remote=" << to_string(remote); - out << ", " << "create_ts=" << to_string(create_ts); - out << ", " << "progress="; (__isset.progress ? (out << to_string(progress)) : (out << "")); - out << ", " << "fail_mode="; (__isset.fail_mode ? (out << to_string(fail_mode)) : (out << "")); - out << ")"; -} - - -duplication_query_request::~duplication_query_request() throw() { -} - - -void duplication_query_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -uint32_t duplication_query_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t duplication_query_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_query_request"); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_query_request &a, duplication_query_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.__isset, b.__isset); -} - -duplication_query_request::duplication_query_request(const duplication_query_request& other554) { - app_name = other554.app_name; - __isset = other554.__isset; -} -duplication_query_request::duplication_query_request( duplication_query_request&& other555) { - app_name = std::move(other555.app_name); - __isset = std::move(other555.__isset); -} -duplication_query_request& duplication_query_request::operator=(const duplication_query_request& other556) { - app_name = other556.app_name; - __isset = other556.__isset; - return *this; -} -duplication_query_request& duplication_query_request::operator=(duplication_query_request&& other557) { - app_name = std::move(other557.app_name); - __isset = std::move(other557.__isset); - return *this; -} -void duplication_query_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_query_request("; - out << "app_name=" << to_string(app_name); - out << ")"; -} - - -duplication_query_response::~duplication_query_response() throw() { -} - - -void duplication_query_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->add_appids.clear(); + uint32_t _size381; + ::apache::thrift::protocol::TType _etype384; + xfer += iprot->readListBegin(_etype384, _size381); + this->add_appids.resize(_size381); + uint32_t _i385; + for (_i385 = 0; _i385 < _size381; ++_i385) { + xfer += iprot->readI32(this->add_appids[_i385]); + } + xfer += iprot->readListEnd(); + } + this->__isset.add_appids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->removal_appids.clear(); + uint32_t _size386; + ::apache::thrift::protocol::TType _etype389; + xfer += iprot->readListBegin(_etype389, _size386); + this->removal_appids.resize(_size386); + uint32_t _i390; + for (_i390 = 0; _i390 < _size386; ++_i390) { + xfer += iprot->readI32(this->removal_appids[_i390]); + } + xfer += iprot->readListEnd(); + } + this->__isset.removal_appids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->new_backup_interval_sec); + this->__isset.new_backup_interval_sec = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->backup_history_count_to_keep); + this->__isset.backup_history_count_to_keep = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_disable); + this->__isset.is_disable = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->start_time); + this->__isset.start_time = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void duplication_query_response::__set_appid(const int32_t val) { - this->appid = val; -} + xfer += iprot->readStructEnd(); -void duplication_query_response::__set_entry_list(const std::vector & val) { - this->entry_list = val; + return xfer; } -uint32_t duplication_query_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; +uint32_t configuration_modify_backup_policy_request::write( + ::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_modify_backup_policy_request"); + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + if (this->__isset.add_appids) { + xfer += oprot->writeFieldBegin("add_appids", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, + static_cast(this->add_appids.size())); + std::vector::const_iterator _iter391; + for (_iter391 = this->add_appids.begin(); _iter391 != this->add_appids.end(); + ++_iter391) { + xfer += oprot->writeI32((*_iter391)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->appid); - this->__isset.appid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->entry_list.clear(); - uint32_t _size558; - ::apache::thrift::protocol::TType _etype561; - xfer += iprot->readListBegin(_etype561, _size558); - this->entry_list.resize(_size558); - uint32_t _i562; - for (_i562 = 0; _i562 < _size558; ++_i562) - { - xfer += this->entry_list[_i562].read(iprot); + if (this->__isset.removal_appids) { + xfer += oprot->writeFieldBegin("removal_appids", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, + static_cast(this->removal_appids.size())); + std::vector::const_iterator _iter392; + for (_iter392 = this->removal_appids.begin(); _iter392 != this->removal_appids.end(); + ++_iter392) { + xfer += oprot->writeI32((*_iter392)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.new_backup_interval_sec) { + xfer += + oprot->writeFieldBegin("new_backup_interval_sec", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->new_backup_interval_sec); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.backup_history_count_to_keep) { + xfer += oprot->writeFieldBegin( + "backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->backup_history_count_to_keep); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_disable) { + xfer += oprot->writeFieldBegin("is_disable", ::apache::thrift::protocol::T_BOOL, 6); + xfer += oprot->writeBool(this->is_disable); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.start_time) { + xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->start_time); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_modify_backup_policy_request &a, + configuration_modify_backup_policy_request &b) +{ + using ::std::swap; + swap(a.policy_name, b.policy_name); + swap(a.add_appids, b.add_appids); + swap(a.removal_appids, b.removal_appids); + swap(a.new_backup_interval_sec, b.new_backup_interval_sec); + swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); + swap(a.is_disable, b.is_disable); + swap(a.start_time, b.start_time); + swap(a.__isset, b.__isset); +} + +configuration_modify_backup_policy_request::configuration_modify_backup_policy_request( + const configuration_modify_backup_policy_request &other393) +{ + policy_name = other393.policy_name; + add_appids = other393.add_appids; + removal_appids = other393.removal_appids; + new_backup_interval_sec = other393.new_backup_interval_sec; + backup_history_count_to_keep = other393.backup_history_count_to_keep; + is_disable = other393.is_disable; + start_time = other393.start_time; + __isset = other393.__isset; +} +configuration_modify_backup_policy_request::configuration_modify_backup_policy_request( + configuration_modify_backup_policy_request &&other394) +{ + policy_name = std::move(other394.policy_name); + add_appids = std::move(other394.add_appids); + removal_appids = std::move(other394.removal_appids); + new_backup_interval_sec = std::move(other394.new_backup_interval_sec); + backup_history_count_to_keep = std::move(other394.backup_history_count_to_keep); + is_disable = std::move(other394.is_disable); + start_time = std::move(other394.start_time); + __isset = std::move(other394.__isset); +} +configuration_modify_backup_policy_request &configuration_modify_backup_policy_request:: +operator=(const configuration_modify_backup_policy_request &other395) +{ + policy_name = other395.policy_name; + add_appids = other395.add_appids; + removal_appids = other395.removal_appids; + new_backup_interval_sec = other395.new_backup_interval_sec; + backup_history_count_to_keep = other395.backup_history_count_to_keep; + is_disable = other395.is_disable; + start_time = other395.start_time; + __isset = other395.__isset; + return *this; +} +configuration_modify_backup_policy_request &configuration_modify_backup_policy_request:: +operator=(configuration_modify_backup_policy_request &&other396) +{ + policy_name = std::move(other396.policy_name); + add_appids = std::move(other396.add_appids); + removal_appids = std::move(other396.removal_appids); + new_backup_interval_sec = std::move(other396.new_backup_interval_sec); + backup_history_count_to_keep = std::move(other396.backup_history_count_to_keep); + is_disable = std::move(other396.is_disable); + start_time = std::move(other396.start_time); + __isset = std::move(other396.__isset); + return *this; +} +void configuration_modify_backup_policy_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_modify_backup_policy_request("; + out << "policy_name=" << to_string(policy_name); + out << ", " + << "add_appids="; + (__isset.add_appids ? (out << to_string(add_appids)) : (out << "")); + out << ", " + << "removal_appids="; + (__isset.removal_appids ? (out << to_string(removal_appids)) : (out << "")); + out << ", " + << "new_backup_interval_sec="; + (__isset.new_backup_interval_sec ? (out << to_string(new_backup_interval_sec)) + : (out << "")); + out << ", " + << "backup_history_count_to_keep="; + (__isset.backup_history_count_to_keep ? (out << to_string(backup_history_count_to_keep)) + : (out << "")); + out << ", " + << "is_disable="; + (__isset.is_disable ? (out << to_string(is_disable)) : (out << "")); + out << ", " + << "start_time="; + (__isset.start_time ? (out << to_string(start_time)) : (out << "")); + out << ")"; +} + +configuration_modify_backup_policy_response::~configuration_modify_backup_policy_response() throw() +{ +} + +void configuration_modify_backup_policy_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; +} + +void configuration_modify_backup_policy_response::__set_hint_message(const std::string &val) +{ + this->hint_message = val; +} + +uint32_t +configuration_modify_backup_policy_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_message); + this->__isset.hint_message = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.entry_list = true; - } else { - xfer += iprot->skip(ftype); + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t duplication_query_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_query_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t configuration_modify_backup_policy_response::write( + ::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_modify_backup_policy_response"); - xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->appid); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("entry_list", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->entry_list.size())); - std::vector ::const_iterator _iter563; - for (_iter563 = this->entry_list.begin(); _iter563 != this->entry_list.end(); ++_iter563) - { - xfer += (*_iter563).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_message); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(duplication_query_response &a, duplication_query_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.appid, b.appid); - swap(a.entry_list, b.entry_list); - swap(a.__isset, b.__isset); +void swap(configuration_modify_backup_policy_response &a, + configuration_modify_backup_policy_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_message, b.hint_message); + swap(a.__isset, b.__isset); } -duplication_query_response::duplication_query_response(const duplication_query_response& other564) { - err = other564.err; - appid = other564.appid; - entry_list = other564.entry_list; - __isset = other564.__isset; -} -duplication_query_response::duplication_query_response( duplication_query_response&& other565) { - err = std::move(other565.err); - appid = std::move(other565.appid); - entry_list = std::move(other565.entry_list); - __isset = std::move(other565.__isset); -} -duplication_query_response& duplication_query_response::operator=(const duplication_query_response& other566) { - err = other566.err; - appid = other566.appid; - entry_list = other566.entry_list; - __isset = other566.__isset; - return *this; +configuration_modify_backup_policy_response::configuration_modify_backup_policy_response( + const configuration_modify_backup_policy_response &other397) +{ + err = other397.err; + hint_message = other397.hint_message; + __isset = other397.__isset; } -duplication_query_response& duplication_query_response::operator=(duplication_query_response&& other567) { - err = std::move(other567.err); - appid = std::move(other567.appid); - entry_list = std::move(other567.entry_list); - __isset = std::move(other567.__isset); - return *this; +configuration_modify_backup_policy_response::configuration_modify_backup_policy_response( + configuration_modify_backup_policy_response &&other398) +{ + err = std::move(other398.err); + hint_message = std::move(other398.hint_message); + __isset = std::move(other398.__isset); } -void duplication_query_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_query_response("; - out << "err=" << to_string(err); - out << ", " << "appid=" << to_string(appid); - out << ", " << "entry_list=" << to_string(entry_list); - out << ")"; +configuration_modify_backup_policy_response &configuration_modify_backup_policy_response:: +operator=(const configuration_modify_backup_policy_response &other399) +{ + err = other399.err; + hint_message = other399.hint_message; + __isset = other399.__isset; + return *this; } - - -duplication_confirm_entry::~duplication_confirm_entry() throw() { -} - - -void duplication_confirm_entry::__set_dupid(const int32_t val) { - this->dupid = val; -} - -void duplication_confirm_entry::__set_confirmed_decree(const int64_t val) { - this->confirmed_decree = val; +configuration_modify_backup_policy_response &configuration_modify_backup_policy_response:: +operator=(configuration_modify_backup_policy_response &&other400) +{ + err = std::move(other400.err); + hint_message = std::move(other400.hint_message); + __isset = std::move(other400.__isset); + return *this; } - -uint32_t duplication_confirm_entry::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->dupid); - this->__isset.dupid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->confirmed_decree); - this->__isset.confirmed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; +void configuration_modify_backup_policy_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_modify_backup_policy_response("; + out << "err=" << to_string(err); + out << ", " + << "hint_message=" << to_string(hint_message); + out << ")"; } -uint32_t duplication_confirm_entry::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_confirm_entry"); - - xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->dupid); - xfer += oprot->writeFieldEnd(); +configuration_add_backup_policy_request::~configuration_add_backup_policy_request() throw() {} - xfer += oprot->writeFieldBegin("confirmed_decree", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->confirmed_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; +void configuration_add_backup_policy_request::__set_backup_provider_type(const std::string &val) +{ + this->backup_provider_type = val; } -void swap(duplication_confirm_entry &a, duplication_confirm_entry &b) { - using ::std::swap; - swap(a.dupid, b.dupid); - swap(a.confirmed_decree, b.confirmed_decree); - swap(a.__isset, b.__isset); +void configuration_add_backup_policy_request::__set_policy_name(const std::string &val) +{ + this->policy_name = val; } -duplication_confirm_entry::duplication_confirm_entry(const duplication_confirm_entry& other568) { - dupid = other568.dupid; - confirmed_decree = other568.confirmed_decree; - __isset = other568.__isset; -} -duplication_confirm_entry::duplication_confirm_entry( duplication_confirm_entry&& other569) { - dupid = std::move(other569.dupid); - confirmed_decree = std::move(other569.confirmed_decree); - __isset = std::move(other569.__isset); -} -duplication_confirm_entry& duplication_confirm_entry::operator=(const duplication_confirm_entry& other570) { - dupid = other570.dupid; - confirmed_decree = other570.confirmed_decree; - __isset = other570.__isset; - return *this; -} -duplication_confirm_entry& duplication_confirm_entry::operator=(duplication_confirm_entry&& other571) { - dupid = std::move(other571.dupid); - confirmed_decree = std::move(other571.confirmed_decree); - __isset = std::move(other571.__isset); - return *this; +void configuration_add_backup_policy_request::__set_app_ids(const std::vector &val) +{ + this->app_ids = val; } -void duplication_confirm_entry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_confirm_entry("; - out << "dupid=" << to_string(dupid); - out << ", " << "confirmed_decree=" << to_string(confirmed_decree); - out << ")"; -} - -duplication_sync_request::~duplication_sync_request() throw() { +void configuration_add_backup_policy_request::__set_backup_interval_seconds(const int64_t val) +{ + this->backup_interval_seconds = val; } - -void duplication_sync_request::__set_node(const ::dsn::rpc_address& val) { - this->node = val; +void configuration_add_backup_policy_request::__set_backup_history_count_to_keep(const int32_t val) +{ + this->backup_history_count_to_keep = val; } -void duplication_sync_request::__set_confirm_list(const std::map< ::dsn::gpid, std::vector > & val) { - this->confirm_list = val; +void configuration_add_backup_policy_request::__set_start_time(const std::string &val) +{ + this->start_time = val; } -uint32_t duplication_sync_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t configuration_add_backup_policy_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->confirm_list.clear(); - uint32_t _size572; - ::apache::thrift::protocol::TType _ktype573; - ::apache::thrift::protocol::TType _vtype574; - xfer += iprot->readMapBegin(_ktype573, _vtype574, _size572); - uint32_t _i576; - for (_i576 = 0; _i576 < _size572; ++_i576) - { - ::dsn::gpid _key577; - xfer += _key577.read(iprot); - std::vector & _val578 = this->confirm_list[_key577]; - { - _val578.clear(); - uint32_t _size579; - ::apache::thrift::protocol::TType _etype582; - xfer += iprot->readListBegin(_etype582, _size579); - _val578.resize(_size579); - uint32_t _i583; - for (_i583 = 0; _i583 < _size579; ++_i583) + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_provider_type); + this->__isset.backup_provider_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { { - xfer += _val578[_i583].read(iprot); + this->app_ids.clear(); + uint32_t _size401; + ::apache::thrift::protocol::TType _etype404; + xfer += iprot->readListBegin(_etype404, _size401); + this->app_ids.resize(_size401); + uint32_t _i405; + for (_i405 = 0; _i405 < _size401; ++_i405) { + xfer += iprot->readI32(this->app_ids[_i405]); + } + xfer += iprot->readListEnd(); } - xfer += iprot->readListEnd(); - } + this->__isset.app_ids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->backup_interval_seconds); + this->__isset.backup_interval_seconds = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->backup_history_count_to_keep); + this->__isset.backup_history_count_to_keep = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readMapEnd(); - } - this->__isset.confirm_list = true; - } else { - xfer += iprot->skip(ftype); + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->start_time); + this->__isset.start_time = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t duplication_sync_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_sync_request"); +uint32_t +configuration_add_backup_policy_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_add_backup_policy_request"); + + xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->backup_provider_type); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("confirm_list", ::apache::thrift::protocol::T_MAP, 2); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, ::apache::thrift::protocol::T_LIST, static_cast(this->confirm_list.size())); - std::map< ::dsn::gpid, std::vector > ::const_iterator _iter584; - for (_iter584 = this->confirm_list.begin(); _iter584 != this->confirm_list.end(); ++_iter584) + xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_LIST, 3); { - xfer += _iter584->first.write(oprot); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter584->second.size())); - std::vector ::const_iterator _iter585; - for (_iter585 = _iter584->second.begin(); _iter585 != _iter584->second.end(); ++_iter585) - { - xfer += (*_iter585).write(oprot); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, + static_cast(this->app_ids.size())); + std::vector::const_iterator _iter406; + for (_iter406 = this->app_ids.begin(); _iter406 != this->app_ids.end(); ++_iter406) { + xfer += oprot->writeI32((*_iter406)); } xfer += oprot->writeListEnd(); - } } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_sync_request &a, duplication_sync_request &b) { - using ::std::swap; - swap(a.node, b.node); - swap(a.confirm_list, b.confirm_list); - swap(a.__isset, b.__isset); -} - -duplication_sync_request::duplication_sync_request(const duplication_sync_request& other586) { - node = other586.node; - confirm_list = other586.confirm_list; - __isset = other586.__isset; -} -duplication_sync_request::duplication_sync_request( duplication_sync_request&& other587) { - node = std::move(other587.node); - confirm_list = std::move(other587.confirm_list); - __isset = std::move(other587.__isset); -} -duplication_sync_request& duplication_sync_request::operator=(const duplication_sync_request& other588) { - node = other588.node; - confirm_list = other588.confirm_list; - __isset = other588.__isset; - return *this; -} -duplication_sync_request& duplication_sync_request::operator=(duplication_sync_request&& other589) { - node = std::move(other589.node); - confirm_list = std::move(other589.confirm_list); - __isset = std::move(other589.__isset); - return *this; -} -void duplication_sync_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_sync_request("; - out << "node=" << to_string(node); - out << ", " << "confirm_list=" << to_string(confirm_list); - out << ")"; -} - - -duplication_sync_response::~duplication_sync_response() throw() { -} - - -void duplication_sync_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void duplication_sync_response::__set_dup_map(const std::map > & val) { - this->dup_map = val; -} - -uint32_t duplication_sync_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("backup_interval_seconds", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->backup_interval_seconds); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin( + "backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->backup_history_count_to_keep); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->start_time); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->dup_map.clear(); - uint32_t _size590; - ::apache::thrift::protocol::TType _ktype591; - ::apache::thrift::protocol::TType _vtype592; - xfer += iprot->readMapBegin(_ktype591, _vtype592, _size590); - uint32_t _i594; - for (_i594 = 0; _i594 < _size590; ++_i594) - { - int32_t _key595; - xfer += iprot->readI32(_key595); - std::map & _val596 = this->dup_map[_key595]; - { - _val596.clear(); - uint32_t _size597; - ::apache::thrift::protocol::TType _ktype598; - ::apache::thrift::protocol::TType _vtype599; - xfer += iprot->readMapBegin(_ktype598, _vtype599, _size597); - uint32_t _i601; - for (_i601 = 0; _i601 < _size597; ++_i601) - { - int32_t _key602; - xfer += iprot->readI32(_key602); - duplication_entry& _val603 = _val596[_key602]; - xfer += _val603.read(iprot); - } - xfer += iprot->readMapEnd(); - } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_add_backup_policy_request &a, configuration_add_backup_policy_request &b) +{ + using ::std::swap; + swap(a.backup_provider_type, b.backup_provider_type); + swap(a.policy_name, b.policy_name); + swap(a.app_ids, b.app_ids); + swap(a.backup_interval_seconds, b.backup_interval_seconds); + swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); + swap(a.start_time, b.start_time); + swap(a.__isset, b.__isset); +} + +configuration_add_backup_policy_request::configuration_add_backup_policy_request( + const configuration_add_backup_policy_request &other407) +{ + backup_provider_type = other407.backup_provider_type; + policy_name = other407.policy_name; + app_ids = other407.app_ids; + backup_interval_seconds = other407.backup_interval_seconds; + backup_history_count_to_keep = other407.backup_history_count_to_keep; + start_time = other407.start_time; + __isset = other407.__isset; +} +configuration_add_backup_policy_request::configuration_add_backup_policy_request( + configuration_add_backup_policy_request &&other408) +{ + backup_provider_type = std::move(other408.backup_provider_type); + policy_name = std::move(other408.policy_name); + app_ids = std::move(other408.app_ids); + backup_interval_seconds = std::move(other408.backup_interval_seconds); + backup_history_count_to_keep = std::move(other408.backup_history_count_to_keep); + start_time = std::move(other408.start_time); + __isset = std::move(other408.__isset); +} +configuration_add_backup_policy_request &configuration_add_backup_policy_request:: +operator=(const configuration_add_backup_policy_request &other409) +{ + backup_provider_type = other409.backup_provider_type; + policy_name = other409.policy_name; + app_ids = other409.app_ids; + backup_interval_seconds = other409.backup_interval_seconds; + backup_history_count_to_keep = other409.backup_history_count_to_keep; + start_time = other409.start_time; + __isset = other409.__isset; + return *this; +} +configuration_add_backup_policy_request &configuration_add_backup_policy_request:: +operator=(configuration_add_backup_policy_request &&other410) +{ + backup_provider_type = std::move(other410.backup_provider_type); + policy_name = std::move(other410.policy_name); + app_ids = std::move(other410.app_ids); + backup_interval_seconds = std::move(other410.backup_interval_seconds); + backup_history_count_to_keep = std::move(other410.backup_history_count_to_keep); + start_time = std::move(other410.start_time); + __isset = std::move(other410.__isset); + return *this; +} +void configuration_add_backup_policy_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_add_backup_policy_request("; + out << "backup_provider_type=" << to_string(backup_provider_type); + out << ", " + << "policy_name=" << to_string(policy_name); + out << ", " + << "app_ids=" << to_string(app_ids); + out << ", " + << "backup_interval_seconds=" << to_string(backup_interval_seconds); + out << ", " + << "backup_history_count_to_keep=" << to_string(backup_history_count_to_keep); + out << ", " + << "start_time=" << to_string(start_time); + out << ")"; +} + +configuration_add_backup_policy_response::~configuration_add_backup_policy_response() throw() {} + +void configuration_add_backup_policy_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; +} + +void configuration_add_backup_policy_response::__set_hint_message(const std::string &val) +{ + this->hint_message = val; +} + +uint32_t +configuration_add_backup_policy_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readMapEnd(); - } - this->__isset.dup_map = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t duplication_sync_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("duplication_sync_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("dup_map", ::apache::thrift::protocol::T_MAP, 2); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_MAP, static_cast(this->dup_map.size())); - std::map > ::const_iterator _iter604; - for (_iter604 = this->dup_map.begin(); _iter604 != this->dup_map.end(); ++_iter604) - { - xfer += oprot->writeI32(_iter604->first); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRUCT, static_cast(_iter604->second.size())); - std::map ::const_iterator _iter605; - for (_iter605 = _iter604->second.begin(); _iter605 != _iter604->second.end(); ++_iter605) - { - xfer += oprot->writeI32(_iter605->first); - xfer += _iter605->second.write(oprot); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_message); + this->__isset.hint_message = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - xfer += oprot->writeMapEnd(); - } + xfer += iprot->readFieldEnd(); } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(duplication_sync_response &a, duplication_sync_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.dup_map, b.dup_map); - swap(a.__isset, b.__isset); -} - -duplication_sync_response::duplication_sync_response(const duplication_sync_response& other606) { - err = other606.err; - dup_map = other606.dup_map; - __isset = other606.__isset; -} -duplication_sync_response::duplication_sync_response( duplication_sync_response&& other607) { - err = std::move(other607.err); - dup_map = std::move(other607.dup_map); - __isset = std::move(other607.__isset); -} -duplication_sync_response& duplication_sync_response::operator=(const duplication_sync_response& other608) { - err = other608.err; - dup_map = other608.dup_map; - __isset = other608.__isset; - return *this; -} -duplication_sync_response& duplication_sync_response::operator=(duplication_sync_response&& other609) { - err = std::move(other609.err); - dup_map = std::move(other609.dup_map); - __isset = std::move(other609.__isset); - return *this; -} -void duplication_sync_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "duplication_sync_response("; - out << "err=" << to_string(err); - out << ", " << "dup_map=" << to_string(dup_map); - out << ")"; -} + xfer += iprot->readStructEnd(); -ddd_diagnose_request::~ddd_diagnose_request() throw() { + return xfer; } +uint32_t +configuration_add_backup_policy_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_add_backup_policy_response"); -void ddd_diagnose_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -uint32_t ddd_diagnose_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ddd_diagnose_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ddd_diagnose_request"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_message); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(ddd_diagnose_request &a, ddd_diagnose_request &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.__isset, b.__isset); +void swap(configuration_add_backup_policy_response &a, configuration_add_backup_policy_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_message, b.hint_message); + swap(a.__isset, b.__isset); } -ddd_diagnose_request::ddd_diagnose_request(const ddd_diagnose_request& other610) { - pid = other610.pid; - __isset = other610.__isset; -} -ddd_diagnose_request::ddd_diagnose_request( ddd_diagnose_request&& other611) { - pid = std::move(other611.pid); - __isset = std::move(other611.__isset); +configuration_add_backup_policy_response::configuration_add_backup_policy_response( + const configuration_add_backup_policy_response &other411) +{ + err = other411.err; + hint_message = other411.hint_message; + __isset = other411.__isset; } -ddd_diagnose_request& ddd_diagnose_request::operator=(const ddd_diagnose_request& other612) { - pid = other612.pid; - __isset = other612.__isset; - return *this; +configuration_add_backup_policy_response::configuration_add_backup_policy_response( + configuration_add_backup_policy_response &&other412) +{ + err = std::move(other412.err); + hint_message = std::move(other412.hint_message); + __isset = std::move(other412.__isset); } -ddd_diagnose_request& ddd_diagnose_request::operator=(ddd_diagnose_request&& other613) { - pid = std::move(other613.pid); - __isset = std::move(other613.__isset); - return *this; +configuration_add_backup_policy_response &configuration_add_backup_policy_response:: +operator=(const configuration_add_backup_policy_response &other413) +{ + err = other413.err; + hint_message = other413.hint_message; + __isset = other413.__isset; + return *this; } -void ddd_diagnose_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ddd_diagnose_request("; - out << "pid=" << to_string(pid); - out << ")"; +configuration_add_backup_policy_response &configuration_add_backup_policy_response:: +operator=(configuration_add_backup_policy_response &&other414) +{ + err = std::move(other414.err); + hint_message = std::move(other414.hint_message); + __isset = std::move(other414.__isset); + return *this; } - - -ddd_node_info::~ddd_node_info() throw() { +void configuration_add_backup_policy_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_add_backup_policy_response("; + out << "err=" << to_string(err); + out << ", " + << "hint_message=" << to_string(hint_message); + out << ")"; } +policy_entry::~policy_entry() throw() {} -void ddd_node_info::__set_node(const ::dsn::rpc_address& val) { - this->node = val; -} - -void ddd_node_info::__set_drop_time_ms(const int64_t val) { - this->drop_time_ms = val; -} +void policy_entry::__set_policy_name(const std::string &val) { this->policy_name = val; } -void ddd_node_info::__set_is_alive(const bool val) { - this->is_alive = val; +void policy_entry::__set_backup_provider_type(const std::string &val) +{ + this->backup_provider_type = val; } -void ddd_node_info::__set_is_collected(const bool val) { - this->is_collected = val; +void policy_entry::__set_backup_interval_seconds(const std::string &val) +{ + this->backup_interval_seconds = val; } -void ddd_node_info::__set_ballot(const int64_t val) { - this->ballot = val; -} +void policy_entry::__set_app_ids(const std::set &val) { this->app_ids = val; } -void ddd_node_info::__set_last_committed_decree(const int64_t val) { - this->last_committed_decree = val; +void policy_entry::__set_backup_history_count_to_keep(const int32_t val) +{ + this->backup_history_count_to_keep = val; } -void ddd_node_info::__set_last_prepared_decree(const int64_t val) { - this->last_prepared_decree = val; -} +void policy_entry::__set_start_time(const std::string &val) { this->start_time = val; } -uint32_t ddd_node_info::read(::apache::thrift::protocol::TProtocol* iprot) { +void policy_entry::__set_is_disable(const bool val) { this->is_disable = val; } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t policy_entry::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->node.read(iprot); - this->__isset.node = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->drop_time_ms); - this->__isset.drop_time_ms = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_alive); - this->__isset.is_alive = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_collected); - this->__isset.is_collected = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_prepared_decree); - this->__isset.last_prepared_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->policy_name); + this->__isset.policy_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_provider_type); + this->__isset.backup_provider_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->backup_interval_seconds); + this->__isset.backup_interval_seconds = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_SET) { + { + this->app_ids.clear(); + uint32_t _size415; + ::apache::thrift::protocol::TType _etype418; + xfer += iprot->readSetBegin(_etype418, _size415); + uint32_t _i419; + for (_i419 = 0; _i419 < _size415; ++_i419) { + int32_t _elem420; + xfer += iprot->readI32(_elem420); + this->app_ids.insert(_elem420); + } + xfer += iprot->readSetEnd(); + } + this->__isset.app_ids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->backup_history_count_to_keep); + this->__isset.backup_history_count_to_keep = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->start_time); + this->__isset.start_time = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_disable); + this->__isset.is_disable = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ddd_node_info::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ddd_node_info"); - - xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->node.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("drop_time_ms", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->drop_time_ms); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("is_alive", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->is_alive); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("is_collected", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool(this->is_collected); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_prepared_decree", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->last_prepared_decree); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ddd_node_info &a, ddd_node_info &b) { - using ::std::swap; - swap(a.node, b.node); - swap(a.drop_time_ms, b.drop_time_ms); - swap(a.is_alive, b.is_alive); - swap(a.is_collected, b.is_collected); - swap(a.ballot, b.ballot); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.last_prepared_decree, b.last_prepared_decree); - swap(a.__isset, b.__isset); -} + xfer += iprot->readStructEnd(); -ddd_node_info::ddd_node_info(const ddd_node_info& other614) { - node = other614.node; - drop_time_ms = other614.drop_time_ms; - is_alive = other614.is_alive; - is_collected = other614.is_collected; - ballot = other614.ballot; - last_committed_decree = other614.last_committed_decree; - last_prepared_decree = other614.last_prepared_decree; - __isset = other614.__isset; -} -ddd_node_info::ddd_node_info( ddd_node_info&& other615) { - node = std::move(other615.node); - drop_time_ms = std::move(other615.drop_time_ms); - is_alive = std::move(other615.is_alive); - is_collected = std::move(other615.is_collected); - ballot = std::move(other615.ballot); - last_committed_decree = std::move(other615.last_committed_decree); - last_prepared_decree = std::move(other615.last_prepared_decree); - __isset = std::move(other615.__isset); + return xfer; } -ddd_node_info& ddd_node_info::operator=(const ddd_node_info& other616) { - node = other616.node; - drop_time_ms = other616.drop_time_ms; - is_alive = other616.is_alive; - is_collected = other616.is_collected; - ballot = other616.ballot; - last_committed_decree = other616.last_committed_decree; - last_prepared_decree = other616.last_prepared_decree; - __isset = other616.__isset; - return *this; -} -ddd_node_info& ddd_node_info::operator=(ddd_node_info&& other617) { - node = std::move(other617.node); - drop_time_ms = std::move(other617.drop_time_ms); - is_alive = std::move(other617.is_alive); - is_collected = std::move(other617.is_collected); - ballot = std::move(other617.ballot); - last_committed_decree = std::move(other617.last_committed_decree); - last_prepared_decree = std::move(other617.last_prepared_decree); - __isset = std::move(other617.__isset); - return *this; -} -void ddd_node_info::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ddd_node_info("; - out << "node=" << to_string(node); - out << ", " << "drop_time_ms=" << to_string(drop_time_ms); - out << ", " << "is_alive=" << to_string(is_alive); - out << ", " << "is_collected=" << to_string(is_collected); - out << ", " << "ballot=" << to_string(ballot); - out << ", " << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " << "last_prepared_decree=" << to_string(last_prepared_decree); - out << ")"; -} - - -ddd_partition_info::~ddd_partition_info() throw() { -} - - -void ddd_partition_info::__set_config(const ::dsn::partition_configuration& val) { - this->config = val; -} - -void ddd_partition_info::__set_dropped(const std::vector & val) { - this->dropped = val; -} - -void ddd_partition_info::__set_reason(const std::string& val) { - this->reason = val; -} - -uint32_t ddd_partition_info::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->dropped.clear(); - uint32_t _size618; - ::apache::thrift::protocol::TType _etype621; - xfer += iprot->readListBegin(_etype621, _size618); - this->dropped.resize(_size618); - uint32_t _i622; - for (_i622 = 0; _i622 < _size618; ++_i622) - { - xfer += this->dropped[_i622].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.dropped = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->reason); - this->__isset.reason = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); +uint32_t policy_entry::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("policy_entry"); - return xfer; -} + xfer += oprot->writeFieldBegin("policy_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->policy_name); + xfer += oprot->writeFieldEnd(); -uint32_t ddd_partition_info::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ddd_partition_info"); + xfer += oprot->writeFieldBegin("backup_provider_type", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->backup_provider_type); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += + oprot->writeFieldBegin("backup_interval_seconds", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->backup_interval_seconds); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("dropped", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->dropped.size())); - std::vector ::const_iterator _iter623; - for (_iter623 = this->dropped.begin(); _iter623 != this->dropped.end(); ++_iter623) + xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_SET, 4); { - xfer += (*_iter623).write(oprot); + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, + static_cast(this->app_ids.size())); + std::set::const_iterator _iter421; + for (_iter421 = this->app_ids.begin(); _iter421 != this->app_ids.end(); ++_iter421) { + xfer += oprot->writeI32((*_iter421)); + } + xfer += oprot->writeSetEnd(); } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("reason", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->reason); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ddd_partition_info &a, ddd_partition_info &b) { - using ::std::swap; - swap(a.config, b.config); - swap(a.dropped, b.dropped); - swap(a.reason, b.reason); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldEnd(); -ddd_partition_info::ddd_partition_info(const ddd_partition_info& other624) { - config = other624.config; - dropped = other624.dropped; - reason = other624.reason; - __isset = other624.__isset; -} -ddd_partition_info::ddd_partition_info( ddd_partition_info&& other625) { - config = std::move(other625.config); - dropped = std::move(other625.dropped); - reason = std::move(other625.reason); - __isset = std::move(other625.__isset); -} -ddd_partition_info& ddd_partition_info::operator=(const ddd_partition_info& other626) { - config = other626.config; - dropped = other626.dropped; - reason = other626.reason; - __isset = other626.__isset; - return *this; -} -ddd_partition_info& ddd_partition_info::operator=(ddd_partition_info&& other627) { - config = std::move(other627.config); - dropped = std::move(other627.dropped); - reason = std::move(other627.reason); - __isset = std::move(other627.__isset); - return *this; -} -void ddd_partition_info::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ddd_partition_info("; - out << "config=" << to_string(config); - out << ", " << "dropped=" << to_string(dropped); - out << ", " << "reason=" << to_string(reason); - out << ")"; -} + xfer += oprot->writeFieldBegin( + "backup_history_count_to_keep", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->backup_history_count_to_keep); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("start_time", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->start_time); + xfer += oprot->writeFieldEnd(); -ddd_diagnose_response::~ddd_diagnose_response() throw() { -} + xfer += oprot->writeFieldBegin("is_disable", ::apache::thrift::protocol::T_BOOL, 7); + xfer += oprot->writeBool(this->is_disable); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(policy_entry &a, policy_entry &b) +{ + using ::std::swap; + swap(a.policy_name, b.policy_name); + swap(a.backup_provider_type, b.backup_provider_type); + swap(a.backup_interval_seconds, b.backup_interval_seconds); + swap(a.app_ids, b.app_ids); + swap(a.backup_history_count_to_keep, b.backup_history_count_to_keep); + swap(a.start_time, b.start_time); + swap(a.is_disable, b.is_disable); + swap(a.__isset, b.__isset); +} + +policy_entry::policy_entry(const policy_entry &other422) +{ + policy_name = other422.policy_name; + backup_provider_type = other422.backup_provider_type; + backup_interval_seconds = other422.backup_interval_seconds; + app_ids = other422.app_ids; + backup_history_count_to_keep = other422.backup_history_count_to_keep; + start_time = other422.start_time; + is_disable = other422.is_disable; + __isset = other422.__isset; +} +policy_entry::policy_entry(policy_entry &&other423) +{ + policy_name = std::move(other423.policy_name); + backup_provider_type = std::move(other423.backup_provider_type); + backup_interval_seconds = std::move(other423.backup_interval_seconds); + app_ids = std::move(other423.app_ids); + backup_history_count_to_keep = std::move(other423.backup_history_count_to_keep); + start_time = std::move(other423.start_time); + is_disable = std::move(other423.is_disable); + __isset = std::move(other423.__isset); +} +policy_entry &policy_entry::operator=(const policy_entry &other424) +{ + policy_name = other424.policy_name; + backup_provider_type = other424.backup_provider_type; + backup_interval_seconds = other424.backup_interval_seconds; + app_ids = other424.app_ids; + backup_history_count_to_keep = other424.backup_history_count_to_keep; + start_time = other424.start_time; + is_disable = other424.is_disable; + __isset = other424.__isset; + return *this; +} +policy_entry &policy_entry::operator=(policy_entry &&other425) +{ + policy_name = std::move(other425.policy_name); + backup_provider_type = std::move(other425.backup_provider_type); + backup_interval_seconds = std::move(other425.backup_interval_seconds); + app_ids = std::move(other425.app_ids); + backup_history_count_to_keep = std::move(other425.backup_history_count_to_keep); + start_time = std::move(other425.start_time); + is_disable = std::move(other425.is_disable); + __isset = std::move(other425.__isset); + return *this; +} +void policy_entry::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "policy_entry("; + out << "policy_name=" << to_string(policy_name); + out << ", " + << "backup_provider_type=" << to_string(backup_provider_type); + out << ", " + << "backup_interval_seconds=" << to_string(backup_interval_seconds); + out << ", " + << "app_ids=" << to_string(app_ids); + out << ", " + << "backup_history_count_to_keep=" << to_string(backup_history_count_to_keep); + out << ", " + << "start_time=" << to_string(start_time); + out << ", " + << "is_disable=" << to_string(is_disable); + out << ")"; +} + +backup_entry::~backup_entry() throw() {} + +void backup_entry::__set_backup_id(const int64_t val) { this->backup_id = val; } + +void backup_entry::__set_start_time_ms(const int64_t val) { this->start_time_ms = val; } + +void backup_entry::__set_end_time_ms(const int64_t val) { this->end_time_ms = val; } + +void backup_entry::__set_app_ids(const std::set &val) { this->app_ids = val; } + +uint32_t backup_entry::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->backup_id); + this->__isset.backup_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->start_time_ms); + this->__isset.start_time_ms = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->end_time_ms); + this->__isset.end_time_ms = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_SET) { + { + this->app_ids.clear(); + uint32_t _size426; + ::apache::thrift::protocol::TType _etype429; + xfer += iprot->readSetBegin(_etype429, _size426); + uint32_t _i430; + for (_i430 = 0; _i430 < _size426; ++_i430) { + int32_t _elem431; + xfer += iprot->readI32(_elem431); + this->app_ids.insert(_elem431); + } + xfer += iprot->readSetEnd(); + } + this->__isset.app_ids = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void ddd_diagnose_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += iprot->readStructEnd(); -void ddd_diagnose_response::__set_partitions(const std::vector & val) { - this->partitions = val; + return xfer; } -uint32_t ddd_diagnose_response::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t backup_entry::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("backup_entry"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("backup_id", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->backup_id); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("start_time_ms", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->start_time_ms); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("end_time_ms", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->end_time_ms); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("app_ids", ::apache::thrift::protocol::T_SET, 4); { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partitions.clear(); - uint32_t _size628; - ::apache::thrift::protocol::TType _etype631; - xfer += iprot->readListBegin(_etype631, _size628); - this->partitions.resize(_size628); - uint32_t _i632; - for (_i632 = 0; _i632 < _size628; ++_i632) - { - xfer += this->partitions[_i632].read(iprot); + xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, + static_cast(this->app_ids.size())); + std::set::const_iterator _iter432; + for (_iter432 = this->app_ids.begin(); _iter432 != this->app_ids.end(); ++_iter432) { + xfer += oprot->writeI32((*_iter432)); + } + xfer += oprot->writeSetEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(backup_entry &a, backup_entry &b) +{ + using ::std::swap; + swap(a.backup_id, b.backup_id); + swap(a.start_time_ms, b.start_time_ms); + swap(a.end_time_ms, b.end_time_ms); + swap(a.app_ids, b.app_ids); + swap(a.__isset, b.__isset); +} + +backup_entry::backup_entry(const backup_entry &other433) +{ + backup_id = other433.backup_id; + start_time_ms = other433.start_time_ms; + end_time_ms = other433.end_time_ms; + app_ids = other433.app_ids; + __isset = other433.__isset; +} +backup_entry::backup_entry(backup_entry &&other434) +{ + backup_id = std::move(other434.backup_id); + start_time_ms = std::move(other434.start_time_ms); + end_time_ms = std::move(other434.end_time_ms); + app_ids = std::move(other434.app_ids); + __isset = std::move(other434.__isset); +} +backup_entry &backup_entry::operator=(const backup_entry &other435) +{ + backup_id = other435.backup_id; + start_time_ms = other435.start_time_ms; + end_time_ms = other435.end_time_ms; + app_ids = other435.app_ids; + __isset = other435.__isset; + return *this; +} +backup_entry &backup_entry::operator=(backup_entry &&other436) +{ + backup_id = std::move(other436.backup_id); + start_time_ms = std::move(other436.start_time_ms); + end_time_ms = std::move(other436.end_time_ms); + app_ids = std::move(other436.app_ids); + __isset = std::move(other436.__isset); + return *this; +} +void backup_entry::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "backup_entry("; + out << "backup_id=" << to_string(backup_id); + out << ", " + << "start_time_ms=" << to_string(start_time_ms); + out << ", " + << "end_time_ms=" << to_string(end_time_ms); + out << ", " + << "app_ids=" << to_string(app_ids); + out << ")"; +} + +configuration_query_backup_policy_request::~configuration_query_backup_policy_request() throw() {} + +void configuration_query_backup_policy_request::__set_policy_names( + const std::vector &val) +{ + this->policy_names = val; +} + +void configuration_query_backup_policy_request::__set_backup_info_count(const int32_t val) +{ + this->backup_info_count = val; +} + +uint32_t +configuration_query_backup_policy_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->policy_names.clear(); + uint32_t _size437; + ::apache::thrift::protocol::TType _etype440; + xfer += iprot->readListBegin(_etype440, _size437); + this->policy_names.resize(_size437); + uint32_t _i441; + for (_i441 = 0; _i441 < _size437; ++_i441) { + xfer += iprot->readString(this->policy_names[_i441]); + } + xfer += iprot->readListEnd(); + } + this->__isset.policy_names = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->backup_info_count); + this->__isset.backup_info_count = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.partitions = true; - } else { - xfer += iprot->skip(ftype); + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t ddd_diagnose_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ddd_diagnose_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t +configuration_query_backup_policy_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_backup_policy_request"); - xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter633; - for (_iter633 = this->partitions.begin(); _iter633 != this->partitions.end(); ++_iter633) + xfer += oprot->writeFieldBegin("policy_names", ::apache::thrift::protocol::T_LIST, 1); { - xfer += (*_iter633).write(oprot); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, + static_cast(this->policy_names.size())); + std::vector::const_iterator _iter442; + for (_iter442 = this->policy_names.begin(); _iter442 != this->policy_names.end(); + ++_iter442) { + xfer += oprot->writeString((*_iter442)); + } + xfer += oprot->writeListEnd(); } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ddd_diagnose_response &a, ddd_diagnose_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.partitions, b.partitions); - swap(a.__isset, b.__isset); -} - -ddd_diagnose_response::ddd_diagnose_response(const ddd_diagnose_response& other634) { - err = other634.err; - partitions = other634.partitions; - __isset = other634.__isset; -} -ddd_diagnose_response::ddd_diagnose_response( ddd_diagnose_response&& other635) { - err = std::move(other635.err); - partitions = std::move(other635.partitions); - __isset = std::move(other635.__isset); -} -ddd_diagnose_response& ddd_diagnose_response::operator=(const ddd_diagnose_response& other636) { - err = other636.err; - partitions = other636.partitions; - __isset = other636.__isset; - return *this; -} -ddd_diagnose_response& ddd_diagnose_response::operator=(ddd_diagnose_response&& other637) { - err = std::move(other637.err); - partitions = std::move(other637.partitions); - __isset = std::move(other637.__isset); - return *this; -} -void ddd_diagnose_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ddd_diagnose_response("; - out << "err=" << to_string(err); - out << ", " << "partitions=" << to_string(partitions); - out << ")"; -} - + xfer += oprot->writeFieldEnd(); -start_partition_split_request::~start_partition_split_request() throw() { -} + xfer += oprot->writeFieldBegin("backup_info_count", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->backup_info_count); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_backup_policy_request &a, + configuration_query_backup_policy_request &b) +{ + using ::std::swap; + swap(a.policy_names, b.policy_names); + swap(a.backup_info_count, b.backup_info_count); + swap(a.__isset, b.__isset); +} + +configuration_query_backup_policy_request::configuration_query_backup_policy_request( + const configuration_query_backup_policy_request &other443) +{ + policy_names = other443.policy_names; + backup_info_count = other443.backup_info_count; + __isset = other443.__isset; +} +configuration_query_backup_policy_request::configuration_query_backup_policy_request( + configuration_query_backup_policy_request &&other444) +{ + policy_names = std::move(other444.policy_names); + backup_info_count = std::move(other444.backup_info_count); + __isset = std::move(other444.__isset); +} +configuration_query_backup_policy_request &configuration_query_backup_policy_request:: +operator=(const configuration_query_backup_policy_request &other445) +{ + policy_names = other445.policy_names; + backup_info_count = other445.backup_info_count; + __isset = other445.__isset; + return *this; +} +configuration_query_backup_policy_request &configuration_query_backup_policy_request:: +operator=(configuration_query_backup_policy_request &&other446) +{ + policy_names = std::move(other446.policy_names); + backup_info_count = std::move(other446.backup_info_count); + __isset = std::move(other446.__isset); + return *this; +} +void configuration_query_backup_policy_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_query_backup_policy_request("; + out << "policy_names=" << to_string(policy_names); + out << ", " + << "backup_info_count=" << to_string(backup_info_count); + out << ")"; +} + +configuration_query_backup_policy_response::~configuration_query_backup_policy_response() throw() {} + +void configuration_query_backup_policy_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; +} + +void configuration_query_backup_policy_response::__set_policys(const std::vector &val) +{ + this->policys = val; +} + +void configuration_query_backup_policy_response::__set_backup_infos( + const std::vector> &val) +{ + this->backup_infos = val; +} + +void configuration_query_backup_policy_response::__set_hint_msg(const std::string &val) +{ + this->hint_msg = val; + __isset.hint_msg = true; +} + +uint32_t +configuration_query_backup_policy_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->policys.clear(); + uint32_t _size447; + ::apache::thrift::protocol::TType _etype450; + xfer += iprot->readListBegin(_etype450, _size447); + this->policys.resize(_size447); + uint32_t _i451; + for (_i451 = 0; _i451 < _size447; ++_i451) { + xfer += this->policys[_i451].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.policys = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->backup_infos.clear(); + uint32_t _size452; + ::apache::thrift::protocol::TType _etype455; + xfer += iprot->readListBegin(_etype455, _size452); + this->backup_infos.resize(_size452); + uint32_t _i456; + for (_i456 = 0; _i456 < _size452; ++_i456) { + { + this->backup_infos[_i456].clear(); + uint32_t _size457; + ::apache::thrift::protocol::TType _etype460; + xfer += iprot->readListBegin(_etype460, _size457); + this->backup_infos[_i456].resize(_size457); + uint32_t _i461; + for (_i461 = 0; _i461 < _size457; ++_i461) { + xfer += this->backup_infos[_i456][_i461].read(iprot); + } + xfer += iprot->readListEnd(); + } + } + xfer += iprot->readListEnd(); + } + this->__isset.backup_infos = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void start_partition_split_request::__set_app_name(const std::string& val) { - this->app_name = val; -} + xfer += iprot->readStructEnd(); -void start_partition_split_request::__set_new_partition_count(const int32_t val) { - this->new_partition_count = val; + return xfer; } -uint32_t start_partition_split_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; +uint32_t configuration_query_backup_policy_response::write( + ::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_backup_policy_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("policys", ::apache::thrift::protocol::T_LIST, 2); { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->new_partition_count); - this->__isset.new_partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->policys.size())); + std::vector::const_iterator _iter462; + for (_iter462 = this->policys.begin(); _iter462 != this->policys.end(); ++_iter462) { + xfer += (*_iter462).write(oprot); + } + xfer += oprot->writeListEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} + xfer += oprot->writeFieldEnd(); -uint32_t start_partition_split_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("start_partition_split_request"); + xfer += oprot->writeFieldBegin("backup_infos", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, + static_cast(this->backup_infos.size())); + std::vector>::const_iterator _iter463; + for (_iter463 = this->backup_infos.begin(); _iter463 != this->backup_infos.end(); + ++_iter463) { + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast((*_iter463).size())); + std::vector::const_iterator _iter464; + for (_iter464 = (*_iter463).begin(); _iter464 != (*_iter463).end(); ++_iter464) { + xfer += (*_iter464).write(oprot); + } + xfer += oprot->writeListEnd(); + } + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + if (this->__isset.hint_msg) { + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_backup_policy_response &a, + configuration_query_backup_policy_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.policys, b.policys); + swap(a.backup_infos, b.backup_infos); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} + +configuration_query_backup_policy_response::configuration_query_backup_policy_response( + const configuration_query_backup_policy_response &other465) +{ + err = other465.err; + policys = other465.policys; + backup_infos = other465.backup_infos; + hint_msg = other465.hint_msg; + __isset = other465.__isset; +} +configuration_query_backup_policy_response::configuration_query_backup_policy_response( + configuration_query_backup_policy_response &&other466) +{ + err = std::move(other466.err); + policys = std::move(other466.policys); + backup_infos = std::move(other466.backup_infos); + hint_msg = std::move(other466.hint_msg); + __isset = std::move(other466.__isset); +} +configuration_query_backup_policy_response &configuration_query_backup_policy_response:: +operator=(const configuration_query_backup_policy_response &other467) +{ + err = other467.err; + policys = other467.policys; + backup_infos = other467.backup_infos; + hint_msg = other467.hint_msg; + __isset = other467.__isset; + return *this; +} +configuration_query_backup_policy_response &configuration_query_backup_policy_response:: +operator=(configuration_query_backup_policy_response &&other468) +{ + err = std::move(other468.err); + policys = std::move(other468.policys); + backup_infos = std::move(other468.backup_infos); + hint_msg = std::move(other468.hint_msg); + __isset = std::move(other468.__isset); + return *this; +} +void configuration_query_backup_policy_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_query_backup_policy_response("; + out << "err=" << to_string(err); + out << ", " + << "policys=" << to_string(policys); + out << ", " + << "backup_infos=" << to_string(backup_infos); + out << ", " + << "hint_msg="; + (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); + out << ")"; +} + +configuration_report_restore_status_request::~configuration_report_restore_status_request() throw() +{ +} + +void configuration_report_restore_status_request::__set_pid(const ::dsn::gpid &val) +{ + this->pid = val; +} + +void configuration_report_restore_status_request::__set_restore_status(const ::dsn::error_code &val) +{ + this->restore_status = val; +} + +void configuration_report_restore_status_request::__set_progress(const int32_t val) +{ + this->progress = val; +} + +void configuration_report_restore_status_request::__set_reason(const std::string &val) +{ + this->reason = val; + __isset.reason = true; +} + +uint32_t +configuration_report_restore_status_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->restore_status.read(iprot); + this->__isset.restore_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->progress); + this->__isset.progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->reason); + this->__isset.reason = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldBegin("new_partition_count", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->new_partition_count); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(start_partition_split_request &a, start_partition_split_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.new_partition_count, b.new_partition_count); - swap(a.__isset, b.__isset); -} +uint32_t configuration_report_restore_status_request::write( + ::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_report_restore_status_request"); -start_partition_split_request::start_partition_split_request(const start_partition_split_request& other638) { - app_name = other638.app_name; - new_partition_count = other638.new_partition_count; - __isset = other638.__isset; -} -start_partition_split_request::start_partition_split_request( start_partition_split_request&& other639) { - app_name = std::move(other639.app_name); - new_partition_count = std::move(other639.new_partition_count); - __isset = std::move(other639.__isset); -} -start_partition_split_request& start_partition_split_request::operator=(const start_partition_split_request& other640) { - app_name = other640.app_name; - new_partition_count = other640.new_partition_count; - __isset = other640.__isset; - return *this; -} -start_partition_split_request& start_partition_split_request::operator=(start_partition_split_request&& other641) { - app_name = std::move(other641.app_name); - new_partition_count = std::move(other641.new_partition_count); - __isset = std::move(other641.__isset); - return *this; -} -void start_partition_split_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "start_partition_split_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "new_partition_count=" << to_string(new_partition_count); - out << ")"; -} + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("restore_status", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->restore_status.write(oprot); + xfer += oprot->writeFieldEnd(); -start_partition_split_response::~start_partition_split_response() throw() { -} + xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->progress); + xfer += oprot->writeFieldEnd(); + if (this->__isset.reason) { + xfer += oprot->writeFieldBegin("reason", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->reason); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_report_restore_status_request &a, + configuration_report_restore_status_request &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.restore_status, b.restore_status); + swap(a.progress, b.progress); + swap(a.reason, b.reason); + swap(a.__isset, b.__isset); +} + +configuration_report_restore_status_request::configuration_report_restore_status_request( + const configuration_report_restore_status_request &other469) +{ + pid = other469.pid; + restore_status = other469.restore_status; + progress = other469.progress; + reason = other469.reason; + __isset = other469.__isset; +} +configuration_report_restore_status_request::configuration_report_restore_status_request( + configuration_report_restore_status_request &&other470) +{ + pid = std::move(other470.pid); + restore_status = std::move(other470.restore_status); + progress = std::move(other470.progress); + reason = std::move(other470.reason); + __isset = std::move(other470.__isset); +} +configuration_report_restore_status_request &configuration_report_restore_status_request:: +operator=(const configuration_report_restore_status_request &other471) +{ + pid = other471.pid; + restore_status = other471.restore_status; + progress = other471.progress; + reason = other471.reason; + __isset = other471.__isset; + return *this; +} +configuration_report_restore_status_request &configuration_report_restore_status_request:: +operator=(configuration_report_restore_status_request &&other472) +{ + pid = std::move(other472.pid); + restore_status = std::move(other472.restore_status); + progress = std::move(other472.progress); + reason = std::move(other472.reason); + __isset = std::move(other472.__isset); + return *this; +} +void configuration_report_restore_status_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_report_restore_status_request("; + out << "pid=" << to_string(pid); + out << ", " + << "restore_status=" << to_string(restore_status); + out << ", " + << "progress=" << to_string(progress); + out << ", " + << "reason="; + (__isset.reason ? (out << to_string(reason)) : (out << "")); + out << ")"; +} + +configuration_report_restore_status_response:: + ~configuration_report_restore_status_response() throw() +{ +} + +void configuration_report_restore_status_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; +} + +uint32_t +configuration_report_restore_status_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void start_partition_split_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += iprot->readStructEnd(); -void start_partition_split_response::__set_hint_msg(const std::string& val) { - this->hint_msg = val; + return xfer; } -uint32_t start_partition_split_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; +uint32_t configuration_report_restore_status_response::write( + ::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_report_restore_status_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_report_restore_status_response &a, + configuration_report_restore_status_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); +} + +configuration_report_restore_status_response::configuration_report_restore_status_response( + const configuration_report_restore_status_response &other473) +{ + err = other473.err; + __isset = other473.__isset; +} +configuration_report_restore_status_response::configuration_report_restore_status_response( + configuration_report_restore_status_response &&other474) +{ + err = std::move(other474.err); + __isset = std::move(other474.__isset); +} +configuration_report_restore_status_response &configuration_report_restore_status_response:: +operator=(const configuration_report_restore_status_response &other475) +{ + err = other475.err; + __isset = other475.__isset; + return *this; +} +configuration_report_restore_status_response &configuration_report_restore_status_response:: +operator=(configuration_report_restore_status_response &&other476) +{ + err = std::move(other476.err); + __isset = std::move(other476.__isset); + return *this; +} +void configuration_report_restore_status_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_report_restore_status_response("; + out << "err=" << to_string(err); + out << ")"; +} + +configuration_query_restore_request::~configuration_query_restore_request() throw() {} + +void configuration_query_restore_request::__set_restore_app_id(const int32_t val) +{ + this->restore_app_id = val; +} + +uint32_t configuration_query_restore_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->restore_app_id); + this->__isset.restore_app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t start_partition_split_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("start_partition_split_response"); +uint32_t +configuration_query_restore_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_restore_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_msg); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("restore_app_id", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->restore_app_id); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(start_partition_split_response &a, start_partition_split_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); +void swap(configuration_query_restore_request &a, configuration_query_restore_request &b) +{ + using ::std::swap; + swap(a.restore_app_id, b.restore_app_id); + swap(a.__isset, b.__isset); } -start_partition_split_response::start_partition_split_response(const start_partition_split_response& other642) { - err = other642.err; - hint_msg = other642.hint_msg; - __isset = other642.__isset; +configuration_query_restore_request::configuration_query_restore_request( + const configuration_query_restore_request &other477) +{ + restore_app_id = other477.restore_app_id; + __isset = other477.__isset; } -start_partition_split_response::start_partition_split_response( start_partition_split_response&& other643) { - err = std::move(other643.err); - hint_msg = std::move(other643.hint_msg); - __isset = std::move(other643.__isset); +configuration_query_restore_request::configuration_query_restore_request( + configuration_query_restore_request &&other478) +{ + restore_app_id = std::move(other478.restore_app_id); + __isset = std::move(other478.__isset); } -start_partition_split_response& start_partition_split_response::operator=(const start_partition_split_response& other644) { - err = other644.err; - hint_msg = other644.hint_msg; - __isset = other644.__isset; - return *this; +configuration_query_restore_request &configuration_query_restore_request:: +operator=(const configuration_query_restore_request &other479) +{ + restore_app_id = other479.restore_app_id; + __isset = other479.__isset; + return *this; } -start_partition_split_response& start_partition_split_response::operator=(start_partition_split_response&& other645) { - err = std::move(other645.err); - hint_msg = std::move(other645.hint_msg); - __isset = std::move(other645.__isset); - return *this; +configuration_query_restore_request &configuration_query_restore_request:: +operator=(configuration_query_restore_request &&other480) +{ + restore_app_id = std::move(other480.restore_app_id); + __isset = std::move(other480.__isset); + return *this; } -void start_partition_split_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "start_partition_split_response("; - out << "err=" << to_string(err); - out << ", " << "hint_msg=" << to_string(hint_msg); - out << ")"; -} - - -notify_catch_up_request::~notify_catch_up_request() throw() { +void configuration_query_restore_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_query_restore_request("; + out << "restore_app_id=" << to_string(restore_app_id); + out << ")"; } +configuration_query_restore_response::~configuration_query_restore_response() throw() {} -void notify_catch_up_request::__set_parent_gpid(const ::dsn::gpid& val) { - this->parent_gpid = val; -} - -void notify_catch_up_request::__set_child_gpid(const ::dsn::gpid& val) { - this->child_gpid = val; +void configuration_query_restore_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; } -void notify_catch_up_request::__set_child_ballot(const int64_t val) { - this->child_ballot = val; +void configuration_query_restore_response::__set_restore_status( + const std::vector<::dsn::error_code> &val) +{ + this->restore_status = val; } -void notify_catch_up_request::__set_child_address(const ::dsn::rpc_address& val) { - this->child_address = val; +void configuration_query_restore_response::__set_restore_progress(const std::vector &val) +{ + this->restore_progress = val; } -uint32_t notify_catch_up_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t configuration_query_restore_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->parent_gpid.read(iprot); - this->__isset.parent_gpid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_gpid.read(iprot); - this->__isset.child_gpid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->child_ballot); - this->__isset.child_ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_address.read(iprot); - this->__isset.child_address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->restore_status.clear(); + uint32_t _size481; + ::apache::thrift::protocol::TType _etype484; + xfer += iprot->readListBegin(_etype484, _size481); + this->restore_status.resize(_size481); + uint32_t _i485; + for (_i485 = 0; _i485 < _size481; ++_i485) { + xfer += this->restore_status[_i485].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.restore_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->restore_progress.clear(); + uint32_t _size486; + ::apache::thrift::protocol::TType _etype489; + xfer += iprot->readListBegin(_etype489, _size486); + this->restore_progress.resize(_size486); + uint32_t _i490; + for (_i490 = 0; _i490 < _size486; ++_i490) { + xfer += iprot->readI32(this->restore_progress[_i490]); + } + xfer += iprot->readListEnd(); + } + this->__isset.restore_progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t notify_catch_up_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("notify_catch_up_request"); +uint32_t +configuration_query_restore_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_restore_response"); - xfer += oprot->writeFieldBegin("parent_gpid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->parent_gpid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("child_gpid", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->child_gpid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("restore_status", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->restore_status.size())); + std::vector<::dsn::error_code>::const_iterator _iter491; + for (_iter491 = this->restore_status.begin(); _iter491 != this->restore_status.end(); + ++_iter491) { + xfer += (*_iter491).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("child_ballot", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->child_ballot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("restore_progress", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, + static_cast(this->restore_progress.size())); + std::vector::const_iterator _iter492; + for (_iter492 = this->restore_progress.begin(); _iter492 != this->restore_progress.end(); + ++_iter492) { + xfer += oprot->writeI32((*_iter492)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("child_address", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->child_address.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_restore_response &a, configuration_query_restore_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.restore_status, b.restore_status); + swap(a.restore_progress, b.restore_progress); + swap(a.__isset, b.__isset); +} + +configuration_query_restore_response::configuration_query_restore_response( + const configuration_query_restore_response &other493) +{ + err = other493.err; + restore_status = other493.restore_status; + restore_progress = other493.restore_progress; + __isset = other493.__isset; +} +configuration_query_restore_response::configuration_query_restore_response( + configuration_query_restore_response &&other494) +{ + err = std::move(other494.err); + restore_status = std::move(other494.restore_status); + restore_progress = std::move(other494.restore_progress); + __isset = std::move(other494.__isset); +} +configuration_query_restore_response &configuration_query_restore_response:: +operator=(const configuration_query_restore_response &other495) +{ + err = other495.err; + restore_status = other495.restore_status; + restore_progress = other495.restore_progress; + __isset = other495.__isset; + return *this; +} +configuration_query_restore_response &configuration_query_restore_response:: +operator=(configuration_query_restore_response &&other496) +{ + err = std::move(other496.err); + restore_status = std::move(other496.restore_status); + restore_progress = std::move(other496.restore_progress); + __isset = std::move(other496.__isset); + return *this; +} +void configuration_query_restore_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_query_restore_response("; + out << "err=" << to_string(err); + out << ", " + << "restore_status=" << to_string(restore_status); + out << ", " + << "restore_progress=" << to_string(restore_progress); + out << ")"; +} + +file_meta::~file_meta() throw() {} + +void file_meta::__set_name(const std::string &val) { this->name = val; } + +void file_meta::__set_size(const int64_t val) { this->size = val; } + +void file_meta::__set_md5(const std::string &val) { this->md5 = val; } + +uint32_t file_meta::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->name); + this->__isset.name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->size); + this->__isset.size = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->md5); + this->__isset.md5 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += iprot->readStructEnd(); -void swap(notify_catch_up_request &a, notify_catch_up_request &b) { - using ::std::swap; - swap(a.parent_gpid, b.parent_gpid); - swap(a.child_gpid, b.child_gpid); - swap(a.child_ballot, b.child_ballot); - swap(a.child_address, b.child_address); - swap(a.__isset, b.__isset); + return xfer; } -notify_catch_up_request::notify_catch_up_request(const notify_catch_up_request& other646) { - parent_gpid = other646.parent_gpid; - child_gpid = other646.child_gpid; - child_ballot = other646.child_ballot; - child_address = other646.child_address; - __isset = other646.__isset; -} -notify_catch_up_request::notify_catch_up_request( notify_catch_up_request&& other647) { - parent_gpid = std::move(other647.parent_gpid); - child_gpid = std::move(other647.child_gpid); - child_ballot = std::move(other647.child_ballot); - child_address = std::move(other647.child_address); - __isset = std::move(other647.__isset); -} -notify_catch_up_request& notify_catch_up_request::operator=(const notify_catch_up_request& other648) { - parent_gpid = other648.parent_gpid; - child_gpid = other648.child_gpid; - child_ballot = other648.child_ballot; - child_address = other648.child_address; - __isset = other648.__isset; - return *this; -} -notify_catch_up_request& notify_catch_up_request::operator=(notify_catch_up_request&& other649) { - parent_gpid = std::move(other649.parent_gpid); - child_gpid = std::move(other649.child_gpid); - child_ballot = std::move(other649.child_ballot); - child_address = std::move(other649.child_address); - __isset = std::move(other649.__isset); - return *this; -} -void notify_catch_up_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "notify_catch_up_request("; - out << "parent_gpid=" << to_string(parent_gpid); - out << ", " << "child_gpid=" << to_string(child_gpid); - out << ", " << "child_ballot=" << to_string(child_ballot); - out << ", " << "child_address=" << to_string(child_address); - out << ")"; -} +uint32_t file_meta::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("file_meta"); + xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->name); + xfer += oprot->writeFieldEnd(); -notify_cacth_up_response::~notify_cacth_up_response() throw() { -} + xfer += oprot->writeFieldBegin("size", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->size); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("md5", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->md5); + xfer += oprot->writeFieldEnd(); -void notify_cacth_up_response::__set_err(const ::dsn::error_code& val) { - this->err = val; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t notify_cacth_up_response::read(::apache::thrift::protocol::TProtocol* iprot) { +void swap(file_meta &a, file_meta &b) +{ + using ::std::swap; + swap(a.name, b.name); + swap(a.size, b.size); + swap(a.md5, b.md5); + swap(a.__isset, b.__isset); +} + +file_meta::file_meta(const file_meta &other497) +{ + name = other497.name; + size = other497.size; + md5 = other497.md5; + __isset = other497.__isset; +} +file_meta::file_meta(file_meta &&other498) +{ + name = std::move(other498.name); + size = std::move(other498.size); + md5 = std::move(other498.md5); + __isset = std::move(other498.__isset); +} +file_meta &file_meta::operator=(const file_meta &other499) +{ + name = other499.name; + size = other499.size; + md5 = other499.md5; + __isset = other499.__isset; + return *this; +} +file_meta &file_meta::operator=(file_meta &&other500) +{ + name = std::move(other500.name); + size = std::move(other500.size); + md5 = std::move(other500.md5); + __isset = std::move(other500.__isset); + return *this; +} +void file_meta::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "file_meta("; + out << "name=" << to_string(name); + out << ", " + << "size=" << to_string(size); + out << ", " + << "md5=" << to_string(md5); + out << ")"; +} + +configuration_update_app_env_request::~configuration_update_app_env_request() throw() {} + +void configuration_update_app_env_request::__set_app_name(const std::string &val) +{ + this->app_name = val; +} + +void configuration_update_app_env_request::__set_op(const app_env_operation::type val) +{ + this->op = val; +} + +void configuration_update_app_env_request::__set_keys(const std::vector &val) +{ + this->keys = val; + __isset.keys = true; +} + +void configuration_update_app_env_request::__set_values(const std::vector &val) +{ + this->values = val; + __isset.values = true; +} + +void configuration_update_app_env_request::__set_clear_prefix(const std::string &val) +{ + this->clear_prefix = val; + __isset.clear_prefix = true; +} + +uint32_t configuration_update_app_env_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast501; + xfer += iprot->readI32(ecast501); + this->op = (app_env_operation::type)ecast501; + this->__isset.op = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->keys.clear(); + uint32_t _size502; + ::apache::thrift::protocol::TType _etype505; + xfer += iprot->readListBegin(_etype505, _size502); + this->keys.resize(_size502); + uint32_t _i506; + for (_i506 = 0; _i506 < _size502; ++_i506) { + xfer += iprot->readString(this->keys[_i506]); + } + xfer += iprot->readListEnd(); + } + this->__isset.keys = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->values.clear(); + uint32_t _size507; + ::apache::thrift::protocol::TType _etype510; + xfer += iprot->readListBegin(_etype510, _size507); + this->values.resize(_size507); + uint32_t _i511; + for (_i511 = 0; _i511 < _size507; ++_i511) { + xfer += iprot->readString(this->values[_i511]); + } + xfer += iprot->readListEnd(); + } + this->__isset.values = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->clear_prefix); + this->__isset.clear_prefix = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + return xfer; +} - xfer += iprot->readStructBegin(fname); +uint32_t +configuration_update_app_env_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_update_app_env_request"); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("op", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->op); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + if (this->__isset.keys) { + xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, + static_cast(this->keys.size())); + std::vector::const_iterator _iter512; + for (_iter512 = this->keys.begin(); _iter512 != this->keys.end(); ++_iter512) { + xfer += oprot->writeString((*_iter512)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + if (this->__isset.values) { + xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 4); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, + static_cast(this->values.size())); + std::vector::const_iterator _iter513; + for (_iter513 = this->values.begin(); _iter513 != this->values.end(); ++_iter513) { + xfer += oprot->writeString((*_iter513)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.clear_prefix) { + xfer += oprot->writeFieldBegin("clear_prefix", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->clear_prefix); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_update_app_env_request &a, configuration_update_app_env_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.op, b.op); + swap(a.keys, b.keys); + swap(a.values, b.values); + swap(a.clear_prefix, b.clear_prefix); + swap(a.__isset, b.__isset); +} + +configuration_update_app_env_request::configuration_update_app_env_request( + const configuration_update_app_env_request &other514) +{ + app_name = other514.app_name; + op = other514.op; + keys = other514.keys; + values = other514.values; + clear_prefix = other514.clear_prefix; + __isset = other514.__isset; +} +configuration_update_app_env_request::configuration_update_app_env_request( + configuration_update_app_env_request &&other515) +{ + app_name = std::move(other515.app_name); + op = std::move(other515.op); + keys = std::move(other515.keys); + values = std::move(other515.values); + clear_prefix = std::move(other515.clear_prefix); + __isset = std::move(other515.__isset); +} +configuration_update_app_env_request &configuration_update_app_env_request:: +operator=(const configuration_update_app_env_request &other516) +{ + app_name = other516.app_name; + op = other516.op; + keys = other516.keys; + values = other516.values; + clear_prefix = other516.clear_prefix; + __isset = other516.__isset; + return *this; +} +configuration_update_app_env_request &configuration_update_app_env_request:: +operator=(configuration_update_app_env_request &&other517) +{ + app_name = std::move(other517.app_name); + op = std::move(other517.op); + keys = std::move(other517.keys); + values = std::move(other517.values); + clear_prefix = std::move(other517.clear_prefix); + __isset = std::move(other517.__isset); + return *this; +} +void configuration_update_app_env_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_update_app_env_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "op=" << to_string(op); + out << ", " + << "keys="; + (__isset.keys ? (out << to_string(keys)) : (out << "")); + out << ", " + << "values="; + (__isset.values ? (out << to_string(values)) : (out << "")); + out << ", " + << "clear_prefix="; + (__isset.clear_prefix ? (out << to_string(clear_prefix)) : (out << "")); + out << ")"; +} + +configuration_update_app_env_response::~configuration_update_app_env_response() throw() {} + +void configuration_update_app_env_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; +} + +void configuration_update_app_env_response::__set_hint_message(const std::string &val) +{ + this->hint_message = val; +} + +uint32_t configuration_update_app_env_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_message); + this->__isset.hint_message = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t notify_cacth_up_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("notify_cacth_up_response"); +uint32_t +configuration_update_app_env_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_update_app_env_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("hint_message", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_message); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_update_app_env_response &a, configuration_update_app_env_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_message, b.hint_message); + swap(a.__isset, b.__isset); +} + +configuration_update_app_env_response::configuration_update_app_env_response( + const configuration_update_app_env_response &other518) +{ + err = other518.err; + hint_message = other518.hint_message; + __isset = other518.__isset; +} +configuration_update_app_env_response::configuration_update_app_env_response( + configuration_update_app_env_response &&other519) +{ + err = std::move(other519.err); + hint_message = std::move(other519.hint_message); + __isset = std::move(other519.__isset); +} +configuration_update_app_env_response &configuration_update_app_env_response:: +operator=(const configuration_update_app_env_response &other520) +{ + err = other520.err; + hint_message = other520.hint_message; + __isset = other520.__isset; + return *this; +} +configuration_update_app_env_response &configuration_update_app_env_response:: +operator=(configuration_update_app_env_response &&other521) +{ + err = std::move(other521.err); + hint_message = std::move(other521.hint_message); + __isset = std::move(other521.__isset); + return *this; +} +void configuration_update_app_env_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_update_app_env_response("; + out << "err=" << to_string(err); + out << ", " + << "hint_message=" << to_string(hint_message); + out << ")"; +} + +duplication_add_request::~duplication_add_request() throw() {} + +void duplication_add_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void duplication_add_request::__set_remote_cluster_name(const std::string &val) +{ + this->remote_cluster_name = val; +} + +void duplication_add_request::__set_freezed(const bool val) { this->freezed = val; } + +uint32_t duplication_add_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_cluster_name); + this->__isset.remote_cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->freezed); + this->__isset.freezed = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void swap(notify_cacth_up_response &a, notify_cacth_up_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); -} + xfer += iprot->readStructEnd(); -notify_cacth_up_response::notify_cacth_up_response(const notify_cacth_up_response& other650) { - err = other650.err; - __isset = other650.__isset; -} -notify_cacth_up_response::notify_cacth_up_response( notify_cacth_up_response&& other651) { - err = std::move(other651.err); - __isset = std::move(other651.__isset); -} -notify_cacth_up_response& notify_cacth_up_response::operator=(const notify_cacth_up_response& other652) { - err = other652.err; - __isset = other652.__isset; - return *this; -} -notify_cacth_up_response& notify_cacth_up_response::operator=(notify_cacth_up_response&& other653) { - err = std::move(other653.err); - __isset = std::move(other653.__isset); - return *this; -} -void notify_cacth_up_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "notify_cacth_up_response("; - out << "err=" << to_string(err); - out << ")"; + return xfer; } +uint32_t duplication_add_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_add_request"); -update_child_group_partition_count_request::~update_child_group_partition_count_request() throw() { -} + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("remote_cluster_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->remote_cluster_name); + xfer += oprot->writeFieldEnd(); -void update_child_group_partition_count_request::__set_target_address(const ::dsn::rpc_address& val) { - this->target_address = val; -} + xfer += oprot->writeFieldBegin("freezed", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->freezed); + xfer += oprot->writeFieldEnd(); -void update_child_group_partition_count_request::__set_new_partition_count(const int32_t val) { - this->new_partition_count = val; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_add_request &a, duplication_add_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.remote_cluster_name, b.remote_cluster_name); + swap(a.freezed, b.freezed); + swap(a.__isset, b.__isset); +} + +duplication_add_request::duplication_add_request(const duplication_add_request &other522) +{ + app_name = other522.app_name; + remote_cluster_name = other522.remote_cluster_name; + freezed = other522.freezed; + __isset = other522.__isset; +} +duplication_add_request::duplication_add_request(duplication_add_request &&other523) +{ + app_name = std::move(other523.app_name); + remote_cluster_name = std::move(other523.remote_cluster_name); + freezed = std::move(other523.freezed); + __isset = std::move(other523.__isset); +} +duplication_add_request &duplication_add_request::operator=(const duplication_add_request &other524) +{ + app_name = other524.app_name; + remote_cluster_name = other524.remote_cluster_name; + freezed = other524.freezed; + __isset = other524.__isset; + return *this; +} +duplication_add_request &duplication_add_request::operator=(duplication_add_request &&other525) +{ + app_name = std::move(other525.app_name); + remote_cluster_name = std::move(other525.remote_cluster_name); + freezed = std::move(other525.freezed); + __isset = std::move(other525.__isset); + return *this; +} +void duplication_add_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_add_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "remote_cluster_name=" << to_string(remote_cluster_name); + out << ", " + << "freezed=" << to_string(freezed); + out << ")"; +} + +duplication_add_response::~duplication_add_response() throw() {} + +void duplication_add_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void duplication_add_response::__set_appid(const int32_t val) { this->appid = val; } + +void duplication_add_response::__set_dupid(const int32_t val) { this->dupid = val; } + +void duplication_add_response::__set_hint(const std::string &val) +{ + this->hint = val; + __isset.hint = true; +} + +uint32_t duplication_add_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->appid); + this->__isset.appid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->dupid); + this->__isset.dupid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint); + this->__isset.hint = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void update_child_group_partition_count_request::__set_child_pid(const ::dsn::gpid& val) { - this->child_pid = val; -} + xfer += iprot->readStructEnd(); -void update_child_group_partition_count_request::__set_ballot(const int64_t val) { - this->ballot = val; + return xfer; } -uint32_t update_child_group_partition_count_request::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t duplication_add_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_add_response"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->appid); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->dupid); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->target_address.read(iprot); - this->__isset.target_address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->new_partition_count); - this->__isset.new_partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_pid.read(iprot); - this->__isset.child_pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + if (this->__isset.hint) { + xfer += oprot->writeFieldBegin("hint", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->hint); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_add_response &a, duplication_add_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.appid, b.appid); + swap(a.dupid, b.dupid); + swap(a.hint, b.hint); + swap(a.__isset, b.__isset); +} + +duplication_add_response::duplication_add_response(const duplication_add_response &other526) +{ + err = other526.err; + appid = other526.appid; + dupid = other526.dupid; + hint = other526.hint; + __isset = other526.__isset; +} +duplication_add_response::duplication_add_response(duplication_add_response &&other527) +{ + err = std::move(other527.err); + appid = std::move(other527.appid); + dupid = std::move(other527.dupid); + hint = std::move(other527.hint); + __isset = std::move(other527.__isset); +} +duplication_add_response &duplication_add_response:: +operator=(const duplication_add_response &other528) +{ + err = other528.err; + appid = other528.appid; + dupid = other528.dupid; + hint = other528.hint; + __isset = other528.__isset; + return *this; +} +duplication_add_response &duplication_add_response::operator=(duplication_add_response &&other529) +{ + err = std::move(other529.err); + appid = std::move(other529.appid); + dupid = std::move(other529.dupid); + hint = std::move(other529.hint); + __isset = std::move(other529.__isset); + return *this; +} +void duplication_add_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_add_response("; + out << "err=" << to_string(err); + out << ", " + << "appid=" << to_string(appid); + out << ", " + << "dupid=" << to_string(dupid); + out << ", " + << "hint="; + (__isset.hint ? (out << to_string(hint)) : (out << "")); + out << ")"; +} + +duplication_modify_request::~duplication_modify_request() throw() {} + +void duplication_modify_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void duplication_modify_request::__set_dupid(const int32_t val) { this->dupid = val; } + +void duplication_modify_request::__set_status(const duplication_status::type val) +{ + this->status = val; + __isset.status = true; +} + +void duplication_modify_request::__set_fail_mode(const duplication_fail_mode::type val) +{ + this->fail_mode = val; + __isset.fail_mode = true; +} + +uint32_t duplication_modify_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->dupid); + this->__isset.dupid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast530; + xfer += iprot->readI32(ecast530); + this->status = (duplication_status::type)ecast530; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast531; + xfer += iprot->readI32(ecast531); + this->fail_mode = (duplication_fail_mode::type)ecast531; + this->__isset.fail_mode = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t update_child_group_partition_count_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("update_child_group_partition_count_request"); +uint32_t duplication_modify_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_modify_request"); - xfer += oprot->writeFieldBegin("target_address", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->target_address.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("new_partition_count", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->new_partition_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->dupid); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("child_pid", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->child_pid.write(oprot); - xfer += oprot->writeFieldEnd(); + if (this->__isset.status) { + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.fail_mode) { + xfer += oprot->writeFieldBegin("fail_mode", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->fail_mode); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_modify_request &a, duplication_modify_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.dupid, b.dupid); + swap(a.status, b.status); + swap(a.fail_mode, b.fail_mode); + swap(a.__isset, b.__isset); +} + +duplication_modify_request::duplication_modify_request(const duplication_modify_request &other532) +{ + app_name = other532.app_name; + dupid = other532.dupid; + status = other532.status; + fail_mode = other532.fail_mode; + __isset = other532.__isset; +} +duplication_modify_request::duplication_modify_request(duplication_modify_request &&other533) +{ + app_name = std::move(other533.app_name); + dupid = std::move(other533.dupid); + status = std::move(other533.status); + fail_mode = std::move(other533.fail_mode); + __isset = std::move(other533.__isset); +} +duplication_modify_request &duplication_modify_request:: +operator=(const duplication_modify_request &other534) +{ + app_name = other534.app_name; + dupid = other534.dupid; + status = other534.status; + fail_mode = other534.fail_mode; + __isset = other534.__isset; + return *this; +} +duplication_modify_request &duplication_modify_request:: +operator=(duplication_modify_request &&other535) +{ + app_name = std::move(other535.app_name); + dupid = std::move(other535.dupid); + status = std::move(other535.status); + fail_mode = std::move(other535.fail_mode); + __isset = std::move(other535.__isset); + return *this; +} +void duplication_modify_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_modify_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "dupid=" << to_string(dupid); + out << ", " + << "status="; + (__isset.status ? (out << to_string(status)) : (out << "")); + out << ", " + << "fail_mode="; + (__isset.fail_mode ? (out << to_string(fail_mode)) : (out << "")); + out << ")"; +} + +duplication_modify_response::~duplication_modify_response() throw() {} + +void duplication_modify_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void duplication_modify_response::__set_appid(const int32_t val) { this->appid = val; } + +uint32_t duplication_modify_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->appid); + this->__isset.appid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(update_child_group_partition_count_request &a, update_child_group_partition_count_request &b) { - using ::std::swap; - swap(a.target_address, b.target_address); - swap(a.new_partition_count, b.new_partition_count); - swap(a.child_pid, b.child_pid); - swap(a.ballot, b.ballot); - swap(a.__isset, b.__isset); -} +uint32_t duplication_modify_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_modify_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->appid); + xfer += oprot->writeFieldEnd(); -update_child_group_partition_count_request::update_child_group_partition_count_request(const update_child_group_partition_count_request& other654) { - target_address = other654.target_address; - new_partition_count = other654.new_partition_count; - child_pid = other654.child_pid; - ballot = other654.ballot; - __isset = other654.__isset; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -update_child_group_partition_count_request::update_child_group_partition_count_request( update_child_group_partition_count_request&& other655) { - target_address = std::move(other655.target_address); - new_partition_count = std::move(other655.new_partition_count); - child_pid = std::move(other655.child_pid); - ballot = std::move(other655.ballot); - __isset = std::move(other655.__isset); + +void swap(duplication_modify_response &a, duplication_modify_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.appid, b.appid); + swap(a.__isset, b.__isset); } -update_child_group_partition_count_request& update_child_group_partition_count_request::operator=(const update_child_group_partition_count_request& other656) { - target_address = other656.target_address; - new_partition_count = other656.new_partition_count; - child_pid = other656.child_pid; - ballot = other656.ballot; - __isset = other656.__isset; - return *this; + +duplication_modify_response::duplication_modify_response( + const duplication_modify_response &other536) +{ + err = other536.err; + appid = other536.appid; + __isset = other536.__isset; } -update_child_group_partition_count_request& update_child_group_partition_count_request::operator=(update_child_group_partition_count_request&& other657) { - target_address = std::move(other657.target_address); - new_partition_count = std::move(other657.new_partition_count); - child_pid = std::move(other657.child_pid); - ballot = std::move(other657.ballot); - __isset = std::move(other657.__isset); - return *this; +duplication_modify_response::duplication_modify_response(duplication_modify_response &&other537) +{ + err = std::move(other537.err); + appid = std::move(other537.appid); + __isset = std::move(other537.__isset); } -void update_child_group_partition_count_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "update_child_group_partition_count_request("; - out << "target_address=" << to_string(target_address); - out << ", " << "new_partition_count=" << to_string(new_partition_count); - out << ", " << "child_pid=" << to_string(child_pid); - out << ", " << "ballot=" << to_string(ballot); - out << ")"; +duplication_modify_response &duplication_modify_response:: +operator=(const duplication_modify_response &other538) +{ + err = other538.err; + appid = other538.appid; + __isset = other538.__isset; + return *this; } - - -update_child_group_partition_count_response::~update_child_group_partition_count_response() throw() { +duplication_modify_response &duplication_modify_response:: +operator=(duplication_modify_response &&other539) +{ + err = std::move(other539.err); + appid = std::move(other539.appid); + __isset = std::move(other539.__isset); + return *this; } - - -void update_child_group_partition_count_response::__set_err(const ::dsn::error_code& val) { - this->err = val; +void duplication_modify_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_modify_response("; + out << "err=" << to_string(err); + out << ", " + << "appid=" << to_string(appid); + out << ")"; } -uint32_t update_child_group_partition_count_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); +duplication_entry::~duplication_entry() throw() {} - return xfer; -} +void duplication_entry::__set_dupid(const int32_t val) { this->dupid = val; } -uint32_t update_child_group_partition_count_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("update_child_group_partition_count_response"); +void duplication_entry::__set_status(const duplication_status::type val) { this->status = val; } - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +void duplication_entry::__set_remote(const std::string &val) { this->remote = val; } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} +void duplication_entry::__set_create_ts(const int64_t val) { this->create_ts = val; } -void swap(update_child_group_partition_count_response &a, update_child_group_partition_count_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.__isset, b.__isset); +void duplication_entry::__set_progress(const std::map &val) +{ + this->progress = val; + __isset.progress = true; } -update_child_group_partition_count_response::update_child_group_partition_count_response(const update_child_group_partition_count_response& other658) { - err = other658.err; - __isset = other658.__isset; -} -update_child_group_partition_count_response::update_child_group_partition_count_response( update_child_group_partition_count_response&& other659) { - err = std::move(other659.err); - __isset = std::move(other659.__isset); -} -update_child_group_partition_count_response& update_child_group_partition_count_response::operator=(const update_child_group_partition_count_response& other660) { - err = other660.err; - __isset = other660.__isset; - return *this; -} -update_child_group_partition_count_response& update_child_group_partition_count_response::operator=(update_child_group_partition_count_response&& other661) { - err = std::move(other661.err); - __isset = std::move(other661.__isset); - return *this; -} -void update_child_group_partition_count_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "update_child_group_partition_count_response("; - out << "err=" << to_string(err); - out << ")"; +void duplication_entry::__set_fail_mode(const duplication_fail_mode::type val) +{ + this->fail_mode = val; + __isset.fail_mode = true; } +uint32_t duplication_entry::read(::apache::thrift::protocol::TProtocol *iprot) +{ -register_child_request::~register_child_request() throw() { -} + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + xfer += iprot->readStructBegin(fname); -void register_child_request::__set_app(const ::dsn::app_info& val) { - this->app = val; -} + using ::apache::thrift::protocol::TProtocolException; -void register_child_request::__set_parent_config(const ::dsn::partition_configuration& val) { - this->parent_config = val; -} + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->dupid); + this->__isset.dupid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast540; + xfer += iprot->readI32(ecast540); + this->status = (duplication_status::type)ecast540; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote); + this->__isset.remote = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->create_ts); + this->__isset.create_ts = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->progress.clear(); + uint32_t _size541; + ::apache::thrift::protocol::TType _ktype542; + ::apache::thrift::protocol::TType _vtype543; + xfer += iprot->readMapBegin(_ktype542, _vtype543, _size541); + uint32_t _i545; + for (_i545 = 0; _i545 < _size541; ++_i545) { + int32_t _key546; + xfer += iprot->readI32(_key546); + int64_t &_val547 = this->progress[_key546]; + xfer += iprot->readI64(_val547); + } + xfer += iprot->readMapEnd(); + } + this->__isset.progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast548; + xfer += iprot->readI32(ecast548); + this->fail_mode = (duplication_fail_mode::type)ecast548; + this->__isset.fail_mode = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void register_child_request::__set_child_config(const ::dsn::partition_configuration& val) { - this->child_config = val; -} + xfer += iprot->readStructEnd(); -void register_child_request::__set_primary_address(const ::dsn::rpc_address& val) { - this->primary_address = val; + return xfer; } -uint32_t register_child_request::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t duplication_entry::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_entry"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->dupid); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("remote", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->remote); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("create_ts", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->create_ts); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->app.read(iprot); - this->__isset.app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->parent_config.read(iprot); - this->__isset.parent_config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_config.read(iprot); - this->__isset.child_config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->primary_address.read(iprot); - this->__isset.primary_address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + if (this->__isset.progress) { + xfer += oprot->writeFieldBegin("progress", ::apache::thrift::protocol::T_MAP, 5); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, + ::apache::thrift::protocol::T_I64, + static_cast(this->progress.size())); + std::map::const_iterator _iter549; + for (_iter549 = this->progress.begin(); _iter549 != this->progress.end(); ++_iter549) { + xfer += oprot->writeI32(_iter549->first); + xfer += oprot->writeI64(_iter549->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.fail_mode) { + xfer += oprot->writeFieldBegin("fail_mode", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32((int32_t)this->fail_mode); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_entry &a, duplication_entry &b) +{ + using ::std::swap; + swap(a.dupid, b.dupid); + swap(a.status, b.status); + swap(a.remote, b.remote); + swap(a.create_ts, b.create_ts); + swap(a.progress, b.progress); + swap(a.fail_mode, b.fail_mode); + swap(a.__isset, b.__isset); +} + +duplication_entry::duplication_entry(const duplication_entry &other550) +{ + dupid = other550.dupid; + status = other550.status; + remote = other550.remote; + create_ts = other550.create_ts; + progress = other550.progress; + fail_mode = other550.fail_mode; + __isset = other550.__isset; +} +duplication_entry::duplication_entry(duplication_entry &&other551) +{ + dupid = std::move(other551.dupid); + status = std::move(other551.status); + remote = std::move(other551.remote); + create_ts = std::move(other551.create_ts); + progress = std::move(other551.progress); + fail_mode = std::move(other551.fail_mode); + __isset = std::move(other551.__isset); +} +duplication_entry &duplication_entry::operator=(const duplication_entry &other552) +{ + dupid = other552.dupid; + status = other552.status; + remote = other552.remote; + create_ts = other552.create_ts; + progress = other552.progress; + fail_mode = other552.fail_mode; + __isset = other552.__isset; + return *this; +} +duplication_entry &duplication_entry::operator=(duplication_entry &&other553) +{ + dupid = std::move(other553.dupid); + status = std::move(other553.status); + remote = std::move(other553.remote); + create_ts = std::move(other553.create_ts); + progress = std::move(other553.progress); + fail_mode = std::move(other553.fail_mode); + __isset = std::move(other553.__isset); + return *this; +} +void duplication_entry::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_entry("; + out << "dupid=" << to_string(dupid); + out << ", " + << "status=" << to_string(status); + out << ", " + << "remote=" << to_string(remote); + out << ", " + << "create_ts=" << to_string(create_ts); + out << ", " + << "progress="; + (__isset.progress ? (out << to_string(progress)) : (out << "")); + out << ", " + << "fail_mode="; + (__isset.fail_mode ? (out << to_string(fail_mode)) : (out << "")); + out << ")"; +} + +duplication_query_request::~duplication_query_request() throw() {} + +void duplication_query_request::__set_app_name(const std::string &val) { this->app_name = val; } + +uint32_t duplication_query_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t register_child_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("register_child_request"); - - xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->app.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("parent_config", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->parent_config.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t duplication_query_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_query_request"); - xfer += oprot->writeFieldBegin("child_config", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->child_config.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("primary_address", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->primary_address.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(register_child_request &a, register_child_request &b) { - using ::std::swap; - swap(a.app, b.app); - swap(a.parent_config, b.parent_config); - swap(a.child_config, b.child_config); - swap(a.primary_address, b.primary_address); - swap(a.__isset, b.__isset); +void swap(duplication_query_request &a, duplication_query_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.__isset, b.__isset); } -register_child_request::register_child_request(const register_child_request& other662) { - app = other662.app; - parent_config = other662.parent_config; - child_config = other662.child_config; - primary_address = other662.primary_address; - __isset = other662.__isset; +duplication_query_request::duplication_query_request(const duplication_query_request &other554) +{ + app_name = other554.app_name; + __isset = other554.__isset; } -register_child_request::register_child_request( register_child_request&& other663) { - app = std::move(other663.app); - parent_config = std::move(other663.parent_config); - child_config = std::move(other663.child_config); - primary_address = std::move(other663.primary_address); - __isset = std::move(other663.__isset); +duplication_query_request::duplication_query_request(duplication_query_request &&other555) +{ + app_name = std::move(other555.app_name); + __isset = std::move(other555.__isset); } -register_child_request& register_child_request::operator=(const register_child_request& other664) { - app = other664.app; - parent_config = other664.parent_config; - child_config = other664.child_config; - primary_address = other664.primary_address; - __isset = other664.__isset; - return *this; +duplication_query_request &duplication_query_request:: +operator=(const duplication_query_request &other556) +{ + app_name = other556.app_name; + __isset = other556.__isset; + return *this; } -register_child_request& register_child_request::operator=(register_child_request&& other665) { - app = std::move(other665.app); - parent_config = std::move(other665.parent_config); - child_config = std::move(other665.child_config); - primary_address = std::move(other665.primary_address); - __isset = std::move(other665.__isset); - return *this; +duplication_query_request &duplication_query_request:: +operator=(duplication_query_request &&other557) +{ + app_name = std::move(other557.app_name); + __isset = std::move(other557.__isset); + return *this; } -void register_child_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "register_child_request("; - out << "app=" << to_string(app); - out << ", " << "parent_config=" << to_string(parent_config); - out << ", " << "child_config=" << to_string(child_config); - out << ", " << "primary_address=" << to_string(primary_address); - out << ")"; +void duplication_query_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_query_request("; + out << "app_name=" << to_string(app_name); + out << ")"; } +duplication_query_response::~duplication_query_response() throw() {} -register_child_response::~register_child_response() throw() { -} +void duplication_query_response::__set_err(const ::dsn::error_code &val) { this->err = val; } +void duplication_query_response::__set_appid(const int32_t val) { this->appid = val; } -void register_child_response::__set_err(const ::dsn::error_code& val) { - this->err = val; +void duplication_query_response::__set_entry_list(const std::vector &val) +{ + this->entry_list = val; } -void register_child_response::__set_app(const ::dsn::app_info& val) { - this->app = val; -} +uint32_t duplication_query_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ -void register_child_response::__set_parent_config(const ::dsn::partition_configuration& val) { - this->parent_config = val; -} + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; -void register_child_response::__set_child_config(const ::dsn::partition_configuration& val) { - this->child_config = val; -} + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->appid); + this->__isset.appid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->entry_list.clear(); + uint32_t _size558; + ::apache::thrift::protocol::TType _etype561; + xfer += iprot->readListBegin(_etype561, _size558); + this->entry_list.resize(_size558); + uint32_t _i562; + for (_i562 = 0; _i562 < _size558; ++_i562) { + xfer += this->entry_list[_i562].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.entry_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -uint32_t register_child_response::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += iprot->readStructEnd(); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + return xfer; +} - xfer += iprot->readStructBegin(fname); +uint32_t duplication_query_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_query_response"); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("appid", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->appid); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("entry_list", ::apache::thrift::protocol::T_LIST, 4); { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->app.read(iprot); - this->__isset.app = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->parent_config.read(iprot); - this->__isset.parent_config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->child_config.read(iprot); - this->__isset.child_config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->entry_list.size())); + std::vector::const_iterator _iter563; + for (_iter563 = this->entry_list.begin(); _iter563 != this->entry_list.end(); ++_iter563) { + xfer += (*_iter563).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_query_response &a, duplication_query_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.appid, b.appid); + swap(a.entry_list, b.entry_list); + swap(a.__isset, b.__isset); +} + +duplication_query_response::duplication_query_response(const duplication_query_response &other564) +{ + err = other564.err; + appid = other564.appid; + entry_list = other564.entry_list; + __isset = other564.__isset; +} +duplication_query_response::duplication_query_response(duplication_query_response &&other565) +{ + err = std::move(other565.err); + appid = std::move(other565.appid); + entry_list = std::move(other565.entry_list); + __isset = std::move(other565.__isset); +} +duplication_query_response &duplication_query_response:: +operator=(const duplication_query_response &other566) +{ + err = other566.err; + appid = other566.appid; + entry_list = other566.entry_list; + __isset = other566.__isset; + return *this; +} +duplication_query_response &duplication_query_response:: +operator=(duplication_query_response &&other567) +{ + err = std::move(other567.err); + appid = std::move(other567.appid); + entry_list = std::move(other567.entry_list); + __isset = std::move(other567.__isset); + return *this; +} +void duplication_query_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_query_response("; + out << "err=" << to_string(err); + out << ", " + << "appid=" << to_string(appid); + out << ", " + << "entry_list=" << to_string(entry_list); + out << ")"; +} + +duplication_confirm_entry::~duplication_confirm_entry() throw() {} + +void duplication_confirm_entry::__set_dupid(const int32_t val) { this->dupid = val; } + +void duplication_confirm_entry::__set_confirmed_decree(const int64_t val) +{ + this->confirmed_decree = val; +} + +uint32_t duplication_confirm_entry::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->dupid); + this->__isset.dupid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->confirmed_decree); + this->__isset.confirmed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t register_child_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("register_child_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); +uint32_t duplication_confirm_entry::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_confirm_entry"); - xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->app.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("dupid", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->dupid); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("parent_config", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->parent_config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("confirmed_decree", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->confirmed_decree); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("child_config", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->child_config.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_confirm_entry &a, duplication_confirm_entry &b) +{ + using ::std::swap; + swap(a.dupid, b.dupid); + swap(a.confirmed_decree, b.confirmed_decree); + swap(a.__isset, b.__isset); +} + +duplication_confirm_entry::duplication_confirm_entry(const duplication_confirm_entry &other568) +{ + dupid = other568.dupid; + confirmed_decree = other568.confirmed_decree; + __isset = other568.__isset; +} +duplication_confirm_entry::duplication_confirm_entry(duplication_confirm_entry &&other569) +{ + dupid = std::move(other569.dupid); + confirmed_decree = std::move(other569.confirmed_decree); + __isset = std::move(other569.__isset); +} +duplication_confirm_entry &duplication_confirm_entry:: +operator=(const duplication_confirm_entry &other570) +{ + dupid = other570.dupid; + confirmed_decree = other570.confirmed_decree; + __isset = other570.__isset; + return *this; +} +duplication_confirm_entry &duplication_confirm_entry:: +operator=(duplication_confirm_entry &&other571) +{ + dupid = std::move(other571.dupid); + confirmed_decree = std::move(other571.confirmed_decree); + __isset = std::move(other571.__isset); + return *this; +} +void duplication_confirm_entry::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_confirm_entry("; + out << "dupid=" << to_string(dupid); + out << ", " + << "confirmed_decree=" << to_string(confirmed_decree); + out << ")"; +} + +duplication_sync_request::~duplication_sync_request() throw() {} + +void duplication_sync_request::__set_node(const ::dsn::rpc_address &val) { this->node = val; } + +void duplication_sync_request::__set_confirm_list( + const std::map<::dsn::gpid, std::vector> &val) +{ + this->confirm_list = val; +} + +uint32_t duplication_sync_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->confirm_list.clear(); + uint32_t _size572; + ::apache::thrift::protocol::TType _ktype573; + ::apache::thrift::protocol::TType _vtype574; + xfer += iprot->readMapBegin(_ktype573, _vtype574, _size572); + uint32_t _i576; + for (_i576 = 0; _i576 < _size572; ++_i576) { + ::dsn::gpid _key577; + xfer += _key577.read(iprot); + std::vector &_val578 = + this->confirm_list[_key577]; + { + _val578.clear(); + uint32_t _size579; + ::apache::thrift::protocol::TType _etype582; + xfer += iprot->readListBegin(_etype582, _size579); + _val578.resize(_size579); + uint32_t _i583; + for (_i583 = 0; _i583 < _size579; ++_i583) { + xfer += _val578[_i583].read(iprot); + } + xfer += iprot->readListEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.confirm_list = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += iprot->readStructEnd(); -void swap(register_child_response &a, register_child_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.app, b.app); - swap(a.parent_config, b.parent_config); - swap(a.child_config, b.child_config); - swap(a.__isset, b.__isset); + return xfer; } -register_child_response::register_child_response(const register_child_response& other666) { - err = other666.err; - app = other666.app; - parent_config = other666.parent_config; - child_config = other666.child_config; - __isset = other666.__isset; -} -register_child_response::register_child_response( register_child_response&& other667) { - err = std::move(other667.err); - app = std::move(other667.app); - parent_config = std::move(other667.parent_config); - child_config = std::move(other667.child_config); - __isset = std::move(other667.__isset); -} -register_child_response& register_child_response::operator=(const register_child_response& other668) { - err = other668.err; - app = other668.app; - parent_config = other668.parent_config; - child_config = other668.child_config; - __isset = other668.__isset; - return *this; -} -register_child_response& register_child_response::operator=(register_child_response&& other669) { - err = std::move(other669.err); - app = std::move(other669.app); - parent_config = std::move(other669.parent_config); - child_config = std::move(other669.child_config); - __isset = std::move(other669.__isset); - return *this; -} -void register_child_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "register_child_response("; - out << "err=" << to_string(err); - out << ", " << "app=" << to_string(app); - out << ", " << "parent_config=" << to_string(parent_config); - out << ", " << "child_config=" << to_string(child_config); - out << ")"; -} +uint32_t duplication_sync_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_sync_request"); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); -bulk_load_metadata::~bulk_load_metadata() throw() { -} + xfer += oprot->writeFieldBegin("confirm_list", ::apache::thrift::protocol::T_MAP, 2); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, + ::apache::thrift::protocol::T_LIST, + static_cast(this->confirm_list.size())); + std::map<::dsn::gpid, std::vector>::const_iterator _iter584; + for (_iter584 = this->confirm_list.begin(); _iter584 != this->confirm_list.end(); + ++_iter584) { + xfer += _iter584->first.write(oprot); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(_iter584->second.size())); + std::vector::const_iterator _iter585; + for (_iter585 = _iter584->second.begin(); _iter585 != _iter584->second.end(); + ++_iter585) { + xfer += (*_iter585).write(oprot); + } + xfer += oprot->writeListEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_sync_request &a, duplication_sync_request &b) +{ + using ::std::swap; + swap(a.node, b.node); + swap(a.confirm_list, b.confirm_list); + swap(a.__isset, b.__isset); +} + +duplication_sync_request::duplication_sync_request(const duplication_sync_request &other586) +{ + node = other586.node; + confirm_list = other586.confirm_list; + __isset = other586.__isset; +} +duplication_sync_request::duplication_sync_request(duplication_sync_request &&other587) +{ + node = std::move(other587.node); + confirm_list = std::move(other587.confirm_list); + __isset = std::move(other587.__isset); +} +duplication_sync_request &duplication_sync_request:: +operator=(const duplication_sync_request &other588) +{ + node = other588.node; + confirm_list = other588.confirm_list; + __isset = other588.__isset; + return *this; +} +duplication_sync_request &duplication_sync_request::operator=(duplication_sync_request &&other589) +{ + node = std::move(other589.node); + confirm_list = std::move(other589.confirm_list); + __isset = std::move(other589.__isset); + return *this; +} +void duplication_sync_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_sync_request("; + out << "node=" << to_string(node); + out << ", " + << "confirm_list=" << to_string(confirm_list); + out << ")"; +} + +duplication_sync_response::~duplication_sync_response() throw() {} + +void duplication_sync_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void duplication_sync_response::__set_dup_map( + const std::map> &val) +{ + this->dup_map = val; +} + +uint32_t duplication_sync_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->dup_map.clear(); + uint32_t _size590; + ::apache::thrift::protocol::TType _ktype591; + ::apache::thrift::protocol::TType _vtype592; + xfer += iprot->readMapBegin(_ktype591, _vtype592, _size590); + uint32_t _i594; + for (_i594 = 0; _i594 < _size590; ++_i594) { + int32_t _key595; + xfer += iprot->readI32(_key595); + std::map &_val596 = this->dup_map[_key595]; + { + _val596.clear(); + uint32_t _size597; + ::apache::thrift::protocol::TType _ktype598; + ::apache::thrift::protocol::TType _vtype599; + xfer += iprot->readMapBegin(_ktype598, _vtype599, _size597); + uint32_t _i601; + for (_i601 = 0; _i601 < _size597; ++_i601) { + int32_t _key602; + xfer += iprot->readI32(_key602); + duplication_entry &_val603 = _val596[_key602]; + xfer += _val603.read(iprot); + } + xfer += iprot->readMapEnd(); + } + } + xfer += iprot->readMapEnd(); + } + this->__isset.dup_map = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void bulk_load_metadata::__set_files(const std::vector & val) { - this->files = val; -} + xfer += iprot->readStructEnd(); -void bulk_load_metadata::__set_file_total_size(const int64_t val) { - this->file_total_size = val; + return xfer; } -uint32_t bulk_load_metadata::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; +uint32_t duplication_sync_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("duplication_sync_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("dup_map", ::apache::thrift::protocol::T_MAP, 2); { - case 1: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->files.clear(); - uint32_t _size670; - ::apache::thrift::protocol::TType _etype673; - xfer += iprot->readListBegin(_etype673, _size670); - this->files.resize(_size670); - uint32_t _i674; - for (_i674 = 0; _i674 < _size670; ++_i674) + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, + ::apache::thrift::protocol::T_MAP, + static_cast(this->dup_map.size())); + std::map>::const_iterator _iter604; + for (_iter604 = this->dup_map.begin(); _iter604 != this->dup_map.end(); ++_iter604) { + xfer += oprot->writeI32(_iter604->first); { - xfer += this->files[_i674].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.files = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->file_total_size); - this->__isset.file_total_size = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, + ::apache::thrift::protocol::T_STRUCT, + static_cast(_iter604->second.size())); + std::map::const_iterator _iter605; + for (_iter605 = _iter604->second.begin(); _iter605 != _iter604->second.end(); + ++_iter605) { + xfer += oprot->writeI32(_iter605->first); + xfer += _iter605->second.write(oprot); + } + xfer += oprot->writeMapEnd(); + } + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(duplication_sync_response &a, duplication_sync_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.dup_map, b.dup_map); + swap(a.__isset, b.__isset); +} + +duplication_sync_response::duplication_sync_response(const duplication_sync_response &other606) +{ + err = other606.err; + dup_map = other606.dup_map; + __isset = other606.__isset; +} +duplication_sync_response::duplication_sync_response(duplication_sync_response &&other607) +{ + err = std::move(other607.err); + dup_map = std::move(other607.dup_map); + __isset = std::move(other607.__isset); +} +duplication_sync_response &duplication_sync_response:: +operator=(const duplication_sync_response &other608) +{ + err = other608.err; + dup_map = other608.dup_map; + __isset = other608.__isset; + return *this; +} +duplication_sync_response &duplication_sync_response:: +operator=(duplication_sync_response &&other609) +{ + err = std::move(other609.err); + dup_map = std::move(other609.dup_map); + __isset = std::move(other609.__isset); + return *this; +} +void duplication_sync_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "duplication_sync_response("; + out << "err=" << to_string(err); + out << ", " + << "dup_map=" << to_string(dup_map); + out << ")"; +} + +ddd_diagnose_request::~ddd_diagnose_request() throw() {} + +void ddd_diagnose_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +uint32_t ddd_diagnose_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t bulk_load_metadata::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("bulk_load_metadata"); - - xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 1); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->files.size())); - std::vector ::const_iterator _iter675; - for (_iter675 = this->files.begin(); _iter675 != this->files.end(); ++_iter675) - { - xfer += (*_iter675).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); +uint32_t ddd_diagnose_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ddd_diagnose_request"); - xfer += oprot->writeFieldBegin("file_total_size", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->file_total_size); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(bulk_load_metadata &a, bulk_load_metadata &b) { - using ::std::swap; - swap(a.files, b.files); - swap(a.file_total_size, b.file_total_size); - swap(a.__isset, b.__isset); +void swap(ddd_diagnose_request &a, ddd_diagnose_request &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.__isset, b.__isset); } -bulk_load_metadata::bulk_load_metadata(const bulk_load_metadata& other676) { - files = other676.files; - file_total_size = other676.file_total_size; - __isset = other676.__isset; +ddd_diagnose_request::ddd_diagnose_request(const ddd_diagnose_request &other610) +{ + pid = other610.pid; + __isset = other610.__isset; } -bulk_load_metadata::bulk_load_metadata( bulk_load_metadata&& other677) { - files = std::move(other677.files); - file_total_size = std::move(other677.file_total_size); - __isset = std::move(other677.__isset); +ddd_diagnose_request::ddd_diagnose_request(ddd_diagnose_request &&other611) +{ + pid = std::move(other611.pid); + __isset = std::move(other611.__isset); } -bulk_load_metadata& bulk_load_metadata::operator=(const bulk_load_metadata& other678) { - files = other678.files; - file_total_size = other678.file_total_size; - __isset = other678.__isset; - return *this; +ddd_diagnose_request &ddd_diagnose_request::operator=(const ddd_diagnose_request &other612) +{ + pid = other612.pid; + __isset = other612.__isset; + return *this; } -bulk_load_metadata& bulk_load_metadata::operator=(bulk_load_metadata&& other679) { - files = std::move(other679.files); - file_total_size = std::move(other679.file_total_size); - __isset = std::move(other679.__isset); - return *this; +ddd_diagnose_request &ddd_diagnose_request::operator=(ddd_diagnose_request &&other613) +{ + pid = std::move(other613.pid); + __isset = std::move(other613.__isset); + return *this; } -void bulk_load_metadata::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "bulk_load_metadata("; - out << "files=" << to_string(files); - out << ", " << "file_total_size=" << to_string(file_total_size); - out << ")"; +void ddd_diagnose_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "ddd_diagnose_request("; + out << "pid=" << to_string(pid); + out << ")"; } +ddd_node_info::~ddd_node_info() throw() {} -start_bulk_load_request::~start_bulk_load_request() throw() { -} +void ddd_node_info::__set_node(const ::dsn::rpc_address &val) { this->node = val; } +void ddd_node_info::__set_drop_time_ms(const int64_t val) { this->drop_time_ms = val; } -void start_bulk_load_request::__set_app_name(const std::string& val) { - this->app_name = val; -} +void ddd_node_info::__set_is_alive(const bool val) { this->is_alive = val; } -void start_bulk_load_request::__set_cluster_name(const std::string& val) { - this->cluster_name = val; -} +void ddd_node_info::__set_is_collected(const bool val) { this->is_collected = val; } -void start_bulk_load_request::__set_file_provider_type(const std::string& val) { - this->file_provider_type = val; -} +void ddd_node_info::__set_ballot(const int64_t val) { this->ballot = val; } -void start_bulk_load_request::__set_remote_root_path(const std::string& val) { - this->remote_root_path = val; +void ddd_node_info::__set_last_committed_decree(const int64_t val) +{ + this->last_committed_decree = val; } -uint32_t start_bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { +void ddd_node_info::__set_last_prepared_decree(const int64_t val) +{ + this->last_prepared_decree = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t ddd_node_info::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cluster_name); - this->__isset.cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->file_provider_type); - this->__isset.file_provider_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_root_path); - this->__isset.remote_root_path = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->node.read(iprot); + this->__isset.node = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->drop_time_ms); + this->__isset.drop_time_ms = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_alive); + this->__isset.is_alive = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_collected); + this->__isset.is_collected = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_prepared_decree); + this->__isset.last_prepared_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t start_bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("start_bulk_load_request"); +uint32_t ddd_node_info::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ddd_node_info"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->node.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->cluster_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("drop_time_ms", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->drop_time_ms); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("file_provider_type", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->file_provider_type); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("is_alive", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->is_alive); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->remote_root_path); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("is_collected", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->is_collected); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); -void swap(start_bulk_load_request &a, start_bulk_load_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.cluster_name, b.cluster_name); - swap(a.file_provider_type, b.file_provider_type); - swap(a.remote_root_path, b.remote_root_path); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); -start_bulk_load_request::start_bulk_load_request(const start_bulk_load_request& other680) { - app_name = other680.app_name; - cluster_name = other680.cluster_name; - file_provider_type = other680.file_provider_type; - remote_root_path = other680.remote_root_path; - __isset = other680.__isset; -} -start_bulk_load_request::start_bulk_load_request( start_bulk_load_request&& other681) { - app_name = std::move(other681.app_name); - cluster_name = std::move(other681.cluster_name); - file_provider_type = std::move(other681.file_provider_type); - remote_root_path = std::move(other681.remote_root_path); - __isset = std::move(other681.__isset); -} -start_bulk_load_request& start_bulk_load_request::operator=(const start_bulk_load_request& other682) { - app_name = other682.app_name; - cluster_name = other682.cluster_name; - file_provider_type = other682.file_provider_type; - remote_root_path = other682.remote_root_path; - __isset = other682.__isset; - return *this; -} -start_bulk_load_request& start_bulk_load_request::operator=(start_bulk_load_request&& other683) { - app_name = std::move(other683.app_name); - cluster_name = std::move(other683.cluster_name); - file_provider_type = std::move(other683.file_provider_type); - remote_root_path = std::move(other683.remote_root_path); - __isset = std::move(other683.__isset); - return *this; -} -void start_bulk_load_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "start_bulk_load_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "cluster_name=" << to_string(cluster_name); - out << ", " << "file_provider_type=" << to_string(file_provider_type); - out << ", " << "remote_root_path=" << to_string(remote_root_path); - out << ")"; -} + xfer += oprot->writeFieldBegin("last_prepared_decree", ::apache::thrift::protocol::T_I64, 7); + xfer += oprot->writeI64(this->last_prepared_decree); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ddd_node_info &a, ddd_node_info &b) +{ + using ::std::swap; + swap(a.node, b.node); + swap(a.drop_time_ms, b.drop_time_ms); + swap(a.is_alive, b.is_alive); + swap(a.is_collected, b.is_collected); + swap(a.ballot, b.ballot); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.last_prepared_decree, b.last_prepared_decree); + swap(a.__isset, b.__isset); +} + +ddd_node_info::ddd_node_info(const ddd_node_info &other614) +{ + node = other614.node; + drop_time_ms = other614.drop_time_ms; + is_alive = other614.is_alive; + is_collected = other614.is_collected; + ballot = other614.ballot; + last_committed_decree = other614.last_committed_decree; + last_prepared_decree = other614.last_prepared_decree; + __isset = other614.__isset; +} +ddd_node_info::ddd_node_info(ddd_node_info &&other615) +{ + node = std::move(other615.node); + drop_time_ms = std::move(other615.drop_time_ms); + is_alive = std::move(other615.is_alive); + is_collected = std::move(other615.is_collected); + ballot = std::move(other615.ballot); + last_committed_decree = std::move(other615.last_committed_decree); + last_prepared_decree = std::move(other615.last_prepared_decree); + __isset = std::move(other615.__isset); +} +ddd_node_info &ddd_node_info::operator=(const ddd_node_info &other616) +{ + node = other616.node; + drop_time_ms = other616.drop_time_ms; + is_alive = other616.is_alive; + is_collected = other616.is_collected; + ballot = other616.ballot; + last_committed_decree = other616.last_committed_decree; + last_prepared_decree = other616.last_prepared_decree; + __isset = other616.__isset; + return *this; +} +ddd_node_info &ddd_node_info::operator=(ddd_node_info &&other617) +{ + node = std::move(other617.node); + drop_time_ms = std::move(other617.drop_time_ms); + is_alive = std::move(other617.is_alive); + is_collected = std::move(other617.is_collected); + ballot = std::move(other617.ballot); + last_committed_decree = std::move(other617.last_committed_decree); + last_prepared_decree = std::move(other617.last_prepared_decree); + __isset = std::move(other617.__isset); + return *this; +} +void ddd_node_info::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "ddd_node_info("; + out << "node=" << to_string(node); + out << ", " + << "drop_time_ms=" << to_string(drop_time_ms); + out << ", " + << "is_alive=" << to_string(is_alive); + out << ", " + << "is_collected=" << to_string(is_collected); + out << ", " + << "ballot=" << to_string(ballot); + out << ", " + << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " + << "last_prepared_decree=" << to_string(last_prepared_decree); + out << ")"; +} + +ddd_partition_info::~ddd_partition_info() throw() {} + +void ddd_partition_info::__set_config(const ::dsn::partition_configuration &val) +{ + this->config = val; +} + +void ddd_partition_info::__set_dropped(const std::vector &val) +{ + this->dropped = val; +} + +void ddd_partition_info::__set_reason(const std::string &val) { this->reason = val; } + +uint32_t ddd_partition_info::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->dropped.clear(); + uint32_t _size618; + ::apache::thrift::protocol::TType _etype621; + xfer += iprot->readListBegin(_etype621, _size618); + this->dropped.resize(_size618); + uint32_t _i622; + for (_i622 = 0; _i622 < _size618; ++_i622) { + xfer += this->dropped[_i622].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.dropped = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->reason); + this->__isset.reason = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); -start_bulk_load_response::~start_bulk_load_response() throw() { + return xfer; } +uint32_t ddd_partition_info::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ddd_partition_info"); -void start_bulk_load_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); -void start_bulk_load_response::__set_hint_msg(const std::string& val) { - this->hint_msg = val; -} + xfer += oprot->writeFieldBegin("dropped", ::apache::thrift::protocol::T_LIST, 2); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->dropped.size())); + std::vector::const_iterator _iter623; + for (_iter623 = this->dropped.begin(); _iter623 != this->dropped.end(); ++_iter623) { + xfer += (*_iter623).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); -uint32_t start_bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldBegin("reason", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->reason); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ddd_partition_info &a, ddd_partition_info &b) +{ + using ::std::swap; + swap(a.config, b.config); + swap(a.dropped, b.dropped); + swap(a.reason, b.reason); + swap(a.__isset, b.__isset); +} + +ddd_partition_info::ddd_partition_info(const ddd_partition_info &other624) +{ + config = other624.config; + dropped = other624.dropped; + reason = other624.reason; + __isset = other624.__isset; +} +ddd_partition_info::ddd_partition_info(ddd_partition_info &&other625) +{ + config = std::move(other625.config); + dropped = std::move(other625.dropped); + reason = std::move(other625.reason); + __isset = std::move(other625.__isset); +} +ddd_partition_info &ddd_partition_info::operator=(const ddd_partition_info &other626) +{ + config = other626.config; + dropped = other626.dropped; + reason = other626.reason; + __isset = other626.__isset; + return *this; +} +ddd_partition_info &ddd_partition_info::operator=(ddd_partition_info &&other627) +{ + config = std::move(other627.config); + dropped = std::move(other627.dropped); + reason = std::move(other627.reason); + __isset = std::move(other627.__isset); + return *this; +} +void ddd_partition_info::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "ddd_partition_info("; + out << "config=" << to_string(config); + out << ", " + << "dropped=" << to_string(dropped); + out << ", " + << "reason=" << to_string(reason); + out << ")"; +} + +ddd_diagnose_response::~ddd_diagnose_response() throw() {} + +void ddd_diagnose_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void ddd_diagnose_response::__set_partitions(const std::vector &val) +{ + this->partitions = val; +} + +uint32_t ddd_diagnose_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions.clear(); + uint32_t _size628; + ::apache::thrift::protocol::TType _etype631; + xfer += iprot->readListBegin(_etype631, _size628); + this->partitions.resize(_size628); + uint32_t _i632; + for (_i632 = 0; _i632 < _size628; ++_i632) { + xfer += this->partitions[_i632].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructEnd(); - xfer += iprot->readStructBegin(fname); + return xfer; +} - using ::apache::thrift::protocol::TProtocolException; +uint32_t ddd_diagnose_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ddd_diagnose_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 2); { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->partitions.size())); + std::vector::const_iterator _iter633; + for (_iter633 = this->partitions.begin(); _iter633 != this->partitions.end(); ++_iter633) { + xfer += (*_iter633).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ddd_diagnose_response &a, ddd_diagnose_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.partitions, b.partitions); + swap(a.__isset, b.__isset); +} + +ddd_diagnose_response::ddd_diagnose_response(const ddd_diagnose_response &other634) +{ + err = other634.err; + partitions = other634.partitions; + __isset = other634.__isset; +} +ddd_diagnose_response::ddd_diagnose_response(ddd_diagnose_response &&other635) +{ + err = std::move(other635.err); + partitions = std::move(other635.partitions); + __isset = std::move(other635.__isset); +} +ddd_diagnose_response &ddd_diagnose_response::operator=(const ddd_diagnose_response &other636) +{ + err = other636.err; + partitions = other636.partitions; + __isset = other636.__isset; + return *this; +} +ddd_diagnose_response &ddd_diagnose_response::operator=(ddd_diagnose_response &&other637) +{ + err = std::move(other637.err); + partitions = std::move(other637.partitions); + __isset = std::move(other637.__isset); + return *this; +} +void ddd_diagnose_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "ddd_diagnose_response("; + out << "err=" << to_string(err); + out << ", " + << "partitions=" << to_string(partitions); + out << ")"; +} + +start_partition_split_request::~start_partition_split_request() throw() {} + +void start_partition_split_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void start_partition_split_request::__set_new_partition_count(const int32_t val) +{ + this->new_partition_count = val; +} + +uint32_t start_partition_split_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->new_partition_count); + this->__isset.new_partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t start_bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("start_bulk_load_response"); +uint32_t start_partition_split_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("start_partition_split_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_msg); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("new_partition_count", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->new_partition_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(start_partition_split_request &a, start_partition_split_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.new_partition_count, b.new_partition_count); + swap(a.__isset, b.__isset); +} + +start_partition_split_request::start_partition_split_request( + const start_partition_split_request &other638) +{ + app_name = other638.app_name; + new_partition_count = other638.new_partition_count; + __isset = other638.__isset; +} +start_partition_split_request::start_partition_split_request( + start_partition_split_request &&other639) +{ + app_name = std::move(other639.app_name); + new_partition_count = std::move(other639.new_partition_count); + __isset = std::move(other639.__isset); +} +start_partition_split_request &start_partition_split_request:: +operator=(const start_partition_split_request &other640) +{ + app_name = other640.app_name; + new_partition_count = other640.new_partition_count; + __isset = other640.__isset; + return *this; +} +start_partition_split_request &start_partition_split_request:: +operator=(start_partition_split_request &&other641) +{ + app_name = std::move(other641.app_name); + new_partition_count = std::move(other641.new_partition_count); + __isset = std::move(other641.__isset); + return *this; +} +void start_partition_split_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "start_partition_split_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "new_partition_count=" << to_string(new_partition_count); + out << ")"; +} + +start_partition_split_response::~start_partition_split_response() throw() {} + +void start_partition_split_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void start_partition_split_response::__set_hint_msg(const std::string &val) +{ + this->hint_msg = val; +} + +uint32_t start_partition_split_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void swap(start_bulk_load_response &a, start_bulk_load_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); -} + xfer += iprot->readStructEnd(); -start_bulk_load_response::start_bulk_load_response(const start_bulk_load_response& other684) { - err = other684.err; - hint_msg = other684.hint_msg; - __isset = other684.__isset; -} -start_bulk_load_response::start_bulk_load_response( start_bulk_load_response&& other685) { - err = std::move(other685.err); - hint_msg = std::move(other685.hint_msg); - __isset = std::move(other685.__isset); -} -start_bulk_load_response& start_bulk_load_response::operator=(const start_bulk_load_response& other686) { - err = other686.err; - hint_msg = other686.hint_msg; - __isset = other686.__isset; - return *this; -} -start_bulk_load_response& start_bulk_load_response::operator=(start_bulk_load_response&& other687) { - err = std::move(other687.err); - hint_msg = std::move(other687.hint_msg); - __isset = std::move(other687.__isset); - return *this; -} -void start_bulk_load_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "start_bulk_load_response("; - out << "err=" << to_string(err); - out << ", " << "hint_msg=" << to_string(hint_msg); - out << ")"; + return xfer; } +uint32_t start_partition_split_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("start_partition_split_response"); -partition_bulk_load_state::~partition_bulk_load_state() throw() { -} + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldEnd(); -void partition_bulk_load_state::__set_download_progress(const int32_t val) { - this->download_progress = val; -__isset.download_progress = true; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(start_partition_split_response &a, start_partition_split_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} + +start_partition_split_response::start_partition_split_response( + const start_partition_split_response &other642) +{ + err = other642.err; + hint_msg = other642.hint_msg; + __isset = other642.__isset; +} +start_partition_split_response::start_partition_split_response( + start_partition_split_response &&other643) +{ + err = std::move(other643.err); + hint_msg = std::move(other643.hint_msg); + __isset = std::move(other643.__isset); +} +start_partition_split_response &start_partition_split_response:: +operator=(const start_partition_split_response &other644) +{ + err = other644.err; + hint_msg = other644.hint_msg; + __isset = other644.__isset; + return *this; +} +start_partition_split_response &start_partition_split_response:: +operator=(start_partition_split_response &&other645) +{ + err = std::move(other645.err); + hint_msg = std::move(other645.hint_msg); + __isset = std::move(other645.__isset); + return *this; +} +void start_partition_split_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "start_partition_split_response("; + out << "err=" << to_string(err); + out << ", " + << "hint_msg=" << to_string(hint_msg); + out << ")"; +} + +notify_catch_up_request::~notify_catch_up_request() throw() {} + +void notify_catch_up_request::__set_parent_gpid(const ::dsn::gpid &val) { this->parent_gpid = val; } + +void notify_catch_up_request::__set_child_gpid(const ::dsn::gpid &val) { this->child_gpid = val; } + +void notify_catch_up_request::__set_child_ballot(const int64_t val) { this->child_ballot = val; } + +void notify_catch_up_request::__set_child_address(const ::dsn::rpc_address &val) +{ + this->child_address = val; +} + +uint32_t notify_catch_up_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->parent_gpid.read(iprot); + this->__isset.parent_gpid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_gpid.read(iprot); + this->__isset.child_gpid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->child_ballot); + this->__isset.child_ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_address.read(iprot); + this->__isset.child_address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void partition_bulk_load_state::__set_download_status(const ::dsn::error_code& val) { - this->download_status = val; -__isset.download_status = true; -} + xfer += iprot->readStructEnd(); -void partition_bulk_load_state::__set_ingest_status(const ingestion_status::type val) { - this->ingest_status = val; -__isset.ingest_status = true; + return xfer; } -void partition_bulk_load_state::__set_is_cleaned_up(const bool val) { - this->is_cleaned_up = val; -__isset.is_cleaned_up = true; -} +uint32_t notify_catch_up_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("notify_catch_up_request"); -void partition_bulk_load_state::__set_is_paused(const bool val) { - this->is_paused = val; -__isset.is_paused = true; -} + xfer += oprot->writeFieldBegin("parent_gpid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->parent_gpid.write(oprot); + xfer += oprot->writeFieldEnd(); -uint32_t partition_bulk_load_state::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldBegin("child_gpid", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->child_gpid.write(oprot); + xfer += oprot->writeFieldEnd(); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("child_ballot", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->child_ballot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("child_address", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->child_address.write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(notify_catch_up_request &a, notify_catch_up_request &b) +{ + using ::std::swap; + swap(a.parent_gpid, b.parent_gpid); + swap(a.child_gpid, b.child_gpid); + swap(a.child_ballot, b.child_ballot); + swap(a.child_address, b.child_address); + swap(a.__isset, b.__isset); +} + +notify_catch_up_request::notify_catch_up_request(const notify_catch_up_request &other646) +{ + parent_gpid = other646.parent_gpid; + child_gpid = other646.child_gpid; + child_ballot = other646.child_ballot; + child_address = other646.child_address; + __isset = other646.__isset; +} +notify_catch_up_request::notify_catch_up_request(notify_catch_up_request &&other647) +{ + parent_gpid = std::move(other647.parent_gpid); + child_gpid = std::move(other647.child_gpid); + child_ballot = std::move(other647.child_ballot); + child_address = std::move(other647.child_address); + __isset = std::move(other647.__isset); +} +notify_catch_up_request ¬ify_catch_up_request::operator=(const notify_catch_up_request &other648) +{ + parent_gpid = other648.parent_gpid; + child_gpid = other648.child_gpid; + child_ballot = other648.child_ballot; + child_address = other648.child_address; + __isset = other648.__isset; + return *this; +} +notify_catch_up_request ¬ify_catch_up_request::operator=(notify_catch_up_request &&other649) +{ + parent_gpid = std::move(other649.parent_gpid); + child_gpid = std::move(other649.child_gpid); + child_ballot = std::move(other649.child_ballot); + child_address = std::move(other649.child_address); + __isset = std::move(other649.__isset); + return *this; +} +void notify_catch_up_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "notify_catch_up_request("; + out << "parent_gpid=" << to_string(parent_gpid); + out << ", " + << "child_gpid=" << to_string(child_gpid); + out << ", " + << "child_ballot=" << to_string(child_ballot); + out << ", " + << "child_address=" << to_string(child_address); + out << ")"; +} + +notify_cacth_up_response::~notify_cacth_up_response() throw() {} + +void notify_cacth_up_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +uint32_t notify_cacth_up_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + xfer += iprot->readStructEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->download_progress); - this->__isset.download_progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->download_status.read(iprot); - this->__isset.download_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast688; - xfer += iprot->readI32(ecast688); - this->ingest_status = (ingestion_status::type)ecast688; - this->__isset.ingest_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_cleaned_up); - this->__isset.is_cleaned_up = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_paused); - this->__isset.is_paused = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; + return xfer; } -uint32_t partition_bulk_load_state::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("partition_bulk_load_state"); - - if (this->__isset.download_progress) { - xfer += oprot->writeFieldBegin("download_progress", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->download_progress); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.download_status) { - xfer += oprot->writeFieldBegin("download_status", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->download_status.write(oprot); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.ingest_status) { - xfer += oprot->writeFieldBegin("ingest_status", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->ingest_status); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_cleaned_up) { - xfer += oprot->writeFieldBegin("is_cleaned_up", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool(this->is_cleaned_up); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_paused) { - xfer += oprot->writeFieldBegin("is_paused", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->is_paused); +uint32_t notify_cacth_up_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("notify_cacth_up_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(partition_bulk_load_state &a, partition_bulk_load_state &b) { - using ::std::swap; - swap(a.download_progress, b.download_progress); - swap(a.download_status, b.download_status); - swap(a.ingest_status, b.ingest_status); - swap(a.is_cleaned_up, b.is_cleaned_up); - swap(a.is_paused, b.is_paused); - swap(a.__isset, b.__isset); +void swap(notify_cacth_up_response &a, notify_cacth_up_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); } -partition_bulk_load_state::partition_bulk_load_state(const partition_bulk_load_state& other689) { - download_progress = other689.download_progress; - download_status = other689.download_status; - ingest_status = other689.ingest_status; - is_cleaned_up = other689.is_cleaned_up; - is_paused = other689.is_paused; - __isset = other689.__isset; +notify_cacth_up_response::notify_cacth_up_response(const notify_cacth_up_response &other650) +{ + err = other650.err; + __isset = other650.__isset; } -partition_bulk_load_state::partition_bulk_load_state( partition_bulk_load_state&& other690) { - download_progress = std::move(other690.download_progress); - download_status = std::move(other690.download_status); - ingest_status = std::move(other690.ingest_status); - is_cleaned_up = std::move(other690.is_cleaned_up); - is_paused = std::move(other690.is_paused); - __isset = std::move(other690.__isset); +notify_cacth_up_response::notify_cacth_up_response(notify_cacth_up_response &&other651) +{ + err = std::move(other651.err); + __isset = std::move(other651.__isset); } -partition_bulk_load_state& partition_bulk_load_state::operator=(const partition_bulk_load_state& other691) { - download_progress = other691.download_progress; - download_status = other691.download_status; - ingest_status = other691.ingest_status; - is_cleaned_up = other691.is_cleaned_up; - is_paused = other691.is_paused; - __isset = other691.__isset; - return *this; +notify_cacth_up_response ¬ify_cacth_up_response:: +operator=(const notify_cacth_up_response &other652) +{ + err = other652.err; + __isset = other652.__isset; + return *this; } -partition_bulk_load_state& partition_bulk_load_state::operator=(partition_bulk_load_state&& other692) { - download_progress = std::move(other692.download_progress); - download_status = std::move(other692.download_status); - ingest_status = std::move(other692.ingest_status); - is_cleaned_up = std::move(other692.is_cleaned_up); - is_paused = std::move(other692.is_paused); - __isset = std::move(other692.__isset); - return *this; +notify_cacth_up_response ¬ify_cacth_up_response::operator=(notify_cacth_up_response &&other653) +{ + err = std::move(other653.err); + __isset = std::move(other653.__isset); + return *this; } -void partition_bulk_load_state::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "partition_bulk_load_state("; - out << "download_progress="; (__isset.download_progress ? (out << to_string(download_progress)) : (out << "")); - out << ", " << "download_status="; (__isset.download_status ? (out << to_string(download_status)) : (out << "")); - out << ", " << "ingest_status="; (__isset.ingest_status ? (out << to_string(ingest_status)) : (out << "")); - out << ", " << "is_cleaned_up="; (__isset.is_cleaned_up ? (out << to_string(is_cleaned_up)) : (out << "")); - out << ", " << "is_paused="; (__isset.is_paused ? (out << to_string(is_paused)) : (out << "")); - out << ")"; +void notify_cacth_up_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "notify_cacth_up_response("; + out << "err=" << to_string(err); + out << ")"; } +update_child_group_partition_count_request::~update_child_group_partition_count_request() throw() {} -bulk_load_request::~bulk_load_request() throw() { +void update_child_group_partition_count_request::__set_target_address(const ::dsn::rpc_address &val) +{ + this->target_address = val; } - -void bulk_load_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; +void update_child_group_partition_count_request::__set_new_partition_count(const int32_t val) +{ + this->new_partition_count = val; } -void bulk_load_request::__set_app_name(const std::string& val) { - this->app_name = val; +void update_child_group_partition_count_request::__set_child_pid(const ::dsn::gpid &val) +{ + this->child_pid = val; } -void bulk_load_request::__set_primary_addr(const ::dsn::rpc_address& val) { - this->primary_addr = val; +void update_child_group_partition_count_request::__set_ballot(const int64_t val) +{ + this->ballot = val; } -void bulk_load_request::__set_remote_provider_name(const std::string& val) { - this->remote_provider_name = val; -} +uint32_t +update_child_group_partition_count_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ -void bulk_load_request::__set_cluster_name(const std::string& val) { - this->cluster_name = val; -} + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; -void bulk_load_request::__set_ballot(const int64_t val) { - this->ballot = val; -} + xfer += iprot->readStructBegin(fname); -void bulk_load_request::__set_meta_bulk_load_status(const bulk_load_status::type val) { - this->meta_bulk_load_status = val; -} + using ::apache::thrift::protocol::TProtocolException; -void bulk_load_request::__set_query_bulk_load_metadata(const bool val) { - this->query_bulk_load_metadata = val; -} + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->target_address.read(iprot); + this->__isset.target_address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->new_partition_count); + this->__isset.new_partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_pid.read(iprot); + this->__isset.child_pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); -void bulk_load_request::__set_remote_root_path(const std::string& val) { - this->remote_root_path = val; + return xfer; } -uint32_t bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t update_child_group_partition_count_request::write( + ::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("update_child_group_partition_count_request"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("target_address", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->target_address.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("new_partition_count", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->new_partition_count); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("child_pid", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->child_pid.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->primary_addr.read(iprot); - this->__isset.primary_addr = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_provider_name); - this->__isset.remote_provider_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cluster_name); - this->__isset.cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast693; - xfer += iprot->readI32(ecast693); - this->meta_bulk_load_status = (bulk_load_status::type)ecast693; - this->__isset.meta_bulk_load_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->query_bulk_load_metadata); - this->__isset.query_bulk_load_metadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_root_path); - this->__isset.remote_root_path = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(update_child_group_partition_count_request &a, + update_child_group_partition_count_request &b) +{ + using ::std::swap; + swap(a.target_address, b.target_address); + swap(a.new_partition_count, b.new_partition_count); + swap(a.child_pid, b.child_pid); + swap(a.ballot, b.ballot); + swap(a.__isset, b.__isset); +} + +update_child_group_partition_count_request::update_child_group_partition_count_request( + const update_child_group_partition_count_request &other654) +{ + target_address = other654.target_address; + new_partition_count = other654.new_partition_count; + child_pid = other654.child_pid; + ballot = other654.ballot; + __isset = other654.__isset; +} +update_child_group_partition_count_request::update_child_group_partition_count_request( + update_child_group_partition_count_request &&other655) +{ + target_address = std::move(other655.target_address); + new_partition_count = std::move(other655.new_partition_count); + child_pid = std::move(other655.child_pid); + ballot = std::move(other655.ballot); + __isset = std::move(other655.__isset); +} +update_child_group_partition_count_request &update_child_group_partition_count_request:: +operator=(const update_child_group_partition_count_request &other656) +{ + target_address = other656.target_address; + new_partition_count = other656.new_partition_count; + child_pid = other656.child_pid; + ballot = other656.ballot; + __isset = other656.__isset; + return *this; +} +update_child_group_partition_count_request &update_child_group_partition_count_request:: +operator=(update_child_group_partition_count_request &&other657) +{ + target_address = std::move(other657.target_address); + new_partition_count = std::move(other657.new_partition_count); + child_pid = std::move(other657.child_pid); + ballot = std::move(other657.ballot); + __isset = std::move(other657.__isset); + return *this; +} +void update_child_group_partition_count_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "update_child_group_partition_count_request("; + out << "target_address=" << to_string(target_address); + out << ", " + << "new_partition_count=" << to_string(new_partition_count); + out << ", " + << "child_pid=" << to_string(child_pid); + out << ", " + << "ballot=" << to_string(ballot); + out << ")"; +} + +update_child_group_partition_count_response::~update_child_group_partition_count_response() throw() +{ +} + +void update_child_group_partition_count_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; +} + +uint32_t +update_child_group_partition_count_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("bulk_load_request"); - - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("primary_addr", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->primary_addr.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("remote_provider_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->remote_provider_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->cluster_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("meta_bulk_load_status", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((int32_t)this->meta_bulk_load_status); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("query_bulk_load_metadata", ::apache::thrift::protocol::T_BOOL, 8); - xfer += oprot->writeBool(this->query_bulk_load_metadata); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 9); - xfer += oprot->writeString(this->remote_root_path); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(bulk_load_request &a, bulk_load_request &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.app_name, b.app_name); - swap(a.primary_addr, b.primary_addr); - swap(a.remote_provider_name, b.remote_provider_name); - swap(a.cluster_name, b.cluster_name); - swap(a.ballot, b.ballot); - swap(a.meta_bulk_load_status, b.meta_bulk_load_status); - swap(a.query_bulk_load_metadata, b.query_bulk_load_metadata); - swap(a.remote_root_path, b.remote_root_path); - swap(a.__isset, b.__isset); -} - -bulk_load_request::bulk_load_request(const bulk_load_request& other694) { - pid = other694.pid; - app_name = other694.app_name; - primary_addr = other694.primary_addr; - remote_provider_name = other694.remote_provider_name; - cluster_name = other694.cluster_name; - ballot = other694.ballot; - meta_bulk_load_status = other694.meta_bulk_load_status; - query_bulk_load_metadata = other694.query_bulk_load_metadata; - remote_root_path = other694.remote_root_path; - __isset = other694.__isset; -} -bulk_load_request::bulk_load_request( bulk_load_request&& other695) { - pid = std::move(other695.pid); - app_name = std::move(other695.app_name); - primary_addr = std::move(other695.primary_addr); - remote_provider_name = std::move(other695.remote_provider_name); - cluster_name = std::move(other695.cluster_name); - ballot = std::move(other695.ballot); - meta_bulk_load_status = std::move(other695.meta_bulk_load_status); - query_bulk_load_metadata = std::move(other695.query_bulk_load_metadata); - remote_root_path = std::move(other695.remote_root_path); - __isset = std::move(other695.__isset); -} -bulk_load_request& bulk_load_request::operator=(const bulk_load_request& other696) { - pid = other696.pid; - app_name = other696.app_name; - primary_addr = other696.primary_addr; - remote_provider_name = other696.remote_provider_name; - cluster_name = other696.cluster_name; - ballot = other696.ballot; - meta_bulk_load_status = other696.meta_bulk_load_status; - query_bulk_load_metadata = other696.query_bulk_load_metadata; - remote_root_path = other696.remote_root_path; - __isset = other696.__isset; - return *this; -} -bulk_load_request& bulk_load_request::operator=(bulk_load_request&& other697) { - pid = std::move(other697.pid); - app_name = std::move(other697.app_name); - primary_addr = std::move(other697.primary_addr); - remote_provider_name = std::move(other697.remote_provider_name); - cluster_name = std::move(other697.cluster_name); - ballot = std::move(other697.ballot); - meta_bulk_load_status = std::move(other697.meta_bulk_load_status); - query_bulk_load_metadata = std::move(other697.query_bulk_load_metadata); - remote_root_path = std::move(other697.remote_root_path); - __isset = std::move(other697.__isset); - return *this; -} -void bulk_load_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "bulk_load_request("; - out << "pid=" << to_string(pid); - out << ", " << "app_name=" << to_string(app_name); - out << ", " << "primary_addr=" << to_string(primary_addr); - out << ", " << "remote_provider_name=" << to_string(remote_provider_name); - out << ", " << "cluster_name=" << to_string(cluster_name); - out << ", " << "ballot=" << to_string(ballot); - out << ", " << "meta_bulk_load_status=" << to_string(meta_bulk_load_status); - out << ", " << "query_bulk_load_metadata=" << to_string(query_bulk_load_metadata); - out << ", " << "remote_root_path=" << to_string(remote_root_path); - out << ")"; -} + xfer += iprot->readStructEnd(); -bulk_load_response::~bulk_load_response() throw() { + return xfer; } +uint32_t update_child_group_partition_count_response::write( + ::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("update_child_group_partition_count_response"); -void bulk_load_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); -void bulk_load_response::__set_pid(const ::dsn::gpid& val) { - this->pid = val; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void bulk_load_response::__set_app_name(const std::string& val) { - this->app_name = val; +void swap(update_child_group_partition_count_response &a, + update_child_group_partition_count_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.__isset, b.__isset); } -void bulk_load_response::__set_primary_bulk_load_status(const bulk_load_status::type val) { - this->primary_bulk_load_status = val; +update_child_group_partition_count_response::update_child_group_partition_count_response( + const update_child_group_partition_count_response &other658) +{ + err = other658.err; + __isset = other658.__isset; } - -void bulk_load_response::__set_group_bulk_load_state(const std::map< ::dsn::rpc_address, partition_bulk_load_state> & val) { - this->group_bulk_load_state = val; +update_child_group_partition_count_response::update_child_group_partition_count_response( + update_child_group_partition_count_response &&other659) +{ + err = std::move(other659.err); + __isset = std::move(other659.__isset); } - -void bulk_load_response::__set_metadata(const bulk_load_metadata& val) { - this->metadata = val; -__isset.metadata = true; +update_child_group_partition_count_response &update_child_group_partition_count_response:: +operator=(const update_child_group_partition_count_response &other660) +{ + err = other660.err; + __isset = other660.__isset; + return *this; } - -void bulk_load_response::__set_total_download_progress(const int32_t val) { - this->total_download_progress = val; -__isset.total_download_progress = true; +update_child_group_partition_count_response &update_child_group_partition_count_response:: +operator=(update_child_group_partition_count_response &&other661) +{ + err = std::move(other661.err); + __isset = std::move(other661.__isset); + return *this; } - -void bulk_load_response::__set_is_group_ingestion_finished(const bool val) { - this->is_group_ingestion_finished = val; -__isset.is_group_ingestion_finished = true; +void update_child_group_partition_count_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "update_child_group_partition_count_response("; + out << "err=" << to_string(err); + out << ")"; } -void bulk_load_response::__set_is_group_bulk_load_context_cleaned_up(const bool val) { - this->is_group_bulk_load_context_cleaned_up = val; -__isset.is_group_bulk_load_context_cleaned_up = true; +register_child_request::~register_child_request() throw() {} + +void register_child_request::__set_app(const ::dsn::app_info &val) { this->app = val; } + +void register_child_request::__set_parent_config(const ::dsn::partition_configuration &val) +{ + this->parent_config = val; } -void bulk_load_response::__set_is_group_bulk_load_paused(const bool val) { - this->is_group_bulk_load_paused = val; -__isset.is_group_bulk_load_paused = true; +void register_child_request::__set_child_config(const ::dsn::partition_configuration &val) +{ + this->child_config = val; } -uint32_t bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { +void register_child_request::__set_primary_address(const ::dsn::rpc_address &val) +{ + this->primary_address = val; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t register_child_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast698; - xfer += iprot->readI32(ecast698); - this->primary_bulk_load_status = (bulk_load_status::type)ecast698; - this->__isset.primary_bulk_load_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->group_bulk_load_state.clear(); - uint32_t _size699; - ::apache::thrift::protocol::TType _ktype700; - ::apache::thrift::protocol::TType _vtype701; - xfer += iprot->readMapBegin(_ktype700, _vtype701, _size699); - uint32_t _i703; - for (_i703 = 0; _i703 < _size699; ++_i703) - { - ::dsn::rpc_address _key704; - xfer += _key704.read(iprot); - partition_bulk_load_state& _val705 = this->group_bulk_load_state[_key704]; - xfer += _val705.read(iprot); - } - xfer += iprot->readMapEnd(); - } - this->__isset.group_bulk_load_state = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->metadata.read(iprot); - this->__isset.metadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->total_download_progress); - this->__isset.total_download_progress = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_group_ingestion_finished); - this->__isset.is_group_ingestion_finished = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_group_bulk_load_context_cleaned_up); - this->__isset.is_group_bulk_load_context_cleaned_up = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_group_bulk_load_paused); - this->__isset.is_group_bulk_load_paused = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->app.read(iprot); + this->__isset.app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->parent_config.read(iprot); + this->__isset.parent_config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_config.read(iprot); + this->__isset.child_config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->primary_address.read(iprot); + this->__isset.primary_address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("bulk_load_response"); +uint32_t register_child_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("register_child_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->app.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("parent_config", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->parent_config.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("child_config", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->child_config.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("primary_bulk_load_status", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->primary_bulk_load_status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("primary_address", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->primary_address.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("group_bulk_load_state", ::apache::thrift::protocol::T_MAP, 5); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, ::apache::thrift::protocol::T_STRUCT, static_cast(this->group_bulk_load_state.size())); - std::map< ::dsn::rpc_address, partition_bulk_load_state> ::const_iterator _iter706; - for (_iter706 = this->group_bulk_load_state.begin(); _iter706 != this->group_bulk_load_state.end(); ++_iter706) - { - xfer += _iter706->first.write(oprot); - xfer += _iter706->second.write(oprot); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(register_child_request &a, register_child_request &b) +{ + using ::std::swap; + swap(a.app, b.app); + swap(a.parent_config, b.parent_config); + swap(a.child_config, b.child_config); + swap(a.primary_address, b.primary_address); + swap(a.__isset, b.__isset); +} + +register_child_request::register_child_request(const register_child_request &other662) +{ + app = other662.app; + parent_config = other662.parent_config; + child_config = other662.child_config; + primary_address = other662.primary_address; + __isset = other662.__isset; +} +register_child_request::register_child_request(register_child_request &&other663) +{ + app = std::move(other663.app); + parent_config = std::move(other663.parent_config); + child_config = std::move(other663.child_config); + primary_address = std::move(other663.primary_address); + __isset = std::move(other663.__isset); +} +register_child_request ®ister_child_request::operator=(const register_child_request &other664) +{ + app = other664.app; + parent_config = other664.parent_config; + child_config = other664.child_config; + primary_address = other664.primary_address; + __isset = other664.__isset; + return *this; +} +register_child_request ®ister_child_request::operator=(register_child_request &&other665) +{ + app = std::move(other665.app); + parent_config = std::move(other665.parent_config); + child_config = std::move(other665.child_config); + primary_address = std::move(other665.primary_address); + __isset = std::move(other665.__isset); + return *this; +} +void register_child_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "register_child_request("; + out << "app=" << to_string(app); + out << ", " + << "parent_config=" << to_string(parent_config); + out << ", " + << "child_config=" << to_string(child_config); + out << ", " + << "primary_address=" << to_string(primary_address); + out << ")"; +} + +register_child_response::~register_child_response() throw() {} + +void register_child_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void register_child_response::__set_app(const ::dsn::app_info &val) { this->app = val; } + +void register_child_response::__set_parent_config(const ::dsn::partition_configuration &val) +{ + this->parent_config = val; +} + +void register_child_response::__set_child_config(const ::dsn::partition_configuration &val) +{ + this->child_config = val; +} + +uint32_t register_child_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->app.read(iprot); + this->__isset.app = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->parent_config.read(iprot); + this->__isset.parent_config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->child_config.read(iprot); + this->__isset.child_config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - if (this->__isset.metadata) { - xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_STRUCT, 6); - xfer += this->metadata.write(oprot); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.total_download_progress) { - xfer += oprot->writeFieldBegin("total_download_progress", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32(this->total_download_progress); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_group_ingestion_finished) { - xfer += oprot->writeFieldBegin("is_group_ingestion_finished", ::apache::thrift::protocol::T_BOOL, 8); - xfer += oprot->writeBool(this->is_group_ingestion_finished); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_group_bulk_load_context_cleaned_up) { - xfer += oprot->writeFieldBegin("is_group_bulk_load_context_cleaned_up", ::apache::thrift::protocol::T_BOOL, 9); - xfer += oprot->writeBool(this->is_group_bulk_load_context_cleaned_up); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_group_bulk_load_paused) { - xfer += oprot->writeFieldBegin("is_group_bulk_load_paused", ::apache::thrift::protocol::T_BOOL, 10); - xfer += oprot->writeBool(this->is_group_bulk_load_paused); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(bulk_load_response &a, bulk_load_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.pid, b.pid); - swap(a.app_name, b.app_name); - swap(a.primary_bulk_load_status, b.primary_bulk_load_status); - swap(a.group_bulk_load_state, b.group_bulk_load_state); - swap(a.metadata, b.metadata); - swap(a.total_download_progress, b.total_download_progress); - swap(a.is_group_ingestion_finished, b.is_group_ingestion_finished); - swap(a.is_group_bulk_load_context_cleaned_up, b.is_group_bulk_load_context_cleaned_up); - swap(a.is_group_bulk_load_paused, b.is_group_bulk_load_paused); - swap(a.__isset, b.__isset); -} - -bulk_load_response::bulk_load_response(const bulk_load_response& other707) { - err = other707.err; - pid = other707.pid; - app_name = other707.app_name; - primary_bulk_load_status = other707.primary_bulk_load_status; - group_bulk_load_state = other707.group_bulk_load_state; - metadata = other707.metadata; - total_download_progress = other707.total_download_progress; - is_group_ingestion_finished = other707.is_group_ingestion_finished; - is_group_bulk_load_context_cleaned_up = other707.is_group_bulk_load_context_cleaned_up; - is_group_bulk_load_paused = other707.is_group_bulk_load_paused; - __isset = other707.__isset; -} -bulk_load_response::bulk_load_response( bulk_load_response&& other708) { - err = std::move(other708.err); - pid = std::move(other708.pid); - app_name = std::move(other708.app_name); - primary_bulk_load_status = std::move(other708.primary_bulk_load_status); - group_bulk_load_state = std::move(other708.group_bulk_load_state); - metadata = std::move(other708.metadata); - total_download_progress = std::move(other708.total_download_progress); - is_group_ingestion_finished = std::move(other708.is_group_ingestion_finished); - is_group_bulk_load_context_cleaned_up = std::move(other708.is_group_bulk_load_context_cleaned_up); - is_group_bulk_load_paused = std::move(other708.is_group_bulk_load_paused); - __isset = std::move(other708.__isset); -} -bulk_load_response& bulk_load_response::operator=(const bulk_load_response& other709) { - err = other709.err; - pid = other709.pid; - app_name = other709.app_name; - primary_bulk_load_status = other709.primary_bulk_load_status; - group_bulk_load_state = other709.group_bulk_load_state; - metadata = other709.metadata; - total_download_progress = other709.total_download_progress; - is_group_ingestion_finished = other709.is_group_ingestion_finished; - is_group_bulk_load_context_cleaned_up = other709.is_group_bulk_load_context_cleaned_up; - is_group_bulk_load_paused = other709.is_group_bulk_load_paused; - __isset = other709.__isset; - return *this; -} -bulk_load_response& bulk_load_response::operator=(bulk_load_response&& other710) { - err = std::move(other710.err); - pid = std::move(other710.pid); - app_name = std::move(other710.app_name); - primary_bulk_load_status = std::move(other710.primary_bulk_load_status); - group_bulk_load_state = std::move(other710.group_bulk_load_state); - metadata = std::move(other710.metadata); - total_download_progress = std::move(other710.total_download_progress); - is_group_ingestion_finished = std::move(other710.is_group_ingestion_finished); - is_group_bulk_load_context_cleaned_up = std::move(other710.is_group_bulk_load_context_cleaned_up); - is_group_bulk_load_paused = std::move(other710.is_group_bulk_load_paused); - __isset = std::move(other710.__isset); - return *this; -} -void bulk_load_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "bulk_load_response("; - out << "err=" << to_string(err); - out << ", " << "pid=" << to_string(pid); - out << ", " << "app_name=" << to_string(app_name); - out << ", " << "primary_bulk_load_status=" << to_string(primary_bulk_load_status); - out << ", " << "group_bulk_load_state=" << to_string(group_bulk_load_state); - out << ", " << "metadata="; (__isset.metadata ? (out << to_string(metadata)) : (out << "")); - out << ", " << "total_download_progress="; (__isset.total_download_progress ? (out << to_string(total_download_progress)) : (out << "")); - out << ", " << "is_group_ingestion_finished="; (__isset.is_group_ingestion_finished ? (out << to_string(is_group_ingestion_finished)) : (out << "")); - out << ", " << "is_group_bulk_load_context_cleaned_up="; (__isset.is_group_bulk_load_context_cleaned_up ? (out << to_string(is_group_bulk_load_context_cleaned_up)) : (out << "")); - out << ", " << "is_group_bulk_load_paused="; (__isset.is_group_bulk_load_paused ? (out << to_string(is_group_bulk_load_paused)) : (out << "")); - out << ")"; -} - - -group_bulk_load_request::~group_bulk_load_request() throw() { -} - - -void group_bulk_load_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -void group_bulk_load_request::__set_target_address(const ::dsn::rpc_address& val) { - this->target_address = val; -} - -void group_bulk_load_request::__set_config(const replica_configuration& val) { - this->config = val; -} - -void group_bulk_load_request::__set_provider_name(const std::string& val) { - this->provider_name = val; -} - -void group_bulk_load_request::__set_cluster_name(const std::string& val) { - this->cluster_name = val; -} + xfer += iprot->readStructEnd(); -void group_bulk_load_request::__set_meta_bulk_load_status(const bulk_load_status::type val) { - this->meta_bulk_load_status = val; -} - -void group_bulk_load_request::__set_remote_root_path(const std::string& val) { - this->remote_root_path = val; + return xfer; } -uint32_t group_bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t register_child_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("register_child_response"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("app", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->app.write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("parent_config", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->parent_config.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("child_config", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->child_config.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->target_address.read(iprot); - this->__isset.target_address = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->config.read(iprot); - this->__isset.config = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->provider_name); - this->__isset.provider_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cluster_name); - this->__isset.cluster_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast711; - xfer += iprot->readI32(ecast711); - this->meta_bulk_load_status = (bulk_load_status::type)ecast711; - this->__isset.meta_bulk_load_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->remote_root_path); - this->__isset.remote_root_path = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(register_child_response &a, register_child_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.app, b.app); + swap(a.parent_config, b.parent_config); + swap(a.child_config, b.child_config); + swap(a.__isset, b.__isset); +} + +register_child_response::register_child_response(const register_child_response &other666) +{ + err = other666.err; + app = other666.app; + parent_config = other666.parent_config; + child_config = other666.child_config; + __isset = other666.__isset; +} +register_child_response::register_child_response(register_child_response &&other667) +{ + err = std::move(other667.err); + app = std::move(other667.app); + parent_config = std::move(other667.parent_config); + child_config = std::move(other667.child_config); + __isset = std::move(other667.__isset); +} +register_child_response ®ister_child_response::operator=(const register_child_response &other668) +{ + err = other668.err; + app = other668.app; + parent_config = other668.parent_config; + child_config = other668.child_config; + __isset = other668.__isset; + return *this; +} +register_child_response ®ister_child_response::operator=(register_child_response &&other669) +{ + err = std::move(other669.err); + app = std::move(other669.app); + parent_config = std::move(other669.parent_config); + child_config = std::move(other669.child_config); + __isset = std::move(other669.__isset); + return *this; +} +void register_child_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "register_child_response("; + out << "err=" << to_string(err); + out << ", " + << "app=" << to_string(app); + out << ", " + << "parent_config=" << to_string(parent_config); + out << ", " + << "child_config=" << to_string(child_config); + out << ")"; +} + +bulk_load_metadata::~bulk_load_metadata() throw() {} + +void bulk_load_metadata::__set_files(const std::vector &val) { this->files = val; } + +void bulk_load_metadata::__set_file_total_size(const int64_t val) { this->file_total_size = val; } + +uint32_t bulk_load_metadata::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->files.clear(); + uint32_t _size670; + ::apache::thrift::protocol::TType _etype673; + xfer += iprot->readListBegin(_etype673, _size670); + this->files.resize(_size670); + uint32_t _i674; + for (_i674 = 0; _i674 < _size670; ++_i674) { + xfer += this->files[_i674].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.files = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->file_total_size); + this->__isset.file_total_size = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t group_bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("group_bulk_load_request"); - - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("target_address", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->target_address.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->config.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("provider_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->provider_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->cluster_name); - xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("meta_bulk_load_status", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((int32_t)this->meta_bulk_load_status); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->remote_root_path); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(group_bulk_load_request &a, group_bulk_load_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.target_address, b.target_address); - swap(a.config, b.config); - swap(a.provider_name, b.provider_name); - swap(a.cluster_name, b.cluster_name); - swap(a.meta_bulk_load_status, b.meta_bulk_load_status); - swap(a.remote_root_path, b.remote_root_path); - swap(a.__isset, b.__isset); -} +uint32_t bulk_load_metadata::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("bulk_load_metadata"); -group_bulk_load_request::group_bulk_load_request(const group_bulk_load_request& other712) { - app_name = other712.app_name; - target_address = other712.target_address; - config = other712.config; - provider_name = other712.provider_name; - cluster_name = other712.cluster_name; - meta_bulk_load_status = other712.meta_bulk_load_status; - remote_root_path = other712.remote_root_path; - __isset = other712.__isset; -} -group_bulk_load_request::group_bulk_load_request( group_bulk_load_request&& other713) { - app_name = std::move(other713.app_name); - target_address = std::move(other713.target_address); - config = std::move(other713.config); - provider_name = std::move(other713.provider_name); - cluster_name = std::move(other713.cluster_name); - meta_bulk_load_status = std::move(other713.meta_bulk_load_status); - remote_root_path = std::move(other713.remote_root_path); - __isset = std::move(other713.__isset); -} -group_bulk_load_request& group_bulk_load_request::operator=(const group_bulk_load_request& other714) { - app_name = other714.app_name; - target_address = other714.target_address; - config = other714.config; - provider_name = other714.provider_name; - cluster_name = other714.cluster_name; - meta_bulk_load_status = other714.meta_bulk_load_status; - remote_root_path = other714.remote_root_path; - __isset = other714.__isset; - return *this; -} -group_bulk_load_request& group_bulk_load_request::operator=(group_bulk_load_request&& other715) { - app_name = std::move(other715.app_name); - target_address = std::move(other715.target_address); - config = std::move(other715.config); - provider_name = std::move(other715.provider_name); - cluster_name = std::move(other715.cluster_name); - meta_bulk_load_status = std::move(other715.meta_bulk_load_status); - remote_root_path = std::move(other715.remote_root_path); - __isset = std::move(other715.__isset); - return *this; -} -void group_bulk_load_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "group_bulk_load_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "target_address=" << to_string(target_address); - out << ", " << "config=" << to_string(config); - out << ", " << "provider_name=" << to_string(provider_name); - out << ", " << "cluster_name=" << to_string(cluster_name); - out << ", " << "meta_bulk_load_status=" << to_string(meta_bulk_load_status); - out << ", " << "remote_root_path=" << to_string(remote_root_path); - out << ")"; -} - - -group_bulk_load_response::~group_bulk_load_response() throw() { -} - - -void group_bulk_load_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} - -void group_bulk_load_response::__set_status(const bulk_load_status::type val) { - this->status = val; -} - -void group_bulk_load_response::__set_bulk_load_state(const partition_bulk_load_state& val) { - this->bulk_load_state = val; -} - -uint32_t group_bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("files", ::apache::thrift::protocol::T_LIST, 1); { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast716; - xfer += iprot->readI32(ecast716); - this->status = (bulk_load_status::type)ecast716; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->bulk_load_state.read(iprot); - this->__isset.bulk_load_state = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t group_bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("group_bulk_load_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->files.size())); + std::vector::const_iterator _iter675; + for (_iter675 = this->files.begin(); _iter675 != this->files.end(); ++_iter675) { + xfer += (*_iter675).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("bulk_load_state", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->bulk_load_state.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("file_total_size", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->file_total_size); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(group_bulk_load_response &a, group_bulk_load_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.status, b.status); - swap(a.bulk_load_state, b.bulk_load_state); - swap(a.__isset, b.__isset); +void swap(bulk_load_metadata &a, bulk_load_metadata &b) +{ + using ::std::swap; + swap(a.files, b.files); + swap(a.file_total_size, b.file_total_size); + swap(a.__isset, b.__isset); } -group_bulk_load_response::group_bulk_load_response(const group_bulk_load_response& other717) { - err = other717.err; - status = other717.status; - bulk_load_state = other717.bulk_load_state; - __isset = other717.__isset; +bulk_load_metadata::bulk_load_metadata(const bulk_load_metadata &other676) +{ + files = other676.files; + file_total_size = other676.file_total_size; + __isset = other676.__isset; } -group_bulk_load_response::group_bulk_load_response( group_bulk_load_response&& other718) { - err = std::move(other718.err); - status = std::move(other718.status); - bulk_load_state = std::move(other718.bulk_load_state); - __isset = std::move(other718.__isset); +bulk_load_metadata::bulk_load_metadata(bulk_load_metadata &&other677) +{ + files = std::move(other677.files); + file_total_size = std::move(other677.file_total_size); + __isset = std::move(other677.__isset); } -group_bulk_load_response& group_bulk_load_response::operator=(const group_bulk_load_response& other719) { - err = other719.err; - status = other719.status; - bulk_load_state = other719.bulk_load_state; - __isset = other719.__isset; - return *this; +bulk_load_metadata &bulk_load_metadata::operator=(const bulk_load_metadata &other678) +{ + files = other678.files; + file_total_size = other678.file_total_size; + __isset = other678.__isset; + return *this; } -group_bulk_load_response& group_bulk_load_response::operator=(group_bulk_load_response&& other720) { - err = std::move(other720.err); - status = std::move(other720.status); - bulk_load_state = std::move(other720.bulk_load_state); - __isset = std::move(other720.__isset); - return *this; +bulk_load_metadata &bulk_load_metadata::operator=(bulk_load_metadata &&other679) +{ + files = std::move(other679.files); + file_total_size = std::move(other679.file_total_size); + __isset = std::move(other679.__isset); + return *this; } -void group_bulk_load_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "group_bulk_load_response("; - out << "err=" << to_string(err); - out << ", " << "status=" << to_string(status); - out << ", " << "bulk_load_state=" << to_string(bulk_load_state); - out << ")"; +void bulk_load_metadata::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "bulk_load_metadata("; + out << "files=" << to_string(files); + out << ", " + << "file_total_size=" << to_string(file_total_size); + out << ")"; } +start_bulk_load_request::~start_bulk_load_request() throw() {} + +void start_bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } -ingestion_request::~ingestion_request() throw() { +void start_bulk_load_request::__set_cluster_name(const std::string &val) +{ + this->cluster_name = val; } +void start_bulk_load_request::__set_file_provider_type(const std::string &val) +{ + this->file_provider_type = val; +} -void ingestion_request::__set_app_name(const std::string& val) { - this->app_name = val; +void start_bulk_load_request::__set_remote_root_path(const std::string &val) +{ + this->remote_root_path = val; } -void ingestion_request::__set_metadata(const bulk_load_metadata& val) { - this->metadata = val; +uint32_t start_bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cluster_name); + this->__isset.cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->file_provider_type); + this->__isset.file_provider_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_root_path); + this->__isset.remote_root_path = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; } -uint32_t ingestion_request::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t start_bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("start_bulk_load_request"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->cluster_name); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("file_provider_type", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->file_provider_type); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->remote_root_path); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->metadata.read(iprot); - this->__isset.metadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(start_bulk_load_request &a, start_bulk_load_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.cluster_name, b.cluster_name); + swap(a.file_provider_type, b.file_provider_type); + swap(a.remote_root_path, b.remote_root_path); + swap(a.__isset, b.__isset); +} + +start_bulk_load_request::start_bulk_load_request(const start_bulk_load_request &other680) +{ + app_name = other680.app_name; + cluster_name = other680.cluster_name; + file_provider_type = other680.file_provider_type; + remote_root_path = other680.remote_root_path; + __isset = other680.__isset; +} +start_bulk_load_request::start_bulk_load_request(start_bulk_load_request &&other681) +{ + app_name = std::move(other681.app_name); + cluster_name = std::move(other681.cluster_name); + file_provider_type = std::move(other681.file_provider_type); + remote_root_path = std::move(other681.remote_root_path); + __isset = std::move(other681.__isset); +} +start_bulk_load_request &start_bulk_load_request::operator=(const start_bulk_load_request &other682) +{ + app_name = other682.app_name; + cluster_name = other682.cluster_name; + file_provider_type = other682.file_provider_type; + remote_root_path = other682.remote_root_path; + __isset = other682.__isset; + return *this; +} +start_bulk_load_request &start_bulk_load_request::operator=(start_bulk_load_request &&other683) +{ + app_name = std::move(other683.app_name); + cluster_name = std::move(other683.cluster_name); + file_provider_type = std::move(other683.file_provider_type); + remote_root_path = std::move(other683.remote_root_path); + __isset = std::move(other683.__isset); + return *this; +} +void start_bulk_load_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "start_bulk_load_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "cluster_name=" << to_string(cluster_name); + out << ", " + << "file_provider_type=" << to_string(file_provider_type); + out << ", " + << "remote_root_path=" << to_string(remote_root_path); + out << ")"; +} + +start_bulk_load_response::~start_bulk_load_response() throw() {} + +void start_bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void start_bulk_load_response::__set_hint_msg(const std::string &val) { this->hint_msg = val; } + +uint32_t start_bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t ingestion_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ingestion_request"); +uint32_t start_bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("start_bulk_load_response"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->metadata.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(ingestion_request &a, ingestion_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.metadata, b.metadata); - swap(a.__isset, b.__isset); +void swap(start_bulk_load_response &a, start_bulk_load_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); } -ingestion_request::ingestion_request(const ingestion_request& other721) { - app_name = other721.app_name; - metadata = other721.metadata; - __isset = other721.__isset; +start_bulk_load_response::start_bulk_load_response(const start_bulk_load_response &other684) +{ + err = other684.err; + hint_msg = other684.hint_msg; + __isset = other684.__isset; } -ingestion_request::ingestion_request( ingestion_request&& other722) { - app_name = std::move(other722.app_name); - metadata = std::move(other722.metadata); - __isset = std::move(other722.__isset); +start_bulk_load_response::start_bulk_load_response(start_bulk_load_response &&other685) +{ + err = std::move(other685.err); + hint_msg = std::move(other685.hint_msg); + __isset = std::move(other685.__isset); } -ingestion_request& ingestion_request::operator=(const ingestion_request& other723) { - app_name = other723.app_name; - metadata = other723.metadata; - __isset = other723.__isset; - return *this; +start_bulk_load_response &start_bulk_load_response:: +operator=(const start_bulk_load_response &other686) +{ + err = other686.err; + hint_msg = other686.hint_msg; + __isset = other686.__isset; + return *this; } -ingestion_request& ingestion_request::operator=(ingestion_request&& other724) { - app_name = std::move(other724.app_name); - metadata = std::move(other724.metadata); - __isset = std::move(other724.__isset); - return *this; +start_bulk_load_response &start_bulk_load_response::operator=(start_bulk_load_response &&other687) +{ + err = std::move(other687.err); + hint_msg = std::move(other687.hint_msg); + __isset = std::move(other687.__isset); + return *this; } -void ingestion_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ingestion_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "metadata=" << to_string(metadata); - out << ")"; +void start_bulk_load_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "start_bulk_load_response("; + out << "err=" << to_string(err); + out << ", " + << "hint_msg=" << to_string(hint_msg); + out << ")"; } +partition_bulk_load_state::~partition_bulk_load_state() throw() {} -ingestion_response::~ingestion_response() throw() { +void partition_bulk_load_state::__set_download_progress(const int32_t val) +{ + this->download_progress = val; + __isset.download_progress = true; } +void partition_bulk_load_state::__set_download_status(const ::dsn::error_code &val) +{ + this->download_status = val; + __isset.download_status = true; +} -void ingestion_response::__set_err(const ::dsn::error_code& val) { - this->err = val; +void partition_bulk_load_state::__set_ingest_status(const ingestion_status::type val) +{ + this->ingest_status = val; + __isset.ingest_status = true; } -void ingestion_response::__set_rocksdb_error(const int32_t val) { - this->rocksdb_error = val; +void partition_bulk_load_state::__set_is_cleaned_up(const bool val) +{ + this->is_cleaned_up = val; + __isset.is_cleaned_up = true; } -uint32_t ingestion_response::read(::apache::thrift::protocol::TProtocol* iprot) { +void partition_bulk_load_state::__set_is_paused(const bool val) +{ + this->is_paused = val; + __isset.is_paused = true; +} - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t partition_bulk_load_state::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->rocksdb_error); - this->__isset.rocksdb_error = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->download_progress); + this->__isset.download_progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->download_status.read(iprot); + this->__isset.download_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast688; + xfer += iprot->readI32(ecast688); + this->ingest_status = (ingestion_status::type)ecast688; + this->__isset.ingest_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_cleaned_up); + this->__isset.is_cleaned_up = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_paused); + this->__isset.is_paused = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t partition_bulk_load_state::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("partition_bulk_load_state"); + + if (this->__isset.download_progress) { + xfer += oprot->writeFieldBegin("download_progress", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->download_progress); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.download_status) { + xfer += oprot->writeFieldBegin("download_status", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->download_status.write(oprot); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.ingest_status) { + xfer += oprot->writeFieldBegin("ingest_status", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->ingest_status); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_cleaned_up) { + xfer += oprot->writeFieldBegin("is_cleaned_up", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->is_cleaned_up); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_paused) { + xfer += oprot->writeFieldBegin("is_paused", ::apache::thrift::protocol::T_BOOL, 5); + xfer += oprot->writeBool(this->is_paused); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(partition_bulk_load_state &a, partition_bulk_load_state &b) +{ + using ::std::swap; + swap(a.download_progress, b.download_progress); + swap(a.download_status, b.download_status); + swap(a.ingest_status, b.ingest_status); + swap(a.is_cleaned_up, b.is_cleaned_up); + swap(a.is_paused, b.is_paused); + swap(a.__isset, b.__isset); +} + +partition_bulk_load_state::partition_bulk_load_state(const partition_bulk_load_state &other689) +{ + download_progress = other689.download_progress; + download_status = other689.download_status; + ingest_status = other689.ingest_status; + is_cleaned_up = other689.is_cleaned_up; + is_paused = other689.is_paused; + __isset = other689.__isset; +} +partition_bulk_load_state::partition_bulk_load_state(partition_bulk_load_state &&other690) +{ + download_progress = std::move(other690.download_progress); + download_status = std::move(other690.download_status); + ingest_status = std::move(other690.ingest_status); + is_cleaned_up = std::move(other690.is_cleaned_up); + is_paused = std::move(other690.is_paused); + __isset = std::move(other690.__isset); +} +partition_bulk_load_state &partition_bulk_load_state:: +operator=(const partition_bulk_load_state &other691) +{ + download_progress = other691.download_progress; + download_status = other691.download_status; + ingest_status = other691.ingest_status; + is_cleaned_up = other691.is_cleaned_up; + is_paused = other691.is_paused; + __isset = other691.__isset; + return *this; +} +partition_bulk_load_state &partition_bulk_load_state:: +operator=(partition_bulk_load_state &&other692) +{ + download_progress = std::move(other692.download_progress); + download_status = std::move(other692.download_status); + ingest_status = std::move(other692.ingest_status); + is_cleaned_up = std::move(other692.is_cleaned_up); + is_paused = std::move(other692.is_paused); + __isset = std::move(other692.__isset); + return *this; +} +void partition_bulk_load_state::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "partition_bulk_load_state("; + out << "download_progress="; + (__isset.download_progress ? (out << to_string(download_progress)) : (out << "")); + out << ", " + << "download_status="; + (__isset.download_status ? (out << to_string(download_status)) : (out << "")); + out << ", " + << "ingest_status="; + (__isset.ingest_status ? (out << to_string(ingest_status)) : (out << "")); + out << ", " + << "is_cleaned_up="; + (__isset.is_cleaned_up ? (out << to_string(is_cleaned_up)) : (out << "")); + out << ", " + << "is_paused="; + (__isset.is_paused ? (out << to_string(is_paused)) : (out << "")); + out << ")"; +} + +bulk_load_request::~bulk_load_request() throw() {} + +void bulk_load_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void bulk_load_request::__set_primary_addr(const ::dsn::rpc_address &val) +{ + this->primary_addr = val; +} + +void bulk_load_request::__set_remote_provider_name(const std::string &val) +{ + this->remote_provider_name = val; +} + +void bulk_load_request::__set_cluster_name(const std::string &val) { this->cluster_name = val; } + +void bulk_load_request::__set_ballot(const int64_t val) { this->ballot = val; } + +void bulk_load_request::__set_meta_bulk_load_status(const bulk_load_status::type val) +{ + this->meta_bulk_load_status = val; +} + +void bulk_load_request::__set_query_bulk_load_metadata(const bool val) +{ + this->query_bulk_load_metadata = val; +} + +void bulk_load_request::__set_remote_root_path(const std::string &val) +{ + this->remote_root_path = val; +} + +uint32_t bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->primary_addr.read(iprot); + this->__isset.primary_addr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_provider_name); + this->__isset.remote_provider_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cluster_name); + this->__isset.cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast693; + xfer += iprot->readI32(ecast693); + this->meta_bulk_load_status = (bulk_load_status::type)ecast693; + this->__isset.meta_bulk_load_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->query_bulk_load_metadata); + this->__isset.query_bulk_load_metadata = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_root_path); + this->__isset.remote_root_path = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t ingestion_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ingestion_response"); +uint32_t bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("bulk_load_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("rocksdb_error", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->rocksdb_error); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("primary_addr", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->primary_addr.write(oprot); + xfer += oprot->writeFieldEnd(); -void swap(ingestion_response &a, ingestion_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.rocksdb_error, b.rocksdb_error); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("remote_provider_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->remote_provider_name); + xfer += oprot->writeFieldEnd(); -ingestion_response::ingestion_response(const ingestion_response& other725) { - err = other725.err; - rocksdb_error = other725.rocksdb_error; - __isset = other725.__isset; -} -ingestion_response::ingestion_response( ingestion_response&& other726) { - err = std::move(other726.err); - rocksdb_error = std::move(other726.rocksdb_error); - __isset = std::move(other726.__isset); -} -ingestion_response& ingestion_response::operator=(const ingestion_response& other727) { - err = other727.err; - rocksdb_error = other727.rocksdb_error; - __isset = other727.__isset; - return *this; -} -ingestion_response& ingestion_response::operator=(ingestion_response&& other728) { - err = std::move(other728.err); - rocksdb_error = std::move(other728.rocksdb_error); - __isset = std::move(other728.__isset); - return *this; -} -void ingestion_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ingestion_response("; - out << "err=" << to_string(err); - out << ", " << "rocksdb_error=" << to_string(rocksdb_error); - out << ")"; -} + xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->cluster_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); -control_bulk_load_request::~control_bulk_load_request() throw() { -} + xfer += oprot->writeFieldBegin("meta_bulk_load_status", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32((int32_t)this->meta_bulk_load_status); + xfer += oprot->writeFieldEnd(); + xfer += + oprot->writeFieldBegin("query_bulk_load_metadata", ::apache::thrift::protocol::T_BOOL, 8); + xfer += oprot->writeBool(this->query_bulk_load_metadata); + xfer += oprot->writeFieldEnd(); -void control_bulk_load_request::__set_app_name(const std::string& val) { - this->app_name = val; -} + xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 9); + xfer += oprot->writeString(this->remote_root_path); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(bulk_load_request &a, bulk_load_request &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.app_name, b.app_name); + swap(a.primary_addr, b.primary_addr); + swap(a.remote_provider_name, b.remote_provider_name); + swap(a.cluster_name, b.cluster_name); + swap(a.ballot, b.ballot); + swap(a.meta_bulk_load_status, b.meta_bulk_load_status); + swap(a.query_bulk_load_metadata, b.query_bulk_load_metadata); + swap(a.remote_root_path, b.remote_root_path); + swap(a.__isset, b.__isset); +} + +bulk_load_request::bulk_load_request(const bulk_load_request &other694) +{ + pid = other694.pid; + app_name = other694.app_name; + primary_addr = other694.primary_addr; + remote_provider_name = other694.remote_provider_name; + cluster_name = other694.cluster_name; + ballot = other694.ballot; + meta_bulk_load_status = other694.meta_bulk_load_status; + query_bulk_load_metadata = other694.query_bulk_load_metadata; + remote_root_path = other694.remote_root_path; + __isset = other694.__isset; +} +bulk_load_request::bulk_load_request(bulk_load_request &&other695) +{ + pid = std::move(other695.pid); + app_name = std::move(other695.app_name); + primary_addr = std::move(other695.primary_addr); + remote_provider_name = std::move(other695.remote_provider_name); + cluster_name = std::move(other695.cluster_name); + ballot = std::move(other695.ballot); + meta_bulk_load_status = std::move(other695.meta_bulk_load_status); + query_bulk_load_metadata = std::move(other695.query_bulk_load_metadata); + remote_root_path = std::move(other695.remote_root_path); + __isset = std::move(other695.__isset); +} +bulk_load_request &bulk_load_request::operator=(const bulk_load_request &other696) +{ + pid = other696.pid; + app_name = other696.app_name; + primary_addr = other696.primary_addr; + remote_provider_name = other696.remote_provider_name; + cluster_name = other696.cluster_name; + ballot = other696.ballot; + meta_bulk_load_status = other696.meta_bulk_load_status; + query_bulk_load_metadata = other696.query_bulk_load_metadata; + remote_root_path = other696.remote_root_path; + __isset = other696.__isset; + return *this; +} +bulk_load_request &bulk_load_request::operator=(bulk_load_request &&other697) +{ + pid = std::move(other697.pid); + app_name = std::move(other697.app_name); + primary_addr = std::move(other697.primary_addr); + remote_provider_name = std::move(other697.remote_provider_name); + cluster_name = std::move(other697.cluster_name); + ballot = std::move(other697.ballot); + meta_bulk_load_status = std::move(other697.meta_bulk_load_status); + query_bulk_load_metadata = std::move(other697.query_bulk_load_metadata); + remote_root_path = std::move(other697.remote_root_path); + __isset = std::move(other697.__isset); + return *this; +} +void bulk_load_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "bulk_load_request("; + out << "pid=" << to_string(pid); + out << ", " + << "app_name=" << to_string(app_name); + out << ", " + << "primary_addr=" << to_string(primary_addr); + out << ", " + << "remote_provider_name=" << to_string(remote_provider_name); + out << ", " + << "cluster_name=" << to_string(cluster_name); + out << ", " + << "ballot=" << to_string(ballot); + out << ", " + << "meta_bulk_load_status=" << to_string(meta_bulk_load_status); + out << ", " + << "query_bulk_load_metadata=" << to_string(query_bulk_load_metadata); + out << ", " + << "remote_root_path=" << to_string(remote_root_path); + out << ")"; +} + +bulk_load_response::~bulk_load_response() throw() {} + +void bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void bulk_load_response::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +void bulk_load_response::__set_app_name(const std::string &val) { this->app_name = val; } + +void bulk_load_response::__set_primary_bulk_load_status(const bulk_load_status::type val) +{ + this->primary_bulk_load_status = val; +} + +void bulk_load_response::__set_group_bulk_load_state( + const std::map<::dsn::rpc_address, partition_bulk_load_state> &val) +{ + this->group_bulk_load_state = val; +} + +void bulk_load_response::__set_metadata(const bulk_load_metadata &val) +{ + this->metadata = val; + __isset.metadata = true; +} + +void bulk_load_response::__set_total_download_progress(const int32_t val) +{ + this->total_download_progress = val; + __isset.total_download_progress = true; +} + +void bulk_load_response::__set_is_group_ingestion_finished(const bool val) +{ + this->is_group_ingestion_finished = val; + __isset.is_group_ingestion_finished = true; +} + +void bulk_load_response::__set_is_group_bulk_load_context_cleaned_up(const bool val) +{ + this->is_group_bulk_load_context_cleaned_up = val; + __isset.is_group_bulk_load_context_cleaned_up = true; +} + +void bulk_load_response::__set_is_group_bulk_load_paused(const bool val) +{ + this->is_group_bulk_load_paused = val; + __isset.is_group_bulk_load_paused = true; +} + +uint32_t bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast698; + xfer += iprot->readI32(ecast698); + this->primary_bulk_load_status = (bulk_load_status::type)ecast698; + this->__isset.primary_bulk_load_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->group_bulk_load_state.clear(); + uint32_t _size699; + ::apache::thrift::protocol::TType _ktype700; + ::apache::thrift::protocol::TType _vtype701; + xfer += iprot->readMapBegin(_ktype700, _vtype701, _size699); + uint32_t _i703; + for (_i703 = 0; _i703 < _size699; ++_i703) { + ::dsn::rpc_address _key704; + xfer += _key704.read(iprot); + partition_bulk_load_state &_val705 = this->group_bulk_load_state[_key704]; + xfer += _val705.read(iprot); + } + xfer += iprot->readMapEnd(); + } + this->__isset.group_bulk_load_state = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->metadata.read(iprot); + this->__isset.metadata = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->total_download_progress); + this->__isset.total_download_progress = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_group_ingestion_finished); + this->__isset.is_group_ingestion_finished = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_group_bulk_load_context_cleaned_up); + this->__isset.is_group_bulk_load_context_cleaned_up = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 10: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_group_bulk_load_paused); + this->__isset.is_group_bulk_load_paused = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void control_bulk_load_request::__set_type(const bulk_load_control_type::type val) { - this->type = val; + xfer += iprot->readStructEnd(); + + return xfer; } -uint32_t control_bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("bulk_load_response"); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + xfer += + oprot->writeFieldBegin("primary_bulk_load_status", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->primary_bulk_load_status); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("group_bulk_load_state", ::apache::thrift::protocol::T_MAP, 5); { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast729; - xfer += iprot->readI32(ecast729); - this->type = (bulk_load_control_type::type)ecast729; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, + ::apache::thrift::protocol::T_STRUCT, + static_cast(this->group_bulk_load_state.size())); + std::map<::dsn::rpc_address, partition_bulk_load_state>::const_iterator _iter706; + for (_iter706 = this->group_bulk_load_state.begin(); + _iter706 != this->group_bulk_load_state.end(); + ++_iter706) { + xfer += _iter706->first.write(oprot); + xfer += _iter706->second.write(oprot); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + if (this->__isset.metadata) { + xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->metadata.write(oprot); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.total_download_progress) { + xfer += + oprot->writeFieldBegin("total_download_progress", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32(this->total_download_progress); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_group_ingestion_finished) { + xfer += oprot->writeFieldBegin( + "is_group_ingestion_finished", ::apache::thrift::protocol::T_BOOL, 8); + xfer += oprot->writeBool(this->is_group_ingestion_finished); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_group_bulk_load_context_cleaned_up) { + xfer += oprot->writeFieldBegin( + "is_group_bulk_load_context_cleaned_up", ::apache::thrift::protocol::T_BOOL, 9); + xfer += oprot->writeBool(this->is_group_bulk_load_context_cleaned_up); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_group_bulk_load_paused) { + xfer += oprot->writeFieldBegin( + "is_group_bulk_load_paused", ::apache::thrift::protocol::T_BOOL, 10); + xfer += oprot->writeBool(this->is_group_bulk_load_paused); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(bulk_load_response &a, bulk_load_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.pid, b.pid); + swap(a.app_name, b.app_name); + swap(a.primary_bulk_load_status, b.primary_bulk_load_status); + swap(a.group_bulk_load_state, b.group_bulk_load_state); + swap(a.metadata, b.metadata); + swap(a.total_download_progress, b.total_download_progress); + swap(a.is_group_ingestion_finished, b.is_group_ingestion_finished); + swap(a.is_group_bulk_load_context_cleaned_up, b.is_group_bulk_load_context_cleaned_up); + swap(a.is_group_bulk_load_paused, b.is_group_bulk_load_paused); + swap(a.__isset, b.__isset); +} + +bulk_load_response::bulk_load_response(const bulk_load_response &other707) +{ + err = other707.err; + pid = other707.pid; + app_name = other707.app_name; + primary_bulk_load_status = other707.primary_bulk_load_status; + group_bulk_load_state = other707.group_bulk_load_state; + metadata = other707.metadata; + total_download_progress = other707.total_download_progress; + is_group_ingestion_finished = other707.is_group_ingestion_finished; + is_group_bulk_load_context_cleaned_up = other707.is_group_bulk_load_context_cleaned_up; + is_group_bulk_load_paused = other707.is_group_bulk_load_paused; + __isset = other707.__isset; +} +bulk_load_response::bulk_load_response(bulk_load_response &&other708) +{ + err = std::move(other708.err); + pid = std::move(other708.pid); + app_name = std::move(other708.app_name); + primary_bulk_load_status = std::move(other708.primary_bulk_load_status); + group_bulk_load_state = std::move(other708.group_bulk_load_state); + metadata = std::move(other708.metadata); + total_download_progress = std::move(other708.total_download_progress); + is_group_ingestion_finished = std::move(other708.is_group_ingestion_finished); + is_group_bulk_load_context_cleaned_up = + std::move(other708.is_group_bulk_load_context_cleaned_up); + is_group_bulk_load_paused = std::move(other708.is_group_bulk_load_paused); + __isset = std::move(other708.__isset); +} +bulk_load_response &bulk_load_response::operator=(const bulk_load_response &other709) +{ + err = other709.err; + pid = other709.pid; + app_name = other709.app_name; + primary_bulk_load_status = other709.primary_bulk_load_status; + group_bulk_load_state = other709.group_bulk_load_state; + metadata = other709.metadata; + total_download_progress = other709.total_download_progress; + is_group_ingestion_finished = other709.is_group_ingestion_finished; + is_group_bulk_load_context_cleaned_up = other709.is_group_bulk_load_context_cleaned_up; + is_group_bulk_load_paused = other709.is_group_bulk_load_paused; + __isset = other709.__isset; + return *this; +} +bulk_load_response &bulk_load_response::operator=(bulk_load_response &&other710) +{ + err = std::move(other710.err); + pid = std::move(other710.pid); + app_name = std::move(other710.app_name); + primary_bulk_load_status = std::move(other710.primary_bulk_load_status); + group_bulk_load_state = std::move(other710.group_bulk_load_state); + metadata = std::move(other710.metadata); + total_download_progress = std::move(other710.total_download_progress); + is_group_ingestion_finished = std::move(other710.is_group_ingestion_finished); + is_group_bulk_load_context_cleaned_up = + std::move(other710.is_group_bulk_load_context_cleaned_up); + is_group_bulk_load_paused = std::move(other710.is_group_bulk_load_paused); + __isset = std::move(other710.__isset); + return *this; +} +void bulk_load_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "bulk_load_response("; + out << "err=" << to_string(err); + out << ", " + << "pid=" << to_string(pid); + out << ", " + << "app_name=" << to_string(app_name); + out << ", " + << "primary_bulk_load_status=" << to_string(primary_bulk_load_status); + out << ", " + << "group_bulk_load_state=" << to_string(group_bulk_load_state); + out << ", " + << "metadata="; + (__isset.metadata ? (out << to_string(metadata)) : (out << "")); + out << ", " + << "total_download_progress="; + (__isset.total_download_progress ? (out << to_string(total_download_progress)) + : (out << "")); + out << ", " + << "is_group_ingestion_finished="; + (__isset.is_group_ingestion_finished ? (out << to_string(is_group_ingestion_finished)) + : (out << "")); + out << ", " + << "is_group_bulk_load_context_cleaned_up="; + (__isset.is_group_bulk_load_context_cleaned_up + ? (out << to_string(is_group_bulk_load_context_cleaned_up)) + : (out << "")); + out << ", " + << "is_group_bulk_load_paused="; + (__isset.is_group_bulk_load_paused ? (out << to_string(is_group_bulk_load_paused)) + : (out << "")); + out << ")"; +} + +group_bulk_load_request::~group_bulk_load_request() throw() {} + +void group_bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void group_bulk_load_request::__set_target_address(const ::dsn::rpc_address &val) +{ + this->target_address = val; +} + +void group_bulk_load_request::__set_config(const replica_configuration &val) { this->config = val; } + +void group_bulk_load_request::__set_provider_name(const std::string &val) +{ + this->provider_name = val; +} + +void group_bulk_load_request::__set_cluster_name(const std::string &val) +{ + this->cluster_name = val; +} + +void group_bulk_load_request::__set_meta_bulk_load_status(const bulk_load_status::type val) +{ + this->meta_bulk_load_status = val; +} + +void group_bulk_load_request::__set_remote_root_path(const std::string &val) +{ + this->remote_root_path = val; +} + +uint32_t group_bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->target_address.read(iprot); + this->__isset.target_address = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->config.read(iprot); + this->__isset.config = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->provider_name); + this->__isset.provider_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cluster_name); + this->__isset.cluster_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast711; + xfer += iprot->readI32(ecast711); + this->meta_bulk_load_status = (bulk_load_status::type)ecast711; + this->__isset.meta_bulk_load_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->remote_root_path); + this->__isset.remote_root_path = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t control_bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("control_bulk_load_request"); +uint32_t group_bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("group_bulk_load_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("target_address", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->target_address.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldBegin("config", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->config.write(oprot); + xfer += oprot->writeFieldEnd(); -void swap(control_bulk_load_request &a, control_bulk_load_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.type, b.type); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldBegin("provider_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->provider_name); + xfer += oprot->writeFieldEnd(); -control_bulk_load_request::control_bulk_load_request(const control_bulk_load_request& other730) { - app_name = other730.app_name; - type = other730.type; - __isset = other730.__isset; -} -control_bulk_load_request::control_bulk_load_request( control_bulk_load_request&& other731) { - app_name = std::move(other731.app_name); - type = std::move(other731.type); - __isset = std::move(other731.__isset); -} -control_bulk_load_request& control_bulk_load_request::operator=(const control_bulk_load_request& other732) { - app_name = other732.app_name; - type = other732.type; - __isset = other732.__isset; - return *this; -} -control_bulk_load_request& control_bulk_load_request::operator=(control_bulk_load_request&& other733) { - app_name = std::move(other733.app_name); - type = std::move(other733.type); - __isset = std::move(other733.__isset); - return *this; -} -void control_bulk_load_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "control_bulk_load_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "type=" << to_string(type); - out << ")"; -} + xfer += oprot->writeFieldBegin("cluster_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->cluster_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("meta_bulk_load_status", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((int32_t)this->meta_bulk_load_status); + xfer += oprot->writeFieldEnd(); -control_bulk_load_response::~control_bulk_load_response() throw() { -} + xfer += oprot->writeFieldBegin("remote_root_path", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->remote_root_path); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(group_bulk_load_request &a, group_bulk_load_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.target_address, b.target_address); + swap(a.config, b.config); + swap(a.provider_name, b.provider_name); + swap(a.cluster_name, b.cluster_name); + swap(a.meta_bulk_load_status, b.meta_bulk_load_status); + swap(a.remote_root_path, b.remote_root_path); + swap(a.__isset, b.__isset); +} + +group_bulk_load_request::group_bulk_load_request(const group_bulk_load_request &other712) +{ + app_name = other712.app_name; + target_address = other712.target_address; + config = other712.config; + provider_name = other712.provider_name; + cluster_name = other712.cluster_name; + meta_bulk_load_status = other712.meta_bulk_load_status; + remote_root_path = other712.remote_root_path; + __isset = other712.__isset; +} +group_bulk_load_request::group_bulk_load_request(group_bulk_load_request &&other713) +{ + app_name = std::move(other713.app_name); + target_address = std::move(other713.target_address); + config = std::move(other713.config); + provider_name = std::move(other713.provider_name); + cluster_name = std::move(other713.cluster_name); + meta_bulk_load_status = std::move(other713.meta_bulk_load_status); + remote_root_path = std::move(other713.remote_root_path); + __isset = std::move(other713.__isset); +} +group_bulk_load_request &group_bulk_load_request::operator=(const group_bulk_load_request &other714) +{ + app_name = other714.app_name; + target_address = other714.target_address; + config = other714.config; + provider_name = other714.provider_name; + cluster_name = other714.cluster_name; + meta_bulk_load_status = other714.meta_bulk_load_status; + remote_root_path = other714.remote_root_path; + __isset = other714.__isset; + return *this; +} +group_bulk_load_request &group_bulk_load_request::operator=(group_bulk_load_request &&other715) +{ + app_name = std::move(other715.app_name); + target_address = std::move(other715.target_address); + config = std::move(other715.config); + provider_name = std::move(other715.provider_name); + cluster_name = std::move(other715.cluster_name); + meta_bulk_load_status = std::move(other715.meta_bulk_load_status); + remote_root_path = std::move(other715.remote_root_path); + __isset = std::move(other715.__isset); + return *this; +} +void group_bulk_load_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "group_bulk_load_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "target_address=" << to_string(target_address); + out << ", " + << "config=" << to_string(config); + out << ", " + << "provider_name=" << to_string(provider_name); + out << ", " + << "cluster_name=" << to_string(cluster_name); + out << ", " + << "meta_bulk_load_status=" << to_string(meta_bulk_load_status); + out << ", " + << "remote_root_path=" << to_string(remote_root_path); + out << ")"; +} + +group_bulk_load_response::~group_bulk_load_response() throw() {} + +void group_bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void group_bulk_load_response::__set_status(const bulk_load_status::type val) +{ + this->status = val; +} + +void group_bulk_load_response::__set_bulk_load_state(const partition_bulk_load_state &val) +{ + this->bulk_load_state = val; +} + +uint32_t group_bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast716; + xfer += iprot->readI32(ecast716); + this->status = (bulk_load_status::type)ecast716; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->bulk_load_state.read(iprot); + this->__isset.bulk_load_state = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void control_bulk_load_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += iprot->readStructEnd(); -void control_bulk_load_response::__set_hint_msg(const std::string& val) { - this->hint_msg = val; -__isset.hint_msg = true; + return xfer; } -uint32_t control_bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t group_bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("group_bulk_load_response"); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("bulk_load_state", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->bulk_load_state.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(group_bulk_load_response &a, group_bulk_load_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.status, b.status); + swap(a.bulk_load_state, b.bulk_load_state); + swap(a.__isset, b.__isset); +} + +group_bulk_load_response::group_bulk_load_response(const group_bulk_load_response &other717) +{ + err = other717.err; + status = other717.status; + bulk_load_state = other717.bulk_load_state; + __isset = other717.__isset; +} +group_bulk_load_response::group_bulk_load_response(group_bulk_load_response &&other718) +{ + err = std::move(other718.err); + status = std::move(other718.status); + bulk_load_state = std::move(other718.bulk_load_state); + __isset = std::move(other718.__isset); +} +group_bulk_load_response &group_bulk_load_response:: +operator=(const group_bulk_load_response &other719) +{ + err = other719.err; + status = other719.status; + bulk_load_state = other719.bulk_load_state; + __isset = other719.__isset; + return *this; +} +group_bulk_load_response &group_bulk_load_response::operator=(group_bulk_load_response &&other720) +{ + err = std::move(other720.err); + status = std::move(other720.status); + bulk_load_state = std::move(other720.bulk_load_state); + __isset = std::move(other720.__isset); + return *this; +} +void group_bulk_load_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "group_bulk_load_response("; + out << "err=" << to_string(err); + out << ", " + << "status=" << to_string(status); + out << ", " + << "bulk_load_state=" << to_string(bulk_load_state); + out << ")"; +} + +ingestion_request::~ingestion_request() throw() {} + +void ingestion_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void ingestion_request::__set_metadata(const bulk_load_metadata &val) { this->metadata = val; } + +uint32_t ingestion_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->metadata.read(iprot); + this->__isset.metadata = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t control_bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("control_bulk_load_response"); +uint32_t ingestion_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ingestion_request"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - if (this->__isset.hint_msg) { - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->metadata.write(oprot); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} -void swap(control_bulk_load_response &a, control_bulk_load_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ingestion_request &a, ingestion_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.metadata, b.metadata); + swap(a.__isset, b.__isset); +} + +ingestion_request::ingestion_request(const ingestion_request &other721) +{ + app_name = other721.app_name; + metadata = other721.metadata; + __isset = other721.__isset; +} +ingestion_request::ingestion_request(ingestion_request &&other722) +{ + app_name = std::move(other722.app_name); + metadata = std::move(other722.metadata); + __isset = std::move(other722.__isset); +} +ingestion_request &ingestion_request::operator=(const ingestion_request &other723) +{ + app_name = other723.app_name; + metadata = other723.metadata; + __isset = other723.__isset; + return *this; +} +ingestion_request &ingestion_request::operator=(ingestion_request &&other724) +{ + app_name = std::move(other724.app_name); + metadata = std::move(other724.metadata); + __isset = std::move(other724.__isset); + return *this; +} +void ingestion_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "ingestion_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "metadata=" << to_string(metadata); + out << ")"; +} + +ingestion_response::~ingestion_response() throw() {} + +void ingestion_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void ingestion_response::__set_rocksdb_error(const int32_t val) { this->rocksdb_error = val; } + +uint32_t ingestion_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->rocksdb_error); + this->__isset.rocksdb_error = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -control_bulk_load_response::control_bulk_load_response(const control_bulk_load_response& other734) { - err = other734.err; - hint_msg = other734.hint_msg; - __isset = other734.__isset; -} -control_bulk_load_response::control_bulk_load_response( control_bulk_load_response&& other735) { - err = std::move(other735.err); - hint_msg = std::move(other735.hint_msg); - __isset = std::move(other735.__isset); -} -control_bulk_load_response& control_bulk_load_response::operator=(const control_bulk_load_response& other736) { - err = other736.err; - hint_msg = other736.hint_msg; - __isset = other736.__isset; - return *this; -} -control_bulk_load_response& control_bulk_load_response::operator=(control_bulk_load_response&& other737) { - err = std::move(other737.err); - hint_msg = std::move(other737.hint_msg); - __isset = std::move(other737.__isset); - return *this; -} -void control_bulk_load_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "control_bulk_load_response("; - out << "err=" << to_string(err); - out << ", " << "hint_msg="; (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); - out << ")"; + xfer += iprot->readStructEnd(); + + return xfer; } +uint32_t ingestion_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ingestion_response"); -query_bulk_load_request::~query_bulk_load_request() throw() { -} + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("rocksdb_error", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->rocksdb_error); + xfer += oprot->writeFieldEnd(); -void query_bulk_load_request::__set_app_name(const std::string& val) { - this->app_name = val; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(ingestion_response &a, ingestion_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.rocksdb_error, b.rocksdb_error); + swap(a.__isset, b.__isset); +} + +ingestion_response::ingestion_response(const ingestion_response &other725) +{ + err = other725.err; + rocksdb_error = other725.rocksdb_error; + __isset = other725.__isset; +} +ingestion_response::ingestion_response(ingestion_response &&other726) +{ + err = std::move(other726.err); + rocksdb_error = std::move(other726.rocksdb_error); + __isset = std::move(other726.__isset); +} +ingestion_response &ingestion_response::operator=(const ingestion_response &other727) +{ + err = other727.err; + rocksdb_error = other727.rocksdb_error; + __isset = other727.__isset; + return *this; +} +ingestion_response &ingestion_response::operator=(ingestion_response &&other728) +{ + err = std::move(other728.err); + rocksdb_error = std::move(other728.rocksdb_error); + __isset = std::move(other728.__isset); + return *this; +} +void ingestion_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "ingestion_response("; + out << "err=" << to_string(err); + out << ", " + << "rocksdb_error=" << to_string(rocksdb_error); + out << ")"; +} + +control_bulk_load_request::~control_bulk_load_request() throw() {} + +void control_bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } + +void control_bulk_load_request::__set_type(const bulk_load_control_type::type val) +{ + this->type = val; +} + +uint32_t control_bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast729; + xfer += iprot->readI32(ecast729); + this->type = (bulk_load_control_type::type)ecast729; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -uint32_t query_bulk_load_request::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += iprot->readStructEnd(); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + return xfer; +} - xfer += iprot->readStructBegin(fname); +uint32_t control_bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("control_bulk_load_request"); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(control_bulk_load_request &a, control_bulk_load_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.type, b.type); + swap(a.__isset, b.__isset); +} + +control_bulk_load_request::control_bulk_load_request(const control_bulk_load_request &other730) +{ + app_name = other730.app_name; + type = other730.type; + __isset = other730.__isset; +} +control_bulk_load_request::control_bulk_load_request(control_bulk_load_request &&other731) +{ + app_name = std::move(other731.app_name); + type = std::move(other731.type); + __isset = std::move(other731.__isset); +} +control_bulk_load_request &control_bulk_load_request:: +operator=(const control_bulk_load_request &other732) +{ + app_name = other732.app_name; + type = other732.type; + __isset = other732.__isset; + return *this; +} +control_bulk_load_request &control_bulk_load_request:: +operator=(control_bulk_load_request &&other733) +{ + app_name = std::move(other733.app_name); + type = std::move(other733.type); + __isset = std::move(other733.__isset); + return *this; +} +void control_bulk_load_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "control_bulk_load_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "type=" << to_string(type); + out << ")"; +} + +control_bulk_load_response::~control_bulk_load_response() throw() {} + +void control_bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void control_bulk_load_response::__set_hint_msg(const std::string &val) +{ + this->hint_msg = val; + __isset.hint_msg = true; +} + +uint32_t control_bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_bulk_load_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_bulk_load_request"); +uint32_t control_bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("control_bulk_load_response"); + + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.hint_msg) { + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(control_bulk_load_response &a, control_bulk_load_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} + +control_bulk_load_response::control_bulk_load_response(const control_bulk_load_response &other734) +{ + err = other734.err; + hint_msg = other734.hint_msg; + __isset = other734.__isset; +} +control_bulk_load_response::control_bulk_load_response(control_bulk_load_response &&other735) +{ + err = std::move(other735.err); + hint_msg = std::move(other735.hint_msg); + __isset = std::move(other735.__isset); +} +control_bulk_load_response &control_bulk_load_response:: +operator=(const control_bulk_load_response &other736) +{ + err = other736.err; + hint_msg = other736.hint_msg; + __isset = other736.__isset; + return *this; +} +control_bulk_load_response &control_bulk_load_response:: +operator=(control_bulk_load_response &&other737) +{ + err = std::move(other737.err); + hint_msg = std::move(other737.hint_msg); + __isset = std::move(other737.__isset); + return *this; +} +void control_bulk_load_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "control_bulk_load_response("; + out << "err=" << to_string(err); + out << ", " + << "hint_msg="; + (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); + out << ")"; +} + +query_bulk_load_request::~query_bulk_load_request() throw() {} + +void query_bulk_load_request::__set_app_name(const std::string &val) { this->app_name = val; } + +uint32_t query_bulk_load_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(query_bulk_load_request &a, query_bulk_load_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.__isset, b.__isset); +uint32_t query_bulk_load_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_bulk_load_request"); + + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -query_bulk_load_request::query_bulk_load_request(const query_bulk_load_request& other738) { - app_name = other738.app_name; - __isset = other738.__isset; +void swap(query_bulk_load_request &a, query_bulk_load_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.__isset, b.__isset); } -query_bulk_load_request::query_bulk_load_request( query_bulk_load_request&& other739) { - app_name = std::move(other739.app_name); - __isset = std::move(other739.__isset); + +query_bulk_load_request::query_bulk_load_request(const query_bulk_load_request &other738) +{ + app_name = other738.app_name; + __isset = other738.__isset; } -query_bulk_load_request& query_bulk_load_request::operator=(const query_bulk_load_request& other740) { - app_name = other740.app_name; - __isset = other740.__isset; - return *this; +query_bulk_load_request::query_bulk_load_request(query_bulk_load_request &&other739) +{ + app_name = std::move(other739.app_name); + __isset = std::move(other739.__isset); } -query_bulk_load_request& query_bulk_load_request::operator=(query_bulk_load_request&& other741) { - app_name = std::move(other741.app_name); - __isset = std::move(other741.__isset); - return *this; +query_bulk_load_request &query_bulk_load_request::operator=(const query_bulk_load_request &other740) +{ + app_name = other740.app_name; + __isset = other740.__isset; + return *this; } -void query_bulk_load_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_bulk_load_request("; - out << "app_name=" << to_string(app_name); - out << ")"; +query_bulk_load_request &query_bulk_load_request::operator=(query_bulk_load_request &&other741) +{ + app_name = std::move(other741.app_name); + __isset = std::move(other741.__isset); + return *this; } - - -query_bulk_load_response::~query_bulk_load_response() throw() { +void query_bulk_load_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_bulk_load_request("; + out << "app_name=" << to_string(app_name); + out << ")"; } +query_bulk_load_response::~query_bulk_load_response() throw() {} -void query_bulk_load_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} +void query_bulk_load_response::__set_err(const ::dsn::error_code &val) { this->err = val; } -void query_bulk_load_response::__set_app_name(const std::string& val) { - this->app_name = val; -} +void query_bulk_load_response::__set_app_name(const std::string &val) { this->app_name = val; } -void query_bulk_load_response::__set_app_status(const bulk_load_status::type val) { - this->app_status = val; +void query_bulk_load_response::__set_app_status(const bulk_load_status::type val) +{ + this->app_status = val; } -void query_bulk_load_response::__set_partitions_status(const std::vector & val) { - this->partitions_status = val; +void query_bulk_load_response::__set_partitions_status( + const std::vector &val) +{ + this->partitions_status = val; } -void query_bulk_load_response::__set_max_replica_count(const int32_t val) { - this->max_replica_count = val; +void query_bulk_load_response::__set_max_replica_count(const int32_t val) +{ + this->max_replica_count = val; } -void query_bulk_load_response::__set_bulk_load_states(const std::vector > & val) { - this->bulk_load_states = val; +void query_bulk_load_response::__set_bulk_load_states( + const std::vector> &val) +{ + this->bulk_load_states = val; } -void query_bulk_load_response::__set_hint_msg(const std::string& val) { - this->hint_msg = val; -__isset.hint_msg = true; +void query_bulk_load_response::__set_hint_msg(const std::string &val) +{ + this->hint_msg = val; + __isset.hint_msg = true; } -uint32_t query_bulk_load_response::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t query_bulk_load_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast742; - xfer += iprot->readI32(ecast742); - this->app_status = (bulk_load_status::type)ecast742; - this->__isset.app_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partitions_status.clear(); - uint32_t _size743; - ::apache::thrift::protocol::TType _etype746; - xfer += iprot->readListBegin(_etype746, _size743); - this->partitions_status.resize(_size743); - uint32_t _i747; - for (_i747 = 0; _i747 < _size743; ++_i747) - { - int32_t ecast748; - xfer += iprot->readI32(ecast748); - this->partitions_status[_i747] = (bulk_load_status::type)ecast748; - } - xfer += iprot->readListEnd(); - } - this->__isset.partitions_status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->max_replica_count); - this->__isset.max_replica_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->bulk_load_states.clear(); - uint32_t _size749; - ::apache::thrift::protocol::TType _etype752; - xfer += iprot->readListBegin(_etype752, _size749); - this->bulk_load_states.resize(_size749); - uint32_t _i753; - for (_i753 = 0; _i753 < _size749; ++_i753) - { - { - this->bulk_load_states[_i753].clear(); - uint32_t _size754; - ::apache::thrift::protocol::TType _ktype755; - ::apache::thrift::protocol::TType _vtype756; - xfer += iprot->readMapBegin(_ktype755, _vtype756, _size754); - uint32_t _i758; - for (_i758 = 0; _i758 < _size754; ++_i758) + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast742; + xfer += iprot->readI32(ecast742); + this->app_status = (bulk_load_status::type)ecast742; + this->__isset.app_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_LIST) { { - ::dsn::rpc_address _key759; - xfer += _key759.read(iprot); - partition_bulk_load_state& _val760 = this->bulk_load_states[_i753][_key759]; - xfer += _val760.read(iprot); + this->partitions_status.clear(); + uint32_t _size743; + ::apache::thrift::protocol::TType _etype746; + xfer += iprot->readListBegin(_etype746, _size743); + this->partitions_status.resize(_size743); + uint32_t _i747; + for (_i747 = 0; _i747 < _size743; ++_i747) { + int32_t ecast748; + xfer += iprot->readI32(ecast748); + this->partitions_status[_i747] = (bulk_load_status::type)ecast748; + } + xfer += iprot->readListEnd(); } - xfer += iprot->readMapEnd(); - } - } - xfer += iprot->readListEnd(); - } - this->__isset.bulk_load_states = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hint_msg); - this->__isset.hint_msg = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + this->__isset.partitions_status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->max_replica_count); + this->__isset.max_replica_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->bulk_load_states.clear(); + uint32_t _size749; + ::apache::thrift::protocol::TType _etype752; + xfer += iprot->readListBegin(_etype752, _size749); + this->bulk_load_states.resize(_size749); + uint32_t _i753; + for (_i753 = 0; _i753 < _size749; ++_i753) { + { + this->bulk_load_states[_i753].clear(); + uint32_t _size754; + ::apache::thrift::protocol::TType _ktype755; + ::apache::thrift::protocol::TType _vtype756; + xfer += iprot->readMapBegin(_ktype755, _vtype756, _size754); + uint32_t _i758; + for (_i758 = 0; _i758 < _size754; ++_i758) { + ::dsn::rpc_address _key759; + xfer += _key759.read(iprot); + partition_bulk_load_state &_val760 = + this->bulk_load_states[_i753][_key759]; + xfer += _val760.read(iprot); + } + xfer += iprot->readMapEnd(); + } + } + xfer += iprot->readListEnd(); + } + this->__isset.bulk_load_states = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hint_msg); + this->__isset.hint_msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t query_bulk_load_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("query_bulk_load_response"); +uint32_t query_bulk_load_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("query_bulk_load_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_status", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->app_status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_status", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->app_status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partitions_status", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->partitions_status.size())); - std::vector ::const_iterator _iter761; - for (_iter761 = this->partitions_status.begin(); _iter761 != this->partitions_status.end(); ++_iter761) + xfer += oprot->writeFieldBegin("partitions_status", ::apache::thrift::protocol::T_LIST, 4); { - xfer += oprot->writeI32((int32_t)(*_iter761)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->max_replica_count); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("bulk_load_states", ::apache::thrift::protocol::T_LIST, 6); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_MAP, static_cast(this->bulk_load_states.size())); - std::vector > ::const_iterator _iter762; - for (_iter762 = this->bulk_load_states.begin(); _iter762 != this->bulk_load_states.end(); ++_iter762) - { - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, ::apache::thrift::protocol::T_STRUCT, static_cast((*_iter762).size())); - std::map< ::dsn::rpc_address, partition_bulk_load_state> ::const_iterator _iter763; - for (_iter763 = (*_iter762).begin(); _iter763 != (*_iter762).end(); ++_iter763) - { - xfer += _iter763->first.write(oprot); - xfer += _iter763->second.write(oprot); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, + static_cast(this->partitions_status.size())); + std::vector::const_iterator _iter761; + for (_iter761 = this->partitions_status.begin(); _iter761 != this->partitions_status.end(); + ++_iter761) { + xfer += oprot->writeI32((int32_t)(*_iter761)); } - xfer += oprot->writeMapEnd(); - } + xfer += oprot->writeListEnd(); } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldEnd(); - if (this->__isset.hint_msg) { - xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->max_replica_count); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} -void swap(query_bulk_load_response &a, query_bulk_load_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.app_name, b.app_name); - swap(a.app_status, b.app_status); - swap(a.partitions_status, b.partitions_status); - swap(a.max_replica_count, b.max_replica_count); - swap(a.bulk_load_states, b.bulk_load_states); - swap(a.hint_msg, b.hint_msg); - swap(a.__isset, b.__isset); -} - -query_bulk_load_response::query_bulk_load_response(const query_bulk_load_response& other764) { - err = other764.err; - app_name = other764.app_name; - app_status = other764.app_status; - partitions_status = other764.partitions_status; - max_replica_count = other764.max_replica_count; - bulk_load_states = other764.bulk_load_states; - hint_msg = other764.hint_msg; - __isset = other764.__isset; -} -query_bulk_load_response::query_bulk_load_response( query_bulk_load_response&& other765) { - err = std::move(other765.err); - app_name = std::move(other765.app_name); - app_status = std::move(other765.app_status); - partitions_status = std::move(other765.partitions_status); - max_replica_count = std::move(other765.max_replica_count); - bulk_load_states = std::move(other765.bulk_load_states); - hint_msg = std::move(other765.hint_msg); - __isset = std::move(other765.__isset); -} -query_bulk_load_response& query_bulk_load_response::operator=(const query_bulk_load_response& other766) { - err = other766.err; - app_name = other766.app_name; - app_status = other766.app_status; - partitions_status = other766.partitions_status; - max_replica_count = other766.max_replica_count; - bulk_load_states = other766.bulk_load_states; - hint_msg = other766.hint_msg; - __isset = other766.__isset; - return *this; -} -query_bulk_load_response& query_bulk_load_response::operator=(query_bulk_load_response&& other767) { - err = std::move(other767.err); - app_name = std::move(other767.app_name); - app_status = std::move(other767.app_status); - partitions_status = std::move(other767.partitions_status); - max_replica_count = std::move(other767.max_replica_count); - bulk_load_states = std::move(other767.bulk_load_states); - hint_msg = std::move(other767.hint_msg); - __isset = std::move(other767.__isset); - return *this; -} -void query_bulk_load_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "query_bulk_load_response("; - out << "err=" << to_string(err); - out << ", " << "app_name=" << to_string(app_name); - out << ", " << "app_status=" << to_string(app_status); - out << ", " << "partitions_status=" << to_string(partitions_status); - out << ", " << "max_replica_count=" << to_string(max_replica_count); - out << ", " << "bulk_load_states=" << to_string(bulk_load_states); - out << ", " << "hint_msg="; (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); - out << ")"; -} - - -detect_hotkey_request::~detect_hotkey_request() throw() { -} - - -void detect_hotkey_request::__set_type(const hotkey_type::type val) { - this->type = val; -} - -void detect_hotkey_request::__set_action(const detect_action::type val) { - this->action = val; -} - -void detect_hotkey_request::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} - -uint32_t detect_hotkey_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeFieldBegin("bulk_load_states", ::apache::thrift::protocol::T_LIST, 6); { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast768; - xfer += iprot->readI32(ecast768); - this->type = (hotkey_type::type)ecast768; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast769; - xfer += iprot->readI32(ecast769); - this->action = (detect_action::type)ecast769; - this->__isset.action = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_MAP, + static_cast(this->bulk_load_states.size())); + std::vector>::const_iterator + _iter762; + for (_iter762 = this->bulk_load_states.begin(); _iter762 != this->bulk_load_states.end(); + ++_iter762) { + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRUCT, + ::apache::thrift::protocol::T_STRUCT, + static_cast((*_iter762).size())); + std::map<::dsn::rpc_address, partition_bulk_load_state>::const_iterator _iter763; + for (_iter763 = (*_iter762).begin(); _iter763 != (*_iter762).end(); ++_iter763) { + xfer += _iter763->first.write(oprot); + xfer += _iter763->second.write(oprot); + } + xfer += oprot->writeMapEnd(); + } + } + xfer += oprot->writeListEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t detect_hotkey_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("detect_hotkey_request"); - - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("action", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->action); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + if (this->__isset.hint_msg) { + xfer += oprot->writeFieldBegin("hint_msg", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->hint_msg); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(query_bulk_load_response &a, query_bulk_load_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.app_name, b.app_name); + swap(a.app_status, b.app_status); + swap(a.partitions_status, b.partitions_status); + swap(a.max_replica_count, b.max_replica_count); + swap(a.bulk_load_states, b.bulk_load_states); + swap(a.hint_msg, b.hint_msg); + swap(a.__isset, b.__isset); +} + +query_bulk_load_response::query_bulk_load_response(const query_bulk_load_response &other764) +{ + err = other764.err; + app_name = other764.app_name; + app_status = other764.app_status; + partitions_status = other764.partitions_status; + max_replica_count = other764.max_replica_count; + bulk_load_states = other764.bulk_load_states; + hint_msg = other764.hint_msg; + __isset = other764.__isset; +} +query_bulk_load_response::query_bulk_load_response(query_bulk_load_response &&other765) +{ + err = std::move(other765.err); + app_name = std::move(other765.app_name); + app_status = std::move(other765.app_status); + partitions_status = std::move(other765.partitions_status); + max_replica_count = std::move(other765.max_replica_count); + bulk_load_states = std::move(other765.bulk_load_states); + hint_msg = std::move(other765.hint_msg); + __isset = std::move(other765.__isset); +} +query_bulk_load_response &query_bulk_load_response:: +operator=(const query_bulk_load_response &other766) +{ + err = other766.err; + app_name = other766.app_name; + app_status = other766.app_status; + partitions_status = other766.partitions_status; + max_replica_count = other766.max_replica_count; + bulk_load_states = other766.bulk_load_states; + hint_msg = other766.hint_msg; + __isset = other766.__isset; + return *this; +} +query_bulk_load_response &query_bulk_load_response::operator=(query_bulk_load_response &&other767) +{ + err = std::move(other767.err); + app_name = std::move(other767.app_name); + app_status = std::move(other767.app_status); + partitions_status = std::move(other767.partitions_status); + max_replica_count = std::move(other767.max_replica_count); + bulk_load_states = std::move(other767.bulk_load_states); + hint_msg = std::move(other767.hint_msg); + __isset = std::move(other767.__isset); + return *this; +} +void query_bulk_load_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "query_bulk_load_response("; + out << "err=" << to_string(err); + out << ", " + << "app_name=" << to_string(app_name); + out << ", " + << "app_status=" << to_string(app_status); + out << ", " + << "partitions_status=" << to_string(partitions_status); + out << ", " + << "max_replica_count=" << to_string(max_replica_count); + out << ", " + << "bulk_load_states=" << to_string(bulk_load_states); + out << ", " + << "hint_msg="; + (__isset.hint_msg ? (out << to_string(hint_msg)) : (out << "")); + out << ")"; +} + +detect_hotkey_request::~detect_hotkey_request() throw() {} + +void detect_hotkey_request::__set_type(const hotkey_type::type val) { this->type = val; } + +void detect_hotkey_request::__set_action(const detect_action::type val) { this->action = val; } + +void detect_hotkey_request::__set_pid(const ::dsn::gpid &val) { this->pid = val; } + +uint32_t detect_hotkey_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast768; + xfer += iprot->readI32(ecast768); + this->type = (hotkey_type::type)ecast768; + this->__isset.type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast769; + xfer += iprot->readI32(ecast769); + this->action = (detect_action::type)ecast769; + this->__isset.action = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += iprot->readStructEnd(); -void swap(detect_hotkey_request &a, detect_hotkey_request &b) { - using ::std::swap; - swap(a.type, b.type); - swap(a.action, b.action); - swap(a.pid, b.pid); - swap(a.__isset, b.__isset); + return xfer; } -detect_hotkey_request::detect_hotkey_request(const detect_hotkey_request& other770) { - type = other770.type; - action = other770.action; - pid = other770.pid; - __isset = other770.__isset; -} -detect_hotkey_request::detect_hotkey_request( detect_hotkey_request&& other771) { - type = std::move(other771.type); - action = std::move(other771.action); - pid = std::move(other771.pid); - __isset = std::move(other771.__isset); -} -detect_hotkey_request& detect_hotkey_request::operator=(const detect_hotkey_request& other772) { - type = other772.type; - action = other772.action; - pid = other772.pid; - __isset = other772.__isset; - return *this; -} -detect_hotkey_request& detect_hotkey_request::operator=(detect_hotkey_request&& other773) { - type = std::move(other773.type); - action = std::move(other773.action); - pid = std::move(other773.pid); - __isset = std::move(other773.__isset); - return *this; -} -void detect_hotkey_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "detect_hotkey_request("; - out << "type=" << to_string(type); - out << ", " << "action=" << to_string(action); - out << ", " << "pid=" << to_string(pid); - out << ")"; -} +uint32_t detect_hotkey_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("detect_hotkey_request"); + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); -detect_hotkey_response::~detect_hotkey_response() throw() { -} + xfer += oprot->writeFieldBegin("action", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->action); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); -void detect_hotkey_response::__set_err(const ::dsn::error_code& val) { - this->err = val; -} + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(detect_hotkey_request &a, detect_hotkey_request &b) +{ + using ::std::swap; + swap(a.type, b.type); + swap(a.action, b.action); + swap(a.pid, b.pid); + swap(a.__isset, b.__isset); +} + +detect_hotkey_request::detect_hotkey_request(const detect_hotkey_request &other770) +{ + type = other770.type; + action = other770.action; + pid = other770.pid; + __isset = other770.__isset; +} +detect_hotkey_request::detect_hotkey_request(detect_hotkey_request &&other771) +{ + type = std::move(other771.type); + action = std::move(other771.action); + pid = std::move(other771.pid); + __isset = std::move(other771.__isset); +} +detect_hotkey_request &detect_hotkey_request::operator=(const detect_hotkey_request &other772) +{ + type = other772.type; + action = other772.action; + pid = other772.pid; + __isset = other772.__isset; + return *this; +} +detect_hotkey_request &detect_hotkey_request::operator=(detect_hotkey_request &&other773) +{ + type = std::move(other773.type); + action = std::move(other773.action); + pid = std::move(other773.pid); + __isset = std::move(other773.__isset); + return *this; +} +void detect_hotkey_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "detect_hotkey_request("; + out << "type=" << to_string(type); + out << ", " + << "action=" << to_string(action); + out << ", " + << "pid=" << to_string(pid); + out << ")"; +} + +detect_hotkey_response::~detect_hotkey_response() throw() {} + +void detect_hotkey_response::__set_err(const ::dsn::error_code &val) { this->err = val; } + +void detect_hotkey_response::__set_err_hint(const std::string &val) +{ + this->err_hint = val; + __isset.err_hint = true; +} + +void detect_hotkey_response::__set_hotkey_result(const std::string &val) +{ + this->hotkey_result = val; + __isset.hotkey_result = true; +} + +uint32_t detect_hotkey_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->err_hint); + this->__isset.err_hint = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->hotkey_result); + this->__isset.hotkey_result = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -void detect_hotkey_response::__set_err_hint(const std::string& val) { - this->err_hint = val; -__isset.err_hint = true; -} + xfer += iprot->readStructEnd(); -void detect_hotkey_response::__set_hotkey_result(const std::string& val) { - this->hotkey_result = val; -__isset.hotkey_result = true; + return xfer; } -uint32_t detect_hotkey_response::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; +uint32_t detect_hotkey_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("detect_hotkey_response"); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->err_hint); - this->__isset.err_hint = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->hotkey_result); - this->__isset.hotkey_result = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t detect_hotkey_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("detect_hotkey_response"); - - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.err_hint) { - xfer += oprot->writeFieldBegin("err_hint", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->err_hint); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.hotkey_result) { - xfer += oprot->writeFieldBegin("hotkey_result", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->hotkey_result); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(detect_hotkey_response &a, detect_hotkey_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.err_hint, b.err_hint); - swap(a.hotkey_result, b.hotkey_result); - swap(a.__isset, b.__isset); -} - -detect_hotkey_response::detect_hotkey_response(const detect_hotkey_response& other774) { - err = other774.err; - err_hint = other774.err_hint; - hotkey_result = other774.hotkey_result; - __isset = other774.__isset; -} -detect_hotkey_response::detect_hotkey_response( detect_hotkey_response&& other775) { - err = std::move(other775.err); - err_hint = std::move(other775.err_hint); - hotkey_result = std::move(other775.hotkey_result); - __isset = std::move(other775.__isset); -} -detect_hotkey_response& detect_hotkey_response::operator=(const detect_hotkey_response& other776) { - err = other776.err; - err_hint = other776.err_hint; - hotkey_result = other776.hotkey_result; - __isset = other776.__isset; - return *this; -} -detect_hotkey_response& detect_hotkey_response::operator=(detect_hotkey_response&& other777) { - err = std::move(other777.err); - err_hint = std::move(other777.err_hint); - hotkey_result = std::move(other777.hotkey_result); - __isset = std::move(other777.__isset); - return *this; -} -void detect_hotkey_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "detect_hotkey_response("; - out << "err=" << to_string(err); - out << ", " << "err_hint="; (__isset.err_hint ? (out << to_string(err_hint)) : (out << "")); - out << ", " << "hotkey_result="; (__isset.hotkey_result ? (out << to_string(hotkey_result)) : (out << "")); - out << ")"; -} - -}} // namespace + if (this->__isset.err_hint) { + xfer += oprot->writeFieldBegin("err_hint", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->err_hint); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.hotkey_result) { + xfer += oprot->writeFieldBegin("hotkey_result", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->hotkey_result); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(detect_hotkey_response &a, detect_hotkey_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.err_hint, b.err_hint); + swap(a.hotkey_result, b.hotkey_result); + swap(a.__isset, b.__isset); +} + +detect_hotkey_response::detect_hotkey_response(const detect_hotkey_response &other774) +{ + err = other774.err; + err_hint = other774.err_hint; + hotkey_result = other774.hotkey_result; + __isset = other774.__isset; +} +detect_hotkey_response::detect_hotkey_response(detect_hotkey_response &&other775) +{ + err = std::move(other775.err); + err_hint = std::move(other775.err_hint); + hotkey_result = std::move(other775.hotkey_result); + __isset = std::move(other775.__isset); +} +detect_hotkey_response &detect_hotkey_response::operator=(const detect_hotkey_response &other776) +{ + err = other776.err; + err_hint = other776.err_hint; + hotkey_result = other776.hotkey_result; + __isset = other776.__isset; + return *this; +} +detect_hotkey_response &detect_hotkey_response::operator=(detect_hotkey_response &&other777) +{ + err = std::move(other777.err); + err_hint = std::move(other777.err_hint); + hotkey_result = std::move(other777.hotkey_result); + __isset = std::move(other777.__isset); + return *this; +} +void detect_hotkey_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "detect_hotkey_response("; + out << "err=" << to_string(err); + out << ", " + << "err_hint="; + (__isset.err_hint ? (out << to_string(err_hint)) : (out << "")); + out << ", " + << "hotkey_result="; + (__isset.hotkey_result ? (out << to_string(hotkey_result)) : (out << "")); + out << ")"; +} +} +} // namespace diff --git a/src/remote_cmd/command_types.cpp b/src/remote_cmd/command_types.cpp index 51b52d45b7..c429a42f86 100644 --- a/src/remote_cmd/command_types.cpp +++ b/src/remote_cmd/command_types.cpp @@ -11,143 +11,144 @@ #include -namespace dsn { namespace dist { namespace cmd { +namespace dsn { +namespace dist { +namespace cmd { +command::~command() throw() {} -command::~command() throw() { -} - +void command::__set_cmd(const std::string &val) { this->cmd = val; } -void command::__set_cmd(const std::string& val) { - this->cmd = val; -} +void command::__set_arguments(const std::vector &val) { this->arguments = val; } -void command::__set_arguments(const std::vector & val) { - this->arguments = val; -} +uint32_t command::read(::apache::thrift::protocol::TProtocol *iprot) +{ -uint32_t command::read(::apache::thrift::protocol::TProtocol* iprot) { + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->cmd); - this->__isset.cmd = true; - } else { - xfer += iprot->skip(ftype); + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->arguments.clear(); - uint32_t _size0; - ::apache::thrift::protocol::TType _etype3; - xfer += iprot->readListBegin(_etype3, _size0); - this->arguments.resize(_size0); - uint32_t _i4; - for (_i4 = 0; _i4 < _size0; ++_i4) - { - xfer += iprot->readString(this->arguments[_i4]); + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->cmd); + this->__isset.cmd = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->arguments.clear(); + uint32_t _size0; + ::apache::thrift::protocol::TType _etype3; + xfer += iprot->readListBegin(_etype3, _size0); + this->arguments.resize(_size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) { + xfer += iprot->readString(this->arguments[_i4]); + } + xfer += iprot->readListEnd(); + } + this->__isset.arguments = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.arguments = true; - } else { - xfer += iprot->skip(ftype); + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t command::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("command"); +uint32_t command::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("command"); - xfer += oprot->writeFieldBegin("cmd", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->cmd); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("cmd", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->cmd); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("arguments", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->arguments.size())); - std::vector ::const_iterator _iter5; - for (_iter5 = this->arguments.begin(); _iter5 != this->arguments.end(); ++_iter5) + xfer += oprot->writeFieldBegin("arguments", ::apache::thrift::protocol::T_LIST, 2); { - xfer += oprot->writeString((*_iter5)); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, + static_cast(this->arguments.size())); + std::vector::const_iterator _iter5; + for (_iter5 = this->arguments.begin(); _iter5 != this->arguments.end(); ++_iter5) { + xfer += oprot->writeString((*_iter5)); + } + xfer += oprot->writeListEnd(); } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(command &a, command &b) { - using ::std::swap; - swap(a.cmd, b.cmd); - swap(a.arguments, b.arguments); - swap(a.__isset, b.__isset); +void swap(command &a, command &b) +{ + using ::std::swap; + swap(a.cmd, b.cmd); + swap(a.arguments, b.arguments); + swap(a.__isset, b.__isset); } -command::command(const command& other6) { - cmd = other6.cmd; - arguments = other6.arguments; - __isset = other6.__isset; +command::command(const command &other6) +{ + cmd = other6.cmd; + arguments = other6.arguments; + __isset = other6.__isset; } -command::command( command&& other7) { - cmd = std::move(other7.cmd); - arguments = std::move(other7.arguments); - __isset = std::move(other7.__isset); +command::command(command &&other7) +{ + cmd = std::move(other7.cmd); + arguments = std::move(other7.arguments); + __isset = std::move(other7.__isset); } -command& command::operator=(const command& other8) { - cmd = other8.cmd; - arguments = other8.arguments; - __isset = other8.__isset; - return *this; +command &command::operator=(const command &other8) +{ + cmd = other8.cmd; + arguments = other8.arguments; + __isset = other8.__isset; + return *this; } -command& command::operator=(command&& other9) { - cmd = std::move(other9.cmd); - arguments = std::move(other9.arguments); - __isset = std::move(other9.__isset); - return *this; +command &command::operator=(command &&other9) +{ + cmd = std::move(other9.cmd); + arguments = std::move(other9.arguments); + __isset = std::move(other9.__isset); + return *this; } -void command::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "command("; - out << "cmd=" << to_string(cmd); - out << ", " << "arguments=" << to_string(arguments); - out << ")"; +void command::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "command("; + out << "cmd=" << to_string(cmd); + out << ", " + << "arguments=" << to_string(arguments); + out << ")"; } - -}}} // namespace +} +} +} // namespace diff --git a/src/remote_cmd/command_types.h b/src/remote_cmd/command_types.h index 6df2c230e0..8e7c342c8f 100644 --- a/src/remote_cmd/command_types.h +++ b/src/remote_cmd/command_types.h @@ -16,65 +16,65 @@ #include - -namespace dsn { namespace dist { namespace cmd { +namespace dsn { +namespace dist { +namespace cmd { class command; -typedef struct _command__isset { - _command__isset() : cmd(false), arguments(false) {} - bool cmd :1; - bool arguments :1; +typedef struct _command__isset +{ + _command__isset() : cmd(false), arguments(false) {} + bool cmd : 1; + bool arguments : 1; } _command__isset; -class command { - public: - - command(const command&); - command(command&&); - command& operator=(const command&); - command& operator=(command&&); - command() : cmd() { - } +class command +{ +public: + command(const command &); + command(command &&); + command &operator=(const command &); + command &operator=(command &&); + command() : cmd() {} - virtual ~command() throw(); - std::string cmd; - std::vector arguments; + virtual ~command() throw(); + std::string cmd; + std::vector arguments; - _command__isset __isset; + _command__isset __isset; - void __set_cmd(const std::string& val); + void __set_cmd(const std::string &val); - void __set_arguments(const std::vector & val); + void __set_arguments(const std::vector &val); - bool operator == (const command & rhs) const - { - if (!(cmd == rhs.cmd)) - return false; - if (!(arguments == rhs.arguments)) - return false; - return true; - } - bool operator != (const command &rhs) const { - return !(*this == rhs); - } + bool operator==(const command &rhs) const + { + if (!(cmd == rhs.cmd)) + return false; + if (!(arguments == rhs.arguments)) + return false; + return true; + } + bool operator!=(const command &rhs) const { return !(*this == rhs); } - bool operator < (const command & ) const; + bool operator<(const command &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(command &a, command &b); -inline std::ostream& operator<<(std::ostream& out, const command& obj) +inline std::ostream &operator<<(std::ostream &out, const command &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } - -}}} // namespace +} +} +} // namespace #endif diff --git a/src/replica/replica_stub.cpp b/src/replica/replica_stub.cpp index b8a35c2e44..a2071b3ecb 100644 --- a/src/replica/replica_stub.cpp +++ b/src/replica/replica_stub.cpp @@ -717,12 +717,11 @@ void replica_stub::initialize(const replication_options &opts, bool clear /* = f if (now_time_ms < dsn::utils::process_start_millis() + delay_time_ms) { uint64_t delay = dsn::utils::process_start_millis() + delay_time_ms - now_time_ms; ddebug("delay for %" PRIu64 "ms to make failure detector timeout", delay); - tasking::enqueue( - LPC_REPLICA_SERVER_DELAY_START, - &_tracker, - [this]() { this->initialize_start(); }, - 0, - std::chrono::milliseconds(delay)); + tasking::enqueue(LPC_REPLICA_SERVER_DELAY_START, + &_tracker, + [this]() { this->initialize_start(); }, + 0, + std::chrono::milliseconds(delay)); } else { initialize_start(); } @@ -735,16 +734,16 @@ void replica_stub::initialize_start() { // start timer for configuration sync if (!_options.config_sync_disabled) { - _config_sync_timer_task = tasking::enqueue_timer( - LPC_QUERY_CONFIGURATION_ALL, - &_tracker, - [this]() { - zauto_lock l(_state_lock); - this->query_configuration_by_node(); - }, - std::chrono::milliseconds(_options.config_sync_interval_ms), - 0, - std::chrono::milliseconds(_options.config_sync_interval_ms)); + _config_sync_timer_task = + tasking::enqueue_timer(LPC_QUERY_CONFIGURATION_ALL, + &_tracker, + [this]() { + zauto_lock l(_state_lock); + this->query_configuration_by_node(); + }, + std::chrono::milliseconds(_options.config_sync_interval_ms), + 0, + std::chrono::milliseconds(_options.config_sync_interval_ms)); } #ifdef DSN_ENABLE_GPERF @@ -1309,16 +1308,15 @@ void replica_stub::on_node_query_reply(error_code err, int delay_ms = 500; ddebug("resend query node partitions request after %d ms for resp.err = ERR_BUSY", delay_ms); - _config_query_task = tasking::enqueue( - LPC_QUERY_CONFIGURATION_ALL, - &_tracker, - [this]() { - zauto_lock l(_state_lock); - _config_query_task = nullptr; - this->query_configuration_by_node(); - }, - 0, - std::chrono::milliseconds(delay_ms)); + _config_query_task = tasking::enqueue(LPC_QUERY_CONFIGURATION_ALL, + &_tracker, + [this]() { + zauto_lock l(_state_lock); + _config_query_task = nullptr; + this->query_configuration_by_node(); + }, + 0, + std::chrono::milliseconds(delay_ms)); return; } if (resp.err != ERR_OK) { @@ -1542,12 +1540,11 @@ void replica_stub::init_gc_for_test() { dassert(_options.gc_disabled, ""); - _gc_timer_task = tasking::enqueue( - LPC_GARBAGE_COLLECT_LOGS_AND_REPLICAS, - &_tracker, - [this] { on_gc(); }, - 0, - std::chrono::milliseconds(_options.gc_interval_ms)); + _gc_timer_task = tasking::enqueue(LPC_GARBAGE_COLLECT_LOGS_AND_REPLICAS, + &_tracker, + [this] { on_gc(); }, + 0, + std::chrono::milliseconds(_options.gc_interval_ms)); } void replica_stub::on_gc_replica(replica_stub_ptr this_, gpid id) @@ -2013,12 +2010,11 @@ ::dsn::task_ptr replica_stub::begin_close_replica(replica_ptr r) app_info a_info = *(r->get_app_info()); replica_info r_info; get_replica_info(r_info, r); - task_ptr task = tasking::enqueue( - LPC_CLOSE_REPLICA, - &_tracker, - [=]() { close_replica(r); }, - 0, - std::chrono::milliseconds(delay_ms)); + task_ptr task = tasking::enqueue(LPC_CLOSE_REPLICA, + &_tracker, + [=]() { close_replica(r); }, + 0, + std::chrono::milliseconds(delay_ms)); _closing_replicas[id] = std::make_tuple(task, r, std::move(a_info), std::move(r_info)); _counter_replicas_closing_count->increment(); return task; @@ -2365,21 +2361,20 @@ replica_stub::exec_command_on_replica(const std::vector &args, std::map> results; // id => status,result for (auto &kv : choosed_rs) { replica_ptr rep = kv.second; - task_ptr tsk = tasking::enqueue( - LPC_EXEC_COMMAND_ON_REPLICA, - rep->tracker(), - [rep, &func, &results_lock, &results]() { - partition_status::type status = rep->status(); - if (status != partition_status::PS_PRIMARY && - status != partition_status::PS_SECONDARY) - return; - std::string result = func(rep); - ::dsn::zauto_lock l(results_lock); - auto &value = results[rep->get_gpid()]; - value.first = status; - value.second = result; - }, - rep->get_gpid().thread_hash()); + task_ptr tsk = tasking::enqueue(LPC_EXEC_COMMAND_ON_REPLICA, + rep->tracker(), + [rep, &func, &results_lock, &results]() { + partition_status::type status = rep->status(); + if (status != partition_status::PS_PRIMARY && + status != partition_status::PS_SECONDARY) + return; + std::string result = func(rep); + ::dsn::zauto_lock l(results_lock); + auto &value = results[rep->get_gpid()]; + value.first = status; + value.second = result; + }, + rep->get_gpid().thread_hash()); tasks.emplace_back(std::move(tsk)); } @@ -2696,11 +2691,10 @@ replica_stub::split_replica_exec(dsn::task_code code, gpid pid, local_execution FAIL_POINT_INJECT_F("replica_stub_split_replica_exec", [](dsn::string_view) { return ERR_OK; }); replica_ptr replica = pid.get_app_id() == 0 ? nullptr : get_replica(pid); if (replica && handler) { - tasking::enqueue( - code, - replica.get()->tracker(), - [handler, replica]() { handler(replica->get_split_manager()); }, - pid.thread_hash()); + tasking::enqueue(code, + replica.get()->tracker(), + [handler, replica]() { handler(replica->get_split_manager()); }, + pid.thread_hash()); return ERR_OK; } dwarn_f("replica({}) is invalid", pid); diff --git a/src/runtime/dsn.layer2_types.cpp b/src/runtime/dsn.layer2_types.cpp index 5a4582a4db..b078062bb5 100644 --- a/src/runtime/dsn.layer2_types.cpp +++ b/src/runtime/dsn.layer2_types.cpp @@ -13,1259 +13,1298 @@ namespace dsn { -int _kapp_statusValues[] = { - app_status::AS_INVALID, - app_status::AS_AVAILABLE, - app_status::AS_CREATING, - app_status::AS_CREATE_FAILED, - app_status::AS_DROPPING, - app_status::AS_DROP_FAILED, - app_status::AS_DROPPED, - app_status::AS_RECALLING -}; -const char* _kapp_statusNames[] = { - "AS_INVALID", - "AS_AVAILABLE", - "AS_CREATING", - "AS_CREATE_FAILED", - "AS_DROPPING", - "AS_DROP_FAILED", - "AS_DROPPED", - "AS_RECALLING" -}; -const std::map _app_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kapp_statusValues, _kapp_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - - -partition_configuration::~partition_configuration() throw() { -} +int _kapp_statusValues[] = {app_status::AS_INVALID, + app_status::AS_AVAILABLE, + app_status::AS_CREATING, + app_status::AS_CREATE_FAILED, + app_status::AS_DROPPING, + app_status::AS_DROP_FAILED, + app_status::AS_DROPPED, + app_status::AS_RECALLING}; +const char *_kapp_statusNames[] = {"AS_INVALID", + "AS_AVAILABLE", + "AS_CREATING", + "AS_CREATE_FAILED", + "AS_DROPPING", + "AS_DROP_FAILED", + "AS_DROPPED", + "AS_RECALLING"}; +const std::map _app_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(8, _kapp_statusValues, _kapp_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); +partition_configuration::~partition_configuration() throw() {} -void partition_configuration::__set_pid(const ::dsn::gpid& val) { - this->pid = val; -} +void partition_configuration::__set_pid(const ::dsn::gpid &val) { this->pid = val; } -void partition_configuration::__set_ballot(const int64_t val) { - this->ballot = val; -} +void partition_configuration::__set_ballot(const int64_t val) { this->ballot = val; } -void partition_configuration::__set_max_replica_count(const int32_t val) { - this->max_replica_count = val; +void partition_configuration::__set_max_replica_count(const int32_t val) +{ + this->max_replica_count = val; } -void partition_configuration::__set_primary(const ::dsn::rpc_address& val) { - this->primary = val; -} +void partition_configuration::__set_primary(const ::dsn::rpc_address &val) { this->primary = val; } -void partition_configuration::__set_secondaries(const std::vector< ::dsn::rpc_address> & val) { - this->secondaries = val; +void partition_configuration::__set_secondaries(const std::vector<::dsn::rpc_address> &val) +{ + this->secondaries = val; } -void partition_configuration::__set_last_drops(const std::vector< ::dsn::rpc_address> & val) { - this->last_drops = val; +void partition_configuration::__set_last_drops(const std::vector<::dsn::rpc_address> &val) +{ + this->last_drops = val; } -void partition_configuration::__set_last_committed_decree(const int64_t val) { - this->last_committed_decree = val; +void partition_configuration::__set_last_committed_decree(const int64_t val) +{ + this->last_committed_decree = val; } -void partition_configuration::__set_partition_flags(const int32_t val) { - this->partition_flags = val; +void partition_configuration::__set_partition_flags(const int32_t val) +{ + this->partition_flags = val; } -uint32_t partition_configuration::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t partition_configuration::read(::apache::thrift::protocol::TProtocol *iprot) +{ - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pid.read(iprot); - this->__isset.pid = true; - } else { - xfer += iprot->skip(ftype); + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->ballot); - this->__isset.ballot = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->max_replica_count); - this->__isset.max_replica_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->primary.read(iprot); - this->__isset.primary = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->secondaries.clear(); - uint32_t _size0; - ::apache::thrift::protocol::TType _etype3; - xfer += iprot->readListBegin(_etype3, _size0); - this->secondaries.resize(_size0); - uint32_t _i4; - for (_i4 = 0; _i4 < _size0; ++_i4) - { - xfer += this->secondaries[_i4].read(iprot); + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pid.read(iprot); + this->__isset.pid = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.secondaries = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->last_drops.clear(); - uint32_t _size5; - ::apache::thrift::protocol::TType _etype8; - xfer += iprot->readListBegin(_etype8, _size5); - this->last_drops.resize(_size5); - uint32_t _i9; - for (_i9 = 0; _i9 < _size5; ++_i9) - { - xfer += this->last_drops[_i9].read(iprot); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->ballot); + this->__isset.ballot = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.last_drops = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->last_committed_decree); - this->__isset.last_committed_decree = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_flags); - this->__isset.partition_flags = true; - } else { - xfer += iprot->skip(ftype); + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->max_replica_count); + this->__isset.max_replica_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->primary.read(iprot); + this->__isset.primary = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->secondaries.clear(); + uint32_t _size0; + ::apache::thrift::protocol::TType _etype3; + xfer += iprot->readListBegin(_etype3, _size0); + this->secondaries.resize(_size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) { + xfer += this->secondaries[_i4].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.secondaries = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->last_drops.clear(); + uint32_t _size5; + ::apache::thrift::protocol::TType _etype8; + xfer += iprot->readListBegin(_etype8, _size5); + this->last_drops.resize(_size5); + uint32_t _i9; + for (_i9 = 0; _i9 < _size5; ++_i9) { + xfer += this->last_drops[_i9].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.last_drops = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->last_committed_decree); + this->__isset.last_committed_decree = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_flags); + this->__isset.partition_flags = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t partition_configuration::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("partition_configuration"); +uint32_t partition_configuration::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("partition_configuration"); - xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->pid.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("pid", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->pid.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); - xfer += oprot->writeI64(this->ballot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("ballot", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->ballot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->max_replica_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->max_replica_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("primary", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->primary.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("primary", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->primary.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("secondaries", ::apache::thrift::protocol::T_LIST, 5); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->secondaries.size())); - std::vector< ::dsn::rpc_address> ::const_iterator _iter10; - for (_iter10 = this->secondaries.begin(); _iter10 != this->secondaries.end(); ++_iter10) + xfer += oprot->writeFieldBegin("secondaries", ::apache::thrift::protocol::T_LIST, 5); { - xfer += (*_iter10).write(oprot); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->secondaries.size())); + std::vector<::dsn::rpc_address>::const_iterator _iter10; + for (_iter10 = this->secondaries.begin(); _iter10 != this->secondaries.end(); ++_iter10) { + xfer += (*_iter10).write(oprot); + } + xfer += oprot->writeListEnd(); } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_drops", ::apache::thrift::protocol::T_LIST, 6); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->last_drops.size())); - std::vector< ::dsn::rpc_address> ::const_iterator _iter11; - for (_iter11 = this->last_drops.begin(); _iter11 != this->last_drops.end(); ++_iter11) + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("last_drops", ::apache::thrift::protocol::T_LIST, 6); { - xfer += (*_iter11).write(oprot); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->last_drops.size())); + std::vector<::dsn::rpc_address>::const_iterator _iter11; + for (_iter11 = this->last_drops.begin(); _iter11 != this->last_drops.end(); ++_iter11) { + xfer += (*_iter11).write(oprot); + } + xfer += oprot->writeListEnd(); } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->last_committed_decree); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("partition_flags", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32(this->partition_flags); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(partition_configuration &a, partition_configuration &b) { - using ::std::swap; - swap(a.pid, b.pid); - swap(a.ballot, b.ballot); - swap(a.max_replica_count, b.max_replica_count); - swap(a.primary, b.primary); - swap(a.secondaries, b.secondaries); - swap(a.last_drops, b.last_drops); - swap(a.last_committed_decree, b.last_committed_decree); - swap(a.partition_flags, b.partition_flags); - swap(a.__isset, b.__isset); -} - -partition_configuration::partition_configuration(const partition_configuration& other12) { - pid = other12.pid; - ballot = other12.ballot; - max_replica_count = other12.max_replica_count; - primary = other12.primary; - secondaries = other12.secondaries; - last_drops = other12.last_drops; - last_committed_decree = other12.last_committed_decree; - partition_flags = other12.partition_flags; - __isset = other12.__isset; -} -partition_configuration::partition_configuration( partition_configuration&& other13) { - pid = std::move(other13.pid); - ballot = std::move(other13.ballot); - max_replica_count = std::move(other13.max_replica_count); - primary = std::move(other13.primary); - secondaries = std::move(other13.secondaries); - last_drops = std::move(other13.last_drops); - last_committed_decree = std::move(other13.last_committed_decree); - partition_flags = std::move(other13.partition_flags); - __isset = std::move(other13.__isset); -} -partition_configuration& partition_configuration::operator=(const partition_configuration& other14) { - pid = other14.pid; - ballot = other14.ballot; - max_replica_count = other14.max_replica_count; - primary = other14.primary; - secondaries = other14.secondaries; - last_drops = other14.last_drops; - last_committed_decree = other14.last_committed_decree; - partition_flags = other14.partition_flags; - __isset = other14.__isset; - return *this; -} -partition_configuration& partition_configuration::operator=(partition_configuration&& other15) { - pid = std::move(other15.pid); - ballot = std::move(other15.ballot); - max_replica_count = std::move(other15.max_replica_count); - primary = std::move(other15.primary); - secondaries = std::move(other15.secondaries); - last_drops = std::move(other15.last_drops); - last_committed_decree = std::move(other15.last_committed_decree); - partition_flags = std::move(other15.partition_flags); - __isset = std::move(other15.__isset); - return *this; -} -void partition_configuration::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "partition_configuration("; - out << "pid=" << to_string(pid); - out << ", " << "ballot=" << to_string(ballot); - out << ", " << "max_replica_count=" << to_string(max_replica_count); - out << ", " << "primary=" << to_string(primary); - out << ", " << "secondaries=" << to_string(secondaries); - out << ", " << "last_drops=" << to_string(last_drops); - out << ", " << "last_committed_decree=" << to_string(last_committed_decree); - out << ", " << "partition_flags=" << to_string(partition_flags); - out << ")"; -} - - -configuration_query_by_index_request::~configuration_query_by_index_request() throw() { -} - - -void configuration_query_by_index_request::__set_app_name(const std::string& val) { - this->app_name = val; -} - -void configuration_query_by_index_request::__set_partition_indices(const std::vector & val) { - this->partition_indices = val; -} - -uint32_t configuration_query_by_index_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("last_committed_decree", ::apache::thrift::protocol::T_I64, 7); + xfer += oprot->writeI64(this->last_committed_decree); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("partition_flags", ::apache::thrift::protocol::T_I32, 8); + xfer += oprot->writeI32(this->partition_flags); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(partition_configuration &a, partition_configuration &b) +{ + using ::std::swap; + swap(a.pid, b.pid); + swap(a.ballot, b.ballot); + swap(a.max_replica_count, b.max_replica_count); + swap(a.primary, b.primary); + swap(a.secondaries, b.secondaries); + swap(a.last_drops, b.last_drops); + swap(a.last_committed_decree, b.last_committed_decree); + swap(a.partition_flags, b.partition_flags); + swap(a.__isset, b.__isset); +} + +partition_configuration::partition_configuration(const partition_configuration &other12) +{ + pid = other12.pid; + ballot = other12.ballot; + max_replica_count = other12.max_replica_count; + primary = other12.primary; + secondaries = other12.secondaries; + last_drops = other12.last_drops; + last_committed_decree = other12.last_committed_decree; + partition_flags = other12.partition_flags; + __isset = other12.__isset; +} +partition_configuration::partition_configuration(partition_configuration &&other13) +{ + pid = std::move(other13.pid); + ballot = std::move(other13.ballot); + max_replica_count = std::move(other13.max_replica_count); + primary = std::move(other13.primary); + secondaries = std::move(other13.secondaries); + last_drops = std::move(other13.last_drops); + last_committed_decree = std::move(other13.last_committed_decree); + partition_flags = std::move(other13.partition_flags); + __isset = std::move(other13.__isset); +} +partition_configuration &partition_configuration::operator=(const partition_configuration &other14) +{ + pid = other14.pid; + ballot = other14.ballot; + max_replica_count = other14.max_replica_count; + primary = other14.primary; + secondaries = other14.secondaries; + last_drops = other14.last_drops; + last_committed_decree = other14.last_committed_decree; + partition_flags = other14.partition_flags; + __isset = other14.__isset; + return *this; +} +partition_configuration &partition_configuration::operator=(partition_configuration &&other15) +{ + pid = std::move(other15.pid); + ballot = std::move(other15.ballot); + max_replica_count = std::move(other15.max_replica_count); + primary = std::move(other15.primary); + secondaries = std::move(other15.secondaries); + last_drops = std::move(other15.last_drops); + last_committed_decree = std::move(other15.last_committed_decree); + partition_flags = std::move(other15.partition_flags); + __isset = std::move(other15.__isset); + return *this; +} +void partition_configuration::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "partition_configuration("; + out << "pid=" << to_string(pid); + out << ", " + << "ballot=" << to_string(ballot); + out << ", " + << "max_replica_count=" << to_string(max_replica_count); + out << ", " + << "primary=" << to_string(primary); + out << ", " + << "secondaries=" << to_string(secondaries); + out << ", " + << "last_drops=" << to_string(last_drops); + out << ", " + << "last_committed_decree=" << to_string(last_committed_decree); + out << ", " + << "partition_flags=" << to_string(partition_flags); + out << ")"; +} + +configuration_query_by_index_request::~configuration_query_by_index_request() throw() {} + +void configuration_query_by_index_request::__set_app_name(const std::string &val) +{ + this->app_name = val; +} + +void configuration_query_by_index_request::__set_partition_indices(const std::vector &val) +{ + this->partition_indices = val; +} + +uint32_t configuration_query_by_index_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partition_indices.clear(); - uint32_t _size16; - ::apache::thrift::protocol::TType _etype19; - xfer += iprot->readListBegin(_etype19, _size16); - this->partition_indices.resize(_size16); - uint32_t _i20; - for (_i20 = 0; _i20 < _size16; ++_i20) - { - xfer += iprot->readI32(this->partition_indices[_i20]); + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partition_indices.clear(); + uint32_t _size16; + ::apache::thrift::protocol::TType _etype19; + xfer += iprot->readListBegin(_etype19, _size16); + this->partition_indices.resize(_size16); + uint32_t _i20; + for (_i20 = 0; _i20 < _size16; ++_i20) { + xfer += iprot->readI32(this->partition_indices[_i20]); + } + xfer += iprot->readListEnd(); + } + this->__isset.partition_indices = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.partition_indices = true; - } else { - xfer += iprot->skip(ftype); + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_query_by_index_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_by_index_request"); +uint32_t +configuration_query_by_index_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_by_index_request"); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partition_indices", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->partition_indices.size())); - std::vector ::const_iterator _iter21; - for (_iter21 = this->partition_indices.begin(); _iter21 != this->partition_indices.end(); ++_iter21) + xfer += oprot->writeFieldBegin("partition_indices", ::apache::thrift::protocol::T_LIST, 2); { - xfer += oprot->writeI32((*_iter21)); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, + static_cast(this->partition_indices.size())); + std::vector::const_iterator _iter21; + for (_iter21 = this->partition_indices.begin(); _iter21 != this->partition_indices.end(); + ++_iter21) { + xfer += oprot->writeI32((*_iter21)); + } + xfer += oprot->writeListEnd(); } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(configuration_query_by_index_request &a, configuration_query_by_index_request &b) { - using ::std::swap; - swap(a.app_name, b.app_name); - swap(a.partition_indices, b.partition_indices); - swap(a.__isset, b.__isset); +void swap(configuration_query_by_index_request &a, configuration_query_by_index_request &b) +{ + using ::std::swap; + swap(a.app_name, b.app_name); + swap(a.partition_indices, b.partition_indices); + swap(a.__isset, b.__isset); } -configuration_query_by_index_request::configuration_query_by_index_request(const configuration_query_by_index_request& other22) { - app_name = other22.app_name; - partition_indices = other22.partition_indices; - __isset = other22.__isset; -} -configuration_query_by_index_request::configuration_query_by_index_request( configuration_query_by_index_request&& other23) { - app_name = std::move(other23.app_name); - partition_indices = std::move(other23.partition_indices); - __isset = std::move(other23.__isset); +configuration_query_by_index_request::configuration_query_by_index_request( + const configuration_query_by_index_request &other22) +{ + app_name = other22.app_name; + partition_indices = other22.partition_indices; + __isset = other22.__isset; } -configuration_query_by_index_request& configuration_query_by_index_request::operator=(const configuration_query_by_index_request& other24) { - app_name = other24.app_name; - partition_indices = other24.partition_indices; - __isset = other24.__isset; - return *this; +configuration_query_by_index_request::configuration_query_by_index_request( + configuration_query_by_index_request &&other23) +{ + app_name = std::move(other23.app_name); + partition_indices = std::move(other23.partition_indices); + __isset = std::move(other23.__isset); } -configuration_query_by_index_request& configuration_query_by_index_request::operator=(configuration_query_by_index_request&& other25) { - app_name = std::move(other25.app_name); - partition_indices = std::move(other25.partition_indices); - __isset = std::move(other25.__isset); - return *this; +configuration_query_by_index_request &configuration_query_by_index_request:: +operator=(const configuration_query_by_index_request &other24) +{ + app_name = other24.app_name; + partition_indices = other24.partition_indices; + __isset = other24.__isset; + return *this; } -void configuration_query_by_index_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_query_by_index_request("; - out << "app_name=" << to_string(app_name); - out << ", " << "partition_indices=" << to_string(partition_indices); - out << ")"; +configuration_query_by_index_request &configuration_query_by_index_request:: +operator=(configuration_query_by_index_request &&other25) +{ + app_name = std::move(other25.app_name); + partition_indices = std::move(other25.partition_indices); + __isset = std::move(other25.__isset); + return *this; } - - -configuration_query_by_index_response::~configuration_query_by_index_response() throw() { +void configuration_query_by_index_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_query_by_index_request("; + out << "app_name=" << to_string(app_name); + out << ", " + << "partition_indices=" << to_string(partition_indices); + out << ")"; } +configuration_query_by_index_response::~configuration_query_by_index_response() throw() {} -void configuration_query_by_index_response::__set_err(const ::dsn::error_code& val) { - this->err = val; +void configuration_query_by_index_response::__set_err(const ::dsn::error_code &val) +{ + this->err = val; } -void configuration_query_by_index_response::__set_app_id(const int32_t val) { - this->app_id = val; -} +void configuration_query_by_index_response::__set_app_id(const int32_t val) { this->app_id = val; } -void configuration_query_by_index_response::__set_partition_count(const int32_t val) { - this->partition_count = val; +void configuration_query_by_index_response::__set_partition_count(const int32_t val) +{ + this->partition_count = val; } -void configuration_query_by_index_response::__set_is_stateful(const bool val) { - this->is_stateful = val; +void configuration_query_by_index_response::__set_is_stateful(const bool val) +{ + this->is_stateful = val; } -void configuration_query_by_index_response::__set_partitions(const std::vector & val) { - this->partitions = val; +void configuration_query_by_index_response::__set_partitions( + const std::vector &val) +{ + this->partitions = val; } -uint32_t configuration_query_by_index_response::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t configuration_query_by_index_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += iprot->readStructBegin(fname); + xfer += iprot->readStructBegin(fname); - using ::apache::thrift::protocol::TProtocolException; + using ::apache::thrift::protocol::TProtocolException; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->err.read(iprot); - this->__isset.err = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_count); - this->__isset.partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_stateful); - this->__isset.is_stateful = true; - } else { - xfer += iprot->skip(ftype); + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->partitions.clear(); - uint32_t _size26; - ::apache::thrift::protocol::TType _etype29; - xfer += iprot->readListBegin(_etype29, _size26); - this->partitions.resize(_size26); - uint32_t _i30; - for (_i30 = 0; _i30 < _size26; ++_i30) - { - xfer += this->partitions[_i30].read(iprot); + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->err.read(iprot); + this->__isset.err = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readListEnd(); - } - this->__isset.partitions = true; - } else { - xfer += iprot->skip(ftype); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_count); + this->__isset.partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_stateful); + this->__isset.is_stateful = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitions.clear(); + uint32_t _size26; + ::apache::thrift::protocol::TType _etype29; + xfer += iprot->readListBegin(_etype29, _size26); + this->partitions.resize(_size26); + uint32_t _i30; + for (_i30 = 0; _i30 < _size26; ++_i30) { + xfer += this->partitions[_i30].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitions = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t configuration_query_by_index_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("configuration_query_by_index_response"); +uint32_t +configuration_query_by_index_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("configuration_query_by_index_response"); - xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->err.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("err", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->err.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->partition_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->partition_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 4); - xfer += oprot->writeBool(this->is_stateful); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->is_stateful); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 5); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter31; - for (_iter31 = this->partitions.begin(); _iter31 != this->partitions.end(); ++_iter31) + xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 5); { - xfer += (*_iter31).write(oprot); + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, + static_cast(this->partitions.size())); + std::vector::const_iterator _iter31; + for (_iter31 = this->partitions.begin(); _iter31 != this->partitions.end(); ++_iter31) { + xfer += (*_iter31).write(oprot); + } + xfer += oprot->writeListEnd(); } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} + xfer += oprot->writeFieldEnd(); -void swap(configuration_query_by_index_response &a, configuration_query_by_index_response &b) { - using ::std::swap; - swap(a.err, b.err); - swap(a.app_id, b.app_id); - swap(a.partition_count, b.partition_count); - swap(a.is_stateful, b.is_stateful); - swap(a.partitions, b.partitions); - swap(a.__isset, b.__isset); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(configuration_query_by_index_response &a, configuration_query_by_index_response &b) +{ + using ::std::swap; + swap(a.err, b.err); + swap(a.app_id, b.app_id); + swap(a.partition_count, b.partition_count); + swap(a.is_stateful, b.is_stateful); + swap(a.partitions, b.partitions); + swap(a.__isset, b.__isset); } -configuration_query_by_index_response::configuration_query_by_index_response(const configuration_query_by_index_response& other32) { - err = other32.err; - app_id = other32.app_id; - partition_count = other32.partition_count; - is_stateful = other32.is_stateful; - partitions = other32.partitions; - __isset = other32.__isset; -} -configuration_query_by_index_response::configuration_query_by_index_response( configuration_query_by_index_response&& other33) { - err = std::move(other33.err); - app_id = std::move(other33.app_id); - partition_count = std::move(other33.partition_count); - is_stateful = std::move(other33.is_stateful); - partitions = std::move(other33.partitions); - __isset = std::move(other33.__isset); +configuration_query_by_index_response::configuration_query_by_index_response( + const configuration_query_by_index_response &other32) +{ + err = other32.err; + app_id = other32.app_id; + partition_count = other32.partition_count; + is_stateful = other32.is_stateful; + partitions = other32.partitions; + __isset = other32.__isset; } -configuration_query_by_index_response& configuration_query_by_index_response::operator=(const configuration_query_by_index_response& other34) { - err = other34.err; - app_id = other34.app_id; - partition_count = other34.partition_count; - is_stateful = other34.is_stateful; - partitions = other34.partitions; - __isset = other34.__isset; - return *this; +configuration_query_by_index_response::configuration_query_by_index_response( + configuration_query_by_index_response &&other33) +{ + err = std::move(other33.err); + app_id = std::move(other33.app_id); + partition_count = std::move(other33.partition_count); + is_stateful = std::move(other33.is_stateful); + partitions = std::move(other33.partitions); + __isset = std::move(other33.__isset); } -configuration_query_by_index_response& configuration_query_by_index_response::operator=(configuration_query_by_index_response&& other35) { - err = std::move(other35.err); - app_id = std::move(other35.app_id); - partition_count = std::move(other35.partition_count); - is_stateful = std::move(other35.is_stateful); - partitions = std::move(other35.partitions); - __isset = std::move(other35.__isset); - return *this; +configuration_query_by_index_response &configuration_query_by_index_response:: +operator=(const configuration_query_by_index_response &other34) +{ + err = other34.err; + app_id = other34.app_id; + partition_count = other34.partition_count; + is_stateful = other34.is_stateful; + partitions = other34.partitions; + __isset = other34.__isset; + return *this; } -void configuration_query_by_index_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "configuration_query_by_index_response("; - out << "err=" << to_string(err); - out << ", " << "app_id=" << to_string(app_id); - out << ", " << "partition_count=" << to_string(partition_count); - out << ", " << "is_stateful=" << to_string(is_stateful); - out << ", " << "partitions=" << to_string(partitions); - out << ")"; +configuration_query_by_index_response &configuration_query_by_index_response:: +operator=(configuration_query_by_index_response &&other35) +{ + err = std::move(other35.err); + app_id = std::move(other35.app_id); + partition_count = std::move(other35.partition_count); + is_stateful = std::move(other35.is_stateful); + partitions = std::move(other35.partitions); + __isset = std::move(other35.__isset); + return *this; } - - -app_info::~app_info() throw() { +void configuration_query_by_index_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "configuration_query_by_index_response("; + out << "err=" << to_string(err); + out << ", " + << "app_id=" << to_string(app_id); + out << ", " + << "partition_count=" << to_string(partition_count); + out << ", " + << "is_stateful=" << to_string(is_stateful); + out << ", " + << "partitions=" << to_string(partitions); + out << ")"; } +app_info::~app_info() throw() {} -void app_info::__set_status(const app_status::type val) { - this->status = val; -} - -void app_info::__set_app_type(const std::string& val) { - this->app_type = val; -} +void app_info::__set_status(const app_status::type val) { this->status = val; } -void app_info::__set_app_name(const std::string& val) { - this->app_name = val; -} +void app_info::__set_app_type(const std::string &val) { this->app_type = val; } -void app_info::__set_app_id(const int32_t val) { - this->app_id = val; -} +void app_info::__set_app_name(const std::string &val) { this->app_name = val; } -void app_info::__set_partition_count(const int32_t val) { - this->partition_count = val; -} +void app_info::__set_app_id(const int32_t val) { this->app_id = val; } -void app_info::__set_envs(const std::map & val) { - this->envs = val; -} +void app_info::__set_partition_count(const int32_t val) { this->partition_count = val; } -void app_info::__set_is_stateful(const bool val) { - this->is_stateful = val; -} +void app_info::__set_envs(const std::map &val) { this->envs = val; } -void app_info::__set_max_replica_count(const int32_t val) { - this->max_replica_count = val; -} +void app_info::__set_is_stateful(const bool val) { this->is_stateful = val; } -void app_info::__set_expire_second(const int64_t val) { - this->expire_second = val; -} +void app_info::__set_max_replica_count(const int32_t val) { this->max_replica_count = val; } -void app_info::__set_create_second(const int64_t val) { - this->create_second = val; -} +void app_info::__set_expire_second(const int64_t val) { this->expire_second = val; } -void app_info::__set_drop_second(const int64_t val) { - this->drop_second = val; -} +void app_info::__set_create_second(const int64_t val) { this->create_second = val; } -void app_info::__set_duplicating(const bool val) { - this->duplicating = val; -__isset.duplicating = true; -} +void app_info::__set_drop_second(const int64_t val) { this->drop_second = val; } -void app_info::__set_init_partition_count(const int32_t val) { - this->init_partition_count = val; +void app_info::__set_duplicating(const bool val) +{ + this->duplicating = val; + __isset.duplicating = true; } -void app_info::__set_is_bulk_loading(const bool val) { - this->is_bulk_loading = val; -__isset.is_bulk_loading = true; +void app_info::__set_init_partition_count(const int32_t val) { this->init_partition_count = val; } + +void app_info::__set_is_bulk_loading(const bool val) +{ + this->is_bulk_loading = val; + __isset.is_bulk_loading = true; } -uint32_t app_info::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; +uint32_t app_info::read(::apache::thrift::protocol::TProtocol *iprot) +{ - xfer += iprot->readStructBegin(fname); + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - using ::apache::thrift::protocol::TProtocolException; + xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast36; - xfer += iprot->readI32(ecast36); - this->status = (app_status::type)ecast36; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_type); - this->__isset.app_type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->app_name); - this->__isset.app_name = true; - } else { - xfer += iprot->skip(ftype); + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_count); - this->__isset.partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->envs.clear(); - uint32_t _size37; - ::apache::thrift::protocol::TType _ktype38; - ::apache::thrift::protocol::TType _vtype39; - xfer += iprot->readMapBegin(_ktype38, _vtype39, _size37); - uint32_t _i41; - for (_i41 = 0; _i41 < _size37; ++_i41) - { - std::string _key42; - xfer += iprot->readString(_key42); - std::string& _val43 = this->envs[_key42]; - xfer += iprot->readString(_val43); + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast36; + xfer += iprot->readI32(ecast36); + this->status = (app_status::type)ecast36; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); } - xfer += iprot->readMapEnd(); - } - this->__isset.envs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_stateful); - this->__isset.is_stateful = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->max_replica_count); - this->__isset.max_replica_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->expire_second); - this->__isset.expire_second = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->create_second); - this->__isset.create_second = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->drop_second); - this->__isset.drop_second = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 12: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->duplicating); - this->__isset.duplicating = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 13: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->init_partition_count); - this->__isset.init_partition_count = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 14: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_bulk_loading); - this->__isset.is_bulk_loading = true; - } else { - xfer += iprot->skip(ftype); + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_type); + this->__isset.app_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->app_name); + this->__isset.app_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_count); + this->__isset.partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->envs.clear(); + uint32_t _size37; + ::apache::thrift::protocol::TType _ktype38; + ::apache::thrift::protocol::TType _vtype39; + xfer += iprot->readMapBegin(_ktype38, _vtype39, _size37); + uint32_t _i41; + for (_i41 = 0; _i41 < _size37; ++_i41) { + std::string _key42; + xfer += iprot->readString(_key42); + std::string &_val43 = this->envs[_key42]; + xfer += iprot->readString(_val43); + } + xfer += iprot->readMapEnd(); + } + this->__isset.envs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_stateful); + this->__isset.is_stateful = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->max_replica_count); + this->__isset.max_replica_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->expire_second); + this->__isset.expire_second = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 10: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->create_second); + this->__isset.create_second = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 11: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->drop_second); + this->__isset.drop_second = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 12: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->duplicating); + this->__isset.duplicating = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 13: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->init_partition_count); + this->__isset.init_partition_count = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 14: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_bulk_loading); + this->__isset.is_bulk_loading = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t app_info::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("app_info"); +uint32_t app_info::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("app_info"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->app_type); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_type", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->app_type); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->app_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->app_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->partition_count); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("partition_count", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->partition_count); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("envs", ::apache::thrift::protocol::T_MAP, 6); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->envs.size())); - std::map ::const_iterator _iter44; - for (_iter44 = this->envs.begin(); _iter44 != this->envs.end(); ++_iter44) + xfer += oprot->writeFieldBegin("envs", ::apache::thrift::protocol::T_MAP, 6); { - xfer += oprot->writeString(_iter44->first); - xfer += oprot->writeString(_iter44->second); + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, + ::apache::thrift::protocol::T_STRING, + static_cast(this->envs.size())); + std::map::const_iterator _iter44; + for (_iter44 = this->envs.begin(); _iter44 != this->envs.end(); ++_iter44) { + xfer += oprot->writeString(_iter44->first); + xfer += oprot->writeString(_iter44->second); + } + xfer += oprot->writeMapEnd(); } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 7); - xfer += oprot->writeBool(this->is_stateful); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32(this->max_replica_count); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("expire_second", ::apache::thrift::protocol::T_I64, 9); - xfer += oprot->writeI64(this->expire_second); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("create_second", ::apache::thrift::protocol::T_I64, 10); - xfer += oprot->writeI64(this->create_second); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("drop_second", ::apache::thrift::protocol::T_I64, 11); - xfer += oprot->writeI64(this->drop_second); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.duplicating) { - xfer += oprot->writeFieldBegin("duplicating", ::apache::thrift::protocol::T_BOOL, 12); - xfer += oprot->writeBool(this->duplicating); xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldBegin("init_partition_count", ::apache::thrift::protocol::T_I32, 13); - xfer += oprot->writeI32(this->init_partition_count); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.is_bulk_loading) { - xfer += oprot->writeFieldBegin("is_bulk_loading", ::apache::thrift::protocol::T_BOOL, 14); - xfer += oprot->writeBool(this->is_bulk_loading); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(app_info &a, app_info &b) { - using ::std::swap; - swap(a.status, b.status); - swap(a.app_type, b.app_type); - swap(a.app_name, b.app_name); - swap(a.app_id, b.app_id); - swap(a.partition_count, b.partition_count); - swap(a.envs, b.envs); - swap(a.is_stateful, b.is_stateful); - swap(a.max_replica_count, b.max_replica_count); - swap(a.expire_second, b.expire_second); - swap(a.create_second, b.create_second); - swap(a.drop_second, b.drop_second); - swap(a.duplicating, b.duplicating); - swap(a.init_partition_count, b.init_partition_count); - swap(a.is_bulk_loading, b.is_bulk_loading); - swap(a.__isset, b.__isset); -} - -app_info::app_info(const app_info& other45) { - status = other45.status; - app_type = other45.app_type; - app_name = other45.app_name; - app_id = other45.app_id; - partition_count = other45.partition_count; - envs = other45.envs; - is_stateful = other45.is_stateful; - max_replica_count = other45.max_replica_count; - expire_second = other45.expire_second; - create_second = other45.create_second; - drop_second = other45.drop_second; - duplicating = other45.duplicating; - init_partition_count = other45.init_partition_count; - is_bulk_loading = other45.is_bulk_loading; - __isset = other45.__isset; -} -app_info::app_info( app_info&& other46) { - status = std::move(other46.status); - app_type = std::move(other46.app_type); - app_name = std::move(other46.app_name); - app_id = std::move(other46.app_id); - partition_count = std::move(other46.partition_count); - envs = std::move(other46.envs); - is_stateful = std::move(other46.is_stateful); - max_replica_count = std::move(other46.max_replica_count); - expire_second = std::move(other46.expire_second); - create_second = std::move(other46.create_second); - drop_second = std::move(other46.drop_second); - duplicating = std::move(other46.duplicating); - init_partition_count = std::move(other46.init_partition_count); - is_bulk_loading = std::move(other46.is_bulk_loading); - __isset = std::move(other46.__isset); -} -app_info& app_info::operator=(const app_info& other47) { - status = other47.status; - app_type = other47.app_type; - app_name = other47.app_name; - app_id = other47.app_id; - partition_count = other47.partition_count; - envs = other47.envs; - is_stateful = other47.is_stateful; - max_replica_count = other47.max_replica_count; - expire_second = other47.expire_second; - create_second = other47.create_second; - drop_second = other47.drop_second; - duplicating = other47.duplicating; - init_partition_count = other47.init_partition_count; - is_bulk_loading = other47.is_bulk_loading; - __isset = other47.__isset; - return *this; -} -app_info& app_info::operator=(app_info&& other48) { - status = std::move(other48.status); - app_type = std::move(other48.app_type); - app_name = std::move(other48.app_name); - app_id = std::move(other48.app_id); - partition_count = std::move(other48.partition_count); - envs = std::move(other48.envs); - is_stateful = std::move(other48.is_stateful); - max_replica_count = std::move(other48.max_replica_count); - expire_second = std::move(other48.expire_second); - create_second = std::move(other48.create_second); - drop_second = std::move(other48.drop_second); - duplicating = std::move(other48.duplicating); - init_partition_count = std::move(other48.init_partition_count); - is_bulk_loading = std::move(other48.is_bulk_loading); - __isset = std::move(other48.__isset); - return *this; -} -void app_info::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "app_info("; - out << "status=" << to_string(status); - out << ", " << "app_type=" << to_string(app_type); - out << ", " << "app_name=" << to_string(app_name); - out << ", " << "app_id=" << to_string(app_id); - out << ", " << "partition_count=" << to_string(partition_count); - out << ", " << "envs=" << to_string(envs); - out << ", " << "is_stateful=" << to_string(is_stateful); - out << ", " << "max_replica_count=" << to_string(max_replica_count); - out << ", " << "expire_second=" << to_string(expire_second); - out << ", " << "create_second=" << to_string(create_second); - out << ", " << "drop_second=" << to_string(drop_second); - out << ", " << "duplicating="; (__isset.duplicating ? (out << to_string(duplicating)) : (out << "")); - out << ", " << "init_partition_count=" << to_string(init_partition_count); - out << ", " << "is_bulk_loading="; (__isset.is_bulk_loading ? (out << to_string(is_bulk_loading)) : (out << "")); - out << ")"; -} - - -thrift_request_meta_v1::~thrift_request_meta_v1() throw() { -} - - -void thrift_request_meta_v1::__set_app_id(const int32_t val) { - this->app_id = val; -__isset.app_id = true; -} - -void thrift_request_meta_v1::__set_partition_index(const int32_t val) { - this->partition_index = val; -__isset.partition_index = true; -} - -void thrift_request_meta_v1::__set_client_timeout(const int32_t val) { - this->client_timeout = val; -__isset.client_timeout = true; -} - -void thrift_request_meta_v1::__set_client_partition_hash(const int64_t val) { - this->client_partition_hash = val; -__isset.client_partition_hash = true; -} -void thrift_request_meta_v1::__set_is_backup_request(const bool val) { - this->is_backup_request = val; -__isset.is_backup_request = true; -} + xfer += oprot->writeFieldBegin("is_stateful", ::apache::thrift::protocol::T_BOOL, 7); + xfer += oprot->writeBool(this->is_stateful); + xfer += oprot->writeFieldEnd(); -uint32_t thrift_request_meta_v1::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldBegin("max_replica_count", ::apache::thrift::protocol::T_I32, 8); + xfer += oprot->writeI32(this->max_replica_count); + xfer += oprot->writeFieldEnd(); - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += oprot->writeFieldBegin("expire_second", ::apache::thrift::protocol::T_I64, 9); + xfer += oprot->writeI64(this->expire_second); + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("create_second", ::apache::thrift::protocol::T_I64, 10); + xfer += oprot->writeI64(this->create_second); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("drop_second", ::apache::thrift::protocol::T_I64, 11); + xfer += oprot->writeI64(this->drop_second); + xfer += oprot->writeFieldEnd(); + if (this->__isset.duplicating) { + xfer += oprot->writeFieldBegin("duplicating", ::apache::thrift::protocol::T_BOOL, 12); + xfer += oprot->writeBool(this->duplicating); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldBegin("init_partition_count", ::apache::thrift::protocol::T_I32, 13); + xfer += oprot->writeI32(this->init_partition_count); + xfer += oprot->writeFieldEnd(); - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; + if (this->__isset.is_bulk_loading) { + xfer += oprot->writeFieldBegin("is_bulk_loading", ::apache::thrift::protocol::T_BOOL, 14); + xfer += oprot->writeBool(this->is_bulk_loading); + xfer += oprot->writeFieldEnd(); } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->app_id); - this->__isset.app_id = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->partition_index); - this->__isset.partition_index = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->client_timeout); - this->__isset.client_timeout = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->client_partition_hash); - this->__isset.client_partition_hash = true; - } else { - xfer += iprot->skip(ftype); + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(app_info &a, app_info &b) +{ + using ::std::swap; + swap(a.status, b.status); + swap(a.app_type, b.app_type); + swap(a.app_name, b.app_name); + swap(a.app_id, b.app_id); + swap(a.partition_count, b.partition_count); + swap(a.envs, b.envs); + swap(a.is_stateful, b.is_stateful); + swap(a.max_replica_count, b.max_replica_count); + swap(a.expire_second, b.expire_second); + swap(a.create_second, b.create_second); + swap(a.drop_second, b.drop_second); + swap(a.duplicating, b.duplicating); + swap(a.init_partition_count, b.init_partition_count); + swap(a.is_bulk_loading, b.is_bulk_loading); + swap(a.__isset, b.__isset); +} + +app_info::app_info(const app_info &other45) +{ + status = other45.status; + app_type = other45.app_type; + app_name = other45.app_name; + app_id = other45.app_id; + partition_count = other45.partition_count; + envs = other45.envs; + is_stateful = other45.is_stateful; + max_replica_count = other45.max_replica_count; + expire_second = other45.expire_second; + create_second = other45.create_second; + drop_second = other45.drop_second; + duplicating = other45.duplicating; + init_partition_count = other45.init_partition_count; + is_bulk_loading = other45.is_bulk_loading; + __isset = other45.__isset; +} +app_info::app_info(app_info &&other46) +{ + status = std::move(other46.status); + app_type = std::move(other46.app_type); + app_name = std::move(other46.app_name); + app_id = std::move(other46.app_id); + partition_count = std::move(other46.partition_count); + envs = std::move(other46.envs); + is_stateful = std::move(other46.is_stateful); + max_replica_count = std::move(other46.max_replica_count); + expire_second = std::move(other46.expire_second); + create_second = std::move(other46.create_second); + drop_second = std::move(other46.drop_second); + duplicating = std::move(other46.duplicating); + init_partition_count = std::move(other46.init_partition_count); + is_bulk_loading = std::move(other46.is_bulk_loading); + __isset = std::move(other46.__isset); +} +app_info &app_info::operator=(const app_info &other47) +{ + status = other47.status; + app_type = other47.app_type; + app_name = other47.app_name; + app_id = other47.app_id; + partition_count = other47.partition_count; + envs = other47.envs; + is_stateful = other47.is_stateful; + max_replica_count = other47.max_replica_count; + expire_second = other47.expire_second; + create_second = other47.create_second; + drop_second = other47.drop_second; + duplicating = other47.duplicating; + init_partition_count = other47.init_partition_count; + is_bulk_loading = other47.is_bulk_loading; + __isset = other47.__isset; + return *this; +} +app_info &app_info::operator=(app_info &&other48) +{ + status = std::move(other48.status); + app_type = std::move(other48.app_type); + app_name = std::move(other48.app_name); + app_id = std::move(other48.app_id); + partition_count = std::move(other48.partition_count); + envs = std::move(other48.envs); + is_stateful = std::move(other48.is_stateful); + max_replica_count = std::move(other48.max_replica_count); + expire_second = std::move(other48.expire_second); + create_second = std::move(other48.create_second); + drop_second = std::move(other48.drop_second); + duplicating = std::move(other48.duplicating); + init_partition_count = std::move(other48.init_partition_count); + is_bulk_loading = std::move(other48.is_bulk_loading); + __isset = std::move(other48.__isset); + return *this; +} +void app_info::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "app_info("; + out << "status=" << to_string(status); + out << ", " + << "app_type=" << to_string(app_type); + out << ", " + << "app_name=" << to_string(app_name); + out << ", " + << "app_id=" << to_string(app_id); + out << ", " + << "partition_count=" << to_string(partition_count); + out << ", " + << "envs=" << to_string(envs); + out << ", " + << "is_stateful=" << to_string(is_stateful); + out << ", " + << "max_replica_count=" << to_string(max_replica_count); + out << ", " + << "expire_second=" << to_string(expire_second); + out << ", " + << "create_second=" << to_string(create_second); + out << ", " + << "drop_second=" << to_string(drop_second); + out << ", " + << "duplicating="; + (__isset.duplicating ? (out << to_string(duplicating)) : (out << "")); + out << ", " + << "init_partition_count=" << to_string(init_partition_count); + out << ", " + << "is_bulk_loading="; + (__isset.is_bulk_loading ? (out << to_string(is_bulk_loading)) : (out << "")); + out << ")"; +} + +thrift_request_meta_v1::~thrift_request_meta_v1() throw() {} + +void thrift_request_meta_v1::__set_app_id(const int32_t val) +{ + this->app_id = val; + __isset.app_id = true; +} + +void thrift_request_meta_v1::__set_partition_index(const int32_t val) +{ + this->partition_index = val; + __isset.partition_index = true; +} + +void thrift_request_meta_v1::__set_client_timeout(const int32_t val) +{ + this->client_timeout = val; + __isset.client_timeout = true; +} + +void thrift_request_meta_v1::__set_client_partition_hash(const int64_t val) +{ + this->client_partition_hash = val; + __isset.client_partition_hash = true; +} + +void thrift_request_meta_v1::__set_is_backup_request(const bool val) +{ + this->is_backup_request = val; + __isset.is_backup_request = true; +} + +uint32_t thrift_request_meta_v1::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->is_backup_request); - this->__isset.is_backup_request = true; - } else { - xfer += iprot->skip(ftype); + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->app_id); + this->__isset.app_id = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->partition_index); + this->__isset.partition_index = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->client_timeout); + this->__isset.client_timeout = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->client_partition_hash); + this->__isset.client_partition_hash = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->is_backup_request); + this->__isset.is_backup_request = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - return xfer; -} - -uint32_t thrift_request_meta_v1::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("thrift_request_meta_v1"); + xfer += iprot->readStructEnd(); - if (this->__isset.app_id) { - xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32(this->app_id); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.partition_index) { - xfer += oprot->writeFieldBegin("partition_index", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32(this->partition_index); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.client_timeout) { - xfer += oprot->writeFieldBegin("client_timeout", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->client_timeout); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.client_partition_hash) { - xfer += oprot->writeFieldBegin("client_partition_hash", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->client_partition_hash); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.is_backup_request) { - xfer += oprot->writeFieldBegin("is_backup_request", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->is_backup_request); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + return xfer; } -void swap(thrift_request_meta_v1 &a, thrift_request_meta_v1 &b) { - using ::std::swap; - swap(a.app_id, b.app_id); - swap(a.partition_index, b.partition_index); - swap(a.client_timeout, b.client_timeout); - swap(a.client_partition_hash, b.client_partition_hash); - swap(a.is_backup_request, b.is_backup_request); - swap(a.__isset, b.__isset); -} +uint32_t thrift_request_meta_v1::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("thrift_request_meta_v1"); -thrift_request_meta_v1::thrift_request_meta_v1(const thrift_request_meta_v1& other49) { - app_id = other49.app_id; - partition_index = other49.partition_index; - client_timeout = other49.client_timeout; - client_partition_hash = other49.client_partition_hash; - is_backup_request = other49.is_backup_request; - __isset = other49.__isset; -} -thrift_request_meta_v1::thrift_request_meta_v1( thrift_request_meta_v1&& other50) { - app_id = std::move(other50.app_id); - partition_index = std::move(other50.partition_index); - client_timeout = std::move(other50.client_timeout); - client_partition_hash = std::move(other50.client_partition_hash); - is_backup_request = std::move(other50.is_backup_request); - __isset = std::move(other50.__isset); -} -thrift_request_meta_v1& thrift_request_meta_v1::operator=(const thrift_request_meta_v1& other51) { - app_id = other51.app_id; - partition_index = other51.partition_index; - client_timeout = other51.client_timeout; - client_partition_hash = other51.client_partition_hash; - is_backup_request = other51.is_backup_request; - __isset = other51.__isset; - return *this; -} -thrift_request_meta_v1& thrift_request_meta_v1::operator=(thrift_request_meta_v1&& other52) { - app_id = std::move(other52.app_id); - partition_index = std::move(other52.partition_index); - client_timeout = std::move(other52.client_timeout); - client_partition_hash = std::move(other52.client_partition_hash); - is_backup_request = std::move(other52.is_backup_request); - __isset = std::move(other52.__isset); - return *this; -} -void thrift_request_meta_v1::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "thrift_request_meta_v1("; - out << "app_id="; (__isset.app_id ? (out << to_string(app_id)) : (out << "")); - out << ", " << "partition_index="; (__isset.partition_index ? (out << to_string(partition_index)) : (out << "")); - out << ", " << "client_timeout="; (__isset.client_timeout ? (out << to_string(client_timeout)) : (out << "")); - out << ", " << "client_partition_hash="; (__isset.client_partition_hash ? (out << to_string(client_partition_hash)) : (out << "")); - out << ", " << "is_backup_request="; (__isset.is_backup_request ? (out << to_string(is_backup_request)) : (out << "")); - out << ")"; + if (this->__isset.app_id) { + xfer += oprot->writeFieldBegin("app_id", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->app_id); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partition_index) { + xfer += oprot->writeFieldBegin("partition_index", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->partition_index); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.client_timeout) { + xfer += oprot->writeFieldBegin("client_timeout", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->client_timeout); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.client_partition_hash) { + xfer += + oprot->writeFieldBegin("client_partition_hash", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->client_partition_hash); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.is_backup_request) { + xfer += oprot->writeFieldBegin("is_backup_request", ::apache::thrift::protocol::T_BOOL, 5); + xfer += oprot->writeBool(this->is_backup_request); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(thrift_request_meta_v1 &a, thrift_request_meta_v1 &b) +{ + using ::std::swap; + swap(a.app_id, b.app_id); + swap(a.partition_index, b.partition_index); + swap(a.client_timeout, b.client_timeout); + swap(a.client_partition_hash, b.client_partition_hash); + swap(a.is_backup_request, b.is_backup_request); + swap(a.__isset, b.__isset); +} + +thrift_request_meta_v1::thrift_request_meta_v1(const thrift_request_meta_v1 &other49) +{ + app_id = other49.app_id; + partition_index = other49.partition_index; + client_timeout = other49.client_timeout; + client_partition_hash = other49.client_partition_hash; + is_backup_request = other49.is_backup_request; + __isset = other49.__isset; +} +thrift_request_meta_v1::thrift_request_meta_v1(thrift_request_meta_v1 &&other50) +{ + app_id = std::move(other50.app_id); + partition_index = std::move(other50.partition_index); + client_timeout = std::move(other50.client_timeout); + client_partition_hash = std::move(other50.client_partition_hash); + is_backup_request = std::move(other50.is_backup_request); + __isset = std::move(other50.__isset); +} +thrift_request_meta_v1 &thrift_request_meta_v1::operator=(const thrift_request_meta_v1 &other51) +{ + app_id = other51.app_id; + partition_index = other51.partition_index; + client_timeout = other51.client_timeout; + client_partition_hash = other51.client_partition_hash; + is_backup_request = other51.is_backup_request; + __isset = other51.__isset; + return *this; +} +thrift_request_meta_v1 &thrift_request_meta_v1::operator=(thrift_request_meta_v1 &&other52) +{ + app_id = std::move(other52.app_id); + partition_index = std::move(other52.partition_index); + client_timeout = std::move(other52.client_timeout); + client_partition_hash = std::move(other52.client_partition_hash); + is_backup_request = std::move(other52.is_backup_request); + __isset = std::move(other52.__isset); + return *this; +} +void thrift_request_meta_v1::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "thrift_request_meta_v1("; + out << "app_id="; + (__isset.app_id ? (out << to_string(app_id)) : (out << "")); + out << ", " + << "partition_index="; + (__isset.partition_index ? (out << to_string(partition_index)) : (out << "")); + out << ", " + << "client_timeout="; + (__isset.client_timeout ? (out << to_string(client_timeout)) : (out << "")); + out << ", " + << "client_partition_hash="; + (__isset.client_partition_hash ? (out << to_string(client_partition_hash)) : (out << "")); + out << ", " + << "is_backup_request="; + (__isset.is_backup_request ? (out << to_string(is_backup_request)) : (out << "")); + out << ")"; } } // namespace diff --git a/src/runtime/security/security_types.cpp b/src/runtime/security/security_types.cpp index 2eb40dfa19..16143f9616 100644 --- a/src/runtime/security/security_types.cpp +++ b/src/runtime/security/security_types.cpp @@ -11,272 +11,269 @@ #include -namespace dsn { namespace security { - -int _knegotiation_statusValues[] = { - negotiation_status::INVALID, - negotiation_status::SASL_LIST_MECHANISMS, - negotiation_status::SASL_LIST_MECHANISMS_RESP, - negotiation_status::SASL_SELECT_MECHANISMS, - negotiation_status::SASL_SELECT_MECHANISMS_RESP, - negotiation_status::SASL_INITIATE, - negotiation_status::SASL_CHALLENGE, - negotiation_status::SASL_CHALLENGE_RESP, - negotiation_status::SASL_SUCC, - negotiation_status::SASL_AUTH_DISABLE, - negotiation_status::SASL_AUTH_FAIL -}; -const char* _knegotiation_statusNames[] = { - "INVALID", - "SASL_LIST_MECHANISMS", - "SASL_LIST_MECHANISMS_RESP", - "SASL_SELECT_MECHANISMS", - "SASL_SELECT_MECHANISMS_RESP", - "SASL_INITIATE", - "SASL_CHALLENGE", - "SASL_CHALLENGE_RESP", - "SASL_SUCC", - "SASL_AUTH_DISABLE", - "SASL_AUTH_FAIL" -}; -const std::map _negotiation_status_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(11, _knegotiation_statusValues, _knegotiation_statusNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - - -negotiation_request::~negotiation_request() throw() { -} - - -void negotiation_request::__set_status(const negotiation_status::type val) { - this->status = val; -} - -void negotiation_request::__set_msg(const ::dsn::blob& val) { - this->msg = val; -} - -uint32_t negotiation_request::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast0; - xfer += iprot->readI32(ecast0); - this->status = (negotiation_status::type)ecast0; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); +namespace dsn { +namespace security { + +int _knegotiation_statusValues[] = {negotiation_status::INVALID, + negotiation_status::SASL_LIST_MECHANISMS, + negotiation_status::SASL_LIST_MECHANISMS_RESP, + negotiation_status::SASL_SELECT_MECHANISMS, + negotiation_status::SASL_SELECT_MECHANISMS_RESP, + negotiation_status::SASL_INITIATE, + negotiation_status::SASL_CHALLENGE, + negotiation_status::SASL_CHALLENGE_RESP, + negotiation_status::SASL_SUCC, + negotiation_status::SASL_AUTH_DISABLE, + negotiation_status::SASL_AUTH_FAIL}; +const char *_knegotiation_statusNames[] = {"INVALID", + "SASL_LIST_MECHANISMS", + "SASL_LIST_MECHANISMS_RESP", + "SASL_SELECT_MECHANISMS", + "SASL_SELECT_MECHANISMS_RESP", + "SASL_INITIATE", + "SASL_CHALLENGE", + "SASL_CHALLENGE_RESP", + "SASL_SUCC", + "SASL_AUTH_DISABLE", + "SASL_AUTH_FAIL"}; +const std::map _negotiation_status_VALUES_TO_NAMES( + ::apache::thrift::TEnumIterator(11, _knegotiation_statusValues, _knegotiation_statusNames), + ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +negotiation_request::~negotiation_request() throw() {} + +void negotiation_request::__set_status(const negotiation_status::type val) { this->status = val; } + +void negotiation_request::__set_msg(const ::dsn::blob &val) { this->msg = val; } + +uint32_t negotiation_request::read(::apache::thrift::protocol::TProtocol *iprot) +{ + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->msg.read(iprot); - this->__isset.msg = true; - } else { - xfer += iprot->skip(ftype); + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast0; + xfer += iprot->readI32(ecast0); + this->status = (negotiation_status::type)ecast0; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->msg.read(iprot); + this->__isset.msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t negotiation_request::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("negotiation_request"); +uint32_t negotiation_request::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("negotiation_request"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("msg", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->msg.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("msg", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->msg.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(negotiation_request &a, negotiation_request &b) { - using ::std::swap; - swap(a.status, b.status); - swap(a.msg, b.msg); - swap(a.__isset, b.__isset); +void swap(negotiation_request &a, negotiation_request &b) +{ + using ::std::swap; + swap(a.status, b.status); + swap(a.msg, b.msg); + swap(a.__isset, b.__isset); } -negotiation_request::negotiation_request(const negotiation_request& other1) { - status = other1.status; - msg = other1.msg; - __isset = other1.__isset; +negotiation_request::negotiation_request(const negotiation_request &other1) +{ + status = other1.status; + msg = other1.msg; + __isset = other1.__isset; } -negotiation_request::negotiation_request( negotiation_request&& other2) { - status = std::move(other2.status); - msg = std::move(other2.msg); - __isset = std::move(other2.__isset); +negotiation_request::negotiation_request(negotiation_request &&other2) +{ + status = std::move(other2.status); + msg = std::move(other2.msg); + __isset = std::move(other2.__isset); } -negotiation_request& negotiation_request::operator=(const negotiation_request& other3) { - status = other3.status; - msg = other3.msg; - __isset = other3.__isset; - return *this; +negotiation_request &negotiation_request::operator=(const negotiation_request &other3) +{ + status = other3.status; + msg = other3.msg; + __isset = other3.__isset; + return *this; } -negotiation_request& negotiation_request::operator=(negotiation_request&& other4) { - status = std::move(other4.status); - msg = std::move(other4.msg); - __isset = std::move(other4.__isset); - return *this; +negotiation_request &negotiation_request::operator=(negotiation_request &&other4) +{ + status = std::move(other4.status); + msg = std::move(other4.msg); + __isset = std::move(other4.__isset); + return *this; } -void negotiation_request::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "negotiation_request("; - out << "status=" << to_string(status); - out << ", " << "msg=" << to_string(msg); - out << ")"; +void negotiation_request::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "negotiation_request("; + out << "status=" << to_string(status); + out << ", " + << "msg=" << to_string(msg); + out << ")"; } +negotiation_response::~negotiation_response() throw() {} -negotiation_response::~negotiation_response() throw() { -} - +void negotiation_response::__set_status(const negotiation_status::type val) { this->status = val; } -void negotiation_response::__set_status(const negotiation_status::type val) { - this->status = val; -} +void negotiation_response::__set_msg(const ::dsn::blob &val) { this->msg = val; } -void negotiation_response::__set_msg(const ::dsn::blob& val) { - this->msg = val; -} +uint32_t negotiation_response::read(::apache::thrift::protocol::TProtocol *iprot) +{ -uint32_t negotiation_response::read(::apache::thrift::protocol::TProtocol* iprot) { + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + xfer += iprot->readStructBegin(fname); - xfer += iprot->readStructBegin(fname); + using ::apache::thrift::protocol::TProtocolException; - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast5; - xfer += iprot->readI32(ecast5); - this->status = (negotiation_status::type)ecast5; - this->__isset.status = true; - } else { - xfer += iprot->skip(ftype); + while (true) { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->msg.read(iprot); - this->__isset.msg = true; - } else { - xfer += iprot->skip(ftype); + switch (fid) { + case 1: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast5; + xfer += iprot->readI32(ecast5); + this->status = (negotiation_status::type)ecast5; + this->__isset.status = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->msg.read(iprot); + this->__isset.msg = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += iprot->readFieldEnd(); } - xfer += iprot->readFieldEnd(); - } - xfer += iprot->readStructEnd(); + xfer += iprot->readStructEnd(); - return xfer; + return xfer; } -uint32_t negotiation_response::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("negotiation_response"); +uint32_t negotiation_response::write(::apache::thrift::protocol::TProtocol *oprot) const +{ + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("negotiation_response"); - xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->status); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->status); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("msg", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->msg.write(oprot); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("msg", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->msg.write(oprot); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void swap(negotiation_response &a, negotiation_response &b) { - using ::std::swap; - swap(a.status, b.status); - swap(a.msg, b.msg); - swap(a.__isset, b.__isset); +void swap(negotiation_response &a, negotiation_response &b) +{ + using ::std::swap; + swap(a.status, b.status); + swap(a.msg, b.msg); + swap(a.__isset, b.__isset); } -negotiation_response::negotiation_response(const negotiation_response& other6) { - status = other6.status; - msg = other6.msg; - __isset = other6.__isset; +negotiation_response::negotiation_response(const negotiation_response &other6) +{ + status = other6.status; + msg = other6.msg; + __isset = other6.__isset; } -negotiation_response::negotiation_response( negotiation_response&& other7) { - status = std::move(other7.status); - msg = std::move(other7.msg); - __isset = std::move(other7.__isset); +negotiation_response::negotiation_response(negotiation_response &&other7) +{ + status = std::move(other7.status); + msg = std::move(other7.msg); + __isset = std::move(other7.__isset); } -negotiation_response& negotiation_response::operator=(const negotiation_response& other8) { - status = other8.status; - msg = other8.msg; - __isset = other8.__isset; - return *this; +negotiation_response &negotiation_response::operator=(const negotiation_response &other8) +{ + status = other8.status; + msg = other8.msg; + __isset = other8.__isset; + return *this; } -negotiation_response& negotiation_response::operator=(negotiation_response&& other9) { - status = std::move(other9.status); - msg = std::move(other9.msg); - __isset = std::move(other9.__isset); - return *this; +negotiation_response &negotiation_response::operator=(negotiation_response &&other9) +{ + status = std::move(other9.status); + msg = std::move(other9.msg); + __isset = std::move(other9.__isset); + return *this; } -void negotiation_response::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "negotiation_response("; - out << "status=" << to_string(status); - out << ", " << "msg=" << to_string(msg); - out << ")"; +void negotiation_response::printTo(std::ostream &out) const +{ + using ::apache::thrift::to_string; + out << "negotiation_response("; + out << "status=" << to_string(status); + out << ", " + << "msg=" << to_string(msg); + out << ")"; } - -}} // namespace +} +} // namespace diff --git a/src/runtime/security/security_types.h b/src/runtime/security/security_types.h index 54fd8466f4..c797eac56b 100644 --- a/src/runtime/security/security_types.h +++ b/src/runtime/security/security_types.h @@ -17,139 +17,137 @@ #include +namespace dsn { +namespace security { -namespace dsn { namespace security { - -struct negotiation_status { - enum type { - INVALID = 0, - SASL_LIST_MECHANISMS = 1, - SASL_LIST_MECHANISMS_RESP = 2, - SASL_SELECT_MECHANISMS = 3, - SASL_SELECT_MECHANISMS_RESP = 4, - SASL_INITIATE = 5, - SASL_CHALLENGE = 6, - SASL_CHALLENGE_RESP = 7, - SASL_SUCC = 8, - SASL_AUTH_DISABLE = 9, - SASL_AUTH_FAIL = 10 - }; +struct negotiation_status +{ + enum type + { + INVALID = 0, + SASL_LIST_MECHANISMS = 1, + SASL_LIST_MECHANISMS_RESP = 2, + SASL_SELECT_MECHANISMS = 3, + SASL_SELECT_MECHANISMS_RESP = 4, + SASL_INITIATE = 5, + SASL_CHALLENGE = 6, + SASL_CHALLENGE_RESP = 7, + SASL_SUCC = 8, + SASL_AUTH_DISABLE = 9, + SASL_AUTH_FAIL = 10 + }; }; -extern const std::map _negotiation_status_VALUES_TO_NAMES; +extern const std::map _negotiation_status_VALUES_TO_NAMES; class negotiation_request; class negotiation_response; -typedef struct _negotiation_request__isset { - _negotiation_request__isset() : status(false), msg(false) {} - bool status :1; - bool msg :1; +typedef struct _negotiation_request__isset +{ + _negotiation_request__isset() : status(false), msg(false) {} + bool status : 1; + bool msg : 1; } _negotiation_request__isset; -class negotiation_request { - public: - - negotiation_request(const negotiation_request&); - negotiation_request(negotiation_request&&); - negotiation_request& operator=(const negotiation_request&); - negotiation_request& operator=(negotiation_request&&); - negotiation_request() : status((negotiation_status::type)0) { - } +class negotiation_request +{ +public: + negotiation_request(const negotiation_request &); + negotiation_request(negotiation_request &&); + negotiation_request &operator=(const negotiation_request &); + negotiation_request &operator=(negotiation_request &&); + negotiation_request() : status((negotiation_status::type)0) {} - virtual ~negotiation_request() throw(); - negotiation_status::type status; - ::dsn::blob msg; + virtual ~negotiation_request() throw(); + negotiation_status::type status; + ::dsn::blob msg; - _negotiation_request__isset __isset; + _negotiation_request__isset __isset; - void __set_status(const negotiation_status::type val); + void __set_status(const negotiation_status::type val); - void __set_msg(const ::dsn::blob& val); + void __set_msg(const ::dsn::blob &val); - bool operator == (const negotiation_request & rhs) const - { - if (!(status == rhs.status)) - return false; - if (!(msg == rhs.msg)) - return false; - return true; - } - bool operator != (const negotiation_request &rhs) const { - return !(*this == rhs); - } + bool operator==(const negotiation_request &rhs) const + { + if (!(status == rhs.status)) + return false; + if (!(msg == rhs.msg)) + return false; + return true; + } + bool operator!=(const negotiation_request &rhs) const { return !(*this == rhs); } - bool operator < (const negotiation_request & ) const; + bool operator<(const negotiation_request &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(negotiation_request &a, negotiation_request &b); -inline std::ostream& operator<<(std::ostream& out, const negotiation_request& obj) +inline std::ostream &operator<<(std::ostream &out, const negotiation_request &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } -typedef struct _negotiation_response__isset { - _negotiation_response__isset() : status(false), msg(false) {} - bool status :1; - bool msg :1; +typedef struct _negotiation_response__isset +{ + _negotiation_response__isset() : status(false), msg(false) {} + bool status : 1; + bool msg : 1; } _negotiation_response__isset; -class negotiation_response { - public: - - negotiation_response(const negotiation_response&); - negotiation_response(negotiation_response&&); - negotiation_response& operator=(const negotiation_response&); - negotiation_response& operator=(negotiation_response&&); - negotiation_response() : status((negotiation_status::type)0) { - } +class negotiation_response +{ +public: + negotiation_response(const negotiation_response &); + negotiation_response(negotiation_response &&); + negotiation_response &operator=(const negotiation_response &); + negotiation_response &operator=(negotiation_response &&); + negotiation_response() : status((negotiation_status::type)0) {} - virtual ~negotiation_response() throw(); - negotiation_status::type status; - ::dsn::blob msg; + virtual ~negotiation_response() throw(); + negotiation_status::type status; + ::dsn::blob msg; - _negotiation_response__isset __isset; + _negotiation_response__isset __isset; - void __set_status(const negotiation_status::type val); + void __set_status(const negotiation_status::type val); - void __set_msg(const ::dsn::blob& val); + void __set_msg(const ::dsn::blob &val); - bool operator == (const negotiation_response & rhs) const - { - if (!(status == rhs.status)) - return false; - if (!(msg == rhs.msg)) - return false; - return true; - } - bool operator != (const negotiation_response &rhs) const { - return !(*this == rhs); - } + bool operator==(const negotiation_response &rhs) const + { + if (!(status == rhs.status)) + return false; + if (!(msg == rhs.msg)) + return false; + return true; + } + bool operator!=(const negotiation_response &rhs) const { return !(*this == rhs); } - bool operator < (const negotiation_response & ) const; + bool operator<(const negotiation_response &) const; - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + uint32_t read(::apache::thrift::protocol::TProtocol *iprot); + uint32_t write(::apache::thrift::protocol::TProtocol *oprot) const; - virtual void printTo(std::ostream& out) const; + virtual void printTo(std::ostream &out) const; }; void swap(negotiation_response &a, negotiation_response &b); -inline std::ostream& operator<<(std::ostream& out, const negotiation_response& obj) +inline std::ostream &operator<<(std::ostream &out, const negotiation_response &obj) { - obj.printTo(out); - return out; + obj.printTo(out); + return out; } - -}} // namespace +} +} // namespace #endif