public static class TransportReplicationAction.ReplicaResponse extends ActionResponse implements ReplicationOperation.ReplicaResponse
TransportResponse.Empty
Constructor and Description |
---|
ReplicaResponse(java.lang.String allocationId,
long localCheckpoint) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
allocationId()
the allocation id of the replica shard
|
long |
localCheckpoint()
the local check point 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(java.lang.String allocationId, long localCheckpoint)
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 java.lang.String allocationId()
ReplicationOperation.ReplicaResponse
allocationId
in interface ReplicationOperation.ReplicaResponse