Class FileChunkRequest

java.lang.Object
org.opensearch.core.transport.TransportMessage
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, TaskAwareRequest

public final class FileChunkRequest extends RecoveryTransportRequest
Request containing a file chunk.
Opensearch.internal:
  • Constructor Details

    • FileChunkRequest

      public FileChunkRequest(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • FileChunkRequest

      public FileChunkRequest(long recoveryId, long requestSeqNo, org.opensearch.core.index.shard.ShardId shardId, StoreFileMetadata metadata, long position, org.opensearch.core.common.bytes.BytesReference content, boolean lastChunk, int totalTranslogOps, long sourceThrottleTimeInNanos)
  • Method Details

    • recoveryId

      public long recoveryId()
    • shardId

      public org.opensearch.core.index.shard.ShardId shardId()
    • name

      public String name()
    • position

      public long position()
    • length

      public long length()
    • content

      public org.opensearch.core.common.bytes.BytesReference content()
    • totalTranslogOps

      public int totalTranslogOps()
    • sourceThrottleTimeInNanos

      public long sourceThrottleTimeInNanos()
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Overrides:
      writeTo in class RecoveryTransportRequest
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • metadata

      public StoreFileMetadata metadata()
    • lastChunk

      public boolean lastChunk()
      Returns true if this chunk is the last chunk in the stream.