Examples of stop()


Examples of aQute.jpm.lib.Service.stop()

      }
      if (s == null) {
        error("No such service %s to remove", name);
        return;
      }
      s.stop();
      s.remove();
      return;
    }

    if (opts.create() != null) {
View Full Code Here

Examples of akka.actor.ActorRef.stop()

                System.out.println("counter 2: " + result);
            }
        }

        counter1.stop();
        counter2.stop();
    }
}
View Full Code Here

Examples of akka.actor.ActorSystem.stop()

    ActorSystem system = ActorSystem.create("some-system");
    Camel camel = CamelExtension.get(system);
    ActorRef responder = system.actorOf(Props.create(Responder.class), "TestResponder");
    camel.context().addRoutes(new CustomRouteBuilder(responder));
    //#CustomRoute
    system.stop(responder);
    JavaTestKit.shutdownActorSystem(system);
  }
}
View Full Code Here

Examples of aleph.Host.stop()

      StringBuffer warning = new StringBuffer();
      boolean ok = true;      // so far so good
      for (Iterator iter = options.liveHosts.iterator();
           iter.hasNext();) { // enumerate live hosts
        Host host = (Host) iter.next();
        if (! host.stop()) {  // did we shut it down?
          warning.append(" "); // if not, whine about it
          warning.append(host.toString());
          ok = false;
        }
      }
View Full Code Here

Examples of anvil.server.Zone.stop()

  public Any m_restart(Context context)
  {
    context.checkAccess(CAN_WRITE);
    if (_conf instanceof Zone) {
      Zone zone = (Zone)_conf;
      zone.stop();
      zone.start();
      return TRUE;
    } else {
      return FALSE;
    }
View Full Code Here

Examples of ar.ext.server.ARServer.stop()

  public void construct() throws Exception {
    ARServer server = new ARServer("localhost", 8080);
    server.start();
    assertEquals("Incorrect port", 8080, server.getListeningPort());
    assertTrue("Not alive", server.isAlive());
    server.stop();
   
   
    assertEquals(5, server.getAggregators().size());
    assertEquals(11, server.getTransfers().size());
  }
View Full Code Here

Examples of aurelienribon.utils.swing.DrawingCanvas.stop()

  }

  @Override
  public void destroy() {
    DrawingCanvas canvas = (DrawingCanvas) canvasWrapper.getComponent(0);
    canvas.stop();
  }

  private void load() {
    try {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
View Full Code Here

Examples of avrora.sim.Simulation.stop()

    public boolean checkAndDispatch(ActionEvent e) {
        String cmd = e.getActionCommand();

        Simulation sim = AvroraGui.instance.getSimulation();
        if (STOP.equals(cmd)) {
            sim.stop();
            AvroraGui.instance.stopPaintThread();
            return true;

        } else if (RESUME.equals(cmd)) {
            //If a sim is paused, resume it...if a sim is single stepped paused, go to next instruction
View Full Code Here

Examples of barsuift.simLife.process.MainSynchronizer.stop()

    private void stopApp() {
        UniverseContext universeContext = application.getUniverseContext();
        if (universeContext != null) {
            MainSynchronizer synchronizer = universeContext.getSynchronizer();
            if (synchronizer.isRunning()) {
                synchronizer.stop();
            }
        }
    }

}
View Full Code Here

Examples of bixo.fetcher.simulation.TestWebServer.stop()

       
        try {
            webServer = new TestWebServer(new NoRobotsResponseHandler(), port);
            flow.complete();
        } finally {
            webServer.stop();
        }
       
        // Verify numPages fetched and numPages status entries were saved.
        Tap validate = platform.makeTap(platform.makeBinaryScheme(FetchedDatum.FIELDS), contentPath);
        TupleEntryIterator tupleEntryIterator = validate.openForRead(platform.makeFlowProcess());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.