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.KvStateClientProxyThe default implementation of theKvStateClientProxy.
-
-
Constructor Summary
Constructors Constructor Description KvStateClientProxyImpl(String bindAddress, Iterator<Integer> bindPortIterator, Integer numEventLoopThreads, Integer numQueryThreads, org.apache.flink.queryablestate.network.stats.KvStateRequestStats stats)Creates the Queryable State Client Proxy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.runtime.jobmaster.KvStateLocationOraclegetKvStateLocationOracle(org.apache.flink.api.common.JobID jobId)InetSocketAddressgetServerAddress()org.apache.flink.queryablestate.network.AbstractServerHandler<org.apache.flink.queryablestate.messages.KvStateRequest,org.apache.flink.queryablestate.messages.KvStateResponse>initializeHandler()voidshutdown()voidstart()voidupdateKvStateLocationOracle(org.apache.flink.api.common.JobID jobId, org.apache.flink.runtime.jobmaster.KvStateLocationOracle kvStateLocationOracle)
-
-
-
Constructor Detail
-
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 Detail
-
getServerAddress
public InetSocketAddress 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
public void start() throws Throwable- 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>
-
-