Examples of stop()


Examples of org.apache.activemq.transport.Transport.stop()

        synchronized (sleepMutex) {
            sleepMutex.notifyAll();
        }
        reconnectTask.shutdown();
        if( transportToStop!=null ) {
            transportToStop.stop();
        }
    }

    public long getInitialReconnectDelay() {
        return initialReconnectDelay;
View Full Code Here

Examples of org.apache.activemq.transport.mock.MockTransport.stop()

  }
 
  private void createConnectionFailure(Connection connection) throws Exception {
    ActiveMQConnection c = ((PooledConnection)connection).getConnection();
    MockTransport t = (MockTransport) c.getTransportChannel().narrow(MockTransport.class);
    t.stop();
  }

  private void sendMessage(Connection connection) throws JMSException {
    Session session = connection.createSession(false, 0);
    MessageProducer producer = session.createProducer(new ActiveMQQueue("FOO"));
View Full Code Here

Examples of org.apache.activemq.util.ServiceStopper.stop()

    }

    public void stop() throws Exception {
        ServiceStopper ss = new ServiceStopper();
        if (this.server != null) {
            ss.stop(this.server);
        }
        for (Iterator<ProxyConnection> iter = connections.iterator(); iter.hasNext();) {
            LOG.info("Connector stopped: Stopping proxy.");
            ss.stop(iter.next());
        }
View Full Code Here

Examples of org.apache.archiva.redback.components.scheduler.DefaultScheduler.stop()

                    // shutdown the scheduler, otherwise Quartz scheduler and Threads still exists
                    Field schedulerField = repositoryTaskScheduler.getClass().getDeclaredField( "scheduler" );
                    schedulerField.setAccessible( true );

                    DefaultScheduler scheduler = (DefaultScheduler) schedulerField.get( repositoryTaskScheduler );
                    scheduler.stop();
                }
                catch ( Exception e )
                {
                    servletContext.log( e.getMessage(), e );
                }
View Full Code Here

Examples of org.apache.aries.application.management.AriesApplicationContext.stop()

    assertEquals(HttpURLConnection.HTTP_OK,
        conn.getResponseCode());

    assertTrue("The response did not contain the expected content", response.contains("Blog home"));
  ctx.stop();
    manager.uninstall(ctx);

    }

View Full Code Here

Examples of org.apache.aries.application.management.spi.framework.BundleFramework.stop()

    synchronized (BundleFrameworkManager.SHARED_FRAMEWORK_LOCK) {
      BundleFramework framework = getBundleFramework(b);
      if (framework != null) // App Content
      {
        for (Bundle bundle : framework.getBundles())
          framework.stop(bundle);
      }
      // Do not stop shared bundles
    }
  }
View Full Code Here

Examples of org.apache.avalon.excalibur.testcase.FullLifecycleComponent.stop()

        component.parameterize( new Parameters() );
        component.initialize();
        component.start();
        component.suspend();
        component.resume();
        component.stop();
        component.dispose();
    }

    public void testMissingLogger()
        throws Exception
View Full Code Here

Examples of org.apache.axis.handlers.soap.SOAPService.stop()

            throws AxisFault, ConfigurationException {
        AxisServer server = getEngine();
        try {
            SOAPService service = server.getConfig().getService(
                    new QName("", serviceName));
            service.stop();
        } catch (ConfigurationException configException) {
            if (configException.getContainedException() instanceof AxisFault) {
                throw (AxisFault) configException.getContainedException();//Throw Axis fault if ist. of
            } else {
                throw configException;
View Full Code Here

Examples of org.apache.axis.server.AxisServer.stop()

                    log.info(Messages.getMessage("adminServiceStart", callerIP));
                    server.start();
                }
                else if (cmd.equals("stop")) {
                    log.info(Messages.getMessage("adminServiceStop", callerIP));
                    server.stop();
                }
            } else {
                //in production we log a hostile probe. Remember: logs can be
                //used for DoS attacks themselves.
                log.info(Messages.getMessage("adminServiceDeny", callerIP));
View Full Code Here

Examples of org.apache.axis.transport.http.SimpleAxisServer.stop()

            // Clean up the test environment
            //this.cleanTest(); // commented out while debugging.

            // Stop the SimpleAxisServer
            System.out.println("Stopping test http server.");
            server.stop();
        } catch (Exception e) {
            throw new AssertionFailedError("The test suite failed with the following exception: " + e.getMessage());
        }
    }
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.