public final class RecoveryFileChunkRequest extends TransportRequest
TransportRequest.Emptyheaders| コンストラクタと説明 |
|---|
RecoveryFileChunkRequest() |
RecoveryFileChunkRequest(long recoveryId,
ShardId shardId,
StoreFileMetaData metaData,
long position,
BytesReference content,
boolean lastChunk,
int totalTranslogOps,
long sourceThrottleTimeInNanos) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 インタフェース内 StreamablereadFrom クラス内 TransportMessage<TransportRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 TransportMessage<TransportRequest>IOExceptionpublic StoreFileMetaData metadata()
public boolean lastChunk()
true if this chunk is the last chunk in the stream.Copyright © 2009–2016. All rights reserved.