private static void AdjustClusterConfiguration(ClusterConfiguration config)
            {
                var settings = new Dictionary <string, string>();

                // get initial settings from configs
                ProviderSettings.WriteProperties(settings);
                ConfigureCustomQueueBalancer(settings, config);

                // register stream provider
                config.Globals.RegisterStreamProvider <MemoryStreamProvider>(StreamProviderName, settings);
                config.Globals.RegisterStorageProvider <MemoryStorage>("PubSubStore");
            }
            private static Dictionary <string, string> BuildProviderSettings()
            {
                var settings = new Dictionary <string, string>();

                // get initial settings from configs
                ProviderSettings.WriteProperties(settings);
                EventHubConfig.Value.WriteProperties(settings);
                CheckpointerSettings.WriteProperties(settings);

                // add queue balancer setting
                settings.Add(PersistentStreamProviderConfig.QUEUE_BALANCER_TYPE, StreamQueueBalancerType.StaticClusterConfigDeploymentBalancer.AssemblyQualifiedName);

                return(settings);
            }
            private static void AdjustClusterConfiguration(ClusterConfiguration config)
            {
                var settings = new Dictionary <string, string>();

                // get initial settings from configs
                ProviderSettings.WriteProperties(settings);
                ProviderSettings.WriteDataGeneratingConfig(settings);

                // add queue balancer setting
                settings.Add(PersistentStreamProviderConfig.QUEUE_BALANCER_TYPE, StreamQueueBalancerType.DynamicClusterConfigDeploymentBalancer.AssemblyQualifiedName);

                // register stream provider
                config.Globals.RegisterStreamProvider <EHStreamProviderForMonitorTests>(StreamProviderName, settings);
                config.Globals.RegisterStorageProvider <MemoryStorage>("PubSubStore");
            }
Example #4
0
            private static void AdjustClusterConfiguration(ClusterConfiguration config)
            {
                var settings = new Dictionary <string, string>();

                // get initial settings from configs
                ProviderSettings.WriteProperties(settings);
                EventHubConfig.Value.WriteProperties(settings);
                CheckpointerSettings.WriteProperties(settings);

                // add queue balancer setting
                settings.Add(PersistentStreamProviderConfig.QUEUE_BALANCER_TYPE, StreamQueueBalancerType.DynamicClusterConfigDeploymentBalancer.ToString());

                // register stream provider
                config.Globals.RegisterStreamProvider <EHStreamProviderWithCreatedCacheList>(StreamProviderName, settings);
                config.Globals.RegisterStorageProvider <MemoryStorage>("PubSubStore");
            }
Example #5
0
            private static Dictionary <string, string> BuildProviderSettings()
            {
                var settings = new Dictionary <string, string>();

                // get initial settings from configs
                ProviderSettings.WriteProperties(settings);
                EventHubConfig.Value.WriteProperties(settings);
                CheckpointerSettings.WriteProperties(settings);

                // add queue balancer setting
                settings.Add(PersistentStreamProviderConfig.QUEUE_BALANCER_TYPE, StreamQueueBalancerType.DynamicClusterConfigDeploymentBalancer.ToString());

                // add pub/sub settting
                settings.Add(PersistentStreamProviderConfig.STREAM_PUBSUB_TYPE, StreamPubSubType.ImplicitOnly.ToString());
                return(settings);
            }