Examples of stop()


Examples of org.apache.flume.source.AvroSource.stop()

    sourceTransaction.commit();
    sourceTransaction.close();

    logger.debug("Round trip event:{}", sourceEvent);

    source.stop();
    Assert.assertTrue("Reached stop or error",
        LifecycleController.waitForOneOf(source, LifecycleState.STOP_OR_ERROR));
    Assert.assertEquals("Server is stopped", LifecycleState.STOP,
        source.getLifecycleState());
  }
View Full Code Here

Examples of org.apache.flume.source.twitter.TwitterSource.stop()

    ChannelProcessor chp = new ChannelProcessor(rcs);
    source.setChannelProcessor(chp);
    source.start();

    Thread.sleep(5000);
    source.stop();
    sinkRunner.stop();
    sink.stop();
  }

  @Test
View Full Code Here

Examples of org.apache.ftpserver.FtpServer.stop()

            throws ServletException, IOException {
       
        FtpServer server = (FtpServer) getServletContext().getAttribute(FtpServerListener.FTPSERVER_CONTEXT_NAME);
       
        if(req.getParameter("stop") != null) {
            server.stop();
        } else if(req.getParameter("resume") != null) {
            server.resume();
        } else if(req.getParameter("suspend") != null) {
            server.suspend();
        }
View Full Code Here

Examples of org.apache.ftpserver.listener.Listener.stop()

  public void dispose() {

    Iterator<Listener> listenerIter = listeners.values().iterator();
    while (listenerIter.hasNext()) {
      Listener listener = listenerIter.next();
      listener.stop();
    }
  }

  public Listener getListener(String name) {
    return listeners.get(name);
View Full Code Here

Examples of org.apache.fulcrum.yaafi.interceptor.util.StopWatch.stop()

        if( this.getLogger().isErrorEnabled() )
        {
          if( this.isMonitorAllExceptions() || this.isServiceMonitored(interceptorContext) )
          {
              StopWatch stopWatch = this.getStopWatch(interceptorContext);
              stopWatch.stop();
              String msg = this.toString(interceptorContext, stopWatch, t);
              this.getLogger().error(msg);
          }
        }
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance.stop()

        gbeanInstance.startRecursive();
    }

    public void stopGBean(ObjectName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        gbeanInstance.stop();
    }

    public void unloadGBean(ObjectName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException {
        GBeanName gbeanName = createGBeanName(name);
        GBeanInstance gbeanInstance = registry.getGBeanInstance(gbeanName);
View Full Code Here

Examples of org.apache.geronimo.gshell.common.io.PumpStreamHandler.stop()

        PumpStreamHandler handler = new PumpStreamHandler(io.inputStream, io.outputStream, io.errorStream);
        handler.attach(p);
        handler.start();
        int status = p.waitFor();
        handler.stop();
        return status;
  }

}
View Full Code Here

Examples of org.apache.geronimo.gshell.io.PumpStreamHandler.stop()

        PumpStreamHandler handler = new PumpStreamHandler(io.inputStream, io.outputStream, io.errorStream);
        handler.attach(p);
        handler.start();
        int status = p.waitFor();
        handler.stop();
        return status;
  }

  private void copyResourceTo(File outFile, String resource, boolean text) throws Exception {
    if( !outFile.exists() ) {
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.stop()

                    TargetModuleIDImpl module = (TargetModuleIDImpl) modules[i];

                    URI moduleID = URI.create(module.getModuleID());
                    try {
                        try {
                            configurationManager.stop(moduleID);
                        } catch (InvalidConfigException e) {
                            if(e.getCause() instanceof GBeanNotFoundException) {
                                GBeanNotFoundException gnf = (GBeanNotFoundException) e.getCause();
                                if(clean(gnf.getGBeanName().getKeyProperty("name")).equals(moduleID.toString())) {
                                    // the module is not running
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean.stop()

                    + brokerGBeanData.getAttribute("amqConfigFile").toString();
            saveConfigurationFile(resolveConfigurationFile(actionRequest, sBrokerConfigurationXMLPath),
                    sConfigurationXML);
            GeronimoManagedBean jmsBroker = PortletManager.getManagedBean(actionRequest, brokerAbstractName);
            if (kernel.isRunning(brokerAbstractName)) {
                jmsBroker.stop();
            }
            jmsBroker.startRecursive();
            if (!kernel.isRunning(brokerAbstractName)) {
                throw new PortletException(getLocalizedString(actionRequest,
                        "jmsmanager.broker.failUpdateBrokerNoReason", sBrokerName));
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.