@Private
@Evolving
public interface AlignmentContext
| Modifier and Type | Method | Description |
|---|---|---|
long |
getLastSeenStateId() |
Returns the last seen state id of the alignment context instance.
|
boolean |
isCoordinatedCall(java.lang.String protocolName,
java.lang.String method) |
Return true if this method call does need to be synced, false
otherwise.
|
long |
receiveRequestState(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto header,
long threshold) |
This is the intended server method call to implement to receive
client state info during RPC response header processing.
|
void |
receiveResponseState(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto header) |
This is the intended client method call to implement to receive state info
during RPC response processing.
|
void |
updateRequestState(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto.Builder header) |
This is the intended client method call to pull last seen state info
into RPC request processing.
|
void |
updateResponseState(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.Builder header) |
This is the intended server method call to implement to pass state info
during RPC response header construction.
|
void updateResponseState(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.Builder header)
header - The RPC response header builder.void receiveResponseState(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto header)
header - The RPC response header.void updateRequestState(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto.Builder header)
header - The RPC request header builder.long receiveRequestState(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto header,
long threshold)
throws java.io.IOException
header - The RPC request header.threshold - a parameter to verify a condition when server
should reject client request due to its state being too far
misaligned with the client state.
See implementation for more details.java.io.IOException - raised on errors performing I/O.long getLastSeenStateId()
boolean isCoordinatedCall(java.lang.String protocolName,
java.lang.String method)
protocolName - the name of the protocolmethod - the method call to checkCopyright © 2008–2025 Apache Software Foundation. All rights reserved.