Package nl.stokpop.eventscheduler
Class EventScheduler
- java.lang.Object
-
- nl.stokpop.eventscheduler.EventScheduler
-
public final class EventScheduler extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortSession()Call to abort this test run.voidaddKillSwitch(SchedulerExceptionHandler schedulerExceptionHandler)voidcheckResults()Call to check results of this test run.EventSchedulerContextgetEventSchedulerContext()booleanisSessionStopped()voidstartSession()Start a test session.voidstopSession()Stop a test session.java.lang.StringtoString()
-
-
-
Method Detail
-
addKillSwitch
public void addKillSwitch(SchedulerExceptionHandler schedulerExceptionHandler)
-
startSession
public void startSession()
Start a test session.
-
stopSession
public void stopSession()
Stop a test session.
-
isSessionStopped
public boolean isSessionStopped()
- Returns:
- true when stop or abort has been called.
-
abortSession
public void abortSession()
Call to abort this test run.
-
checkResults
public void checkResults() throws EventCheckFailureExceptionCall to check results of this test run. Catch the exception to do something useful.- Throws:
EventCheckFailureException- when there are events that report failures
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getEventSchedulerContext
public EventSchedulerContext getEventSchedulerContext()
-
-