Esempio n. 1
0
        // update state

        public virtual void CompilationCompleted(CompilerInfo compilerInfo, System.Func <ExecutionPlanDescription> planDescriptionSupplier)
        {
            this._compilerInfo = compilerInfo;
            this._compilationCompletedNanos = _clock.nanos();
            this._planDescriptionSupplier   = planDescriptionSupplier;
            this._status = SimpleState.Running();               // write barrier - must be last
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldProduceSensibleMapRepresentationInRunningState()
        public virtual void ShouldProduceSensibleMapRepresentationInRunningState()
        {
            // when
            string status = SimpleState.Running().name();

            // then
            assertEquals("running", status);
        }
Esempio n. 3
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());
     }
 }