Class RecoveryStats
java.lang.Object
org.opensearch.client.opensearch._types.RecoveryStats
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RecoveryStats.Builder,RecoveryStats>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RecoveryStats
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<RecoveryStats.Builder,RecoveryStats>
The statistics about recovery operations.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RecoveryStats> Json deserializer forRecoveryStats -
Method Summary
Modifier and TypeMethodDescriptionstatic RecoveryStats.Builderbuilder()final longRequired - The number of ongoing recoveries for which this node is the source.final longRequired - The number of ongoing recoveries for which this node is the target.booleaninthashCode()static RecoveryStatsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal TimeThe total amount of time recovery operations have been throttled.final longRequired - The total amount of time recovery operations have been throttled in milliseconds.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRecoveryStats
-
-
Method Details
-
of
-
currentAsSource
public final long currentAsSource()Required - The number of ongoing recoveries for which this node is the source.API name:
current_as_source -
currentAsTarget
public final long currentAsTarget()Required - The number of ongoing recoveries for which this node is the target.API name:
current_as_target -
throttleTime
The total amount of time recovery operations have been throttled.API name:
throttle_time -
throttleTimeInMillis
public final long throttleTimeInMillis()Required - The total amount of time recovery operations have been throttled in milliseconds.API name:
throttle_time_in_millis -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RecoveryStats.Builder,RecoveryStats> - Returns:
- a new builder instance.
-
builder
-
setupRecoveryStatsDeserializer
-
hashCode
public int hashCode() -
equals
-