Package org.voltdb.task
Class SingleProcGenerator
java.lang.Object
org.voltdb.task.SingleProcGenerator
- All Implemented Interfaces:
ActionGenerator,Initializable
Simple implementation of a
ActionGenerator which always returns the same procedure to run with the same
parameters-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method is invoked only once to obtain the first action.voidinitialize(TaskHelper helper, String procedure, Object... procedureParameters) booleanbooleanstatic StringvalidateParameters(TaskHelper helper, String procedure, Object... procedureParameters) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.voltdb.task.Initializable
getDependencies
-
Constructor Details
-
SingleProcGenerator
public SingleProcGenerator()
-
-
Method Details
-
validateParameters
public static String validateParameters(TaskHelper helper, String procedure, Object... procedureParameters) -
initialize
-
restrictProcedureByScope
public boolean restrictProcedureByScope() -
getFirstAction
Description copied from interface:ActionGeneratorThis method is invoked only once to obtain the first action. The first action will be performed after a time interval has elapsed. After the action has been performedcallbackwill be invoked with theresultof this action. The return of the callback will be used as the next action.If this method throws an exception or returns
nullthe task instance will halted and put into an error state.- Specified by:
getFirstActionin interfaceActionGenerator- Returns:
Actionto perform
-
isReadOnly
public boolean isReadOnly()
-