public final class RecoveryFileChunkRequest extends TransportRequest
TransportRequest.Empty
headers
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 |
---|---|
String |
checksum() |
BytesReference |
content() |
boolean |
lastChunk()
Returns
true if this chunk is the last chunk in the stream. |
long |
length() |
StoreFileMetaData |
metadata() |
String |
name() |
long |
position() |
void |
readFrom(StreamInput in) |
long |
recoveryId() |
ShardId |
shardId() |
long |
sourceThrottleTimeInNanos() |
String |
toString() |
int |
totalTranslogOps() |
void |
writeTo(StreamOutput out) |
createTask, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
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 String name()
public long position()
public long length()
public BytesReference content()
public int totalTranslogOps()
public long sourceThrottleTimeInNanos()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class TransportMessage<TransportRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class TransportMessage<TransportRequest>
IOException
public StoreFileMetaData metadata()
public boolean lastChunk()
true
if this chunk is the last chunk in the stream.Copyright © 2009–2017. All rights reserved.