public class SelfRegisteringRemote
extends java.lang.Object
Constructor and Description |
---|
SelfRegisteringRemote(GridNodeConfiguration configuration) |
SelfRegisteringRemote(RegistrationRequest request) |
Modifier and Type | Method and Description |
---|---|
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
|
void |
deleteAllBrowsers() |
GridNodeConfiguration |
getConfiguration() |
protected java.util.Map<java.lang.String,java.lang.Class<? extends javax.servlet.Servlet>> |
getNodeServlets() |
java.net.URL |
getRemoteURL() |
protected GridNodeServer |
getServer() |
void |
sendRegistrationRequest()
sends 1 registration request, bypassing the retry logic and the proxy already registered check.
|
void |
setMaxConcurrent(int max) |
void |
setRemoteServer(GridNodeServer server) |
void |
setTimeout(int timeout,
int cycle) |
void |
startRegistrationProcess()
register the hub following the configuration :
|
boolean |
startRemoteServer() |
void |
stopRemoteServer() |
public SelfRegisteringRemote(GridNodeConfiguration configuration)
public SelfRegisteringRemote(RegistrationRequest request)
public java.net.URL getRemoteURL()
public void setRemoteServer(GridNodeServer server)
public boolean startRemoteServer() throws java.lang.Exception
java.lang.Exception
public void stopRemoteServer()
public void deleteAllBrowsers()
public void addBrowser(org.openqa.selenium.remote.DesiredCapabilities cap, int instances)
cap
- describing the browserinstances
- number of times this browser can be started on the node.public void sendRegistrationRequest()
public void startRegistrationProcess()
- 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.
public void setTimeout(int timeout, int cycle)
public void setMaxConcurrent(int max)
public GridNodeConfiguration getConfiguration()
protected GridNodeServer getServer()
GridNodeServer
for this remoteprotected java.util.Map<java.lang.String,java.lang.Class<? extends javax.servlet.Servlet>> getNodeServlets()
Servlet
s that this remote will bind