public Indexer(IPersistentQueueReader<PersistentQueueMessage> queueReader,
     IHostIndexer hostIndexer,
     IFunctionIndexer functionIndexer,
     IIndexerLogWriter logWriter)
 {
     _queueReader = queueReader;
     _hostIndexer = hostIndexer;
     _functionIndexer = functionIndexer;
     _logWriter = logWriter;
 }
Example #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));
        }
Example #5
0
 public FunctionIndexTransactionHandler(IFunctionIndexer <TFunctionMessage> functionIndexer, int logsPerIndexBatch = 1)
 {
     FunctionIndexer    = functionIndexer;
     _logsPerIndexBatch = logsPerIndexBatch;
 }