Package org.hornetq.core.config

Examples of org.hornetq.core.config.DivertConfiguration


        final ServiceName hqServiceName = MessagingServices.getHornetQServiceName(PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR)));
        final ServiceController<?> hqService = registry.getService(hqServiceName);
        if (hqService != null && hqService.getState() == ServiceController.State.UP) {

            final String name = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement().getValue();
            final DivertConfiguration divertConfiguration = DivertAdd.createDivertConfiguration(context, name, model);

            HornetQServer server = HornetQServer.class.cast(hqService.getValue());
            DivertAdd.createDivert(name, divertConfiguration, server.getHornetQServerControl());
        }
    }
View Full Code Here


      checkStarted();

      clearIO();
      try
      {
         DivertConfiguration config = new DivertConfiguration(name,
                                                              routingName,
                                                              address,
                                                              forwardingAddress,
                                                              exclusive,
                                                              filterString,
View Full Code Here

                            PagingTest.PAGE_MAX,
                            new HashMap<String, AddressSettings>());

      if (divert)
      {
         DivertConfiguration divert1 = new DivertConfiguration("dv1",
                                                               "nm1",
                                                               PagingTest.ADDRESS.toString(),
                                                               PagingTest.ADDRESS.toString() + "-1",
                                                               true,
                                                               null,
                                                               null);

         DivertConfiguration divert2 = new DivertConfiguration("dv2",
                                                               "nm2",
                                                               PagingTest.ADDRESS.toString(),
                                                               PagingTest.ADDRESS.toString() + "-2",
                                                               true,
                                                               null,
View Full Code Here

   @Override
   protected Configuration createDefaultConfig(final boolean netty)
   {
      Configuration config = super.createDefaultConfig(netty);

      DivertConfiguration divert = new DivertConfiguration("local-divert",
                                                           "some-name",
                                                           "jms.queue.Source",
                                                           "jms.queue.Dest",
                                                           true,
                                                           null,
View Full Code Here

      final String testAddress = "testAddress";

      final String forwardAddress = "forwardAddress";

      DivertConfiguration divertConf = new DivertConfiguration("divert1",
                                                               "divert1",
                                                               testAddress,
                                                               forwardAddress,
                                                               false,
                                                               null,
View Full Code Here

      final String testAddress = "testAddress";

      final String forwardAddress = "forwardAddress";

      DivertConfiguration divertConf = new DivertConfiguration("divert1",
                                                               "divert1",
                                                               testAddress,
                                                               forwardAddress,
                                                               false,
                                                               null,
View Full Code Here

      final String testAddress = "testAddress";

      final String forwardAddress = "forwardAddress";

      DivertConfiguration divertConf = new DivertConfiguration("divert1",
                                                               "divert1",
                                                               testAddress,
                                                               forwardAddress,
                                                               false,
                                                               null,
View Full Code Here

      final String testAddress = "testAddress";

      final String forwardAddress = "forwardAddress";

      DivertConfiguration divertConf = new DivertConfiguration("divert1",
                                                               "divert1",
                                                               testAddress,
                                                               forwardAddress,
                                                               true,
                                                               null,
View Full Code Here

      final String forwardAddress1 = "forwardAddress1";
      final String forwardAddress2 = "forwardAddress2";
      final String forwardAddress3 = "forwardAddress3";

      DivertConfiguration divertConf1 = new DivertConfiguration("divert1",
                                                                "divert1",
                                                                testAddress,
                                                                forwardAddress1,
                                                                false,
                                                                null,
                                                                null);

      DivertConfiguration divertConf2 = new DivertConfiguration("divert2",
                                                                "divert2",
                                                                testAddress,
                                                                forwardAddress2,
                                                                false,
                                                                null,
                                                                null);

      DivertConfiguration divertConf3 = new DivertConfiguration("divert3",
                                                                "divert3",
                                                                testAddress,
                                                                forwardAddress3,
                                                                false,
                                                                null,
View Full Code Here

      final String forwardAddress1 = "forwardAddress1";
      final String forwardAddress2 = "forwardAddress2";
      final String forwardAddress3 = "forwardAddress3";

      DivertConfiguration divertConf1 = new DivertConfiguration("divert1",
                                                                "divert1",
                                                                testAddress,
                                                                forwardAddress1,
                                                                true,
                                                                null,
                                                                null);

      DivertConfiguration divertConf2 = new DivertConfiguration("divert2",
                                                                "divert2",
                                                                testAddress,
                                                                forwardAddress2,
                                                                true,
                                                                null,
                                                                null);

      DivertConfiguration divertConf3 = new DivertConfiguration("divert3",
                                                                "divert3",
                                                                testAddress,
                                                                forwardAddress3,
                                                                true,
                                                                null,
View Full Code Here

TOP

Related Classes of org.hornetq.core.config.DivertConfiguration

Copyright © 2018 www.massapicom. 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.