public class GridHubConfiguration extends StandaloneConfiguration
| 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.
|
java.lang.Integer |
cleanUpCycle
Clean up cycle for remote proxies.
|
java.util.Map<java.lang.String,java.lang.String> |
custom
Custom key/value pairs for the hub registry.
|
static java.lang.String |
DEFAULT_HUB_CONFIG_FILE |
java.lang.String |
host
Hostname or IP to use.
|
java.lang.String |
hubConfig
Hub specific json config file to use.
|
java.lang.Integer |
maxSession
Max "browser" sessions a node can handle.
|
java.lang.Integer |
newSessionWaitTimeout
Timeout for new session requests.
|
Prioritizer |
prioritizer
Prioritizer for new honoring session requests based on some priority.
|
java.lang.String |
registry |
java.util.List<java.lang.String> |
servlets
Extra servlets to initialize/use on the hub or node.
|
java.lang.Boolean |
throwOnCapabilityNotPresent
Whether to throw an Exception when there are no capabilities available that match the request.
|
java.util.List<java.lang.String> |
withoutServlets
Default servlets to exclude on the hub or node.
|
browserTimeout, debug, DEFAULT_STANDALONE_CONFIG_FILE, 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) |
boolean |
isWithOutServlet(java.lang.Class<? extends javax.servlet.Servlet> servlet) |
static GridHubConfiguration |
loadFromJSON(com.google.gson.JsonObject json) |
static GridHubConfiguration |
loadFromJSON(java.lang.String filePath) |
void |
merge(org.openqa.grid.internal.utils.configuration.GridConfiguration other)
replaces this instance of configuration value with the 'other' value if it's set.
|
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) |
isMergeAble, loadJSONFromResourceOrFile, merge, toJson, toString, toStringpublic static final java.lang.String DEFAULT_HUB_CONFIG_FILE
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.@Expose public java.lang.String registry
@Expose public java.lang.Integer cleanUpCycle
@Expose public java.util.Map<java.lang.String,java.lang.String> custom
@Expose public java.lang.String host
null. Automatically determined when null.@Expose public java.lang.Integer maxSession
@Expose public java.util.List<java.lang.String> servlets
@Expose public java.util.List<java.lang.String> withoutServlets
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)
protected void addJsonTypeAdapter(com.google.gson.GsonBuilder builder)
addJsonTypeAdapter in class StandaloneConfigurationprotected static void staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder)
public void merge(org.openqa.grid.internal.utils.configuration.GridConfiguration other)
other - public boolean isWithOutServlet(java.lang.Class<? extends javax.servlet.Servlet> servlet)
servlet - the Servlet to look for