org.openqa.grid.web
Class Hub

java.lang.Object
  extended by org.openqa.grid.web.Hub

public class Hub
extends java.lang.Object

Jetty server. Main entry point for everything about the grid.

Except for unit tests, this should be a singleton.


Constructor Summary
Hub(GridHubConfiguration config)
           
 
Method Summary
 java.lang.String getHost()
           
 int getPort()
           
 java.net.URL getRegistrationURL()
           
 Registry getRegistry()
          get the registry backing up the hub state.
 java.net.URL getUrl()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hub

public Hub(GridHubConfiguration config)
Method Detail

getRegistry

public Registry getRegistry()
get the registry backing up the hub state.

Returns:
The registry

getPort

public int getPort()

getHost

public java.lang.String getHost()

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

getUrl

public java.net.URL getUrl()

getRegistrationURL

public java.net.URL getRegistrationURL()


Copyright © 2011. All Rights Reserved.