Package org.opensearch.indices.recovery
Class FileChunkRequest
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.indices.recovery.RecoveryTransportRequest
org.opensearch.indices.recovery.FileChunkRequest
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,TaskAwareRequest
Request containing a file chunk.
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionFileChunkRequest
(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) FileChunkRequest
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.core.common.bytes.BytesReference
content()
boolean
Returnstrue
if this chunk is the last chunk in the stream.long
length()
metadata()
name()
long
position()
long
org.opensearch.core.index.shard.ShardId
shardId()
long
toString()
int
void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.indices.recovery.RecoveryTransportRequest
requestSeqNo
Methods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
FileChunkRequest
- 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
-
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
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classRecoveryTransportRequest
- Throws:
IOException
-
toString
-
metadata
-
lastChunk
public boolean lastChunk()Returnstrue
if this chunk is the last chunk in the stream.
-