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.
  • Field Details

  • 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

      @Nullable public final RemoteStoreTranslogStats remoteStore()
      API name: remote_store
    • size

      @Nullable public final String 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

      @Nullable public final String 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toBuilder

      @Nonnull public TranslogStats.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<TranslogStats.Builder,TranslogStats>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static TranslogStats.Builder builder()
    • setupTranslogStatsDeserializer

      protected static void setupTranslogStatsDeserializer(ObjectDeserializer<TranslogStats.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object