Class FencedRpcEndpoint<F extends Serializable>

  • Type Parameters:
    F - type of the fencing token
    All Implemented Interfaces:
    AutoCloseable, RpcGateway, AutoCloseableAsync
    Direct Known Subclasses:
    Dispatcher, JobMaster, ResourceManager

    public abstract class FencedRpcEndpoint<F extends Serializable>
    extends RpcEndpoint
    Base class for fenced RpcEndpoint. A fenced rpc endpoint expects all rpc messages being enriched with fencing tokens. Furthermore, the rpc endpoint has its own fencing token assigned. The rpc is then only executed if the attached fencing token equals the endpoint's own token.
    • Constructor Detail

      • FencedRpcEndpoint

        protected FencedRpcEndpoint​(RpcService rpcService,
                                    String endpointId,
                                    F fencingToken)
      • FencedRpcEndpoint

        protected FencedRpcEndpoint​(RpcService rpcService,
                                    F fencingToken)
    • Method Detail

      • getFencingToken

        public F getFencingToken()