Package org.openqa.grid.internal

Examples of org.openqa.grid.internal.RemoteProxy


                    public Void call() throws Exception {
                        Registry registry = HubHolder.hub.getRegistry();
                        if (registry != null) {
                            Iterator<RemoteProxy> it = registry.getAllProxies().iterator();
                            while (it.hasNext()) {
                                RemoteProxy proxy = it.next();
                                if (remoteUrl.equals(proxy.getRemoteHost().toString())) {
                                    registry.removeIfPresent(proxy);
                                }
                            }
                        }
                        return null;
View Full Code Here


    private final boolean isReserved;
    private final URL host;
    private final Map<String, String> capabilities;

    public SeleniumTestSlot(TestSlot testSlot) {
        RemoteProxy proxy = testSlot.getProxy();
        host = proxy.getRemoteHost();
        capabilities = toCapabilities(testSlot);
        isReserved = testSlot.getSession() != null;
    }
View Full Code Here

      res.put("msg", state + ILLEGAL_STATE);
      return res;
    }

    // set the new state.
    RemoteProxy proxy = getRegistry().getProxyById(id);

    if (proxy instanceof IOSMutableRemoteProxy) {
      ((IOSMutableRemoteProxy) proxy).setState(newState);
      res.put("success", true);
    } else {
      res.put("msg", INSTANCE_OF_MUTABLE_PROXY + proxy.getClass());
      return res;
    }

    return res;
  }
View Full Code Here

TOP

Related Classes of org.openqa.grid.internal.RemoteProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.