Streamable, Writeable, TaskAwareRequestpublic final class RecoveryFileChunkRequest extends TransportRequest
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>| Constructor | Description |
|---|---|
RecoveryFileChunkRequest() |
|
RecoveryFileChunkRequest(long recoveryId,
ShardId shardId,
StoreFileMetaData metaData,
long position,
BytesReference content,
boolean lastChunk,
int totalTranslogOps,
long sourceThrottleTimeInNanos) |
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewWriteableReadercreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic 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
StreamablereadFrom in interface StreamablereadFrom in class TransportRequestjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class TransportRequestjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic StoreFileMetaData metadata()
public boolean lastChunk()
true if this chunk is the last chunk in the stream.