|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openqa.grid.internal.RemoteProxy
public class RemoteProxy
Proxy to a remote server executing the tests.
The proxy keeps a state of what is happening on the remote server and knows if a new test can be run on the remote server. There are several reasons why a test could not be run on the specified remote server, for instance: if the RemoteProxy decides the remote server has reached the maximum number of concurrent sessions, or if the client has requested DesiredCapabilities we don't support e.g. asking for Chrome when we only support Firefox.
Field Summary | |
---|---|
protected java.net.URL |
remoteHost
|
Constructor Summary | |
---|---|
RemoteProxy(RegistrationRequest request,
Registry registry)
Create the proxy from the info sent by the remote. |
Method Summary | ||
---|---|---|
int |
compareTo(RemoteProxy o)
|
|
boolean |
equals(java.lang.Object obj)
|
|
CapabilityMatcher |
getCapabilityHelper()
|
|
java.util.Map<java.lang.String,java.lang.Object> |
getConfig()
|
|
HtmlRenderer |
getHtmlRender()
|
|
HttpClientFactory |
getHttpClientFactory()
|
|
java.lang.String |
getId()
get the unique id for the node. |
|
int |
getMaxNumberOfConcurrentTestSessions()
return the max number of tests that can run on this remote at a given time. |
|
static
|
getNewInstance(RegistrationRequest request,
Registry registry)
Takes a registration request and return the RemoteProxy associated to it. |
|
TestSession |
getNewSession(java.util.Map<java.lang.String,java.lang.Object> requestedCapability)
return a new test session if the current proxy has the resources and is ready to run the test. |
|
RegistrationRequest |
getOriginalRegistrationRequest()
return the registration request that created the proxy in the first place. |
|
Registry |
getRegistry()
|
|
java.net.URL |
getRemoteHost()
Get the host the node is on. |
|
java.util.List<TestSlot> |
getTestSlots()
|
|
int |
getTimeOut()
im millis |
|
int |
getTotalUsed()
returns the total number of test slots used on this proxy |
|
int |
hashCode()
|
|
protected boolean |
isBusy()
|
|
void |
setCapabilityHelper(CapabilityMatcher capabilityHelper)
|
|
void |
setupTimeoutListener()
|
|
void |
teardown()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected volatile java.net.URL remoteHost
Constructor Detail |
---|
public RemoteProxy(RegistrationRequest request, Registry registry)
request
- The requestregistry
- The registry to useMethod Detail |
---|
public java.util.List<TestSlot> getTestSlots()
public Registry getRegistry()
public CapabilityMatcher getCapabilityHelper()
public void setCapabilityHelper(CapabilityMatcher capabilityHelper)
public void setupTimeoutListener()
public java.lang.String getId()
public void teardown()
public java.util.Map<java.lang.String,java.lang.Object> getConfig()
public RegistrationRequest getOriginalRegistrationRequest()
public int getMaxNumberOfConcurrentTestSessions()
public java.net.URL getRemoteHost()
public TestSession getNewSession(java.util.Map<java.lang.String,java.lang.Object> requestedCapability)
requestedCapability
- .
public int getTotalUsed()
protected boolean isBusy()
public static <T extends RemoteProxy> T getNewInstance(RegistrationRequest request, Registry registry)
request
- The requestregistry
- The registry to use
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(RemoteProxy o)
compareTo
in interface java.lang.Comparable<RemoteProxy>
public java.lang.String toString()
toString
in class java.lang.Object
public HtmlRenderer getHtmlRender()
public int getTimeOut()
public HttpClientFactory getHttpClientFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |