Package com.gpudb.protocol
Class AdminShowClusterOperationsResponse
java.lang.Object
com.gpudb.protocol.AdminShowClusterOperationsResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordpublic class AdminShowClusterOperationsResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned by
GPUdb.adminShowClusterOperations.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theAdminShowClusterOperationsResponseparameteraddRanks.static final classA set of string constants for theAdminShowClusterOperationsResponseparameteraddRanksStatus.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterdryRun.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterinProgress.static final classA set of string constants for theAdminShowClusterOperationsResponseparameteroverallStatus.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterrebalance.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterrebalanceShardedData.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterrebalanceShardedDataStatus.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterrebalanceUnshardedData.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterrebalanceUnshardedDataStatus.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterremoveRanks.static final classA set of string constants for theAdminShowClusterOperationsResponseparameterremoveRanksStatus.static final classA set of string constants for theAdminShowClusterOperationsResponseparameteruserStopped.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.booleanWhether adding ranks is (or was) part of this operation.intCurrent percent complete of the add ranks operation.If this was a rank-adding operation, the add-specific status of the operation.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.booleanWhether this operation was a dry run.The endpoint that initiated the cluster operation.The schema for the original request.The end time of the cluster operation, if completed.intThe index of this cluster operation in the reverse-chronologically sorted list of operations, where 0 is the most recent operation.intNumber of cluster operations executed to date.getInfo()Additional information.booleanWhether this cluster operation is currently in progress or not.Updates and error messages if any.intNumber of shards that will change as part of rebalance.Overall success status of the operation.intPercent complete of this entire operation.The host IP addresses of the ranks being added, in the same order as theranksBeingAddedlist.The rank numbers of the ranks currently being added, or the rank numbers that were added if the operation is complete.The ranks being removed, or that have been removed if the operation is completed.booleanWhether data and/or shard rebalancing is (or was) part of this operation.booleanWhether rebalancing of sharded data is (or was) part of this operation.If this was an operation that included rebalancing sharded data, the rebalancing-specific status of the operation.booleanWhether rebalancing of unsharded data is (or was) part of this operation.If this was an operation that included rebalancing unsharded data, the rebalancing-specific status of the operation.booleanWhether removing ranks is (or was) part of this operation.intCurrent percent complete of the remove ranks operation.If this was a rank-removing operation, the removal-specific status of the operation.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.longVersion of the shard array that is (or was) being rebalanced to.intPercentage of shard keys, and their associated data if applicable, that have completed rebalancing.The start time of the cluster operation.intPercentage of unsharded tables that completed rebalancing, out of all unsharded tables to rebalance.booleanWhether a user stopped this operation at any point while in progress.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setAddRanks(boolean addRanks) Whether adding ranks is (or was) part of this operation.setAddRanksPercentComplete(int addRanksPercentComplete) Current percent complete of the add ranks operation.setAddRanksStatus(String addRanksStatus) If this was a rank-adding operation, the add-specific status of the operation.setDryRun(boolean dryRun) Whether this operation was a dry run.setEndpoint(String endpoint) The endpoint that initiated the cluster operation.setEndpointSchema(String endpointSchema) The schema for the original request.setEndTime(String endTime) The end time of the cluster operation, if completed.setHistoryIndex(int historyIndex) The index of this cluster operation in the reverse-chronologically sorted list of operations, where 0 is the most recent operation.setHistorySize(int historySize) Number of cluster operations executed to date.Additional information.setInProgress(boolean inProgress) Whether this cluster operation is currently in progress or not.setMessages(List<String> messages) Updates and error messages if any.setNumShardsChanging(int numShardsChanging) Number of shards that will change as part of rebalance.setOverallStatus(String overallStatus) Overall success status of the operation.setPercentComplete(int percentComplete) Percent complete of this entire operation.setRankHosts(List<String> rankHosts) The host IP addresses of the ranks being added, in the same order as theranksBeingAddedlist.setRanksBeingAdded(List<Integer> ranksBeingAdded) The rank numbers of the ranks currently being added, or the rank numbers that were added if the operation is complete.setRanksBeingRemoved(List<Integer> ranksBeingRemoved) The ranks being removed, or that have been removed if the operation is completed.setRebalance(boolean rebalance) Whether data and/or shard rebalancing is (or was) part of this operation.setRebalanceShardedData(boolean rebalanceShardedData) Whether rebalancing of sharded data is (or was) part of this operation.setRebalanceShardedDataStatus(String rebalanceShardedDataStatus) If this was an operation that included rebalancing sharded data, the rebalancing-specific status of the operation.setRebalanceUnshardedData(boolean rebalanceUnshardedData) Whether rebalancing of unsharded data is (or was) part of this operation.setRebalanceUnshardedDataStatus(String rebalanceUnshardedDataStatus) If this was an operation that included rebalancing unsharded data, the rebalancing-specific status of the operation.setRemoveRanks(boolean removeRanks) Whether removing ranks is (or was) part of this operation.setRemoveRanksPercentComplete(int removeRanksPercentComplete) Current percent complete of the remove ranks operation.setRemoveRanksStatus(String removeRanksStatus) If this was a rank-removing operation, the removal-specific status of the operation.setShardArrayVersion(long shardArrayVersion) Version of the shard array that is (or was) being rebalanced to.setShardedRebalancePercentComplete(int shardedRebalancePercentComplete) Percentage of shard keys, and their associated data if applicable, that have completed rebalancing.setStartTime(String startTime) The start time of the cluster operation.setUnshardedRebalancePercentComplete(int unshardedRebalancePercentComplete) Percentage of unsharded tables that completed rebalancing, out of all unsharded tables to rebalance.setUserStopped(boolean userStopped) Whether a user stopped this operation at any point while in progress.toString()
Method Details
getRankHosts
The host IP addresses of the ranks being added, in the same order as theranksBeingAddedlist.Returns:The current value ofrankHosts.setRankHosts
The host IP addresses of the ranks being added, in the same order as theranksBeingAddedlist.Parameters:rankHosts- The new value forrankHosts.Returns:thisto mimic the builder pattern.setRemoveRanksPercentComplete
public AdminShowClusterOperationsResponse setRemoveRanksPercentComplete(int removeRanksPercentComplete) Current percent complete of the remove ranks operation.Parameters:removeRanksPercentComplete- The new value forremoveRanksPercentComplete.Returns:thisto mimic the builder pattern.setRebalanceUnshardedDataStatus
public AdminShowClusterOperationsResponse setRebalanceUnshardedDataStatus(String rebalanceUnshardedDataStatus) If this was an operation that included rebalancing unsharded data, the rebalancing-specific status of the operation. Valid values are:Parameters:rebalanceUnshardedDataStatus- The new value forrebalanceUnshardedDataStatus.Returns:thisto mimic the builder pattern.setUnshardedRebalancePercentComplete
public AdminShowClusterOperationsResponse setUnshardedRebalancePercentComplete(int unshardedRebalancePercentComplete) Percentage of unsharded tables that completed rebalancing, out of all unsharded tables to rebalance.Parameters:unshardedRebalancePercentComplete- The new value forunshardedRebalancePercentComplete.Returns:thisto mimic the builder pattern.setRebalanceShardedDataStatus
public AdminShowClusterOperationsResponse setRebalanceShardedDataStatus(String rebalanceShardedDataStatus) If this was an operation that included rebalancing sharded data, the rebalancing-specific status of the operation. Valid values are:Parameters:rebalanceShardedDataStatus- The new value forrebalanceShardedDataStatus.Returns:thisto mimic the builder pattern.setShardedRebalancePercentComplete
public AdminShowClusterOperationsResponse setShardedRebalancePercentComplete(int shardedRebalancePercentComplete) Percentage of shard keys, and their associated data if applicable, that have completed rebalancing.Parameters:shardedRebalancePercentComplete- The new value forshardedRebalancePercentComplete.Returns:thisto mimic the builder pattern.