Module org.elasticsearch.server
Record Class DesiredBalanceStats
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.routing.allocation.allocator.DesiredBalanceStats
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentObject
public record DesiredBalanceStats(long lastConvergedIndex, boolean computationActive, long computationSubmitted, long computationExecuted, long computationConverged, long computationIterations, long computedShardMovements, long cumulativeComputationTime, long cumulativeReconciliationTime, long unassignedShards, long totalAllocations, long undesiredAllocations)
extends Record
implements Writeable, ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionDesiredBalanceStats
(long lastConvergedIndex, boolean computationActive, long computationSubmitted, long computationExecuted, long computationConverged, long computationIterations, long computedShardMovements, long cumulativeComputationTime, long cumulativeReconciliationTime, long unassignedShards, long totalAllocations, long undesiredAllocations) Creates an instance of aDesiredBalanceStats
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecomputationActive
record component.long
Returns the value of thecomputationConverged
record component.long
Returns the value of thecomputationExecuted
record component.long
Returns the value of thecomputationIterations
record component.long
Returns the value of thecomputationSubmitted
record component.long
Returns the value of thecomputedShardMovements
record component.long
Returns the value of thecumulativeComputationTime
record component.long
Returns the value of thecumulativeReconciliationTime
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thelastConvergedIndex
record component.static DesiredBalanceStats
readFrom
(StreamInput in) final String
toString()
Returns a string representation of this record class.long
Returns the value of thetotalAllocations
record component.toXContent
(XContentBuilder builder, ToXContent.Params params) long
Returns the value of theunassignedShards
record component.long
Returns the value of theundesiredAllocations
record component.double
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
DesiredBalanceStats
public DesiredBalanceStats(long lastConvergedIndex, boolean computationActive, long computationSubmitted, long computationExecuted, long computationConverged, long computationIterations, long computedShardMovements, long cumulativeComputationTime, long cumulativeReconciliationTime, long unassignedShards, long totalAllocations, long undesiredAllocations) Creates an instance of aDesiredBalanceStats
record class.- Parameters:
lastConvergedIndex
- the value for thelastConvergedIndex
record componentcomputationActive
- the value for thecomputationActive
record componentcomputationSubmitted
- the value for thecomputationSubmitted
record componentcomputationExecuted
- the value for thecomputationExecuted
record componentcomputationConverged
- the value for thecomputationConverged
record componentcomputationIterations
- the value for thecomputationIterations
record componentcomputedShardMovements
- the value for thecomputedShardMovements
record componentcumulativeComputationTime
- the value for thecumulativeComputationTime
record componentcumulativeReconciliationTime
- the value for thecumulativeReconciliationTime
record componentunassignedShards
- the value for theunassignedShards
record componenttotalAllocations
- the value for thetotalAllocations
record componentundesiredAllocations
- the value for theundesiredAllocations
record component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
undesiredAllocationsRatio
public double undesiredAllocationsRatio() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
lastConvergedIndex
public long lastConvergedIndex()Returns the value of thelastConvergedIndex
record component.- Returns:
- the value of the
lastConvergedIndex
record component
-
computationActive
public boolean computationActive()Returns the value of thecomputationActive
record component.- Returns:
- the value of the
computationActive
record component
-
computationSubmitted
public long computationSubmitted()Returns the value of thecomputationSubmitted
record component.- Returns:
- the value of the
computationSubmitted
record component
-
computationExecuted
public long computationExecuted()Returns the value of thecomputationExecuted
record component.- Returns:
- the value of the
computationExecuted
record component
-
computationConverged
public long computationConverged()Returns the value of thecomputationConverged
record component.- Returns:
- the value of the
computationConverged
record component
-
computationIterations
public long computationIterations()Returns the value of thecomputationIterations
record component.- Returns:
- the value of the
computationIterations
record component
-
computedShardMovements
public long computedShardMovements()Returns the value of thecomputedShardMovements
record component.- Returns:
- the value of the
computedShardMovements
record component
-
cumulativeComputationTime
public long cumulativeComputationTime()Returns the value of thecumulativeComputationTime
record component.- Returns:
- the value of the
cumulativeComputationTime
record component
-
cumulativeReconciliationTime
public long cumulativeReconciliationTime()Returns the value of thecumulativeReconciliationTime
record component.- Returns:
- the value of the
cumulativeReconciliationTime
record component
-
unassignedShards
public long unassignedShards()Returns the value of theunassignedShards
record component.- Returns:
- the value of the
unassignedShards
record component
-
totalAllocations
public long totalAllocations()Returns the value of thetotalAllocations
record component.- Returns:
- the value of the
totalAllocations
record component
-
undesiredAllocations
public long undesiredAllocations()Returns the value of theundesiredAllocations
record component.- Returns:
- the value of the
undesiredAllocations
record component
-