|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.grid.internal.Registry
@ThreadSafe public class Registry
Kernel of the grid. Keeps track of what's happening, what's free/used and assigned resources to incoming requests.
Field Summary | |
---|---|
static java.lang.String |
KEY
|
Method Summary | |
---|---|
void |
add(RemoteProxy proxy)
Add a proxy to the list of proxy available for the grid to managed and link the proxy to the registry. |
void |
addNewSessionRequest(RequestHandler request)
|
void |
clearNewSessionRequests()
|
java.util.Set<TestSession> |
getActiveSessions()
|
ProxySet |
getAllProxies()
|
GridHubConfiguration |
getConfiguration()
|
java.lang.Iterable<DesiredCapabilities> |
getDesiredCapabilities()
|
Hub |
getHub()
|
java.util.concurrent.locks.Lock |
getLock()
|
int |
getNewSessionRequestCount()
|
int |
getNewSessionWaitTimeout()
how long a session can remains in the newSession queue before being quicked out |
Prioritizer |
getPrioritizer()
|
RemoteProxy |
getProxyById(java.lang.String id)
|
TestSession |
getSession(ExternalSessionKey externalKey)
gets the test session associated to this external key. |
java.util.List<RemoteProxy> |
getUsedProxies()
|
static Registry |
newInstance()
|
static Registry |
newInstance(Hub hub,
GridHubConfiguration config)
|
void |
release(java.lang.String internalKey)
|
boolean |
removeNewSessionRequest(RequestHandler request)
|
void |
setHub(Hub hub)
|
void |
setNewSessionWaitTimeout(int newSessionWaitTimeout)
|
void |
setPrioritizer(Prioritizer prioritizer)
|
void |
setThrowOnCapabilityNotPresent(boolean throwOnCapabilityNotPresent)
If throwOnCapabilityNotPresent is set to true, the hub will reject test request for a capability that is not on the grid. |
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY
Method Detail |
---|
public static Registry newInstance()
public static Registry newInstance(Hub hub, GridHubConfiguration config)
public GridHubConfiguration getConfiguration()
public int getNewSessionWaitTimeout()
public void setNewSessionWaitTimeout(int newSessionWaitTimeout)
public void stop()
public Hub getHub()
public void setHub(Hub hub)
public void addNewSessionRequest(RequestHandler request)
public void release(java.lang.String internalKey)
public void add(RemoteProxy proxy)
proxy
- The proxy to addpublic void setThrowOnCapabilityNotPresent(boolean throwOnCapabilityNotPresent)
throwOnCapabilityNotPresent
- true to throw if capability not presentpublic java.util.concurrent.locks.Lock getLock()
public ProxySet getAllProxies()
public java.util.List<RemoteProxy> getUsedProxies()
public TestSession getSession(ExternalSessionKey externalKey)
externalKey
- the external session key
public int getNewSessionRequestCount()
public void clearNewSessionRequests()
public boolean removeNewSessionRequest(RequestHandler request)
public java.lang.Iterable<DesiredCapabilities> getDesiredCapabilities()
public java.util.Set<TestSession> getActiveSessions()
public void setPrioritizer(Prioritizer prioritizer)
public Prioritizer getPrioritizer()
public RemoteProxy getProxyById(java.lang.String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |