org.openqa.grid.internal.utils
Class GridNodeConfiguration

java.lang.Object
  extended by org.openqa.grid.internal.utils.GridNodeConfiguration

public class GridNodeConfiguration
extends java.lang.Object


Field Summary
static java.lang.String CYCLE
          how often in ms each proxy will detect that a session has timed out.
static java.lang.String HOST
          The hub needs to know its hostname in order to write the proper Location header for the request being forwarded.
static java.lang.String HUB_HOST
           
static java.lang.String MAX_CONCURRENT
           
static java.lang.String PORT
          port for the hub.
static java.lang.String SERVLETS
           
static java.lang.String TIME_OUT
          how long can a session be idle before being considered timed out.
 
Constructor Summary
GridNodeConfiguration()
           
 
Method Summary
static GridNodeConfiguration build(java.lang.String[] args)
           
 java.lang.String[] getArgs()
           
 java.util.List<DesiredCapabilities> getCapabilities()
           
 java.util.Map<java.lang.String,java.lang.Object> getConfiguration()
           
 java.lang.String getHost()
           
 java.lang.String getHubHost()
           
 int getPort()
           
 org.json.JSONObject getRegistrationRequest()
           
 RemoteControlConfiguration getRemoteControlConfiguration()
           
 GridRole getRole()
           
 void setRole(GridRole role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOST

public static final java.lang.String HOST
The hub needs to know its hostname in order to write the proper Location header for the request being forwarded. Usually this can be guessed correctly, but in case it cannot it can be passed via this config param.

See Also:
Constant Field Values

HUB_HOST

public static final java.lang.String HUB_HOST
See Also:
Constant Field Values

PORT

public static final java.lang.String PORT
port for the hub.

See Also:
Constant Field Values

CYCLE

public static final java.lang.String CYCLE
how often in ms each proxy will detect that a session has timed out. All new proxy registering will have that value if they don't specifically mention the parameter.

See Also:
Constant Field Values

TIME_OUT

public static final java.lang.String TIME_OUT
how long can a session be idle before being considered timed out. Working together with cleanup cycle. Worst case scenario, a session can be idle for timout + cleanup cycle before the timeout is detected

See Also:
Constant Field Values

MAX_CONCURRENT

public static final java.lang.String MAX_CONCURRENT
See Also:
Constant Field Values

SERVLETS

public static final java.lang.String SERVLETS
See Also:
Constant Field Values
Constructor Detail

GridNodeConfiguration

public GridNodeConfiguration()
Method Detail

build

public static GridNodeConfiguration build(java.lang.String[] args)

getRegistrationRequest

public org.json.JSONObject getRegistrationRequest()

getRole

public GridRole getRole()

setRole

public void setRole(GridRole role)

getRemoteControlConfiguration

public RemoteControlConfiguration getRemoteControlConfiguration()

getArgs

public java.lang.String[] getArgs()

getCapabilities

public java.util.List<DesiredCapabilities> getCapabilities()

getConfiguration

public java.util.Map<java.lang.String,java.lang.Object> getConfiguration()

getHost

public java.lang.String getHost()

getPort

public int getPort()

getHubHost

public java.lang.String getHubHost()


Copyright © 2011. All Rights Reserved.