public final class RecoveryFileChunkRequest extends TransportRequest
TransportRequest.Empty
Constructor and Description |
---|
RecoveryFileChunkRequest() |
RecoveryFileChunkRequest(long recoveryId,
ShardId shardId,
StoreFileMetaData metaData,
long position,
BytesReference content,
boolean lastChunk,
int totalTranslogOps,
long sourceThrottleTimeInNanos) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checksum() |
BytesReference |
content() |
boolean |
lastChunk()
Returns
true if this chunk is the last chunk in the stream. |
long |
length() |
StoreFileMetaData |
metadata() |
java.lang.String |
name() |
long |
position() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
long |
recoveryId() |
ShardId |
shardId() |
long |
sourceThrottleTimeInNanos() |
java.lang.String |
toString() |
int |
totalTranslogOps() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createTask, getDescription, setParentTask
public RecoveryFileChunkRequest()
public RecoveryFileChunkRequest(long recoveryId, ShardId shardId, StoreFileMetaData metaData, long position, BytesReference content, boolean lastChunk, int totalTranslogOps, long sourceThrottleTimeInNanos)
public long recoveryId()
public ShardId shardId()
public java.lang.String name()
public long position()
public java.lang.String checksum()
public long length()
public BytesReference content()
public int totalTranslogOps()
public long sourceThrottleTimeInNanos()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class TransportRequest
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class TransportRequest
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public StoreFileMetaData metadata()
public boolean lastChunk()
true
if this chunk is the last chunk in the stream.