Search in sources :

Example 1 with RpcKvStateRegistryListener

use of org.apache.flink.runtime.taskexecutor.rpc.RpcKvStateRegistryListener in project flink by apache.

the class TaskExecutor method registerQueryableState.

private void registerQueryableState(JobID jobId, JobMasterGateway jobMasterGateway) {
    final KvStateServer kvStateServer = kvStateService.getKvStateServer();
    final KvStateRegistry kvStateRegistry = kvStateService.getKvStateRegistry();
    if (kvStateServer != null && kvStateRegistry != null) {
        kvStateRegistry.registerListener(jobId, new RpcKvStateRegistryListener(jobMasterGateway, kvStateServer.getServerAddress()));
    }
    final KvStateClientProxy kvStateProxy = kvStateService.getKvStateClientProxy();
    if (kvStateProxy != null) {
        kvStateProxy.updateKvStateLocationOracle(jobId, jobMasterGateway);
    }
}
Also used : KvStateRegistry(org.apache.flink.runtime.query.KvStateRegistry) RpcKvStateRegistryListener(org.apache.flink.runtime.taskexecutor.rpc.RpcKvStateRegistryListener) KvStateClientProxy(org.apache.flink.runtime.query.KvStateClientProxy) KvStateServer(org.apache.flink.runtime.query.KvStateServer)

Aggregations

KvStateClientProxy (org.apache.flink.runtime.query.KvStateClientProxy)1 KvStateRegistry (org.apache.flink.runtime.query.KvStateRegistry)1 KvStateServer (org.apache.flink.runtime.query.KvStateServer)1 RpcKvStateRegistryListener (org.apache.flink.runtime.taskexecutor.rpc.RpcKvStateRegistryListener)1