Class QueryableStateConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.QueryableStateConfiguration
-
public class QueryableStateConfiguration extends Object
Simple configuration object for the parameters for the server-side of queryable state.
-
-
Constructor Summary
Constructors Constructor Description QueryableStateConfiguration(Iterator<Integer> proxyPortRange, Iterator<Integer> qserverPortRange, int numProxyThreads, int numPQueryThreads, int numServerThreads, int numSQueryThreads)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryableStateConfiguration
disabled()
Gets the configuration describing the queryable state as deactivated.static QueryableStateConfiguration
fromConfiguration(Configuration config)
Creates theQueryableStateConfiguration
from the given Configuration.Iterator<Integer>
getProxyPortRange()
Returns the port range where the queryable state client proxy can listen.Iterator<Integer>
getStateServerPortRange()
Returns the port range where the queryable state server can listen.int
numProxyQueryThreads()
Returns the number of query threads for the queryable state client proxy.int
numProxyServerThreads()
Returns the number of threads for the query proxy NIO event loop.int
numStateQueryThreads()
Returns the number of threads for the thread pool that performs the actual state lookup.int
numStateServerThreads()
Returns the number of threads for the query server NIO event loop.String
toString()
-
-
-
Method Detail
-
getProxyPortRange
public Iterator<Integer> getProxyPortRange()
Returns the port range where the queryable state client proxy can listen. SeeQueryableStateOptions.PROXY_PORT_RANGE
.
-
getStateServerPortRange
public Iterator<Integer> 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.
-
disabled
public static QueryableStateConfiguration disabled()
Gets the configuration describing the queryable state as deactivated.
-
fromConfiguration
public static QueryableStateConfiguration fromConfiguration(Configuration config)
Creates theQueryableStateConfiguration
from the given Configuration.
-
-