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, remoteAddress
public ReplicaResponse(long localCheckpoint, long globalCheckpoint)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionResponse
java.io.IOException
public long localCheckpoint()
ReplicationOperation.ReplicaResponse
SequenceNumbersService.getLocalCheckpoint()
.localCheckpoint
in interface ReplicationOperation.ReplicaResponse
public long globalCheckpoint()
ReplicationOperation.ReplicaResponse
SequenceNumbersService.getGlobalCheckpoint()
.globalCheckpoint
in interface ReplicationOperation.ReplicaResponse