Class TranslogStats
java.lang.Object
org.opensearch.client.opensearch._types.TranslogStats
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<TranslogStats.Builder,TranslogStats>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TranslogStats
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<TranslogStats.Builder,TranslogStats>
The statistics about translog operations.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TranslogStats> Json deserializer forTranslogStats -
Method Summary
Modifier and TypeMethodDescriptionstatic TranslogStats.Builderbuilder()final longRequired - The age of the oldest translog entry.booleaninthashCode()static TranslogStatsfinal intRequired - The number of operations in the translog.final RemoteStoreTranslogStatsAPI name:remote_storevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringsize()The size of the translog in a human-readable format.final longRequired - The size of the translog in bytes.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final intRequired - The number of uncommitted operations in the translog.final StringThe size of uncommitted operations in a human-readable format.final longRequired - The size of uncommitted operations in bytes.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 forTranslogStats
-
-
Method Details
-
of
-
earliestLastModifiedAge
public final long earliestLastModifiedAge()Required - The age of the oldest translog entry.API name:
earliest_last_modified_age -
operations
public final int operations()Required - The number of operations in the translog.API name:
operations -
remoteStore
API name:remote_store -
size
The size of the translog in a human-readable format.API name:
size -
sizeInBytes
public final long sizeInBytes()Required - The size of the translog in bytes.API name:
size_in_bytes -
uncommittedOperations
public final int uncommittedOperations()Required - The number of uncommitted operations in the translog.API name:
uncommitted_operations -
uncommittedSize
The size of uncommitted operations in a human-readable format.API name:
uncommitted_size -
uncommittedSizeInBytes
public final long uncommittedSizeInBytes()Required - The size of uncommitted operations in bytes.API name:
uncommitted_size_in_bytes -
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<TranslogStats.Builder,TranslogStats> - Returns:
- a new builder instance.
-
builder
-
setupTranslogStatsDeserializer
-
hashCode
public int hashCode() -
equals
-