Examples of stop()


Examples of org.activemq.broker.BrokerClient.stop()

            for (Iterator iter = clientIds.values().iterator();iter.hasNext();) {
                // should remove clients from parent container?
                BrokerClient client = (BrokerClient) iter.next();
                if (client != null) {
                    try {
                        client.stop();
                    }
                    catch (JMSException e) {
                        if (firstException == null) {
                            firstException = e;
                        }
View Full Code Here

Examples of org.activemq.broker.BrokerConnector.stop()

    public synchronized void doStop() throws Exception {
        if (brokerConnector != null) {
            ActiveMQConnectionFactory.unregisterBroker(urlAsStarted);
            BrokerConnector temp = brokerConnector;
            brokerConnector = null;
            temp.stop();
        }
    }

    public synchronized void doFail() {
        if (brokerConnector != null) {
View Full Code Here

Examples of org.activemq.broker.BrokerContainer.stop()

    public synchronized void doStop() throws Exception {
        if (container != null) {
            BrokerContainer temp = container;
            container = null;
            temp.stop();
        }
    }

    public synchronized void doFail() {
        if (container != null) {
View Full Code Here

Examples of org.activemq.broker.impl.BrokerContainerImpl.stop()

                ActiveMQConnectionFactory("tcp://localhost:9100");
        factory.start();
        factory.createConnection();

        // stop activemq broker
        container.stop();

        // start activemq broker again
        container = createBroker();

        // start a client again
View Full Code Here

Examples of org.activemq.broker.impl.DefaultBroker.stop()

    public void testStartAndStopOfBroker() throws Exception {
        DefaultBroker broker = new DefaultBroker("dummy");
        broker.setPersistenceAdapter(createPersistenceAdapter());
        broker.start();
        broker.stop();
    }


    private PersistenceAdapter createPersistenceAdapter() throws JMSException {
        File dir = new File("target/bdbtest/");
View Full Code Here

Examples of org.activemq.service.MessageContainer.stop()

        // lets stop all the containers
        for (Iterator iter = messageContainers.values().iterator(); iter.hasNext();) {
            MessageContainer container = (MessageContainer) iter.next();
            try {
                container.stop();
            }
            catch (JMSException e) {
                if (firstException == null) {
                    firstException = e;
                }
View Full Code Here

Examples of org.activemq.service.MessageContainerManager.stop()

        if (containerManagers != null) {
            for (int i = 0; i < containerManagers.length; i++) {
                final MessageContainerManager containerManager = containerManagers[i];
                template.run(new Callback() {
                    public void execute() throws Throwable {
                        containerManager.stop();
                    }
                });
            }
        }
        if (transactionManager != null) {
View Full Code Here

Examples of org.activemq.service.Service.stop()

     * @param executor the executor or null if one is not created yet
     */
    public static void stopExecutor(Executor executor) throws InterruptedException, JMSException {
        if (executor instanceof Service) {
            Service service = (Service) executor;
            service.stop();
        }
        else if (executor instanceof PooledExecutor) {
            PooledExecutor pe = (PooledExecutor) executor;
            pe.shutdownAfterProcessingCurrentlyQueuedTasks();
            //pe.shutdownNow();
View Full Code Here

Examples of org.activemq.transport.vm.VmTransportChannel.stop()

        assertEquals("receiveCapacity", 20, vmChannel.getReceiveCapacity());
        assertEquals("asyncSend", true, vmChannel.isAsyncSend());
        vmChannel.start();
        assertTrue("has send channel", vmChannel.getSendChannel() != null);
        assertTrue("has receive channel", vmChannel.getReceiveChannel() != null);
        vmChannel.stop();

        vmChannel = (VmTransportChannel) createChannel("vm://localhost?receiveCapacity=20");
        vmChannel.start();
        assertTrue("has no send channel", vmChannel.getSendChannel() == null);
        assertTrue("has receive channel", vmChannel.getReceiveChannel() == null);
View Full Code Here

Examples of org.ajax4jsf.request.MultipartRequest.stop()

          ajaxContext.setResponseData(null);
        }
      } else if (FileUploadConstants.FILE_UPLOAD_ACTION_STOP.equals(actionString)) {
        MultipartRequest multipartRequest = MultipartRequest.lookupRequest(facesContext, uid);
        if (multipartRequest != null) {
          multipartRequest.stop();
        }
      }
    }
   
    super.broadcast(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.