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 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 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;
 }
Ejemplo n.º 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;
 }
        public DeviceReplayActor(
            ILogger logger,
            IActorsLogger actorLogger,
            IServicesConfig config,
            IEngines engines,
            IInstance instance)
        {
            this.log         = logger;
            this.actorLogger = actorLogger;
            this.instance    = instance;

            this.status            = ActorStatus.None;
            this.deviceModel       = null;
            this.currentLine       = "";
            this.whenToRun         = 0;
            this.prevInterval      = 0;
            this.emptySchema       = new DeviceModelMessageSchema();
            this.replayFileService = new ReplayFileService(config, engines, logger);
        }