|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.grid.internal.Registry
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 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 |
assignRequestToProxy()
iterates the list of incoming session request to find a potential match in the list of proxies. |
Set<TestSession> |
getActiveSessions()
|
Set<RemoteProxy> |
getAllProxies()
|
Hub |
getHub()
|
static Registry |
getInstance()
|
Lock |
getLock()
|
static Registry |
getNewInstanceForTestOnly()
|
List<RequestHandler> |
getNewSessionRequests()
|
Prioritizer |
getPrioritizer()
|
RemoteProxy |
getProxyById(String id)
|
TestSession |
getSession(String externalKey)
|
List<RemoteProxy> |
getUsedProxies()
|
void |
release(String internalKey)
|
void |
setHub(Hub hub)
|
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 String KEY
| Method Detail |
|---|
public void stop()
public static Registry getInstance()
public Hub getHub()
public static Registry getNewInstanceForTestOnly()
public void setHub(Hub hub)
public void addNewSessionRequest(RequestHandler request)
public void assignRequestToProxy()
public void release(String internalKey)
public void add(RemoteProxy proxy)
proxy - public void setThrowOnCapabilityNotPresent(boolean throwOnCapabilityNotPresent)
throwOnCapabilityNotPresent - public Lock getLock()
public Set<RemoteProxy> getAllProxies()
public List<RemoteProxy> getUsedProxies()
public TestSession getSession(String externalKey)
public List<RequestHandler> getNewSessionRequests()
public Set<TestSession> getActiveSessions()
public void setPrioritizer(Prioritizer prioritizer)
public Prioritizer getPrioritizer()
public RemoteProxy getProxyById(String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||