Class QueryableStateConfiguration
java.lang.Object
org.apache.flink.runtime.taskexecutor.QueryableStateConfiguration
Simple configuration object for the parameters for the server-side of queryable state.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryableStateConfiguration(Iterator<Integer> proxyPortRange, Iterator<Integer> qserverPortRange, int numProxyThreads, int numPQueryThreads, int numServerThreads, int numSQueryThreads) -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryableStateConfigurationdisabled()Gets the configuration describing the queryable state as deactivated.static QueryableStateConfigurationfromConfiguration(org.apache.flink.configuration.Configuration config) Creates theQueryableStateConfigurationfrom the given Configuration.Returns the port range where the queryable state client proxy can listen.Returns the port range where the queryable state server can listen.intReturns the number of query threads for the queryable state client proxy.intReturns the number of threads for the query proxy NIO event loop.intReturns the number of threads for the thread pool that performs the actual state lookup.intReturns the number of threads for the query server NIO event loop.toString()
-
Constructor Details
-
QueryableStateConfiguration
-
-
Method Details
-
getProxyPortRange
Returns the port range where the queryable state client proxy can listen. SeeQueryableStateOptions.PROXY_PORT_RANGE. -
getStateServerPortRange
Returns the port range where the queryable state server can listen. SeeQueryableStateOptions.SERVER_PORT_RANGE. -
numProxyServerThreads
public int numProxyServerThreads()Returns the number of threads for the query proxy NIO event loop. These threads only process network events and dispatch query requests to the query threads. -
numProxyQueryThreads
public int numProxyQueryThreads()Returns the number of query threads for the queryable state client proxy. -
numStateServerThreads
public int numStateServerThreads()Returns the number of threads for the query server NIO event loop. These threads only process network events and dispatch query requests to the query threads. -
numStateQueryThreads
public int numStateQueryThreads()Returns the number of threads for the thread pool that performs the actual state lookup. These threads perform the actual state lookup. -
toString
-
disabled
Gets the configuration describing the queryable state as deactivated. -
fromConfiguration
public static QueryableStateConfiguration fromConfiguration(org.apache.flink.configuration.Configuration config) Creates theQueryableStateConfigurationfrom the given Configuration.
-