public ClusterNodes(
            IServicesConfig config,
            IClusteringConfig clusteringConfig,
            IEngines engines,
            ILogger logger)
        {
            this.log = logger;

            this.clusterNodesStorage  = engines.Build(config.NodesStorage);
            this.mainStorage          = engines.Build(config.MainStorage);
            this.nodeRecordMaxAgeSecs = clusteringConfig.NodeRecordMaxAgeSecs;
            this.masterLockMaxAgeSecs = clusteringConfig.MasterLockDurationSecs;
        }
 public ReplayFileService(
     IServicesConfig config,
     IEngines engines,
     ILogger logger)
 {
     this.replayFilesStorage = engines.Build(config.ReplayFilesStorage);
     this.log = logger;
 }
 public SimulationStatistics(IServicesConfig config,
                             IClusterNodes clusterNodes,
                             IEngines engines,
                             ILogger logger)
 {
     this.clusterNodes = clusterNodes;
     this.log          = logger;
     this.simulationStatisticsStorage = engines.Build(config.StatisticsStorage);
 }
 public ConnectionStrings(
     IServicesConfig config,
     IConnectionStringValidation connectionStringValidation,
     IEngines engines,
     IDiagnosticsLogger diagnosticsLogger,
     ILogger logger)
 {
     this.config = config;
     this.connectionStringValidation = connectionStringValidation;
     this.mainStorage       = engines.Build(config.MainStorage);
     this.log               = logger;
     this.diagnosticsLogger = diagnosticsLogger;
 }
Exemple #5
0
 public DevicePartitions(
     IServicesConfig config,
     IClusteringConfig clusteringConfig,
     ISimulations simulations,
     IClusterNodes clusterNodes,
     IEngines engines,
     ILogger logger)
 {
     this.simulations               = simulations;
     this.log                       = logger;
     this.partitionsStorage         = engines.Build(config.PartitionsStorage);
     this.clusterNodes              = clusterNodes;
     this.partitionLockDurationSecs = clusteringConfig.PartitionLockDurationMsecs / 1000;
     this.maxPartitionSize          = clusteringConfig.MaxPartitionSize;
 }