DefaultGridRegistry
instead. This class is just a proxy to it.@Deprecated @ThreadSafe public class Registry extends java.lang.Object implements GridRegistry
KEY
Constructor and Description |
---|
Registry()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(RemoteProxy proxy)
Deprecated.
|
void |
addNewSessionRequest(RequestHandler handler)
Deprecated.
|
void |
clearNewSessionRequests()
Deprecated.
|
void |
forceRelease(TestSlot testSlot,
SessionTerminationReason reason)
Deprecated.
|
java.util.Set<TestSession> |
getActiveSessions()
Deprecated.
|
ProxySet |
getAllProxies()
Deprecated.
|
GridHubConfiguration |
getConfiguration()
Deprecated.
|
java.lang.Iterable<org.openqa.selenium.remote.DesiredCapabilities> |
getDesiredCapabilities()
Deprecated.
|
TestSession |
getExistingSession(ExternalSessionKey externalKey)
Deprecated.
|
org.openqa.selenium.remote.internal.HttpClientFactory |
getHttpClientFactory()
Deprecated.
|
Hub |
getHub()
Deprecated.
|
int |
getNewSessionRequestCount()
Deprecated.
|
RemoteProxy |
getProxyById(java.lang.String id)
Deprecated.
|
TestSession |
getSession(ExternalSessionKey externalKey)
Deprecated.
|
java.util.List<RemoteProxy> |
getUsedProxies()
Deprecated.
|
static Registry |
newInstance()
Deprecated.
|
static Registry |
newInstance(Hub hub,
GridHubConfiguration config)
Deprecated.
|
void |
removeIfPresent(RemoteProxy proxy)
Deprecated.
|
boolean |
removeNewSessionRequest(RequestHandler request)
Deprecated.
|
void |
setHub(Hub hub)
Deprecated.
|
void |
setThrowOnCapabilityNotPresent(boolean throwOnCapabilityNotPresent)
Deprecated.
|
void |
start()
Deprecated.
|
void |
stop()
Deprecated.
|
void |
terminate(TestSession session,
SessionTerminationReason reason)
Deprecated.
|
@Deprecated public void start()
GridRegistry
start
in interface GridRegistry
GridRegistry.start()
@Deprecated public static Registry newInstance()
Registry
that is not associated with a Hub and starts it.@Deprecated public static Registry newInstance(Hub hub, GridHubConfiguration config)
Registry
and starts ithub
- the Hub
to associate this registry withconfig
- the GridHubConfiguration
@Deprecated public GridHubConfiguration getConfiguration()
getConfiguration
in interface GridRegistry
GridHubConfiguration
for this registryGridRegistry.getConfiguration()
@Deprecated public void terminate(TestSession session, SessionTerminationReason reason)
GridRegistry
TestSlot
which
is being released.terminate
in interface GridRegistry
session
- The session to terminatereason
- the reason for terminationGridRegistry.terminate(TestSession, SessionTerminationReason)
@Deprecated public void removeIfPresent(RemoteProxy proxy)
GridRegistry
RemoteProxy
specified from the registryremoveIfPresent
in interface GridRegistry
GridRegistry.removeIfPresent(RemoteProxy)
@Deprecated public void forceRelease(TestSlot testSlot, SessionTerminationReason reason)
GridRegistry
forceRelease
in interface GridRegistry
testSlot
- test slot to be releasedreason
- reason for terminationGridRegistry.forceRelease(TestSlot, SessionTerminationReason)
@Deprecated public void stop()
GridRegistry
stop
in interface GridRegistry
GridRegistry.stop()
@Deprecated public Hub getHub()
getHub
in interface GridRegistry
Hub
for this registry or null
if no Hub
is set.GridRegistry.getHub()
@Deprecated public void setHub(Hub hub)
GridRegistry
Hub
for this registrysetHub
in interface GridRegistry
GridRegistry.setHub(Hub)
@Deprecated public void addNewSessionRequest(RequestHandler handler)
GridRegistry
addNewSessionRequest
in interface GridRegistry
handler
- the RequestHandler
GridRegistry.addNewSessionRequest(RequestHandler)
@Deprecated public void add(RemoteProxy proxy)
GridRegistry
add
in interface GridRegistry
proxy
- The proxy to addGridRegistry.add(RemoteProxy)
@Deprecated public void setThrowOnCapabilityNotPresent(boolean throwOnCapabilityNotPresent)
GridRegistry
If set to false, the test will be queued hoping a new proxy will register later offering that capability.
setThrowOnCapabilityNotPresent
in interface GridRegistry
throwOnCapabilityNotPresent
- true to throw if capability not presentGridRegistry.setThrowOnCapabilityNotPresent(boolean)
@Deprecated public ProxySet getAllProxies()
getAllProxies
in interface GridRegistry
ProxySet
of all of the connected proxies/nodesGridRegistry.getAllProxies()
@Deprecated public java.util.List<RemoteProxy> getUsedProxies()
getUsedProxies
in interface GridRegistry
List
of all of the proxies/nodes which are in useGridRegistry.getUsedProxies()
@Deprecated public TestSession getSession(ExternalSessionKey externalKey)
GridRegistry
getSession
in interface GridRegistry
externalKey
- the external session keyGridRegistry.getSession(ExternalSessionKey)
@Deprecated public TestSession getExistingSession(ExternalSessionKey externalKey)
GridRegistry
getExistingSession
in interface GridRegistry
externalKey
- the external session keyGridRegistry.getExistingSession(ExternalSessionKey)
@Deprecated public int getNewSessionRequestCount()
getNewSessionRequestCount
in interface GridRegistry
GridRegistry.getNewSessionRequestCount()
@Deprecated public void clearNewSessionRequests()
GridRegistry
clearNewSessionRequests
in interface GridRegistry
GridRegistry.clearNewSessionRequests()
@Deprecated public boolean removeNewSessionRequest(RequestHandler request)
GridRegistry
removeNewSessionRequest
in interface GridRegistry
request
- the RequestHandler
GridRegistry.removeNewSessionRequest(RequestHandler)
@Deprecated public java.lang.Iterable<org.openqa.selenium.remote.DesiredCapabilities> getDesiredCapabilities()
getDesiredCapabilities
in interface GridRegistry
DesiredCapabilities
in the new session queueGridRegistry.getDesiredCapabilities()
@Deprecated public java.util.Set<TestSession> getActiveSessions()
getActiveSessions
in interface GridRegistry
Set
of active TestSession
sGridRegistry.getActiveSessions()
@Deprecated public RemoteProxy getProxyById(java.lang.String id)
GridRegistry
RemoteProxy
using the id providedgetProxyById
in interface GridRegistry
id
- the string identifierRemoteProxy
GridRegistry.getProxyById(String)
@Deprecated public org.openqa.selenium.remote.internal.HttpClientFactory getHttpClientFactory()
getHttpClientFactory
in interface GridRegistry
HttpClientFactory
to useGridRegistry.getHttpClientFactory()