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.Constructor Summary
ConstructorsConstructorDescriptionConstructs an AdminShowClusterOperationsResponse object with default parameters.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
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.getHistoryIndex
public int getHistoryIndex()The index of this cluster operation in the reverse-chronologically sorted list of operations, where 0 is the most recent operation.Returns:The current value ofhistoryIndex.setHistoryIndex
The index of this cluster operation in the reverse-chronologically sorted list of operations, where 0 is the most recent operation.Parameters:historyIndex- The new value forhistoryIndex.Returns:thisto mimic the builder pattern.getHistorySize
public int getHistorySize()Number of cluster operations executed to date.Returns:The current value ofhistorySize.setHistorySize
Number of cluster operations executed to date.Parameters:historySize- The new value forhistorySize.Returns:thisto mimic the builder pattern.getInProgress
public boolean getInProgress()Whether this cluster operation is currently in progress or not. Supported values:truefalse
Returns:The current value ofinProgress.setInProgress
Whether this cluster operation is currently in progress or not. Supported values:truefalse
Parameters:inProgress- The new value forinProgress.Returns:thisto mimic the builder pattern.setStartTime
The start time of the cluster operation.Parameters:startTime- The new value forstartTime.Returns:thisto mimic the builder pattern.setEndTime
The end time of the cluster operation, if completed.Parameters:endTime- The new value forendTime.Returns:thisto mimic the builder pattern.setEndpoint
The endpoint that initiated the cluster operation.Parameters:endpoint- The new value forendpoint.Returns:thisto mimic the builder pattern.setEndpointSchema
The schema for the original request.Parameters:endpointSchema- The new value forendpointSchema.Returns:thisto mimic the builder pattern.setOverallStatus
Overall success status of the operation. Supported values:Parameters:overallStatus- The new value foroverallStatus.Returns:thisto mimic the builder pattern.getUserStopped
public boolean getUserStopped()Whether a user stopped this operation at any point while in progress. Supported values:truefalse
Returns:The current value ofuserStopped.setUserStopped
Whether a user stopped this operation at any point while in progress. Supported values:truefalse
Parameters:userStopped- The new value foruserStopped.Returns:thisto mimic the builder pattern.getPercentComplete
public int getPercentComplete()Percent complete of this entire operation.Returns:The current value ofpercentComplete.setPercentComplete
Percent complete of this entire operation.Parameters:percentComplete- The new value forpercentComplete.Returns:thisto mimic the builder pattern.getDryRun
public boolean getDryRun()Whether this operation was a dry run. Supported values:truefalse
Returns:The current value ofdryRun.setDryRun
Whether this operation was a dry run. Supported values:truefalse
Parameters:dryRun- The new value fordryRun.Returns:thisto mimic the builder pattern.setMessages
Updates and error messages if any.Parameters:messages- The new value formessages.Returns:thisto mimic the builder pattern.getAddRanks
public boolean getAddRanks()Whether adding ranks is (or was) part of this operation. Supported values:truefalse
Returns:The current value ofaddRanks.setAddRanks
Whether adding ranks is (or was) part of this operation. Supported values:truefalse
Parameters:addRanks- The new value foraddRanks.Returns:thisto mimic the builder pattern.getAddRanksStatus
If this was a rank-adding operation, the add-specific status of the operation. Valid values are:Returns:The current value ofaddRanksStatus.setAddRanksStatus
If this was a rank-adding operation, the add-specific status of the operation. Valid values are:Parameters:addRanksStatus- The new value foraddRanksStatus.Returns:thisto mimic the builder pattern.setRanksBeingAdded
The rank numbers of the ranks currently being added, or the rank numbers that were added if the operation is complete.Parameters:ranksBeingAdded- The new value forranksBeingAdded.Returns:thisto mimic the builder pattern.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.getAddRanksPercentComplete
public int getAddRanksPercentComplete()Current percent complete of the add ranks operation.Returns:The current value ofaddRanksPercentComplete.setAddRanksPercentComplete
Current percent complete of the add ranks operation.Parameters:addRanksPercentComplete- The new value foraddRanksPercentComplete.Returns:thisto mimic the builder pattern.getRemoveRanks
public boolean getRemoveRanks()Whether removing ranks is (or was) part of this operation. Supported values:truefalse
Returns:The current value ofremoveRanks.setRemoveRanks
Whether removing ranks is (or was) part of this operation. Supported values:truefalse
Parameters:removeRanks- The new value forremoveRanks.Returns:thisto mimic the builder pattern.getRemoveRanksStatus
If this was a rank-removing operation, the removal-specific status of the operation. Valid values are:Returns:The current value ofremoveRanksStatus.setRemoveRanksStatus
If this was a rank-removing operation, the removal-specific status of the operation. Valid values are:Parameters:removeRanksStatus- The new value forremoveRanksStatus.Returns:thisto mimic the builder pattern.setRanksBeingRemoved
The ranks being removed, or that have been removed if the operation is completed.Parameters:ranksBeingRemoved- The new value forranksBeingRemoved.Returns:thisto mimic the builder pattern.getRemoveRanksPercentComplete
public int getRemoveRanksPercentComplete()Current percent complete of the remove ranks operation.Returns:The current value ofremoveRanksPercentComplete.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.getRebalance
public boolean getRebalance()Whether data and/or shard rebalancing is (or was) part of this operation. Supported values:truefalse
Returns:The current value ofrebalance.setRebalance
Whether data and/or shard rebalancing is (or was) part of this operation. Supported values:truefalse
Parameters:rebalance- The new value forrebalance.Returns:thisto mimic the builder pattern.getRebalanceUnshardedData
public boolean getRebalanceUnshardedData()Whether rebalancing of unsharded data is (or was) part of this operation. Supported values:truefalse
Returns:The current value ofrebalanceUnshardedData.setRebalanceUnshardedData
Whether rebalancing of unsharded data is (or was) part of this operation. Supported values:truefalse
Parameters:rebalanceUnshardedData- The new value forrebalanceUnshardedData.Returns:thisto mimic the builder pattern.getRebalanceUnshardedDataStatus
If this was an operation that included rebalancing unsharded data, the rebalancing-specific status of the operation. Valid values are:Returns:The current value ofrebalanceUnshardedDataStatus.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.getUnshardedRebalancePercentComplete
public int getUnshardedRebalancePercentComplete()Percentage of unsharded tables that completed rebalancing, out of all unsharded tables to rebalance.Returns:The current value ofunshardedRebalancePercentComplete.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.getRebalanceShardedData
public boolean getRebalanceShardedData()Whether rebalancing of sharded data is (or was) part of this operation. Supported values:truefalse
Returns:The current value ofrebalanceShardedData.setRebalanceShardedData
Whether rebalancing of sharded data is (or was) part of this operation. Supported values:truefalse
Parameters:rebalanceShardedData- The new value forrebalanceShardedData.Returns:thisto mimic the builder pattern.getShardArrayVersion
public long getShardArrayVersion()Version of the shard array that is (or was) being rebalanced to. Each change to the shard array results in the version number incrementing.Returns:The current value ofshardArrayVersion.setShardArrayVersion
Version of the shard array that is (or was) being rebalanced to. Each change to the shard array results in the version number incrementing.Parameters:shardArrayVersion- The new value forshardArrayVersion.Returns:thisto mimic the builder pattern.getRebalanceShardedDataStatus
If this was an operation that included rebalancing sharded data, the rebalancing-specific status of the operation. Valid values are:Returns:The current value ofrebalanceShardedDataStatus.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.getNumShardsChanging
public int getNumShardsChanging()Number of shards that will change as part of rebalance.Returns:The current value ofnumShardsChanging.setNumShardsChanging
Number of shards that will change as part of rebalance.Parameters:numShardsChanging- The new value fornumShardsChanging.Returns:thisto mimic the builder pattern.getShardedRebalancePercentComplete
public int getShardedRebalancePercentComplete()Percentage of shard keys, and their associated data if applicable, that have completed rebalancing.Returns:The current value ofshardedRebalancePercentComplete.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.setInfo
Additional information.Parameters:info- The new value forinfo.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: