Examples of stop()


Examples of org.hornetq.core.server.impl.FileLockNodeManager.stop()

            FileLockNodeManager fileLock = new FileLockNodeManager(arg[1], false);
            fileLock.start();
            System.out.println("********************************************");
            System.out.println("Server's ID=" + fileLock.getNodeId().toString());
            System.out.println("********************************************");
            fileLock.stop();
         }
         catch (Exception e)
         {
            e.printStackTrace();
         }
View Full Code Here

Examples of org.hornetq.core.server.impl.HornetQServerImpl.stop()

         manager.start();
         manager.stop();
      }
      finally
      {
         server.stop();
      }
   }

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

Examples of org.hornetq.jms.bridge.JMSBridge.stop()

            } catch (Exception e) {
                context.getFailureDescription().set(e.getLocalizedMessage());
            }
        } else if (STOP.equals(operationName)) {
            try {
                bridge.stop();
            } catch (Exception e) {
                context.getFailureDescription().set(e.getLocalizedMessage());
            }
        } else if (PAUSE.equals(operationName)) {
            try {
View Full Code Here

Examples of org.hornetq.jms.bridge.impl.JMSBridgeImpl.stop()

      }
      finally
      {
         if (bridge != null)
         {
            bridge.stop();
         }
      }
   }

   private void testMaxBatchTimeSameServer(final QualityOfServiceMode qosMode, final boolean persistent) throws Exception
View Full Code Here

Examples of org.hornetq.jms.server.JMSServerManager.stop()

    @Override
    public synchronized void stop(StopContext context) {
        final JMSServerManager jmsServer = this.jmsServer;
        this.jmsServer = null;
        try {
            jmsServer.stop();
        } catch (Exception e) {
            Logger.getLogger("org.jboss.messaging").error("exception while stopping jms server", e);
        }
    }
View Full Code Here

Examples of org.hornetq.jms.server.embedded.EmbeddedJMS.stop()

            {
               connection.close();
            }

            // Step 11. Stop the JMS server
            jmsServer.stop();
            System.out.println("Stopped the JMS Server");
            System.exit(0);
         }
      }
      catch (Exception e)
View Full Code Here

Examples of org.hornetq.jms.server.impl.JMSServerManagerImpl.stop()

      PagingStore store = server.getPagingManager().getPageStore(new SimpleString("jms.topic.TT"));

      assertEquals(1024 * 1024, store.getMaxSize());
      assertEquals(10 * 1024, store.getPageSizeBytes());

      jmsServer.stop();

      server = createServer(true, config, PAGE_SIZE, -1, new HashMap<String, AddressSettings>());

      jmsServer = new JMSServerManagerImpl(server);
      context = new InVMContext();
View Full Code Here

Examples of org.hornetq.ra.HornetQResourceAdapter.stop()

      assertNotNull(endpoint.lastMessage);
      assertEquals(endpoint.lastMessage.getCoreMessage().getBodyBuffer().readString(), "teststring");

      qResourceAdapter.endpointDeactivation(endpointFactory, spec);

      qResourceAdapter.stop();
   }

   public void testInvalidAckMode() throws Exception
   {
      HornetQResourceAdapter qResourceAdapter = new HornetQResourceAdapter();
View Full Code Here

Examples of org.hornetq.ra.inflow.HornetQActivation.stop()

         spec.setMaxSession(1);

         HornetQActivation activation = new HornetQActivation(ra, new FakeMessageEndpointFactory(), spec);

         activation.start();
         activation.stop();

         ra.stop();

         locator.close();
View Full Code Here

Examples of org.hornetq.rest.queue.push.PushConsumer.stop()

      PushConsumer consumer = consumers.remove(consumerId);
      if (consumer == null)
      {
         throw new WebApplicationException(Response.status(404).entity("Could not find consumer.").type("text/plain").build());
      }
      consumer.stop();
      deleteSubscriberQueue(consumer);
   }

   public Map<String, PushSubscription> getConsumers()
   {
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.