Esempio n. 1
0
 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());
     }
 }
Esempio n. 2
0
        // 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);
        }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 internal WaitingOnQuery(ExecutingQuery query, long startTimeNanos)
 {
     this._query          = query;
     this._startTimeNanos = startTimeNanos;
 }