public class GridNodeConfiguration extends GridConfiguration
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, maxSession, servlets, withoutServlets
browserTimeout, debug, DEFAULT_STANDALONE_CONFIG_FILE, host, jettyMaxThreads, log, port, role, timeout
Constructor and Description |
---|
GridNodeConfiguration()
Creates a new configuration using the default values.
|
GridNodeConfiguration(GridNodeCliOptions cliConfig) |
GridNodeConfiguration(NodeJsonConfiguration jsonConfig) |
Modifier and Type | Method and Description |
---|---|
void |
dropCapabilitiesThatDoesNotMatchCurrentPlatform() |
void |
fixUpCapabilities() |
void |
fixUpHost() |
java.lang.String |
getHubHost() |
java.lang.Integer |
getHubPort() |
java.lang.String |
getRemoteHost() |
static GridNodeConfiguration |
loadFromJSON(org.openqa.selenium.json.JsonInput jsonInput) |
static GridNodeConfiguration |
loadFromJSON(java.lang.String filePath) |
void |
merge(GridNodeConfiguration other) |
protected void |
serializeFields(java.util.Map<java.lang.String,java.lang.Object> appendTo) |
java.lang.String |
toString(java.lang.String format) |
isWithOutServlet, merge
getCoercers, isMergeAble, loadFromJson, loadFromJson, 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
.public java.lang.String remoteHost
public java.lang.String hubHost
null
.public java.lang.Integer hubPort
null
.public java.lang.String id
null
. Defaults to null
.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.public java.lang.Integer downPollingLimit
null
.public java.lang.String hub
http://localhost:4444
.public java.lang.Integer nodePolling
public java.lang.Integer nodeStatusCheckTimeout
public java.lang.String proxy
public java.lang.Boolean register
true
public java.lang.Integer registerCycle
public java.lang.Integer unregisterIfStillDownAfter
public boolean enablePlatformVerification
public GridNodeConfiguration()
public GridNodeConfiguration(NodeJsonConfiguration jsonConfig)
public GridNodeConfiguration(GridNodeCliOptions cliConfig)
public java.lang.String getHubHost()
public java.lang.Integer getHubPort()
public java.lang.String getRemoteHost()
public void merge(GridNodeConfiguration other)
protected void serializeFields(java.util.Map<java.lang.String,java.lang.Object> appendTo)
serializeFields
in class GridConfiguration
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(org.openqa.selenium.json.JsonInput jsonInput)
public void fixUpCapabilities()
public void dropCapabilitiesThatDoesNotMatchCurrentPlatform()
public void fixUpHost()