Examples of ClusterConnectionConfiguration


Examples of org.hornetq.core.config.ClusterConnectionConfiguration

         Pair<String, String> connectorPair = new Pair<String, String>(serverTotc.getName(), serverBackupTotc.getName());

         pairs.add(connectorPair);
      }

      ClusterConnectionConfiguration clusterConf = new ClusterConnectionConfiguration(name,
                                                                                      address,
                                                                                      250,
                                                                                      true,
                                                                                      forwardWhenNoConsumers,
                                                                                      maxHops,
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

      if (server == null)
      {
         throw new IllegalStateException("No server at node " + node);
      }

      ClusterConnectionConfiguration clusterConf = new ClusterConnectionConfiguration(name,
                                                                                      address,
                                                                                      100,
                                                                                      true,
                                                                                      forwardWhenNoConsumers,
                                                                                      maxHops,
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

      CoreQueueConfiguration queueConfig = new CoreQueueConfiguration(RandomUtil.randomString(),
                                                              RandomUtil.randomString(),
                                                              null,
                                                              false);

      clusterConnectionConfig_0 = new ClusterConnectionConfiguration(clusterName,
                                                                     queueConfig.getAddress(),
                                                                     1000,
                                                                     false,
                                                                     false,
                                                                     1,
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

                                             new TransportConfiguration(InVMConnectorFactory.class.getName(),
                                                                        generateInVMParams(1)));

      conf2.setClustered(true);
     
      conf2.getClusterConfigurations().add(new ClusterConnectionConfiguration("to-server1",
                                                                              "jms",
                                                                              1000,
                                                                              true,
                                                                              true,
                                                                              MAX_HOPS,
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

      // TransportConfiguration(ServiceTestBase.INVM_CONNECTOR_FACTORY, params);

      conf1.setClustered(true);

      conf1.getClusterConfigurations().add(new ClusterConnectionConfiguration("to-server2",
                                                                              "jms",
                                                                              1000,
                                                                              true,
                                                                              true,
                                                                              MAX_HOPS,
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

      Pair<String, String> connectorPair = new Pair<String, String>(connectorConfig.getName(), null);
      List<Pair<String, String>> pairs = new ArrayList<Pair<String, String>>();
      pairs.add(connectorPair);

      clusterConnectionConfig1 = new ClusterConnectionConfiguration(RandomUtil.randomString(),
                                                                    queueConfig.getAddress(),
                                                                    RandomUtil.randomPositiveLong(),
                                                                    RandomUtil.randomBoolean(),
                                                                    RandomUtil.randomBoolean(),
                                                                    RandomUtil.randomPositiveInt(),
                                                                    RandomUtil.randomPositiveInt(),
                                                                    pairs);

      clusterConnectionConfig2 = new ClusterConnectionConfiguration(RandomUtil.randomString(),
                                                                    queueConfig.getAddress(),
                                                                    RandomUtil.randomPositiveLong(),
                                                                    RandomUtil.randomBoolean(),
                                                                    RandomUtil.randomBoolean(),
                                                                    RandomUtil.randomPositiveInt(),
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

            {
               if (closed)
                  return;
               //we use the cluster connection configuration to connect to the cluster to find the live node we want to
               //connect to.
               ClusterConnectionConfiguration config =
                        ConfigurationUtils.getReplicationClusterConfiguration(configuration);
               serverLocator0 = getFailbackLocator(config);
            }
            //if the cluster isn't available we want to hang around until it is
            serverLocator0.setReconnectAttempts(-1);
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

            nodeId0 = null;
         }

         ServerLocatorInternal locator;

         ClusterConnectionConfiguration config = ConfigurationUtils.getReplicationClusterConfiguration(configuration);

         locator = getFailbackLocator(config);

         ClientSessionFactoryInternal factory = null;
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

            }
            getStaticConnectors(staticConnectorNames, child);
         }
      }

      ClusterConnectionConfiguration config;

      if (discoveryGroupName == null)
      {
         config =
                  new ClusterConnectionConfiguration(name, address, connectorName,
                                                     minLargeMessageSize, clientFailureCheckPeriod, connectionTTL,
                                                     retryInterval, retryIntervalMultiplier, maxRetryInterval,
                                                     reconnectAttempts, callTimeout, callFailoverTimeout,
                                                     duplicateDetection, forwardWhenNoConsumers, maxHops,
                                                     confirmationWindowSize,
                                                     staticConnectorNames,
                                                     allowDirectConnectionsOnly,
                                                     clusterNotificationInterval,
                                                     clusterNotificationAttempts);
      }
      else
      {
         config =
                  new ClusterConnectionConfiguration(name, address, connectorName,
                                                     minLargeMessageSize, clientFailureCheckPeriod,
                                                     connectionTTL,
                                                     retryInterval,
                                                     retryIntervalMultiplier,
                                                     maxRetryInterval,
View Full Code Here

Examples of org.hornetq.core.config.ClusterConnectionConfiguration

   public
            void
            announceReplicatingBackupToLive(final Channel liveChannel, final boolean attemptingFailBack)
                                                                                                        throws HornetQException
   {
      ClusterConnectionConfiguration config = ConfigurationUtils.getReplicationClusterConfiguration(configuration);
      if (config == null)
      {
         HornetQServerLogger.LOGGER.announceBackupNoClusterConnections();
         throw new HornetQException("lacking cluster connection");

      }
      TransportConfiguration connector = configuration.getConnectorConfigurations().get(config.getConnectorName());

      if (connector == null)
      {
         HornetQServerLogger.LOGGER.announceBackupNoConnector(config.getConnectorName());
         throw new HornetQException("lacking cluster connection");
      }
      liveChannel.send(new BackupRegistrationMessage(connector, configuration.getClusterUser(),
                                                     configuration.getClusterPassword(), attemptingFailBack));
   }
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.