Examples of stop()


Examples of io.undertow.servlet.api.DeploymentManager.stop()

            HttpGet get = new HttpGet(DefaultServer.getDefaultServerURL() + "/servletContext/aa");
            HttpResponse result = client.execute(get);
            Assert.assertEquals(StatusCodes.OK, result.getStatusLine().getStatusCode());
            final String response = HttpClientUtils.readResponse(result);

            manager.stop();
            manager.undeploy();

            Assert.assertTrue(LifeCycleServlet.initCalled);
            Assert.assertTrue(LifeCycleServlet.destroyCalled);
            Assert.assertTrue(LifecycleFilter.initCalled);
View Full Code Here

Examples of io.undertow.servlet.core.ApplicationListeners.stop()

       
        listeners.start();
       
        assertTrue(this.context.isStarted());
       
        listeners.stop();
       
        assertFalse(this.context.isStarted());
    }

    @Test
View Full Code Here

Examples of io.vertx.core.streams.Pump.stop()

      assertEquals(inp, ws.received);
      assertFalse(rs.paused);
      assertEquals(0, rs.pauseCount);
      assertEquals(0, rs.resumeCount);

      p.stop();
      ws.clearReceived();
      MyClass myClass = new MyClass();
      rs.addData(myClass);
      assertEquals(0, ws.received.size());
    }
View Full Code Here

Examples of it.freedomotic.api.Client.stop()

            if (action.equalsIgnoreCase("HIDE")) {
                plugin.hideGui();
            }
            if (action.equalsIgnoreCase("STOP")) {
                if (plugin != this && getApi().getAuth().isPermitted("sys:plugins:stop")) {
                    plugin.stop();
                }
            }
            if (action.equalsIgnoreCase("START")) {
                if (plugin != this && getApi().getAuth().isPermitted("sys:plugins:start")) {
                    plugin.start();
View Full Code Here

Examples of it.freedomotic.api.Plugin.stop()

        try {
            saveConfiguration(item.getFile(),
                    txtArea.getText());
            //stopping and unloading the plugin
            item.stop();
            clients.remove(item);
            //reload it with the new configuration
            System.out.println(item.getFile().getParentFile().toString());
            pluginsManager.loadSingleBoundle(item.getFile().getParentFile());
View Full Code Here

Examples of it.hakvoort.nia.NiaDevice2.stop()

    } catch (InterruptedException e) {
      e.printStackTrace();
    }
   
    // stop the NiaDevice
    nia.stop();
  }

  @Override
  public void receivedSample(NiaSample sample) {
    System.out.println(sample.toString());
View Full Code Here

Examples of it.sauronsoftware.cron4j.Scheduler.stop()

      Thread.sleep(5L * 60L * 1000L);
    } catch (InterruptedException e) {
      ;
    }
    // Stops the scheduler.
    scheduler.stop();
  }

}
View Full Code Here

Examples of it.sauronsoftware.cron4j.TaskExecutor.stop()

    } else if ("stop".equals(action)) {
      String id = req.getParameter("id");
      TaskExecutor executor = find(executors, id);
      if (executor != null && executor.isAlive()
          && executor.canBeStopped() && !executor.isStopped()) {
        executor.stop();
      }
    }
    // Layout.
    String page = "/WEB-INF/ongoing.jsp";
    RequestDispatcher dispatcher = req.getRequestDispatcher(page);
View Full Code Here

Examples of java.applet.AudioClip.stop()

                    case SLOW2:
                    case SLOW3:
                        slowRumble.loop();
                        break;
                    default:
                        slowRumble.stop();
                    }
                }));

                PumpFace face = new PumpFace(
                        rootURL, eClick,
View Full Code Here

Examples of javafx.animation.AnimationTimer.stop()

                            tab.setOnClosed(new EventHandler<Event>() {
                                @Override
                                public void handle(Event event) {
                                    xmppSession.removeSessionStatusListener(connectionListenerMap.remove(tab));
                                    xmppSession.removePresenceListener(presenceListener);
                                    animationTimer.stop();
                                }
                            });

                            tabPane.getTabs().add(tab);
                            stage.show();
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.