public class GridHubConfiguration extends GridConfiguration
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GridHubConfiguration.CapabilityMatcherAdapter |
protected static class |
GridHubConfiguration.PrioritizerAdapter |
protected static class |
GridHubConfiguration.SimpleClassNameAdapter<T> |
| Modifier and Type | Field and Description |
|---|---|
CapabilityMatcher |
capabilityMatcher
Capability matcher to use.
|
(package private) static java.lang.Integer |
DEFAULT_CLEANUP_CYCLE
Default hub cleanup cycle
|
static java.lang.String |
DEFAULT_HUB_CONFIG_FILE |
(package private) static java.lang.Integer |
DEFAULT_NEW_SESSION_WAIT_TIMEOUT
Default hub new session wait timeout
|
(package private) static java.lang.Integer |
DEFAULT_PORT
Default hub port
|
(package private) static java.lang.String |
DEFAULT_ROLE
Default hub role
|
(package private) static java.lang.Boolean |
DEFAULT_THROW_ON_CAPABILITY_NOT_PRESENT_TOGGLE
Default hub throw on capability not present toggle
|
java.lang.String |
hubConfig
Hub specific json config file to use.
|
java.lang.Integer |
newSessionWaitTimeout
Timeout for new session requests.
|
Prioritizer |
prioritizer
Prioritizer for new honoring session requests based on some priority.
|
java.lang.Boolean |
throwOnCapabilityNotPresent
Whether to throw an Exception when there are no capabilities available that match the request.
|
cleanUpCycle, custom, host, maxSession, servlets, withoutServletsbrowserTimeout, debug, DEFAULT_BROWSER_TIMEOUT, DEFAULT_DEBUG_TOGGLE, DEFAULT_STANDALONE_CONFIG_FILE, DEFAULT_TIMEOUT, help, jettyMaxThreads, log, port, role, timeout, version| Constructor and Description |
|---|
GridHubConfiguration()
Creates a new configuration using the default values.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addJsonTypeAdapter(com.google.gson.GsonBuilder builder) |
static GridHubConfiguration |
loadFromJSON(com.google.gson.JsonObject json) |
static GridHubConfiguration |
loadFromJSON(java.lang.String filePath) |
void |
merge(GridHubConfiguration other)
Merge this configuration with the specified
GridHubConfiguration |
void |
merge(GridNodeConfiguration other)
Merge this configuration with the specified
GridNodeConfiguration |
protected static void |
staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder) |
java.lang.String |
toString(java.lang.String format) |
isWithOutServlet, mergeisMergeAble, merge, toJson, toString, toStringpublic static final java.lang.String DEFAULT_HUB_CONFIG_FILE
static final java.lang.String DEFAULT_ROLE
static final java.lang.Integer DEFAULT_PORT
static final java.lang.Integer DEFAULT_CLEANUP_CYCLE
static final java.lang.Integer DEFAULT_NEW_SESSION_WAIT_TIMEOUT
static final java.lang.Boolean DEFAULT_THROW_ON_CAPABILITY_NOT_PRESENT_TOGGLE
public java.lang.String hubConfig
null.@Expose public CapabilityMatcher capabilityMatcher
DefaultCapabilityMatcher@Expose public java.lang.Integer newSessionWaitTimeout
@Expose public Prioritizer prioritizer
null.@Expose public java.lang.Boolean throwOnCapabilityNotPresent
true.public GridHubConfiguration()
public static GridHubConfiguration loadFromJSON(java.lang.String filePath)
filePath - hub config json file to load configuration frompublic static GridHubConfiguration loadFromJSON(com.google.gson.JsonObject json)
json - JsonObject to load configuration frompublic void merge(GridNodeConfiguration other)
GridNodeConfigurationother - public void merge(GridHubConfiguration other)
GridHubConfigurationother - public java.lang.String toString(java.lang.String format)
toString in class GridConfigurationprotected void addJsonTypeAdapter(com.google.gson.GsonBuilder builder)
addJsonTypeAdapter in class StandaloneConfigurationprotected static void staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder)