org.openqa.grid.internal.utils
Class SelfRegisteringRemote
java.lang.Object
org.openqa.grid.internal.utils.SelfRegisteringRemote
public class SelfRegisteringRemote
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelfRegisteringRemote
public SelfRegisteringRemote(RegistrationRequest config)
getRemoteURL
public URL getRemoteURL()
startRemoteServer
public void startRemoteServer()
throws Exception
- Throws:
Exception
stopRemoteServer
public void stopRemoteServer()
deleteAllBrowsers
public void deleteAllBrowsers()
addBrowser
public void addBrowser(org.openqa.selenium.remote.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 browserinstances
- 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 Map<String,Object> getConfiguration()
Copyright © 2012. All Rights Reserved.