Package | Description |
---|---|
org.voltdb.task |
Provides classes and interfaces for supporting task creation for execution of procedures and custom java on a
schedule
|
Modifier and Type | Method and Description |
---|---|
static Action |
Action.callback(java.util.function.Function<ActionResult,Action> callback)
Create an
Action which causes the callback to be invoked. |
static Action |
Action.error(java.lang.String statusMessage)
Create an
Action which indicates that an unrecoverable error has occurred and the scheduler must exit. |
static Action |
Action.exit(java.lang.String statusMessage)
Create an
Action which indicates that the scheduler has reached the end of its life cycle gracefully |
Action |
ActionGenerator.getFirstAction()
This method is invoked only once to obtain the first action.
|
static Action |
Action.procedureCall(java.util.function.Function<ActionResult,Action> callback,
java.lang.String procedure,
java.lang.Object... procedureParameters)
Create an
Action which executes a procedure with given parameters |
Action |
Action.setStatusMessage(java.lang.String statusMessage)
Set the optional status massage which will be reported in the statistics for a task and if this is an
ActionType.ERROR or ActionType.EXIT action then it will also be logged. |
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<ActionResult,Action> |
Action.getCallback() |
Modifier and Type | Method and Description |
---|---|
static ScheduledAction |
ScheduledAction.of(Action action)
Create a
ScheduledAction from a Action which is of type stop. |
static ScheduledAction |
ScheduledAction.of(Interval interval,
Action action)
|
Modifier and Type | Method and Description |
---|---|
static Action |
Action.callback(java.util.function.Function<ActionResult,Action> callback)
Create an
Action which causes the callback to be invoked. |
static Action |
Action.procedureCall(java.util.function.Function<ActionResult,Action> callback,
java.lang.String procedure,
java.lang.Object... procedureParameters)
Create an
Action which executes a procedure with given parameters |