Пример #1
0
        /// <summary>
        /// Copies the local properties (properties that are not written in Write method).
        /// </summary>
        private void CopyLocalProperties(IgniteConfiguration cfg)
        {
            GridName = cfg.GridName;

            if (BinaryConfiguration != null && cfg.BinaryConfiguration != null)
            {
                BinaryConfiguration.MergeTypes(cfg.BinaryConfiguration);
            }
            else if (cfg.BinaryConfiguration != null)
            {
                BinaryConfiguration = new BinaryConfiguration(cfg.BinaryConfiguration);
            }

            JvmClasspath       = cfg.JvmClasspath;
            JvmOptions         = cfg.JvmOptions;
            Assemblies         = cfg.Assemblies;
            SuppressWarnings   = cfg.SuppressWarnings;
            LifecycleBeans     = cfg.LifecycleBeans;
            Logger             = cfg.Logger;
            JvmInitialMemoryMb = cfg.JvmInitialMemoryMb;
            JvmMaxMemoryMb     = cfg.JvmMaxMemoryMb;
        }
Пример #2
0
        /// <summary>
        /// Copies the local properties (properties that are not written in Write method).
        /// </summary>
        private void CopyLocalProperties(IgniteConfiguration cfg)
        {
            IgniteInstanceName = cfg.IgniteInstanceName;

            if (BinaryConfiguration != null && cfg.BinaryConfiguration != null)
            {
                BinaryConfiguration.MergeTypes(cfg.BinaryConfiguration);
            }
            else if (cfg.BinaryConfiguration != null)
            {
                BinaryConfiguration = new BinaryConfiguration(cfg.BinaryConfiguration);
            }

            JvmClasspath                   = cfg.JvmClasspath;
            JvmOptions                     = cfg.JvmOptions;
            Assemblies                     = cfg.Assemblies;
            SuppressWarnings               = cfg.SuppressWarnings;
            LifecycleHandlers              = cfg.LifecycleHandlers;
            Logger                         = cfg.Logger;
            JvmInitialMemoryMb             = cfg.JvmInitialMemoryMb;
            JvmMaxMemoryMb                 = cfg.JvmMaxMemoryMb;
            PluginConfigurations           = cfg.PluginConfigurations;
            AutoGenerateIgniteInstanceName = cfg.AutoGenerateIgniteInstanceName;
        }