public class GridNodeConfiguration extends GridConfiguration
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.
|
static java.lang.String |
CONFIG_UUID_CAPABILITY |
static java.lang.String |
DEFAULT_NODE_CONFIG_FILE |
java.lang.Integer |
downPollingLimit
The down polling limit for the node.
|
boolean |
enablePlatformVerification
Whether or not to drop capabilities that does not belong to the current platform family
|
java.lang.String |
hub
The hub url.
|
java.lang.String |
hubHost
The host name or IP of the hub.
|
java.lang.Integer |
hubPort
The port of the hub.
|
java.lang.String |
id
The id tu use for this node.
|
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.lang.String |
remoteHost
The address to report to the hub.
|
java.lang.Integer |
unregisterIfStillDownAfter
How long to wait before marking this node down.
|
cleanUpCycle, custom, host, maxSession, servlets, withoutServlets
browserTimeout, debug, DEFAULT_STANDALONE_CONFIG_FILE, jettyMaxThreads, log, port, role, timeout
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 |
dropCapabilitiesThatDoesNotMatchCurrentPlatform() |
void |
fixUpCapabilities() |
void |
fixUpHost() |
java.lang.String |
getHubHost() |
java.lang.Integer |
getHubPort() |
java.lang.String |
getRemoteHost() |
static GridNodeConfiguration |
loadFromJSON(com.google.gson.JsonObject json) |
static GridNodeConfiguration |
loadFromJSON(java.lang.String filePath) |
void |
merge(GridNodeConfiguration other) |
protected static void |
staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder) |
java.lang.String |
toString(java.lang.String format) |
isWithOutServlet, merge
isMergeAble, loadJSONFromResourceOrFile, 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 remoteHost
@Expose public java.lang.String hubHost
null
.@Expose public java.lang.Integer hubPort
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 boolean enablePlatformVerification
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)
toString
in class GridConfiguration
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 dropCapabilitiesThatDoesNotMatchCurrentPlatform()
public void fixUpHost()