public BucketFactory( ClusterContext clusterContext, IScopeFactory scopeFactory, IRetryOrchestrator retryOrchestrator, IVBucketKeyMapperFactory vBucketKeyMapperFactory, IKetamaKeyMapperFactory ketamaKeyMapperFactory, ILogger <CouchbaseBucket> couchbaseLogger, ILogger <MemcachedBucket> memcachedLogger, IRedactor redactor, IBootstrapperFactory bootstrapperFactory, IRequestTracer tracer, IOperationConfigurator operationConfigurator, IRetryStrategy retryStrategy ) { _clusterContext = clusterContext ?? throw new ArgumentNullException(nameof(clusterContext)); _scopeFactory = scopeFactory ?? throw new ArgumentNullException(nameof(scopeFactory)); _retryOrchestrator = retryOrchestrator ?? throw new ArgumentNullException(nameof(retryOrchestrator)); _vBucketKeyMapperFactory = vBucketKeyMapperFactory ?? throw new ArgumentNullException(nameof(vBucketKeyMapperFactory)); _ketamaKeyMapperFactory = ketamaKeyMapperFactory ?? throw new ArgumentNullException(nameof(ketamaKeyMapperFactory)); _couchbaseLogger = couchbaseLogger ?? throw new ArgumentNullException(nameof(couchbaseLogger)); _memcachedLogger = memcachedLogger ?? throw new ArgumentNullException(nameof(memcachedLogger)); _redactor = redactor ?? throw new ArgumentNullException(nameof(IRedactor)); _bootstrapperFactory = bootstrapperFactory ?? throw new ArgumentNullException(nameof(bootstrapperFactory)); _tracer = tracer ?? throw new ArgumentNullException(nameof(tracer)); _operationConfigurator = operationConfigurator ?? throw new ArgumentNullException(nameof(operationConfigurator)); _retryStrategy = retryStrategy ?? throw new ArgumentNullException(nameof(retryStrategy)); }
public Runner( IConfigurationLoader configurationLoader, IBootstrapperFactory bootstrapperFactory, IBridgeFactory bridgeFactory, string configurationName, string runName) { this.configurationLoader = configurationLoader; this.bootstrapperFactory = bootstrapperFactory; this.bridgeFactory = bridgeFactory; this.configurationName = configurationName; this.runName = runName; this.runData = new Dictionary <string, object>(); this.configuration = new Lazy <ConfigurationWrapper>(this.LoadConfiguration); this.contextFactory = null; }
protected BucketBase(string name, ClusterContext context, IScopeFactory scopeFactory, IRetryOrchestrator retryOrchestrator, ILogger logger, IRedactor redactor, IBootstrapperFactory bootstrapperFactory, IRequestTracer tracer) { Name = name ?? throw new ArgumentNullException(nameof(name)); Context = context ?? throw new ArgumentNullException(nameof(context)); _scopeFactory = scopeFactory ?? throw new ArgumentNullException(nameof(scopeFactory)); RetryOrchestrator = retryOrchestrator ?? throw new ArgumentNullException(nameof(retryOrchestrator)); Logger = logger ?? throw new ArgumentNullException(nameof(logger)); Redactor = redactor ?? throw new ArgumentNullException(nameof(redactor)); Tracer = tracer; BootstrapperFactory = bootstrapperFactory ?? throw new ArgumentNullException(nameof(bootstrapperFactory)); Bootstrapper = bootstrapperFactory.Create(Context.ClusterOptions.BootstrapPollInterval); }
internal CouchbaseBucket(string name, ClusterContext context, IScopeFactory scopeFactory, IRetryOrchestrator retryOrchestrator, IVBucketKeyMapperFactory vBucketKeyMapperFactory, ILogger <CouchbaseBucket> logger, IRedactor redactor, IBootstrapperFactory bootstrapperFactory) : base(name, context, scopeFactory, retryOrchestrator, logger, redactor, bootstrapperFactory) { _vBucketKeyMapperFactory = vBucketKeyMapperFactory ?? throw new ArgumentNullException(nameof(vBucketKeyMapperFactory)); _viewClientLazy = new Lazy <IViewClient>(() => context.ServiceProvider.GetRequiredService <IViewClient>() ); _viewManagerLazy = new Lazy <IViewIndexManager>(() => new ViewIndexManager(name, context.ServiceProvider.GetRequiredService <IServiceUriProvider>(), context.ServiceProvider.GetRequiredService <CouchbaseHttpClient>(), context.ServiceProvider.GetRequiredService <ILogger <ViewIndexManager> >(), redactor)); _collectionManagerLazy = new Lazy <ICouchbaseCollectionManager>(() => new CollectionManager(name, context.ServiceProvider.GetRequiredService <IServiceUriProvider>(), context.ServiceProvider.GetRequiredService <CouchbaseHttpClient>(), context.ServiceProvider.GetRequiredService <ILogger <CollectionManager> >(), redactor) ); }
internal MemcachedBucket(string name, ClusterContext context, IScopeFactory scopeFactory, IRetryOrchestrator retryOrchestrator, IKetamaKeyMapperFactory ketamaKeyMapperFactory, ILogger <MemcachedBucket> logger, HttpClusterMapBase httpClusterMap, IRedactor redactor, IBootstrapperFactory bootstrapperFactory, IRequestTracer tracer) : base(name, context, scopeFactory, retryOrchestrator, logger, redactor, bootstrapperFactory, tracer) { BucketType = BucketType.Memcached; Name = name; _ketamaKeyMapperFactory = ketamaKeyMapperFactory ?? throw new ArgumentNullException(nameof(ketamaKeyMapperFactory)); _httpClusterMap = httpClusterMap; }
internal MemcachedBucket(string name, ClusterContext context, IScopeFactory scopeFactory, IRetryOrchestrator retryOrchestrator, IKetamaKeyMapperFactory ketamaKeyMapperFactory, ILogger <MemcachedBucket> logger, IRedactor redactor, IBootstrapperFactory bootstrapperFactory, IRequestTracer tracer) : this(name, context, scopeFactory, retryOrchestrator, ketamaKeyMapperFactory, logger, new HttpClusterMap(context.ServiceProvider.GetRequiredService <CouchbaseHttpClient>(), context), redactor, bootstrapperFactory, tracer) { }
public DeploymentExecutor(IBootstrapperFactory bootstrapperFactory) { this.bootstrapperFactory = bootstrapperFactory; }
internal MemcachedBucket(string name, ClusterContext context, IScopeFactory scopeFactory, IRetryOrchestrator retryOrchestrator, IKetamaKeyMapperFactory ketamaKeyMapperFactory, ILogger <MemcachedBucket> logger, IHttpClusterMapFactory httpClusterMapFactory, TypedRedactor redactor, IBootstrapperFactory bootstrapperFactory, IRequestTracer tracer, IOperationConfigurator operationConfigurator, IRetryStrategy retryStrategy, BucketConfig config) : base(name, context, scopeFactory, retryOrchestrator, logger, redactor, bootstrapperFactory, tracer, operationConfigurator, retryStrategy, config) { BucketType = BucketType.Memcached; Name = name; _ketamaKeyMapperFactory = ketamaKeyMapperFactory ?? throw new ArgumentNullException(nameof(ketamaKeyMapperFactory)); _httpClusterMapFactory = httpClusterMapFactory ?? throw new ArgumentNullException(nameof(httpClusterMapFactory)); _httpClusterMap = _httpClusterMapFactory.Create(Context); }
internal MemcachedBucket(string name, ClusterContext context, IScopeFactory scopeFactory, IRetryOrchestrator retryOrchestrator, IKetamaKeyMapperFactory ketamaKeyMapperFactory, ILogger <MemcachedBucket> logger, TypedRedactor redactor, IBootstrapperFactory bootstrapperFactory, IRequestTracer tracer, IOperationConfigurator operationConfigurator, IRetryStrategy retryStrategy, IHttpClusterMapFactory httpClusterMapFactory, BucketConfig config) : this(name, context, scopeFactory, retryOrchestrator, ketamaKeyMapperFactory, logger, httpClusterMapFactory, redactor, bootstrapperFactory, tracer, operationConfigurator, retryStrategy, config) { }