Package org.hornetq.core.config

Examples of org.hornetq.core.config.DivertConfiguration


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

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

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

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


         {
            filterString = child.getAttributes().getNamedItem("string").getNodeValue();
         }
      }

      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

      checkStarted();

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

        final ServiceRegistry registry = context.getServiceRegistry(true);
        final ServiceController<?> hqService = registry.getService(MessagingServices.JBOSS_MESSAGING);
        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(name, model);

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

                        MessagingServices.JBOSS_MESSAGING, ServiceController.State.UP, hqService.getState()));
            }

            final String name = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)).getLastElement().getValue();

            DivertConfiguration divertConfiguration = createDivertConfiguration(name, model);

            HornetQServerControl serverControl = HornetQServer.class.cast(hqService.getValue()).getHornetQServerControl();
            createDivert(name, divertConfiguration, serverControl);

        }
View Full Code Here

        final boolean exclusive = CommonAttributes.EXCLUSIVE.validateResolvedOperation(model).asBoolean();
        final ModelNode filterNode = CommonAttributes.FILTER.validateResolvedOperation(model);
        final String filter = filterNode.isDefined() ? filterNode.asString() : null;
        final ModelNode transformerNode =  CommonAttributes.TRANSFORMER_CLASS_NAME.validateResolvedOperation(model);
        final String transformerClassName = transformerNode.isDefined() ? transformerNode.asString() : null;
        return new DivertConfiguration(name, routingName, address, forwardingAddress, exclusive, filter, transformerClassName);
    }
View Full Code Here

      config.setJournalFileSize(10 * 1024 * 1024);

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

      DivertConfiguration divert1 = new DivertConfiguration("dv1",
                                                            "nm1",
                                                            ClientSoakTest.ADDRESS.toString(),
                                                            ClientSoakTest.DIVERTED_AD1.toString(),
                                                            true,
                                                            null,
                                                            null);

      DivertConfiguration divert2 = new DivertConfiguration("dv2",
                                                            "nm2",
                                                            ClientSoakTest.ADDRESS.toString(),
                                                            ClientSoakTest.DIVERTED_AD2.toString(),
                                                            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

      checkStarted();

      clearIO();
      try
      {
         DivertConfiguration config = new DivertConfiguration(name,
                                                              routingName,
                                                              address,
                                                              forwardingAddress,
                                                              exclusive,
                                                              filterString,
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.