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.IndexedRecord
public class AdminShowClusterOperationsResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned byGPUdb.adminShowClusterOperations.
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description AdminShowClusterOperationsResponse()Constructs an AdminShowClusterOperationsResponse object with default parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(int index)This method supports the Avro framework and is not intended to be called directly by the user.booleangetAddRanks()Whether adding ranks is (or was) part of this operation.intgetAddRanksPercentComplete()Current percent complete of the add ranks operation.StringgetAddRanksStatus()If this was a rank-adding operation, the add-specific status of the operation.static org.apache.avro.SchemagetClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.booleangetDryRun()Whether this operation was a dry run.StringgetEndpoint()The endpoint that initiated the cluster operation.StringgetEndpointSchema()The schema for the original request.StringgetEndTime()The end time of the cluster operation, if completed.intgetHistoryIndex()The index of this cluster operation in the reverse-chronologically sorted list of operations, where 0 is the most recent operation.intgetHistorySize()Number of cluster operations executed to date.Map<String,String>getInfo()Additional information.booleangetInProgress()Whether this cluster operation is currently in progress or not.List<String>getMessages()Updates and error messages if any.intgetNumShardsChanging()Number of shards that will change as part of rebalance.StringgetOverallStatus()Overall success status of the operation.intgetPercentComplete()Percent complete of this entire operation.List<String>getRankHosts()The host IP addresses of the ranks being added, in the same order as theranksBeingAddedlist.List<Integer>getRanksBeingAdded()The rank numbers of the ranks currently being added, or the rank numbers that were added if the operation is complete.List<Integer>getRanksBeingRemoved()The ranks being removed, or that have been removed if the operation is completed.booleangetRebalance()Whether data and/or shard rebalancing is (or was) part of this operation.booleangetRebalanceShardedData()Whether rebalancing of sharded data is (or was) part of this operation.StringgetRebalanceShardedDataStatus()If this was an operation that included rebalancing sharded data, the rebalancing-specific status of the operation.booleangetRebalanceUnshardedData()Whether rebalancing of unsharded data is (or was) part of this operation.StringgetRebalanceUnshardedDataStatus()If this was an operation that included rebalancing unsharded data, the rebalancing-specific status of the operation.booleangetRemoveRanks()Whether removing ranks is (or was) part of this operation.intgetRemoveRanksPercentComplete()Current percent complete of the remove ranks operation.StringgetRemoveRanksStatus()If this was a rank-removing operation, the removal-specific status of the operation.org.apache.avro.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.longgetShardArrayVersion()Version of the shard array that is (or was) being rebalanced to.intgetShardedRebalancePercentComplete()Percentage of shard keys, and their associated data if applicable, that have completed rebalancing.StringgetStartTime()The start time of the cluster operation.intgetUnshardedRebalancePercentComplete()Percentage of unsharded tables that completed rebalancing, out of all unsharded tables to rebalance.booleangetUserStopped()Whether a user stopped this operation at any point while in progress.inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.AdminShowClusterOperationsResponsesetAddRanks(boolean addRanks)Whether adding ranks is (or was) part of this operation.AdminShowClusterOperationsResponsesetAddRanksPercentComplete(int addRanksPercentComplete)Current percent complete of the add ranks operation.AdminShowClusterOperationsResponsesetAddRanksStatus(String addRanksStatus)If this was a rank-adding operation, the add-specific status of the operation.AdminShowClusterOperationsResponsesetDryRun(boolean dryRun)Whether this operation was a dry run.AdminShowClusterOperationsResponsesetEndpoint(String endpoint)The endpoint that initiated the cluster operation.AdminShowClusterOperationsResponsesetEndpointSchema(String endpointSchema)The schema for the original request.AdminShowClusterOperationsResponsesetEndTime(String endTime)The end time of the cluster operation, if completed.AdminShowClusterOperationsResponsesetHistoryIndex(int historyIndex)The index of this cluster operation in the reverse-chronologically sorted list of operations, where 0 is the most recent operation.AdminShowClusterOperationsResponsesetHistorySize(int historySize)Number of cluster operations executed to date.AdminShowClusterOperationsResponsesetInfo(Map<String,String> info)Additional information.AdminShowClusterOperationsResponsesetInProgress(boolean inProgress)Whether this cluster operation is currently in progress or not.AdminShowClusterOperationsResponsesetMessages(List<String> messages)Updates and error messages if any.AdminShowClusterOperationsResponsesetNumShardsChanging(int numShardsChanging)Number of shards that will change as part of rebalance.AdminShowClusterOperationsResponsesetOverallStatus(String overallStatus)Overall success status of the operation.AdminShowClusterOperationsResponsesetPercentComplete(int percentComplete)Percent complete of this entire operation.AdminShowClusterOperationsResponsesetRankHosts(List<String> rankHosts)The host IP addresses of the ranks being added, in the same order as theranksBeingAddedlist.AdminShowClusterOperationsResponsesetRanksBeingAdded(List<Integer> ranksBeingAdded)The rank numbers of the ranks currently being added, or the rank numbers that were added if the operation is complete.AdminShowClusterOperationsResponsesetRanksBeingRemoved(List<Integer> ranksBeingRemoved)The ranks being removed, or that have been removed if the operation is completed.AdminShowClusterOperationsResponsesetRebalance(boolean rebalance)Whether data and/or shard rebalancing is (or was) part of this operation.AdminShowClusterOperationsResponsesetRebalanceShardedData(boolean rebalanceShardedData)Whether rebalancing of sharded data is (or was) part of this operation.AdminShowClusterOperationsResponsesetRebalanceShardedDataStatus(String rebalanceShardedDataStatus)If this was an operation that included rebalancing sharded data, the rebalancing-specific status of the operation.AdminShowClusterOperationsResponsesetRebalanceUnshardedData(boolean rebalanceUnshardedData)Whether rebalancing of unsharded data is (or was) part of this operation.AdminShowClusterOperationsResponsesetRebalanceUnshardedDataStatus(String rebalanceUnshardedDataStatus)If this was an operation that included rebalancing unsharded data, the rebalancing-specific status of the operation.AdminShowClusterOperationsResponsesetRemoveRanks(boolean removeRanks)Whether removing ranks is (or was) part of this operation.AdminShowClusterOperationsResponsesetRemoveRanksPercentComplete(int removeRanksPercentComplete)Current percent complete of the remove ranks operation.AdminShowClusterOperationsResponsesetRemoveRanksStatus(String removeRanksStatus)If this was a rank-removing operation, the removal-specific status of the operation.AdminShowClusterOperationsResponsesetShardArrayVersion(long shardArrayVersion)Version of the shard array that is (or was) being rebalanced to.AdminShowClusterOperationsResponsesetShardedRebalancePercentComplete(int shardedRebalancePercentComplete)Percentage of shard keys, and their associated data if applicable, that have completed rebalancing.AdminShowClusterOperationsResponsesetStartTime(String startTime)The start time of the cluster operation.AdminShowClusterOperationsResponsesetUnshardedRebalancePercentComplete(int unshardedRebalancePercentComplete)Percentage of unsharded tables that completed rebalancing, out of all unsharded tables to rebalance.AdminShowClusterOperationsResponsesetUserStopped(boolean userStopped)Whether a user stopped this operation at any point while in progress.StringtoString()
-
-
-
Method Detail
-
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 of
historyIndex.
-
setHistoryIndex
public AdminShowClusterOperationsResponse setHistoryIndex(int historyIndex)
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 of
historySize.
-
setHistorySize
public AdminShowClusterOperationsResponse setHistorySize(int historySize)
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 of
inProgress.
-
setInProgress
public AdminShowClusterOperationsResponse setInProgress(boolean inProgress)
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.
-
getStartTime
public String getStartTime()
The start time of the cluster operation.- Returns:
- The current value of
startTime.
-
setStartTime
public AdminShowClusterOperationsResponse setStartTime(String startTime)
The start time of the cluster operation.- Parameters:
startTime- The new value forstartTime.- Returns:
thisto mimic the builder pattern.
-
getEndTime
public String getEndTime()
The end time of the cluster operation, if completed.- Returns:
- The current value of
endTime.
-
setEndTime
public AdminShowClusterOperationsResponse setEndTime(String endTime)
The end time of the cluster operation, if completed.- Parameters:
endTime- The new value forendTime.- Returns:
thisto mimic the builder pattern.
-
getEndpoint
public String getEndpoint()
The endpoint that initiated the cluster operation.- Returns:
- The current value of
endpoint.
-
setEndpoint
public AdminShowClusterOperationsResponse setEndpoint(String endpoint)
The endpoint that initiated the cluster operation.- Parameters:
endpoint- The new value forendpoint.- Returns:
thisto mimic the builder pattern.
-
getEndpointSchema
public String getEndpointSchema()
The schema for the original request.- Returns:
- The current value of
endpointSchema.
-
setEndpointSchema
public AdminShowClusterOperationsResponse setEndpointSchema(String endpointSchema)
The schema for the original request.- Parameters:
endpointSchema- The new value forendpointSchema.- Returns:
thisto mimic the builder pattern.
-
getOverallStatus
public String getOverallStatus()
Overall success status of the operation. Supported values:- Returns:
- The current value of
overallStatus.
-
setOverallStatus
public AdminShowClusterOperationsResponse setOverallStatus(String overallStatus)
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 of
userStopped.
-
setUserStopped
public AdminShowClusterOperationsResponse setUserStopped(boolean userStopped)
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 of
percentComplete.
-
setPercentComplete
public AdminShowClusterOperationsResponse setPercentComplete(int percentComplete)
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 of
dryRun.
-
setDryRun
public AdminShowClusterOperationsResponse setDryRun(boolean dryRun)
Whether this operation was a dry run. Supported values:truefalse
- Parameters:
dryRun- The new value fordryRun.- Returns:
thisto mimic the builder pattern.
-
getMessages
public List<String> getMessages()
Updates and error messages if any.- Returns:
- The current value of
messages.
-
setMessages
public AdminShowClusterOperationsResponse setMessages(List<String> messages)
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 of
addRanks.
-
setAddRanks
public AdminShowClusterOperationsResponse setAddRanks(boolean addRanks)
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
public String getAddRanksStatus()
If this was a rank-adding operation, the add-specific status of the operation. Valid values are:- Returns:
- The current value of
addRanksStatus.
-
setAddRanksStatus
public AdminShowClusterOperationsResponse setAddRanksStatus(String addRanksStatus)
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.
-
getRanksBeingAdded
public List<Integer> getRanksBeingAdded()
The rank numbers of the ranks currently being added, or the rank numbers that were added if the operation is complete.- Returns:
- The current value of
ranksBeingAdded.
-
setRanksBeingAdded
public AdminShowClusterOperationsResponse 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.- Parameters:
ranksBeingAdded- The new value forranksBeingAdded.- Returns:
thisto mimic the builder pattern.
-
getRankHosts
public List<String> getRankHosts()
The host IP addresses of the ranks being added, in the same order as theranksBeingAddedlist.- Returns:
- The current value of
rankHosts.
-
setRankHosts
public AdminShowClusterOperationsResponse setRankHosts(List<String> rankHosts)
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 of
addRanksPercentComplete.
-
setAddRanksPercentComplete
public AdminShowClusterOperationsResponse setAddRanksPercentComplete(int addRanksPercentComplete)
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 of
removeRanks.
-
setRemoveRanks
public AdminShowClusterOperationsResponse setRemoveRanks(boolean removeRanks)
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
public String getRemoveRanksStatus()
If this was a rank-removing operation, the removal-specific status of the operation. Valid values are:- Returns:
- The current value of
removeRanksStatus.
-
setRemoveRanksStatus
public AdminShowClusterOperationsResponse setRemoveRanksStatus(String removeRanksStatus)
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.
-
getRanksBeingRemoved
public List<Integer> getRanksBeingRemoved()
The ranks being removed, or that have been removed if the operation is completed.- Returns:
- The current value of
ranksBeingRemoved.
-
setRanksBeingRemoved
public AdminShowClusterOperationsResponse setRanksBeingRemoved(List<Integer> ranksBeingRemoved)
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 of
removeRanksPercentComplete.
-
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 of
rebalance.
-
setRebalance
public AdminShowClusterOperationsResponse setRebalance(boolean rebalance)
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 of
rebalanceUnshardedData.
-
setRebalanceUnshardedData
public AdminShowClusterOperationsResponse setRebalanceUnshardedData(boolean rebalanceUnshardedData)
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
public String 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 of
rebalanceUnshardedDataStatus.
-
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 of
unshardedRebalancePercentComplete.
-
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 of
rebalanceShardedData.
-
setRebalanceShardedData
public AdminShowClusterOperationsResponse setRebalanceShardedData(boolean rebalanceShardedData)
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 of
shardArrayVersion.
-
setShardArrayVersion
public AdminShowClusterOperationsResponse setShardArrayVersion(long shardArrayVersion)
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
public String 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 of
rebalanceShardedDataStatus.
-
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 of
numShardsChanging.
-
setNumShardsChanging
public AdminShowClusterOperationsResponse setNumShardsChanging(int numShardsChanging)
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 of
shardedRebalancePercentComplete.
-
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.
-
getInfo
public Map<String,String> getInfo()
Additional information.- Returns:
- The current value of
info.
-
setInfo
public AdminShowClusterOperationsResponse setInfo(Map<String,String> info)
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.GenericContainer- Returns:
- The schema object describing this class.
-
get
public Object get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to get- Returns:
- value of the field with the given index.
- Throws:
IndexOutOfBoundsException
-
put
public void put(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to setvalue- the value to set- Throws:
IndexOutOfBoundsException
-
-