public class AdminShowClusterOperationsResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.adminShowClusterOperations(AdminShowClusterOperationsRequest)
.Modifier and Type | Class and Description |
---|---|
static class |
AdminShowClusterOperationsResponse.AddRanks
Whether adding ranks is (or was) part of this operation.
|
static class |
AdminShowClusterOperationsResponse.AddRanksStatus
If this was a rank-adding operation, the add-specific status of the
operation.
|
static class |
AdminShowClusterOperationsResponse.DryRun
Whether this operation was a dry run.
|
static class |
AdminShowClusterOperationsResponse.InProgress
Whether this cluster operation is currently in progress or not.
|
static class |
AdminShowClusterOperationsResponse.OverallStatus
Overall success status of the operation.
|
static class |
AdminShowClusterOperationsResponse.Rebalance
Whether data and/or shard rebalancing is (or was) part of this
operation.
|
static class |
AdminShowClusterOperationsResponse.RebalanceShardedData
Whether rebalancing of sharded data is (or was) part of this operation.
|
static class |
AdminShowClusterOperationsResponse.RebalanceShardedDataStatus
If this was an operation that included rebalancing sharded data, the
rebalancing-specific status of the operation.
|
static class |
AdminShowClusterOperationsResponse.RebalanceUnshardedData
Whether rebalancing of unsharded data is (or was) part of this
operation.
|
static class |
AdminShowClusterOperationsResponse.RebalanceUnshardedDataStatus
If this was an operation that included rebalancing unsharded data, the
rebalancing-specific status of the operation.
|
static class |
AdminShowClusterOperationsResponse.RemoveRanks
Whether removing ranks is (or was) part of this operation.
|
static class |
AdminShowClusterOperationsResponse.RemoveRanksStatus
If this was a rank-removing operation, the removal-specific status of
the operation.
|
static class |
AdminShowClusterOperationsResponse.UserStopped
Whether a user stopped this operation at any point while in progress.
|
Constructor and Description |
---|
AdminShowClusterOperationsResponse()
Constructs an AdminShowClusterOperationsResponse object with default
parameters.
|
public AdminShowClusterOperationsResponse()
public static org.apache.avro.Schema getClassSchema()
public int getHistoryIndex()
public AdminShowClusterOperationsResponse setHistoryIndex(int historyIndex)
historyIndex
- The index of this cluster operation in the
reverse-chronologically sorted list of operations,
where 0 is the most recent operation.this
to mimic the builder pattern.public int getHistorySize()
public AdminShowClusterOperationsResponse setHistorySize(int historySize)
historySize
- Number of cluster operations executed to date.this
to mimic the builder pattern.public boolean getInProgress()
public AdminShowClusterOperationsResponse setInProgress(boolean inProgress)
public String getStartTime()
public AdminShowClusterOperationsResponse setStartTime(String startTime)
startTime
- The start time of the cluster operation.this
to mimic the builder pattern.public String getEndTime()
public AdminShowClusterOperationsResponse setEndTime(String endTime)
endTime
- The end time of the cluster operation, if completed.this
to mimic the builder pattern.public String getEndpoint()
public AdminShowClusterOperationsResponse setEndpoint(String endpoint)
endpoint
- The endpoint that initiated the cluster operation.this
to mimic the builder pattern.public String getEndpointSchema()
public AdminShowClusterOperationsResponse setEndpointSchema(String endpointSchema)
endpointSchema
- The schema for the original request.this
to mimic the builder pattern.public String getOverallStatus()
public AdminShowClusterOperationsResponse setOverallStatus(String overallStatus)
public boolean getUserStopped()
public AdminShowClusterOperationsResponse setUserStopped(boolean userStopped)
public int getPercentComplete()
public AdminShowClusterOperationsResponse setPercentComplete(int percentComplete)
percentComplete
- Percent complete of this entire operation.this
to mimic the builder pattern.public boolean getDryRun()
public AdminShowClusterOperationsResponse setDryRun(boolean dryRun)
public AdminShowClusterOperationsResponse setMessages(List<String> messages)
messages
- Updates and error messages if any.this
to mimic the builder pattern.public boolean getAddRanks()
public AdminShowClusterOperationsResponse setAddRanks(boolean addRanks)
public String getAddRanksStatus()
public AdminShowClusterOperationsResponse setAddRanksStatus(String addRanksStatus)
addRanksStatus
- If this was a rank-adding operation, the
add-specific status of the operation.
Valid values are:
this
to mimic the builder pattern.public List<Integer> getRanksBeingAdded()
public AdminShowClusterOperationsResponse setRanksBeingAdded(List<Integer> ranksBeingAdded)
ranksBeingAdded
- The rank numbers of the ranks currently being
added, or the rank numbers that were added if
the operation is complete.this
to mimic the builder pattern.public List<String> getRankHosts()
ranksBeingAdded
list.public AdminShowClusterOperationsResponse setRankHosts(List<String> rankHosts)
rankHosts
- The host IP addresses of the ranks being added, in the
same order as the ranksBeingAdded
list.this
to mimic the builder pattern.public int getAddRanksPercentComplete()
public AdminShowClusterOperationsResponse setAddRanksPercentComplete(int addRanksPercentComplete)
addRanksPercentComplete
- Current percent complete of the add
ranks operation.this
to mimic the builder pattern.public boolean getRemoveRanks()
public AdminShowClusterOperationsResponse setRemoveRanks(boolean removeRanks)
public String getRemoveRanksStatus()
public AdminShowClusterOperationsResponse setRemoveRanksStatus(String removeRanksStatus)
removeRanksStatus
- If this was a rank-removing operation, the
removal-specific status of the operation.
Valid values are:
this
to mimic the builder pattern.public List<Integer> getRanksBeingRemoved()
public AdminShowClusterOperationsResponse setRanksBeingRemoved(List<Integer> ranksBeingRemoved)
ranksBeingRemoved
- The ranks being removed, or that have been
removed if the operation is completed.this
to mimic the builder pattern.public int getRemoveRanksPercentComplete()
public AdminShowClusterOperationsResponse setRemoveRanksPercentComplete(int removeRanksPercentComplete)
removeRanksPercentComplete
- Current percent complete of the
remove ranks operation.this
to mimic the builder pattern.public boolean getRebalance()
public AdminShowClusterOperationsResponse setRebalance(boolean rebalance)
public boolean getRebalanceUnshardedData()
public AdminShowClusterOperationsResponse setRebalanceUnshardedData(boolean rebalanceUnshardedData)
public String getRebalanceUnshardedDataStatus()
public AdminShowClusterOperationsResponse setRebalanceUnshardedDataStatus(String rebalanceUnshardedDataStatus)
rebalanceUnshardedDataStatus
- If this was an operation that
included rebalancing unsharded
data, the rebalancing-specific
status of the operation.
Valid values are:
this
to mimic the builder pattern.public int getUnshardedRebalancePercentComplete()
public AdminShowClusterOperationsResponse setUnshardedRebalancePercentComplete(int unshardedRebalancePercentComplete)
unshardedRebalancePercentComplete
- Percentage of unsharded tables
that completed rebalancing,
out of all unsharded tables to
rebalance.this
to mimic the builder pattern.public boolean getRebalanceShardedData()
public AdminShowClusterOperationsResponse setRebalanceShardedData(boolean rebalanceShardedData)
public long getShardArrayVersion()
public AdminShowClusterOperationsResponse setShardArrayVersion(long shardArrayVersion)
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.this
to mimic the builder pattern.public String getRebalanceShardedDataStatus()
public AdminShowClusterOperationsResponse setRebalanceShardedDataStatus(String rebalanceShardedDataStatus)
rebalanceShardedDataStatus
- If this was an operation that
included rebalancing sharded data,
the rebalancing-specific status of
the operation.
Valid values are:
this
to mimic the builder pattern.public int getNumShardsChanging()
public AdminShowClusterOperationsResponse setNumShardsChanging(int numShardsChanging)
numShardsChanging
- Number of shards that will change as part of
rebalance.this
to mimic the builder pattern.public int getShardedRebalancePercentComplete()
public AdminShowClusterOperationsResponse setShardedRebalancePercentComplete(int shardedRebalancePercentComplete)
shardedRebalancePercentComplete
- Percentage of shard keys, and
their associated data if
applicable, that have completed
rebalancing.this
to mimic the builder pattern.public AdminShowClusterOperationsResponse setInfo(Map<String,String> info)
info
- Additional information.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2020. All rights reserved.