Examples of stop()


Examples of org.apache.camel.loanbroker.webservice.version.credit.CreditAgencyServer.stop()

        // Start the loan broker
        Thread.sleep(5 * 60 * 1000);
        context.stop();
        Thread.sleep(1000);
        bankServer.stop();
        creditAgencyServer.stop();
    }
    //END SNIPPET: server
    /**
     * Lets configure the Camel routing rules using Java code...
     */
 
View Full Code Here

Examples of org.apache.camel.processor.aggregate.AggregateProcessor.stop()

        ap.process(e4);
        ap.process(e5);

        assertMockEndpointsSatisfied();

        ap.stop();
    }

    public void testAggregateForceCompletion() throws Exception {
        // camel context must be started
        context.start();
View Full Code Here

Examples of org.apache.camel.spring.Main.stop()

            StringWriter writer = new StringWriter();
            IOUtils.copyAndCloseInput(new InputStreamReader(CamelRouteBuilder.class
                                          .getResourceAsStream(SAMPLE_CONTENT_PATH)), writer);
            assertEquals(writer.toString(), content);
        } finally {
            main.stop();
        }
    }

    /**
     * Route builder to be used with
View Full Code Here

Examples of org.apache.camel.support.TimerListenerManager.stop()

            assertTrue(test.load.getLoad1() < SAMPLES);
        } finally {
            myTimer.removeTimerListener(test);
        }

        myTimer.stop();
        executorService.shutdown();
    }

    private class TestLoadAware implements TimerListener {
View Full Code Here

Examples of org.apache.camel.util.StopWatch.stop()

            } else {
                service.stop();
            }
        }

        watch.stop();
        if (log.isInfoEnabled()) {
            log.info("Apache Camel " + getVersion() + " (CamelContext: " + getName() + ") is suspended in " + TimeUtils.printDuration(watch.taken()));
        }

        EventHelper.notifyCamelContextSuspended(this);
View Full Code Here

Examples of org.apache.catalina.Container.stop()

                    log.info(sm.getString("hostConfig.reload", app.name));
                Container context = host.findChild(app.name);
                try {
                    // Might not have started if start failed last time
                    if (context.getState().isAvailable()) {
                        context.stop();
                    }
                } catch (Exception e) {
                    log.warn(sm.getString
                             ("hostConfig.context.restart", app.name), e);
                }
View Full Code Here

Examples of org.apache.catalina.Context.stop()

        Assert.assertTrue(interpreter instanceof SimpleELInterpreter);
        Assert.assertTrue(interpreter == simpleInterpreter);

        context.removeAttribute(ELInterpreter.class.getName());

        ctx.stop();
        ctx.addApplicationListener(Bug54239Listener.class.getName());
        ctx.start();

        interpreter = ELInterpreterFactory.getELInterpreter(ctx.getServletContext());
        Assert.assertNotNull(interpreter);
View Full Code Here

Examples of org.apache.catalina.Server.stop()

                }
            }
        } else {
            // Server object already present. Must be running as a service
            try {
                s.stop();
            } catch (LifecycleException e) {
                log.error("Catalina.stop: ", e);
            }
            return;
        }
View Full Code Here

Examples of org.apache.catalina.connector.Connector.stop()

      }
      finally
      {
         try
         {
            connector.stop();
         }
         finally
         {
            connector.destroy();
         }
View Full Code Here

Examples of org.apache.catalina.core.ContainerBase.stop()

                    log.info(sm.getString("hostConfig.reload", app.name));
                Container context = host.findChild(app.name);
                try {
                    // Might not have started if start failed last time
                    if (context.getState().isAvailable()) {
                        context.stop();
                    }
                } catch (Exception e) {
                    log.warn(sm.getString
                             ("hostConfig.context.restart", app.name), e);
                }
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.