Beispiel #1
0
        // It's a separate function so we can clearly see when we set the value.
        // With property you can't seaprate getter from setter in intellicense.
        internal void SetReminderServiceType(ReminderServiceProviderType reminderType)
        {
            if (reminderType == ReminderServiceProviderType.NotSpecified)
            {
                throw new ArgumentException("Cannot set ReminderServiceType to " + ReminderServiceProviderType.NotSpecified, "ReminderServiceType");
            }

            reminderServiceType = reminderType;
        }
Beispiel #2
0
        internal GlobalConfiguration()
            : base(true)
        {
            Application                    = new ApplicationConfiguration();
            SeedNodes                      = new List <IPEndPoint>();
            livenessServiceType            = LivenessProviderType.NotSpecified;
            LivenessEnabled                = true;
            ProbeTimeout                   = DEFAULT_LIVENESS_PROBE_TIMEOUT;
            TableRefreshTimeout            = DEFAULT_LIVENESS_TABLE_REFRESH_TIMEOUT;
            DeathVoteExpirationTimeout     = DEFAULT_LIVENESS_DEATH_VOTE_EXPIRATION_TIMEOUT;
            IAmAliveTablePublishTimeout    = DEFAULT_LIVENESS_I_AM_ALIVE_TABLE_PUBLISH_TIMEOUT;
            NumMissedProbesLimit           = DEFAULT_LIVENESS_NUM_MISSED_PROBES_LIMIT;
            NumProbedSilos                 = DEFAULT_LIVENESS_NUM_PROBED_SILOS;
            NumVotesForDeathDeclaration    = DEFAULT_LIVENESS_NUM_VOTES_FOR_DEATH_DECLARATION;
            NumMissedTableIAmAliveLimit    = DEFAULT_LIVENESS_NUM_TABLE_I_AM_ALIVE_LIMIT;
            UseLivenessGossip              = DEFAULT_LIVENESS_USE_LIVENESS_GOSSIP;
            MaxJoinAttemptTime             = DEFAULT_LIVENESS_MAX_JOIN_ATTEMPT_TIME;
            ExpectedClusterSizeConfigValue = new ConfigValue <int>(DEFAULT_LIVENESS_EXPECTED_CLUSTER_SIZE, true);
            ServiceId                      = Guid.Empty;
            DeploymentId                   = Environment.UserName;
            DataConnectionString           = "";

            CollectionQuantum = DEFAULT_COLLECTION_QUANTUM;

            CacheSize                        = DEFAULT_CACHE_SIZE;
            InitialCacheTTL                  = DEFAULT_INITIAL_CACHE_TTL;
            MaximumCacheTTL                  = DEFAULT_MAXIMUM_CACHE_TTL;
            CacheTTLExtensionFactor          = DEFAULT_TTL_EXTENSION_FACTOR;
            DirectoryCachingStrategy         = DEFAULT_DIRECTORY_CACHING_STRATEGY;
            DirectoryLazyDeregistrationDelay = DEFAULT_UNREGISTER_RACE_DELAY;
            ClientRegistrationRefresh        = DEFAULT_CLIENT_REGISTRATION_REFRESH;

            PerformDeadlockDetection                 = DEFAULT_PERFORM_DEADLOCK_DETECTION;
            reminderServiceType                      = ReminderServiceProviderType.NotSpecified;
            DefaultPlacementStrategy                 = DEFAULT_PLACEMENT_STRATEGY;
            DeploymentLoadPublisherRefreshTime       = DEFAULT_DEPLOYMENT_LOAD_PUBLISHER_REFRESH_TIME;
            ActivationCountBasedPlacementChooseOutOf = DEFAULT_ACTIVATION_COUNT_BASED_PLACEMENT_CHOOSE_OUT_OF;
            UseVirtualBucketsConsistentRing          = DEFAULT_USE_VIRTUAL_RING_BUCKETS;
            NumVirtualBucketsConsistentRing          = DEFAULT_NUM_VIRTUAL_RING_BUCKETS;
            UseMockReminderTable                     = false;
            MockReminderTableTimeout                 = DEFAULT_MOCK_REMINDER_TABLE_TIMEOUT;

            ProviderConfigurations = new Dictionary <string, ProviderCategoryConfiguration>();
        }