public class GridNodeConfiguration extends StandaloneConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
GridNodeConfiguration.CollectionOfDesiredCapabilitiesDeSerializer |
static class |
GridNodeConfiguration.CollectionOfDesiredCapabilitiesSerializer |
Modifier and Type | Field and Description |
---|---|
java.util.List<org.openqa.selenium.MutableCapabilities> |
capabilities
The capabilties of this node.
|
java.lang.Integer |
cleanUpCycle
Clean up cycle for remote proxies.
|
static java.lang.String |
CONFIG_UUID_CAPABILITY |
java.util.Map<java.lang.String,java.lang.String> |
custom
Custom key/value pairs for the hub registry.
|
static java.lang.String |
DEFAULT_NODE_CONFIG_FILE |
java.lang.Integer |
downPollingLimit
The down polling limit for the node.
|
java.lang.String |
host
Hostname or IP to use.
|
java.lang.String |
hub
The hub url.
|
java.lang.String |
id
The id tu use for this node.
|
java.lang.Integer |
maxSession
Max "browser" sessions a node can handle.
|
java.lang.String |
nodeConfigFile
Node specific json config file to use.
|
java.lang.Integer |
nodePolling
How often to pull the node.
|
java.lang.Integer |
nodeStatusCheckTimeout
When to time out a node status check.
|
java.lang.String |
proxy
The proxy class name to use.
|
java.lang.Boolean |
register
Whether to register this node with the hub.
|
java.lang.Integer |
registerCycle
How often to re-register this node with the hub.
|
java.util.List<java.lang.String> |
servlets
Extra servlets to initialize/use on the hub or node.
|
java.lang.Integer |
unregisterIfStillDownAfter
How long to wait before marking this node down.
|
java.util.List<java.lang.String> |
withoutServlets
Default servlets to exclude on the hub or node.
|
browserTimeout, debug, DEFAULT_STANDALONE_CONFIG_FILE, enablePassThrough, help, jettyMaxThreads, log, port, role, timeout, version
Constructor and Description |
---|
GridNodeConfiguration()
Creates a new configuration using the default values.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addJsonTypeAdapter(com.google.gson.GsonBuilder builder) |
void |
fixUpCapabilities() |
void |
fixUpHost() |
java.lang.String |
getHubHost() |
java.lang.Integer |
getHubPort() |
java.lang.String |
getRemoteHost() |
boolean |
isWithOutServlet(java.lang.Class<? extends javax.servlet.Servlet> servlet) |
static GridNodeConfiguration |
loadFromJSON(com.google.gson.JsonObject json) |
static GridNodeConfiguration |
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(GridNodeConfiguration other) |
protected static void |
staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder) |
java.lang.String |
toString(java.lang.String format) |
isMergeAble, merge, toJson, toString, toString
public static final java.lang.String DEFAULT_NODE_CONFIG_FILE
public static final java.lang.String CONFIG_UUID_CAPABILITY
public java.lang.String nodeConfigFile
null
.@Expose public java.lang.String id
null
. Defaults to null
.@Expose public java.util.List<org.openqa.selenium.MutableCapabilities> capabilities
DEFAULT_NODE_CONFIG_FILE
or an empty list if the DEFAULT_NODE_CONFIG_FILE
can not be loaded.@Expose public java.lang.Integer downPollingLimit
null
.@Expose public java.lang.String hub
http://localhost:4444
.@Expose public java.lang.Integer nodePolling
@Expose public java.lang.Integer nodeStatusCheckTimeout
@Expose public java.lang.String proxy
@Expose public java.lang.Boolean register
true
@Expose public java.lang.Integer registerCycle
@Expose public java.lang.Integer unregisterIfStillDownAfter
@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 GridNodeConfiguration()
public java.lang.String getHubHost()
public java.lang.Integer getHubPort()
public java.lang.String getRemoteHost()
public void merge(GridNodeConfiguration other)
public java.lang.String toString(java.lang.String format)
public static GridNodeConfiguration loadFromJSON(java.lang.String filePath)
filePath
- node config json file to load configuration frompublic static GridNodeConfiguration loadFromJSON(com.google.gson.JsonObject json)
json
- JsonObject to load configuration fromprotected void addJsonTypeAdapter(com.google.gson.GsonBuilder builder)
addJsonTypeAdapter
in class StandaloneConfiguration
protected static void staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder)
public void fixUpCapabilities()
public void fixUpHost()
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