public TimeBasedDatabaseWindowJob(TimeBasedDatabaseDriver driver, List <MailboxData> queue, int notInterestingCount, int filteredCount, int failedFilteringCount, int totalOnDatabaseCount, PoisonMailboxControl poisonControl, PerformanceCountersPerDatabaseInstance databaseCounters) : base(driver, queue, poisonControl, databaseCounters) { this.notInterestingMailboxCount = notInterestingCount; this.filteredMailboxCount = filteredCount; this.failedFilteringMailboxCount = failedFilteringCount; this.totalOnDatabaseCount = totalOnDatabaseCount; }
public void RequestStopDatabase(Guid databaseGuid, HangDetector hangDetector) { lock (this.assistantDrivers) { if (this.assistantDrivers.ContainsKey(databaseGuid)) { TimeBasedDatabaseDriver timeBasedDatabaseDriver = this.assistantDrivers[databaseGuid]; ExTraceGlobals.TimeBasedAssistantControllerTracer.TraceDebug <TimeBasedAssistantController, TimeBasedDatabaseDriver>((long)this.GetHashCode(), "{0}: Requesting stop of {1}", this, timeBasedDatabaseDriver); try { if (timeBasedDatabaseDriver != null) { if (hangDetector != null) { hangDetector.AssistantName = timeBasedDatabaseDriver.Assistant.NonLocalizedName; } timeBasedDatabaseDriver.RequestStop(); } goto IL_8A; } finally { if (hangDetector != null) { hangDetector.AssistantName = "Common Code"; } } } ExTraceGlobals.TimeBasedAssistantControllerTracer.TraceDebug <TimeBasedAssistantController, Guid>((long)this.GetHashCode(), "{0}: No driver found for database {1}, no need to request stop", this, databaseGuid); IL_8A :; } }
protected TimeBasedDatabaseJob(TimeBasedDatabaseDriver driver, List <MailboxData> queue, PoisonMailboxControl poisonControl, PerformanceCountersPerDatabaseInstance databaseCounters) { this.Finished = false; if (driver == null) { throw new ArgumentNullException("driver", "Time based Database Job can not be started with a null driver"); } this.Driver = driver; this.SetPendingQueue(queue); this.poisonControl = poisonControl; this.performanceCounters = databaseCounters; this.initialPendingQueueCount = this.pendingQueue.Count; this.OnDemandMailboxCount = 0; this.mailboxesProcessedFailureCount = 0; this.mailboxesProcessedSuccessfullyCount = 0; this.mailboxesFailedToOpenStoreSessionCount = 0; this.mailboxesRetriedCount = 0; }
// Token: 0x06000459 RID: 1113 RVA: 0x000164C0 File Offset: 0x000146C0 public TimeBasedDatabaseDemandJob(TimeBasedDatabaseDriver driver, MailboxData mailboxData, PoisonMailboxControl poisonControl, PerformanceCountersPerDatabaseInstance databaseCounters) : base(driver, new List <MailboxData>(new MailboxData[] { mailboxData }), poisonControl, databaseCounters) { }
// Token: 0x06000427 RID: 1063 RVA: 0x00014EB9 File Offset: 0x000130B9 internal TimeBasedAssistantTask(SystemWorkloadBase workload, TimeBasedDatabaseDriver driver, ResourceReservation reservation) : base(workload, reservation) { this.driver = driver; }