public final class RecoveryFileChunkRequest extends TransportRequest
TransportRequest.Emptyheaders| 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, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic 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 StreamablereadFrom in class TransportMessage<TransportRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class TransportMessage<TransportRequest>IOExceptionpublic StoreFileMetaData metadata()
public boolean lastChunk()
true if this chunk is the last chunk in the stream.Copyright © 2009–2017. All rights reserved.