@ThreadSafe public class ProxySet extends Object implements Iterable<RemoteProxy>
Constructor and Description |
---|
ProxySet(boolean throwOnCapabilityNotPresent) |
Modifier and Type | Method and Description |
---|---|
void |
add(RemoteProxy proxy) |
boolean |
contains(RemoteProxy o) |
List<RemoteProxy> |
getBusyProxies() |
TestSession |
getNewSession(Map<String,Object> desiredCapabilities) |
RemoteProxy |
getProxyById(String id) |
List<RemoteProxy> |
getSorted() |
boolean |
hasCapability(Map<String,Object> requestedCapability) |
boolean |
isEmpty() |
Iterator<RemoteProxy> |
iterator() |
RemoteProxy |
remove(RemoteProxy proxy)
Removes the specified instance from the proxySet
|
void |
setThrowOnCapabilityNotPresent(boolean throwOnCapabilityNotPresent) |
int |
size() |
void |
teardown()
killing the timeout detection threads.
|
void |
verifyAbilityToHandleDesiredCapabilities(Map<String,Object> desiredCapabilities) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void teardown()
public RemoteProxy remove(RemoteProxy proxy)
proxy
- The proxy to remove, must be present in this setpublic void add(RemoteProxy proxy)
public boolean contains(RemoteProxy o)
public List<RemoteProxy> getBusyProxies()
public RemoteProxy getProxyById(String id)
public boolean isEmpty()
public List<RemoteProxy> getSorted()
public TestSession getNewSession(Map<String,Object> desiredCapabilities)
public Iterator<RemoteProxy> iterator()
iterator
in interface Iterable<RemoteProxy>
public int size()
public void verifyAbilityToHandleDesiredCapabilities(Map<String,Object> desiredCapabilities)
public void setThrowOnCapabilityNotPresent(boolean throwOnCapabilityNotPresent)
Copyright © 2015. All rights reserved.