public virtual void WaitsForQuery(ExecutingQuery child) { if (child == null) { _waitTime.addAndGet(this, _status.waitTimeNanos(_clock.nanos())); this._status = SimpleState.Running(); } else { this._status = new WaitingOnQuery(child, _clock.nanos()); } }
// basic methods public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } ExecutingQuery that = ( ExecutingQuery )o; return(_queryId == that._queryId); }
internal QuerySnapshot(ExecutingQuery query, CompilerInfo compilerInfo, PageCounterValues page, long compilationTimeMicros, long elapsedTimeMicros, long cpuTimeMicros, long waitTimeMicros, string status, IDictionary <string, object> resourceInfo, IList <ActiveLock> waitingLocks, long activeLockCount, long allocatedBytes) { this._query = query; this._compilerInfo = compilerInfo; this._page = page; this._compilationTimeMicros = compilationTimeMicros; this._elapsedTimeMicros = elapsedTimeMicros; this._cpuTimeMicros = cpuTimeMicros; this._waitTimeMicros = waitTimeMicros; this._status = status; this._resourceInfo = resourceInfo; this._waitingLocks = waitingLocks; this._activeLockCount = activeLockCount; this._allocatedBytes = allocatedBytes; }
internal WaitingOnLockEvent(string mode, ResourceType resourceType, long[] resourceIds, ExecutingQuery executingQuery, long currentTimeNanos, ExecutingQueryStatus previous) : base(mode, resourceType, resourceIds, currentTimeNanos) { this._executingQuery = executingQuery; this._previous = previous; }
internal WaitingOnQuery(ExecutingQuery query, long startTimeNanos) { this._query = query; this._startTimeNanos = startTimeNanos; }