6 #ifndef __ADMIN_SHOW_CLUSTER_OPERATIONS_H__ 7 #define __ADMIN_SHOW_CLUSTER_OPERATIONS_H__ 31 options(std::map<std::string, std::string>())
60 std::map<std::string, std::string>
options;
66 template<>
struct codec_traits<
gpudb::AdminShowClusterOperationsRequest>
76 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
78 const std::vector<size_t> fo = rd->fieldOrder();
80 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
131 messages(std::vector<std::string>()),
150 info(std::map<std::string, std::string>())
425 std::map<std::string, std::string>
info;
431 template<>
struct codec_traits<
gpudb::AdminShowClusterOperationsResponse>
445 ::avro::encode(e, v.
dryRun);
465 ::avro::encode(e, v.
info);
470 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
472 const std::vector<size_t> fo = rd->fieldOrder();
474 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
519 ::avro::decode(d, v.
dryRun);
599 ::avro::decode(d, v.
info);
619 ::avro::decode(d, v.
dryRun);
639 ::avro::decode(d, v.
info);
645 #endif // __ADMIN_SHOW_CLUSTER_OPERATIONS_H__ bool inProgress
Whether this cluster operation is currently in progress or not.
bool addRanks
Whether adding ranks is (or was) part of this operation.
int32_t historyIndex
The index of this cluster operation in the reverse-chronologically sorted list of operations,...
A set of parameters for GPUdb::adminShowClusterOperations.
bool rebalanceUnshardedData
Whether rebalancing of unsharded data is (or was) part of this operation.
std::string addRanksStatus
If this was a rank-adding operation, the add-specific status of the operation.
int32_t removeRanksPercentComplete
Current percent complete of the remove ranks operation.
std::string overallStatus
Overall success status of the operation.
int32_t unshardedRebalancePercentComplete
Percentage of unsharded tables that completed rebalancing, out of all unsharded tables to rebalance.
std::string endpoint
The endpoint that initiated the cluster operation.
std::string removeRanksStatus
If this was a rank-removing operation, the removal-specific status of the operation.
bool removeRanks
Whether removing ranks is (or was) part of this operation.
std::string endpointSchema
The schema for the original request.
std::vector< int32_t > ranksBeingAdded
The rank numbers of the ranks currently being added, or the rank numbers that were added if the opera...
std::string rebalanceUnshardedDataStatus
If this was an operation that included rebalancing unsharded data, the rebalancing-specific status of...
AdminShowClusterOperationsRequest(const int32_t historyIndex_, const std::map< std::string, std::string > &options_)
Constructs an AdminShowClusterOperationsRequest object with the specified parameters.
int32_t historySize
Number of cluster operations executed to date.
std::vector< std::string > messages
Updates and error messages if any.
std::vector< std::string > rankHosts
The host IP addresses of the ranks being added, in the same order as the ranksBeingAdded list.
bool dryRun
Whether this operation was a dry run.
int32_t shardedRebalancePercentComplete
Percentage of shard keys, and their associated data if applicable, that have completed rebalancing.
bool userStopped
Whether a user stopped this operation at any point while in progress.
AdminShowClusterOperationsResponse()
Constructs an AdminShowClusterOperationsResponse object with default parameters.
int32_t numShardsChanging
Number of shards that will change as part of rebalance.
std::string rebalanceShardedDataStatus
If this was an operation that included rebalancing sharded data, the rebalancing-specific status of t...
std::vector< int32_t > ranksBeingRemoved
The ranks being removed, or that have been removed if the operation is completed.
AdminShowClusterOperationsRequest()
Constructs an AdminShowClusterOperationsRequest object with default parameters.
int32_t addRanksPercentComplete
Current percent complete of the add ranks operation.
int32_t historyIndex
Indicates which cluster operation to retrieve.
bool rebalanceShardedData
Whether rebalancing of sharded data is (or was) part of this operation.
bool rebalance
Whether data and/or shard rebalancing is (or was) part of this operation.
int64_t shardArrayVersion
Version of the shard array that is (or was) being rebalanced to.
int32_t percentComplete
Percent complete of this entire operation.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
std::string endTime
The end time of the cluster operation, if completed.
std::string startTime
The start time of the cluster operation.
A set of results returned by GPUdb::adminShowClusterOperations.