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 Details

    • QueryableStateConfiguration

      public QueryableStateConfiguration(Iterator<Integer> proxyPortRange, Iterator<Integer> qserverPortRange, int numProxyThreads, int numPQueryThreads, int numServerThreads, int numSQueryThreads)
  • Method Details

    • getProxyPortRange

      public Iterator<Integer> getProxyPortRange()
      Returns the port range where the queryable state client proxy can listen. See QueryableStateOptions.PROXY_PORT_RANGE.
    • getStateServerPortRange

      public Iterator<Integer> getStateServerPortRange()
      Returns the port range where the queryable state server can listen. See QueryableStateOptions.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

      public String toString()
      Overrides:
      toString in class Object
    • disabled

      public static QueryableStateConfiguration disabled()
      Gets the configuration describing the queryable state as deactivated.
    • fromConfiguration

      public static QueryableStateConfiguration fromConfiguration(org.apache.flink.configuration.Configuration config)
      Creates the QueryableStateConfiguration from the given Configuration.