Class LogicDrivenTrigger
java.lang.Object
ee.jakarta.tck.concurrent.api.LastExecution.LogicDrivenTrigger
- All Implemented Interfaces:
Trigger
A trigger that driven by test logic. This trigger is used for test the logic
of LastExecution, since trigger can not return value to the client, it is
also not ensured to be able to visit jndi. We use the execution times to
denote if the test runs successfully. If the trigger is triggered 2 times,
the test passes, otherwise the test fails.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNextRunTime
(LastExecution lastExecutionInfo, Date taskScheduledTime) lastExecutionGetIdentityNameTest
(LastExecution lastExecutionInfo, Date taskScheduledTime) lastExecutionGetResultCallableTest
(LastExecution lastExecutionInfo, Date taskScheduledTime) lastExecutionGetResultRunnableTest
(LastExecution lastExecutionInfo, Date taskScheduledTime) lastExecutionGetRunningTimeTest
(LastExecution lastExecutionInfo, Date taskScheduledTime) boolean
skipRun
(LastExecution lastExecutionInfo, Date scheduledRunTime)
-
Field Details
-
RIGHT_COUNT
public static final int RIGHT_COUNT- See Also:
-
WRONG_COUNT
public static final int WRONG_COUNT- See Also:
-
-
Constructor Details
-
LogicDrivenTrigger
-
-
Method Details
-
getNextRunTime
- Specified by:
getNextRunTime
in interfaceTrigger
-
lastExecutionGetIdentityNameTest
public Date lastExecutionGetIdentityNameTest(LastExecution lastExecutionInfo, Date taskScheduledTime) -
lastExecutionGetResultRunnableTest
public Date lastExecutionGetResultRunnableTest(LastExecution lastExecutionInfo, Date taskScheduledTime) -
lastExecutionGetResultCallableTest
public Date lastExecutionGetResultCallableTest(LastExecution lastExecutionInfo, Date taskScheduledTime) -
lastExecutionGetRunningTimeTest
public Date lastExecutionGetRunningTimeTest(LastExecution lastExecutionInfo, Date taskScheduledTime) -
skipRun
-