public class BinAssignmentProperties
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BinAssignmentProperties.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
BinAssignmentProperties() |
BinAssignmentProperties(java.lang.Long algorithmRuntimeMS,
java.lang.Boolean areReplicasValid,
java.lang.Long binCount,
java.lang.Boolean isBalanced,
java.lang.Boolean isStable,
java.lang.Long numUpdatingBins,
java.lang.Long numSwaps,
ProtectionDomainServiceReplicaBudget[] layout,
java.lang.String reason,
java.lang.Long replicationCount,
java.lang.Boolean requestRebalance,
java.lang.String protectionDomainType,
ServiceStrandedCapacity[] serviceStrandedCapacities,
Optional<java.lang.String> timePublished,
GetProtectionSchemesResult[] validSchemes) |
Modifier and Type | Method and Description |
---|---|
BinAssignmentProperties.Builder |
asBuilder() |
static BinAssignmentProperties.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAlgorithmRuntimeMS()
Time in milliseconds taken to calculate this bin assignments.
|
java.lang.Boolean |
getAreReplicasValid()
If replicas are valid in bin assignments.
|
java.lang.Long |
getBinCount()
Number of bins assigned.
|
java.lang.Boolean |
getIsBalanced()
If replica assignments are balanced across all block services.
|
java.lang.Boolean |
getIsStable()
If bin assignments are not expected to change.
|
ProtectionDomainServiceReplicaBudget[] |
getLayout()
Replica bin budget for each block service in a protection domain.
|
java.lang.Long |
getNumSwaps()
Number of replicas that were swapped.
|
java.lang.Long |
getNumUpdatingBins()
Number of bins that have status bsUpdating or bsUdpatingFromActive.
|
java.lang.String |
getProtectionDomainType()
Protection domain type
|
java.lang.String |
getReason()
Reason for this bin assignments.
|
java.lang.Long |
getReplicationCount()
Number of replicas per bin.
|
java.lang.Boolean |
getRequestRebalance()
If bin assignments are requested to be rebalanced, which is expected during drive recovery.
|
ServiceStrandedCapacity[] |
getServiceStrandedCapacities()
Stranded capacities for block services
|
Optional<java.lang.String> |
getTimePublished()
When bin assignments were published.
|
GetProtectionSchemesResult[] |
getValidSchemes()
Valid data protection schemes.
|
int |
hashCode() |
void |
setAlgorithmRuntimeMS(java.lang.Long algorithmRuntimeMS) |
void |
setAreReplicasValid(java.lang.Boolean areReplicasValid) |
void |
setBinCount(java.lang.Long binCount) |
void |
setIsBalanced(java.lang.Boolean isBalanced) |
void |
setIsStable(java.lang.Boolean isStable) |
void |
setLayout(ProtectionDomainServiceReplicaBudget[] layout) |
void |
setNumSwaps(java.lang.Long numSwaps) |
void |
setNumUpdatingBins(java.lang.Long numUpdatingBins) |
void |
setProtectionDomainType(java.lang.String protectionDomainType) |
void |
setReason(java.lang.String reason) |
void |
setReplicationCount(java.lang.Long replicationCount) |
void |
setRequestRebalance(java.lang.Boolean requestRebalance) |
void |
setServiceStrandedCapacities(ServiceStrandedCapacity[] serviceStrandedCapacities) |
void |
setTimePublished(Optional<java.lang.String> timePublished) |
void |
setValidSchemes(GetProtectionSchemesResult[] validSchemes) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public BinAssignmentProperties(java.lang.Long algorithmRuntimeMS, java.lang.Boolean areReplicasValid, java.lang.Long binCount, java.lang.Boolean isBalanced, java.lang.Boolean isStable, java.lang.Long numUpdatingBins, java.lang.Long numSwaps, ProtectionDomainServiceReplicaBudget[] layout, java.lang.String reason, java.lang.Long replicationCount, java.lang.Boolean requestRebalance, java.lang.String protectionDomainType, ServiceStrandedCapacity[] serviceStrandedCapacities, Optional<java.lang.String> timePublished, GetProtectionSchemesResult[] validSchemes)
public java.lang.Long getAlgorithmRuntimeMS()
public void setAlgorithmRuntimeMS(java.lang.Long algorithmRuntimeMS)
public java.lang.Boolean getAreReplicasValid()
public void setAreReplicasValid(java.lang.Boolean areReplicasValid)
public java.lang.Long getBinCount()
public void setBinCount(java.lang.Long binCount)
public java.lang.Boolean getIsBalanced()
public void setIsBalanced(java.lang.Boolean isBalanced)
public java.lang.Boolean getIsStable()
public void setIsStable(java.lang.Boolean isStable)
public java.lang.Long getNumUpdatingBins()
public void setNumUpdatingBins(java.lang.Long numUpdatingBins)
public java.lang.Long getNumSwaps()
public void setNumSwaps(java.lang.Long numSwaps)
public ProtectionDomainServiceReplicaBudget[] getLayout()
public void setLayout(ProtectionDomainServiceReplicaBudget[] layout)
public java.lang.String getReason()
public void setReason(java.lang.String reason)
public java.lang.Long getReplicationCount()
public void setReplicationCount(java.lang.Long replicationCount)
public java.lang.Boolean getRequestRebalance()
public void setRequestRebalance(java.lang.Boolean requestRebalance)
public java.lang.String getProtectionDomainType()
public void setProtectionDomainType(java.lang.String protectionDomainType)
public ServiceStrandedCapacity[] getServiceStrandedCapacities()
public void setServiceStrandedCapacities(ServiceStrandedCapacity[] serviceStrandedCapacities)
public Optional<java.lang.String> getTimePublished()
public void setTimePublished(Optional<java.lang.String> timePublished)
public GetProtectionSchemesResult[] getValidSchemes()
public void setValidSchemes(GetProtectionSchemesResult[] validSchemes)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.lang.String toString()
toString
in class java.lang.Object
public static BinAssignmentProperties.Builder builder()
public final BinAssignmentProperties.Builder asBuilder()