public class GridNodeConfiguration extends GridConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
GridNodeConfiguration.CollectionOfDesiredCapabilitiesDeSerializer |
static class |
GridNodeConfiguration.CollectionOfDesiredCapabilitiesSerializer |
(package private) static class |
GridNodeConfiguration.DefaultDesiredCapabilitiesBuilder
Default DesiredCapabilites
|
Modifier and Type | Field and Description |
---|---|
java.util.List<org.openqa.selenium.remote.DesiredCapabilities> |
capabilities
The capabilties of this node.
|
private java.lang.Object |
configuration
Deprecated.
|
(package private) static java.lang.Integer |
DEFAULT_DOWN_POLLING_LIMIT
Default node down polling limit
|
(package private) static java.lang.String |
DEFAULT_HUB
Default hub
|
(package private) static java.lang.Integer |
DEFAULT_MAX_SESSION
Default max sessions
|
static java.lang.String |
DEFAULT_NODE_CONFIG_FILE |
(package private) static java.lang.Integer |
DEFAULT_NODE_STATUS_CHECK_TIMEOUT
Default node status check timeout
|
(package private) static java.lang.Integer |
DEFAULT_POLLING_INTERVAL
Default node polling
|
(package private) static java.lang.Integer |
DEFAULT_PORT
Default hub port
|
(package private) static java.lang.String |
DEFAULT_PROXY
Default proxy class name
|
(package private) static java.lang.Integer |
DEFAULT_REGISTER_CYCLE
Default register cycle
|
(package private) static java.lang.Boolean |
DEFAULT_REGISTER_TOGGLE
Default toggle state for registration
|
(package private) static java.lang.String |
DEFAULT_ROLE
Default node role
|
(package private) static java.lang.Integer |
DEFAULT_UNREGISTER_DELAY
Default node unregister delay (unregisterIfStillDownAfter)
|
java.lang.Integer |
downPollingLimit
The down polling limit for the node.
|
java.lang.String |
hub
The hub url.
|
(package private) java.lang.String |
hubHost
The host name or IP of the hub.
|
(package private) 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.
|
(package private) java.lang.String |
remoteHost |
java.lang.Integer |
unregisterIfStillDownAfter
How long to wait before marking this node down.
|
cleanUpCycle, custom, host, maxSession, servlets, withoutServlets
browserTimeout, debug, DEFAULT_BROWSER_TIMEOUT, DEFAULT_DEBUG_TOGGLE, DEFAULT_STANDALONE_CONFIG_FILE, DEFAULT_TIMEOUT, 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) |
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) |
private void |
parseHubUrl() |
protected static void |
staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder) |
java.lang.String |
toString(java.lang.String format) |
isWithOutServlet, merge
isMergeAble, merge, toJson, toString, toString
public static final java.lang.String DEFAULT_NODE_CONFIG_FILE
static final java.lang.String DEFAULT_ROLE
static final java.lang.Integer DEFAULT_PORT
static final java.lang.Integer DEFAULT_POLLING_INTERVAL
static final java.lang.Integer DEFAULT_MAX_SESSION
static final java.lang.Integer DEFAULT_REGISTER_CYCLE
static final java.lang.Boolean DEFAULT_REGISTER_TOGGLE
static final java.lang.String DEFAULT_HUB
static final java.lang.Integer DEFAULT_NODE_STATUS_CHECK_TIMEOUT
static final java.lang.Integer DEFAULT_UNREGISTER_DELAY
static final java.lang.Integer DEFAULT_DOWN_POLLING_LIMIT
static final java.lang.String DEFAULT_PROXY
public java.lang.String nodeConfigFile
null
.@Expose(serialize=false) java.lang.String remoteHost
@Expose(serialize=false) @Deprecated private java.lang.Object configuration
@Expose java.lang.String hubHost
null
.@Expose java.lang.Integer hubPort
null
.@Expose public java.lang.String id
null
. Defaults to null
.@Expose public java.util.List<org.openqa.selenium.remote.DesiredCapabilities> 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
public GridNodeConfiguration()
public java.lang.String getHubHost()
public java.lang.Integer getHubPort()
public java.lang.String getRemoteHost()
private void parseHubUrl()
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)