Class KvStateClientProxyImpl
java.lang.Object
org.apache.flink.queryablestate.network.AbstractServerBase<org.apache.flink.queryablestate.messages.KvStateRequest,org.apache.flink.queryablestate.messages.KvStateResponse>
org.apache.flink.queryablestate.client.proxy.KvStateClientProxyImpl
- All Implemented Interfaces:
org.apache.flink.runtime.query.KvStateClientProxy,org.apache.flink.runtime.query.KvStateServer
@Internal
public class KvStateClientProxyImpl
extends org.apache.flink.queryablestate.network.AbstractServerBase<org.apache.flink.queryablestate.messages.KvStateRequest,org.apache.flink.queryablestate.messages.KvStateResponse>
implements org.apache.flink.runtime.query.KvStateClientProxy
The default implementation of the
KvStateClientProxy.-
Field Summary
Fields inherited from class org.apache.flink.queryablestate.network.AbstractServerBase
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.runtime.jobmaster.KvStateLocationOraclegetKvStateLocationOracle(org.apache.flink.api.common.JobID jobId) org.apache.flink.queryablestate.network.AbstractServerHandler<org.apache.flink.queryablestate.messages.KvStateRequest,org.apache.flink.queryablestate.messages.KvStateResponse> voidshutdown()voidstart()voidupdateKvStateLocationOracle(org.apache.flink.api.common.JobID jobId, org.apache.flink.runtime.jobmaster.KvStateLocationOracle kvStateLocationOracle) Methods inherited from class org.apache.flink.queryablestate.network.AbstractServerBase
getQueryExecutor, getServerName, isEventGroupShutdown, shutdownServer
-
Constructor Details
-
KvStateClientProxyImpl
public KvStateClientProxyImpl(String bindAddress, Iterator<Integer> bindPortIterator, Integer numEventLoopThreads, Integer numQueryThreads, org.apache.flink.queryablestate.network.stats.KvStateRequestStats stats) Creates the Queryable State Client Proxy.The server is instantiated using reflection by the
QueryableStateUtils.createKvStateClientProxy(InetAddress, Iterator, int, int, KvStateRequestStats).The server needs to be started via
start()in order to bind to the configured bind address.- Parameters:
bindAddress- the address to listen to.bindPortIterator- the port range to try to bind to.numEventLoopThreads- number of event loop threads.numQueryThreads- number of query threads.stats- the statistics collector.
-
-
Method Details
-
getServerAddress
- Specified by:
getServerAddressin interfaceorg.apache.flink.runtime.query.KvStateServer- Overrides:
getServerAddressin classorg.apache.flink.queryablestate.network.AbstractServerBase<org.apache.flink.queryablestate.messages.KvStateRequest,org.apache.flink.queryablestate.messages.KvStateResponse>
-
start
- Specified by:
startin interfaceorg.apache.flink.runtime.query.KvStateServer- Overrides:
startin classorg.apache.flink.queryablestate.network.AbstractServerBase<org.apache.flink.queryablestate.messages.KvStateRequest,org.apache.flink.queryablestate.messages.KvStateResponse> - Throws:
Throwable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.apache.flink.runtime.query.KvStateServer
-
updateKvStateLocationOracle
public void updateKvStateLocationOracle(org.apache.flink.api.common.JobID jobId, @Nullable org.apache.flink.runtime.jobmaster.KvStateLocationOracle kvStateLocationOracle) - Specified by:
updateKvStateLocationOraclein interfaceorg.apache.flink.runtime.query.KvStateClientProxy
-
getKvStateLocationOracle
@Nullable public org.apache.flink.runtime.jobmaster.KvStateLocationOracle getKvStateLocationOracle(org.apache.flink.api.common.JobID jobId) - Specified by:
getKvStateLocationOraclein interfaceorg.apache.flink.runtime.query.KvStateClientProxy
-
initializeHandler
public org.apache.flink.queryablestate.network.AbstractServerHandler<org.apache.flink.queryablestate.messages.KvStateRequest,org.apache.flink.queryablestate.messages.KvStateResponse> initializeHandler()- Specified by:
initializeHandlerin classorg.apache.flink.queryablestate.network.AbstractServerBase<org.apache.flink.queryablestate.messages.KvStateRequest,org.apache.flink.queryablestate.messages.KvStateResponse>
-