org.openqa.grid.internal
Class ProxySet

java.lang.Object
  extended by org.openqa.grid.internal.ProxySet
All Implemented Interfaces:
java.lang.Iterable<RemoteProxy>

@ThreadSafe
public class ProxySet
extends java.lang.Object
implements java.lang.Iterable<RemoteProxy>

A set of RemoteProxies. Obeys the iteration guarantees of CopyOnWriteArraySet


Constructor Summary
ProxySet()
           
 
Method Summary
 void add(RemoteProxy proxy)
           
 boolean contains(RemoteProxy o)
           
 java.util.List<RemoteProxy> getBusyProxies()
           
 java.util.List<RemoteProxy> getSorted()
           
 boolean hasCapability(java.util.Map<java.lang.String,java.lang.Object> requestedCapability)
           
 boolean isEmpty()
           
 java.util.Iterator<RemoteProxy> iterator()
           
 void removeIfPresent(RemoteProxy proxy)
           
 int size()
           
 void teardown()
          killing the timeout detection threads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxySet

public ProxySet()
Method Detail

teardown

public void teardown()
killing the timeout detection threads.


hasCapability

public boolean hasCapability(java.util.Map<java.lang.String,java.lang.Object> requestedCapability)

removeIfPresent

public void removeIfPresent(RemoteProxy proxy)

add

public void add(RemoteProxy proxy)

contains

public boolean contains(RemoteProxy o)

getBusyProxies

public java.util.List<RemoteProxy> getBusyProxies()

isEmpty

public boolean isEmpty()

getSorted

public java.util.List<RemoteProxy> getSorted()

iterator

public java.util.Iterator<RemoteProxy> iterator()
Specified by:
iterator in interface java.lang.Iterable<RemoteProxy>

size

public int size()


Copyright © 2011. All Rights Reserved.