Ejemplo n.º 1
0
 private void FailOnStop()
 {
     try
     {
         stateManager.Stop();
         Assert.Fail();
     }
     catch (IllegalStateTransitionException)
     {
         // Expected
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Stop sending events and return the Adapter to the OPENED state, ready to be
        /// started once again.
        /// </summary>
        /// <throws>EPException in case of errors releasing resources</throws>
        public virtual void Stop()
        {
            if ((ExecutionPathDebugLog.IsEnabled) && (Log.IsDebugEnabled))
            {
                Log.Debug(".Stop");
            }

            StateManager.Stop();
            EventsToSend.Clear();
            _currentTime = 0;
            Reset();
        }