Class SingleProcGenerator

java.lang.Object
org.voltdb.task.SingleProcGenerator
All Implemented Interfaces:
ActionGenerator, Initializable

public final class SingleProcGenerator extends Object implements ActionGenerator
Simple implementation of a ActionGenerator which always returns the same procedure to run with the same parameters
  • Constructor Details

    • SingleProcGenerator

      public SingleProcGenerator()
  • Method Details

    • validateParameters

      public static String validateParameters(TaskHelper helper, String procedure, Object... procedureParameters)
    • initialize

      public void initialize(TaskHelper helper, String procedure, Object... procedureParameters)
    • restrictProcedureByScope

      public boolean restrictProcedureByScope()
    • getFirstAction

      public Action getFirstAction()
      Description copied from interface: ActionGenerator
      This 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 performed callback will be invoked with the result of this action. The return of the callback will be used as the next action.

      If this method throws an exception or returns null the task instance will halted and put into an error state.

      Specified by:
      getFirstAction in interface ActionGenerator
      Returns:
      Action to perform
    • isReadOnly

      public boolean isReadOnly()