Exemplo n.º 1
0
 public Indexer(IPersistentQueueReader<PersistentQueueMessage> queueReader,
     IHostIndexer hostIndexer,
     IFunctionIndexer functionIndexer,
     IIndexerLogWriter logWriter)
 {
     _queueReader = queueReader;
     _hostIndexer = hostIndexer;
     _functionIndexer = functionIndexer;
     _logWriter = logWriter;
 }
Exemplo n.º 2
0
 public Indexer(IPersistentQueueReader <PersistentQueueMessage> queueReader,
                IHostIndexer hostIndexer,
                IFunctionIndexer functionIndexer,
                IIndexerLogWriter logWriter)
 {
     _queueReader     = queueReader;
     _hostIndexer     = hostIndexer;
     _functionIndexer = functionIndexer;
     _logWriter       = logWriter;
 }
        public UpgradeIndexer(IPersistentQueueReader <PersistentQueueMessage> queueReader,
                              IHostIndexer hostIndexer,
                              IFunctionIndexer functionIndexer,
                              IIndexerLogWriter logWriter,
                              IDashboardVersionManager dashboardVersionReader,
                              CloudBlobClient client)
            : base(queueReader, hostIndexer, functionIndexer, logWriter)
        {
            _dashboardVersionManager = dashboardVersionReader;
            _client         = client;
            _functionsStore = ConcurrentTextStore.CreateBlobStore(_client, DashboardContainerNames.Dashboard, DashboardDirectoryNames.FunctionsFlat);
            _logsStore      = ConcurrentTextStore.CreateBlobStore(_client, DashboardContainerNames.Dashboard, DashboardDirectoryNames.Logs);

            // From archive back to output
            _upgradeQueueReader = new PersistentQueueReader <PersistentQueueMessage>(client.GetContainerReference(ContainerNames.HostArchive),
                                                                                     client.GetContainerReference(ContainerNames.HostOutput));
        }
        public UpgradeIndexer(IPersistentQueueReader<PersistentQueueMessage> queueReader,
            IHostIndexer hostIndexer,
            IFunctionIndexer functionIndexer,
            IIndexerLogWriter logWriter,
            IDashboardVersionManager dashboardVersionReader,
            CloudBlobClient client)
            : base(queueReader, hostIndexer, functionIndexer, logWriter)
        {
            _dashboardVersionManager = dashboardVersionReader;
            _client = client;
            _functionsStore = ConcurrentTextStore.CreateBlobStore(_client, DashboardContainerNames.Dashboard, DashboardDirectoryNames.FunctionsFlat);
            _logsStore = ConcurrentTextStore.CreateBlobStore(_client, DashboardContainerNames.Dashboard, DashboardDirectoryNames.Logs);

            // From archive back to output
            _upgradeQueueReader = new PersistentQueueReader<PersistentQueueMessage>(client.GetContainerReference(ContainerNames.HostArchive),
                client.GetContainerReference(ContainerNames.HostOutput));
        }
Exemplo n.º 5
0
        public DiagnosticsController(IIndexerLogReader indexerLogReader,
                                     IPersistentQueueReader <PersistentQueueMessage> queueReader,
                                     IDashboardVersionManager dashboardVersionManager)
        {
            if (indexerLogReader == null)
            {
                throw new ArgumentNullException("indexerLogReader");
            }
            if (queueReader == null)
            {
                throw new ArgumentNullException("queueReader");
            }
            if (dashboardVersionManager == null)
            {
                throw new ArgumentNullException("dashboardVersionManager");
            }

            _indexerLogReader        = indexerLogReader;
            _queueReader             = queueReader;
            _dashboardVersionManager = dashboardVersionManager;
        }
        public DiagnosticsController(IIndexerLogReader indexerLogReader,
            IPersistentQueueReader<PersistentQueueMessage> queueReader,
            IDashboardVersionManager dashboardVersionManager)
        {
            if (indexerLogReader == null)
            {
                throw new ArgumentNullException("indexerLogReader");
            }
            if (queueReader == null)
            {
                throw new ArgumentNullException("queueReader");
            }
            if (dashboardVersionManager == null)
            {
                throw new ArgumentNullException("dashboardVersionManager");
            }

            _indexerLogReader = indexerLogReader;
            _queueReader = queueReader;
            _dashboardVersionManager = dashboardVersionManager;
        }