private void FailOnStop() { try { stateManager.Stop(); Assert.Fail(); } catch (IllegalStateTransitionException) { // Expected } }
/// <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(); }