internal ClientFactory(ILogger logger, LoadBalanceAnchorContext serviceContext) { AnchorUtil.ThrowOnNullArgument(serviceContext, "serviceContext"); AnchorUtil.ThrowOnNullArgument(logger, "logger"); this.logger = logger; this.serviceContext = serviceContext; }
public SoftDeletedMailboxRemover(DirectoryDatabase database, LoadBalanceAnchorContext context, ByteQuantifiedSize targetDatabaseSize, ObjectLogCollector logCollector) { this.database = database; this.context = context; this.targetDatabaseSize = targetDatabaseSize; this.logCollector = logCollector; }
public CachedHeatMap(LoadBalanceAnchorContext context, HeatMapConstructionRequest heatMapConstructor) { this.heatMapRequest = heatMapConstructor; ScheduledRequest request = new ScheduledRequest(this.heatMapRequest, TimeProvider.UtcNow, () => context.Settings.LocalCacheRefreshPeriod); context.QueueManager.MainProcessingQueue.EnqueueRequest(request); }
public MailboxProcessorDispatcher(LoadBalanceAnchorContext context, Func <IRequestQueueManager, IList <MailboxProcessor> > processors) { AnchorUtil.ThrowOnNullArgument(context, "context"); AnchorUtil.ThrowOnNullArgument(processors, "processors"); this.context = context; this.processors = processors; }
public MailboxRebalanceRequest(BandMailboxRebalanceData rebalanceData, LoadBalanceAnchorContext serviceContext, IList <Guid> nonMovableOrgs) { this.rebalanceData = rebalanceData; this.serviceContext = serviceContext; this.clientFactory = serviceContext.ClientFactory; this.logger = serviceContext.Logger; this.directoryProvider = serviceContext.Directory; this.nonMovableOrgs = nonMovableOrgs; }
bool IAnchorService.Initialize(AnchorContext anchorContext) { LoadBalanceAnchorContext loadBalanceAnchorContext = (LoadBalanceAnchorContext)anchorContext; this.anchorContext = loadBalanceAnchorContext; this.directoryProvider = loadBalanceAnchorContext.Directory; this.logger = loadBalanceAnchorContext.Logger; return(loadBalanceAnchorContext.Settings.IsEnabled); }
public LoadBalanceService(MailboxLoadBalanceService service, LoadBalanceAnchorContext serviceContext) : base(serviceContext.Logger) { if (service == null) { throw new ArgumentNullException("service"); } this.serviceImpl = service; this.serviceContext = serviceContext; }
public MoveInjector(LoadBalanceAnchorContext serviceContext) { this.serviceContext = serviceContext; this.queueManager = serviceContext.QueueManager; this.settings = serviceContext.Settings; this.directoryProvider = serviceContext.Directory; this.logger = serviceContext.Logger; this.clientFactory = serviceContext.ClientFactory; this.databaseSelector = serviceContext.DatabaseSelector; }
protected override void InternalProcessRecord() { using (LoadBalanceAnchorContext loadBalanceAnchorContext = new LoadBalanceAnchorContext()) { using (CmdletLogAdapter cmdletLogAdapter = new CmdletLogAdapter(loadBalanceAnchorContext.Logger, new Action <LocalizedString>(base.WriteVerbose), new Action <LocalizedString>(this.WriteWarning), new Action <LocalizedString>(base.WriteDebug))) { ILoadBalanceServicePort loadBalanceServicePort = LoadBalanceServiceAdapter.Create(cmdletLogAdapter); CapacitySummary capacitySummary = loadBalanceServicePort.GetCapacitySummary(this.objectIdentity, this.Refresh); base.WriteObject(capacitySummary); } } }
public LoadBalanceServiceBootstrapper(LoadBalanceAnchorContext anchorContext) { AnchorUtil.ThrowOnNullArgument(anchorContext, "anchorContext"); ((IAnchorService)this).Initialize(anchorContext); }
public BandAsMetricCapabilityDecorator(ILoadBalanceService service, LoadBalanceAnchorContext serviceContext, DirectoryServer targetServer) : base(service, targetServer) { AnchorUtil.ThrowOnNullArgument(serviceContext, "serviceContext"); this.serviceContext = serviceContext; }
public LocalDatabaseSoftDeletedCleanupRequest(DirectoryIdentity databaseIdentity, ByteQuantifiedSize targetSize, LoadBalanceAnchorContext context) { this.databaseIdentity = databaseIdentity; this.targetSize = targetSize; this.context = context; }
public DirectoryProvider(IClientFactory clientFactory, Server localServer, ILoadBalanceSettings settings, IEnumerable <IDirectoryListener> listeners, ILogger logger, LoadBalanceAnchorContext context) { this.clientFactory = clientFactory; this.localServer = localServer; this.settings = settings; this.logger = logger; this.context = context; this.listeners = new List <IDirectoryListener>(listeners ?? ((IEnumerable <IDirectoryListener>)Array <IDirectoryListener> .Empty)); }
public ForestHeatMapConstructionRequest(LoadBalanceAnchorContext context) : base(context) { }
public ForestHeatMap(LoadBalanceAnchorContext context) { this.context = context; }
public MoveHistoryCheck(SoftDeletedRemovalData data, LoadBalanceAnchorContext context) : base(data, context.Directory) { this.context = context; }
protected HeatMapConstructionRequest(LoadBalanceAnchorContext context) { this.ServiceContext = context; }
public LocalServerHeatMapConstructionRequest(LoadBalanceAnchorContext context) : base(context) { }
public LoadBalanceServiceDiagnosable(LoadBalanceAnchorContext anchorContext) : base(anchorContext.Logger) { this.anchorContext = anchorContext; }
public DatabaseDrainRequest(DirectoryDatabase directoryDatabase, MoveInjector moveInjector, LoadBalanceAnchorContext serviceContext, BatchName batchName) { AnchorUtil.ThrowOnNullArgument(directoryDatabase, "directoryDatabase"); AnchorUtil.ThrowOnNullArgument(moveInjector, "moveInjector"); AnchorUtil.ThrowOnNullArgument(serviceContext, "serviceContext"); AnchorUtil.ThrowOnNullArgument(batchName, "batchName"); this.directoryDatabase = directoryDatabase; this.moveInjector = moveInjector; this.serviceContext = serviceContext; this.logger = serviceContext.Logger; this.batchName = batchName; }
public LoadBalanceTopologyDiagnosable(LoadBalanceAnchorContext loadBalanceContext) : base(loadBalanceContext.Logger) { this.context = loadBalanceContext; }
public AutomaticLoadBalancer(LoadBalanceAnchorContext anchorContext) { this.context = anchorContext; }
public DatabaseDrainControl(LoadBalanceAnchorContext serviceContext) { this.serviceContext = serviceContext; this.inProgressDrainRequests = new ConcurrentDictionary <DirectoryIdentity, BatchName>(12, 12); }
public LoadBalanceBandSettingsStorageDiagnosable(LoadBalanceAnchorContext anchorContext) : base(anchorContext.Logger) { this.anchorContext = anchorContext; }
public CapacitySummaryCapabilityDecorator(ILoadBalanceService service, DirectoryServer targetServer, LoadBalanceAnchorContext context) : base(service, targetServer) { this.context = context; }
public CmdletExecutionPool(LoadBalanceAnchorContext anchorContext) { this.anchorContext = anchorContext; this.runspaces = new ConcurrentQueue <IAnchorRunspaceProxy>(); }
public MailboxLoadBalanceService(LoadBalanceAnchorContext serviceContext) { AnchorUtil.ThrowOnNullArgument(serviceContext, "serviceContext"); this.serviceContext = serviceContext; }
public BandSettingsStorage(IAnchorDataProvider anchorDataProvider, LoadBalanceAnchorContext anchorContext) { this.anchorDataProvider = anchorDataProvider; this.logger = anchorContext.Logger; this.loadBalanceAnchorContext = anchorContext; }