public interface KvStateClientProxy extends KvStateServer
This proxy is where the Queryable State Client (potentially running outside your Flink cluster) connects to, and his responsibility is to forward the client's requests to the rest of the entities participating in fetching the requested state, and running within the cluster.
These are:
Job Manager
,
which is responsible for sending the
Task Manager
storing
the requested state, and Modifier and Type | Method and Description |
---|---|
CompletableFuture<ActorGateway> |
getJobManagerFuture()
Retrieves a future containing the currently leading Job Manager.
|
void |
updateJobManager(CompletableFuture<ActorGateway> leadingJobManager)
Updates the active
Job Manager
in case of change. |
getServerAddress, shutdown, start
void updateJobManager(CompletableFuture<ActorGateway> leadingJobManager) throws Exception
Job Manager
in case of change.
This is useful in settings where high-availability is enabled and a failed Job Manager is replaced by a new one.
IMPORTANT: this method may be called by a different thread than the getJobManagerFuture()
.
leadingJobManager
- the currently leading job manager.Exception
CompletableFuture<ActorGateway> getJobManagerFuture()
IMPORTANT: this method may be called by a different thread than the
updateJobManager(CompletableFuture)
.
CompletableFuture
containing the currently active Job Manager.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.