Exemple #1
0
 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());
 }
Exemple #2
0
 public HubConnection registerDirect() throws SampException {
   return service_.register(directToken_);
 }