public class QueryableStateConfiguration extends Object
Constructor and Description |
---|
QueryableStateConfiguration(Iterator<Integer> proxyPortRange,
Iterator<Integer> qserverPortRange,
int numProxyThreads,
int numPQueryThreads,
int numServerThreads,
int numSQueryThreads) |
Modifier and Type | Method and Description |
---|---|
static QueryableStateConfiguration |
disabled()
Gets the configuration describing the queryable state as deactivated.
|
static QueryableStateConfiguration |
fromConfiguration(Configuration config)
Creates the
QueryableStateConfiguration 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() |
public Iterator<Integer> getProxyPortRange()
QueryableStateOptions.PROXY_PORT_RANGE
.public Iterator<Integer> getStateServerPortRange()
QueryableStateOptions.SERVER_PORT_RANGE
.public int numProxyServerThreads()
public int numProxyQueryThreads()
public int numStateServerThreads()
public int numStateQueryThreads()
public static QueryableStateConfiguration disabled()
public static QueryableStateConfiguration fromConfiguration(Configuration config)
QueryableStateConfiguration
from the given Configuration.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.