public synchronized void startHub() throws IOException { if (hub_ != null) { throw new IllegalStateException("Hub not stopped " + "due to earlier test failure?"); } service_ = new BasicHubService(createRandom()); hub_ = new Hub(service_); service_.start(); hub_.startProfile(createHubProfile()); }
public HubConnection registerDirect() throws SampException { return service_.register(directToken_); }