public static class TransportReplicationAction.ReplicaResponse extends ActionResponse implements ReplicationOperation.ReplicaResponse
TransportResponse.Empty| Constructor and Description |
|---|
ReplicaResponse(long localCheckpoint,
long globalCheckpoint) |
| Modifier and Type | Method and Description |
|---|---|
long |
globalCheckpoint()
The global checkpoint for the shard.
|
long |
localCheckpoint()
The local checkpoint for the shard.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddresspublic ReplicaResponse(long localCheckpoint,
long globalCheckpoint)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class ActionResponsejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class ActionResponsejava.io.IOExceptionpublic long localCheckpoint()
ReplicationOperation.ReplicaResponseSequenceNumbersService.getLocalCheckpoint().localCheckpoint in interface ReplicationOperation.ReplicaResponsepublic long globalCheckpoint()
ReplicationOperation.ReplicaResponseSequenceNumbersService.getGlobalCheckpoint().globalCheckpoint in interface ReplicationOperation.ReplicaResponse