Examples of stop()


Examples of org.apache.activemq.network.NetworkBridge.stop()

                        removedLatch.await();
                    }

                    @Override
                    public void stop() throws Exception {
                        next.stop();
                    }

                    @Override
                    public void serviceRemoteException(Throwable error) {
                        next.serviceRemoteException(error);
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.stop()

        return brokerService.removeConnector(connector);
    }

    public boolean removeNetworkConnector(String connectorName) throws Exception {
        NetworkConnector connector = brokerService.getNetworkConnectorByName(connectorName);
        connector.stop();
        return brokerService.removeNetworkConnector(connector);
    }

    public void addTopic(String name) throws Exception {
        broker.addDestination(getConnectionContext(broker.getContextBroker()), new ActiveMQTopic(name));
View Full Code Here

Examples of org.apache.activemq.pool.PooledConnectionFactory.stop()

    pushTrade("ARG", connection, destinationName, jmsConnector, jmsDispatcher);
    Thread.sleep(WAIT_BTW_TRADES);
    pushTrade("MMM", connection, destinationName, jmsConnector, jmsDispatcher);
    Thread.sleep(WAIT_BTW_TRADES * 10);
    connection.stop();
    jmsConnectionFactory.stop();
  
  }
 
  private void pushTrade(String securityId, Connection connection, String destinationName, JmsConnector jmsConnector, JmsByteArrayMessageDispatcher jmsDispatcher) {
    String providerId = generateTrade(securityId, destinationName, jmsConnector);
View Full Code Here

Examples of org.apache.activemq.ra.ActiveMQResourceAdapter.stop()

        // Wait for the message to be delivered.
        assertTrue(messageDelivered.await(5000, TimeUnit.MILLISECONDS));
       
        // Shut the Endpoint down.
        adapter.endpointDeactivation(messageEndpointFactory, activationSpec);
        adapter.stop();       
       
    }
   
    long txGenerator = System.currentTimeMillis();
   
View Full Code Here

Examples of org.apache.activemq.store.PersistenceAdapter.stop()

                export(store, fos);
            } finally {
                fos.close();
            }
        } finally {
            store.stop();
        }
    }

    void export(PersistenceAdapter store, BufferedOutputStream fos) throws Exception {
View Full Code Here

Examples of org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.stop()

            will(returnValue(true));
        }});

        adapter.start();
        assertTrue("has the locker override", adapter.getDatabaseLocker() instanceof TransactDatabaseLocker);
        adapter.stop();
    }


    public void testJdbcLockConfigDefault() throws Exception {
View Full Code Here

Examples of org.apache.activemq.store.kahadb.MultiKahaDBPersistenceAdapter.stop()

                        if (haveOutcome) {
                            super.persistOutcome(tx, txid);
                        }
                        try {
                            // IOExceptions will stop the broker
                            persistenceAdapter.stop();
                        } catch (Exception e) {
                            LOG.error("ex on stop ", e);
                            exceptions.add(e);
                        }
                    }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.scheduler.JobSchedulerStoreImpl.stop()

        for (ByteSequence job:list) {
            js.schedule("id:"+(count++), job, "", startTime, period, -1);
        }
        List<Job>test = js.getAllJobs();
        assertEquals(list.size(),test.size());
        store.stop();

        store.start();
        js = store.getJobScheduler("test");
        test = js.getAllJobs();
        assertEquals(list.size(),test.size());
View Full Code Here

Examples of org.apache.activemq.thread.Scheduler.stop()

                    }

                    Scheduler scheduler = this.scheduler;
                    if (scheduler != null) {
                        try {
                            scheduler.stop();
                        } catch (Exception e) {
                            JMSException ex =  JMSExceptionSupport.create(e);
                            throw ex;
                        }
                    }
View Full Code Here

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

        }));

        LOG.debug("All messages sent,stop all");

        local.stop();
        remote.stop();

        localReceived.clear();
        remoteReceived.clear();
    }
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.