Examples of stop()


Examples of org.jivesoftware.smackx.bytestreams.socks5.Socks5Proxy.stop()

        proxy.start();

        assertTrue(proxy.isRunning());
        assertEquals(threadCount + 1, Thread.activeCount());

        proxy.stop();

        assertFalse(proxy.isRunning());
        assertEquals(threadCount, Thread.activeCount());

        proxy.start();
View Full Code Here

Examples of org.jivesoftware.smackx.jingle.mediaimpl.jmf.AudioChannel.stop()

                } catch (InterruptedException e) {
                    e.printStackTrace();
                }

                audioChannel0.stop();
                audioChannel1.stop();

                try {
                    Thread.sleep(3000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
View Full Code Here

Examples of org.jmxtrans.embedded.EmbeddedJmxTrans.stop()

        EmbeddedJmxTrans embeddedJmxTrans = factory.getObject();
        assertThat(embeddedJmxTrans, notNullValue());
        assertThat(embeddedJmxTrans.getQueries().size(), is(8));
        assertThat(embeddedJmxTrans.getOutputWriters().size(), is(1));

        embeddedJmxTrans.stop();

    }
}
View Full Code Here

Examples of org.jnode.driver.DeviceManager.stop()

                log.error("Cannot create tmp on ramdisk");
            }

            // restart the device
            log.info("Restart initrd ramdisk");
            dm.stop(dev);
            dm.start(dev);

            log.info("/jnode ready.");
        } catch (NameNotFoundException e) {
            throw new PluginException(e);
View Full Code Here

Examples of org.jnode.plugin.Plugin.stop()

        switch (ARG_ACTION.getValue()) {
            case start:
                p.start();
                break;
            case stop:
                p.stop();
                break;
            case restart:
                p.stop();
                p.start();
                break;
View Full Code Here

Examples of org.jnode.util.StopWatch.stop()

            try {
                BootLogInstance.get().debug("Starting " + device.getId());
                //new DeviceStarter(device).start(getDefaultStartTimeout());
                final StopWatch sw = new StopWatch();
                device.start();
                sw.stop();
                if (sw.isElapsedLongerThen(defaultStartTimeout)) {
                    BootLogInstance.get().error("Device startup took " + sw + ": "
                        + device.getId());
                } else if (sw.isElapsedLongerThen(fastStartTimeout)) {
                    BootLogInstance.get().info("Device startup took " + sw + ": "
View Full Code Here

Examples of org.jnp.server.Main.stop()

         while ((line = br.readLine()) != null)
         {
            if ("STOP".equals(line.trim()))
            {
               server.stop();
               jndiServer.stop();
               namingInfo.stop();
               System.out.println("Server stopped");
               System.exit(0);
            }
            else
View Full Code Here

Examples of org.jnp.server.NamingBeanImpl.stop()

         {
            if ("STOP".equals(line.trim()))
            {
               server.stop();
               jndiServer.stop();
               namingInfo.stop();
               System.out.println("Server stopped");
               System.exit(0);
            }
            else
            {
View Full Code Here

Examples of org.jpacman.framework.ui.IPacmanInteraction.stop()

    final int nrOfGhostMovesToWait = 10;
    Thread.sleep(nrOfGhostMovesToWait * AbstractGhostMover.DELAY);

    // and attempt some moves again.
    eventHandler.down();
    eventHandler.stop();
    eventHandler.start();
    eventHandler.right();
   
    // and we're done.
    eventHandler.exit();
View Full Code Here

Examples of org.jpos.q2.Q2.stop()

        Q2 q2 = new Q2("build/resources/test/org/jpos/util/dirpoll_retry/deploy");
        q2.start();
        ISOUtil.sleep(5000L);
        createTestFile("build/resources/test/org/jpos/util/dirpoll_retry/request/REQ1", "RETRYME");
        ISOUtil.sleep(5000L);
        q2.stop();
        ISOUtil.sleep(2000L);
        assertTrue("Can't read request", new File("build/resources/test/org/jpos/util/dirpoll_retry/request/REQ1").canRead());
    }
    public static class RetryTest implements DirPoll.Processor {
        public byte[] process(String name, byte[] request) throws DirPoll.DirPollException {
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.