public class RegistrationRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAX_INSTANCES |
static java.lang.String |
PATH |
static java.lang.String |
SELENIUM_PROTOCOL |
Constructor and Description |
---|
RegistrationRequest()
Create a new registration request using the default values of a
GridNodeConfiguration |
RegistrationRequest(GridNodeConfiguration configuration)
Create a new registration request using the supplied
GridNodeConfiguration |
RegistrationRequest(GridNodeConfiguration configuration,
java.lang.String name)
Create a new registration request using the supplied
GridNodeConfiguration , and name |
RegistrationRequest(GridNodeConfiguration configuration,
java.lang.String name,
java.lang.String description)
Create a new registration request using the supplied
GridNodeConfiguration , name, and
description |
Modifier and Type | Method and Description |
---|---|
static RegistrationRequest |
build()
Build a RegistrationRequest.
|
static RegistrationRequest |
build(GridNodeConfiguration configuration)
Build a RegistrationRequest from the provided
GridNodeConfiguration . |
static RegistrationRequest |
build(GridNodeConfiguration configuration,
java.lang.String name)
Build a RegistrationRequest from the provided
GridNodeConfiguration , use the provided
name. |
static RegistrationRequest |
build(GridNodeConfiguration configuration,
java.lang.String name,
java.lang.String description)
Build a RegistrationRequest from the provided
GridNodeConfiguration , use the provided
name and description. |
static RegistrationRequest |
fromJson(java.lang.String jsonString)
Create an object from a registration request formatted as a json string.
|
GridNodeConfiguration |
getConfiguration() |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.Object> |
toJson() |
void |
validate()
Validate the current setting and throw a config exception is an invalid setup is detected.
|
public static final java.lang.String MAX_INSTANCES
public static final java.lang.String SELENIUM_PROTOCOL
public static final java.lang.String PATH
public RegistrationRequest()
GridNodeConfiguration
public RegistrationRequest(GridNodeConfiguration configuration)
GridNodeConfiguration
configuration
- the GridNodeConfiguration
to use. Internally calls new
GridNodeConfiguration()
if a null
value is provided since a
request without configuration is not valid.public RegistrationRequest(GridNodeConfiguration configuration, java.lang.String name)
GridNodeConfiguration
, and nameconfiguration
- the GridNodeConfiguration
to use. Internally calls new
GridNodeConfiguration()
if a null
value is provided since a
request without configuration is not valid.name
- the name for the remotepublic RegistrationRequest(GridNodeConfiguration configuration, java.lang.String name, java.lang.String description)
GridNodeConfiguration
, name, and
descriptionconfiguration
- the GridNodeConfiguration
to use. Internally calls new
GridNodeConfiguration()
if a null
value is provided since a
request without configuration is not valid.name
- the name for the remotedescription
- the description for the remote hostpublic java.lang.String getName()
public java.lang.String getDescription()
public GridNodeConfiguration getConfiguration()
public java.util.Map<java.lang.String,java.lang.Object> toJson()
public static RegistrationRequest fromJson(java.lang.String jsonString) throws org.openqa.selenium.json.JsonException
org.openqa.selenium.json.JsonException
public static RegistrationRequest build()
public static RegistrationRequest build(GridNodeConfiguration configuration)
GridNodeConfiguration
. This is different
than new RegistrationRequest(GridNodeConfiguration)
because it will first load any
specified GridNodeConfiguration.nodeConfigFile
and then merge the provided
configuration onto it.configuration
- the GridNodeConfiguration
to use. Internally calls new
GridNodeConfiguration()
if a null
value is provided since a
request without configuration is not valid.public static RegistrationRequest build(GridNodeConfiguration configuration, java.lang.String name)
GridNodeConfiguration
, use the provided
name. This is different than new RegistrationRequest(GridNodeConfiguration, String)
because it will first load any specified GridNodeConfiguration.nodeConfigFile
and then
merge the provided configuration onto it.configuration
- the GridNodeConfiguration
to use. Internally calls new
GridNodeConfiguration()
if a null
value is provided since a
request without configuration is not valid.name
- the name for the remotepublic static RegistrationRequest build(GridNodeConfiguration configuration, java.lang.String name, java.lang.String description)
GridNodeConfiguration
, use the provided
name and description. This is different than new RegistrationRequest(GridNodeConfiguration,
String, String)
because it will first load any specified GridNodeConfiguration.nodeConfigFile
and then merge the provided configuration onto it.configuration
- the GridNodeConfiguration
to use. Internally calls new
GridNodeConfiguration()
if a null
value is provided since a
request without configuration is not valid.name
- the name for the remotedescription
- the description for the remote hostpublic void validate() throws GridConfigurationException
GridConfigurationException
- grid configuration