org.openqa.grid.internal.utils
Class SelfRegisteringRemote

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

public class SelfRegisteringRemote
extends java.lang.Object


Constructor Summary
SelfRegisteringRemote(RegistrationRequest config)
           
 
Method Summary
 void addBrowser(DesiredCapabilities cap, int instances)
          Adding the browser described by the capability, automatically finding out what platform the node is launched from ( and overriding it if it was specified )
 void deleteAllBrowsers()
           
 java.util.Map<java.lang.String,java.lang.Object> getConfiguration()
           
 java.net.URL getRemoteURL()
           
 void sendRegistrationRequest()
          sends 1 registration request, bypassing the retry logic and the proxy already registered check.
 void setMaxConcurrent(int max)
           
 void setTimeout(int timeout, int cycle)
           
 void startRegistrationProcess()
          register the hub following the configuration :

- check if the proxy is already registered before sending a reg request.

 void startRemoteServer()
           
 void stopRemoteServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfRegisteringRemote

public SelfRegisteringRemote(RegistrationRequest config)
Method Detail

getRemoteURL

public java.net.URL getRemoteURL()

startRemoteServer

public void startRemoteServer()
                       throws java.lang.Exception
Throws:
java.lang.Exception

stopRemoteServer

public void stopRemoteServer()

deleteAllBrowsers

public void deleteAllBrowsers()

addBrowser

public void addBrowser(DesiredCapabilities cap,
                       int instances)
Adding the browser described by the capability, automatically finding out what platform the node is launched from ( and overriding it if it was specified )

Parameters:
cap - describing the browser
instances - number of times this browser can be started on the node.

sendRegistrationRequest

public void sendRegistrationRequest()
sends 1 registration request, bypassing the retry logic and the proxy already registered check. Use only for testing.


startRegistrationProcess

public void startRegistrationProcess()
register the hub following the configuration :

- check if the proxy is already registered before sending a reg request.

- register again every X ms is specified in the config of the node.


setTimeout

public void setTimeout(int timeout,
                       int cycle)

setMaxConcurrent

public void setMaxConcurrent(int max)

getConfiguration

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


Copyright © 2011. All Rights Reserved.