Interface Task

  • All Known Implementing Classes:
    AbstractTask

    public interface Task
    Task interface to be implemented by all tasks.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute()
      This method will be called when the task is started, the task logic should go here.
      void init()
      This method is called once after properties are set in the task, and right before the task is executed.
      void setProperties​(Map<String,​String> properties)
      This method is called initially to set the task properties.
    • Method Detail

      • setProperties

        void setProperties​(Map<String,​String> properties)
        This method is called initially to set the task properties.
        Parameters:
        properties - The task properties
      • init

        void init()
        This method is called once after properties are set in the task, and right before the task is executed.
      • execute

        void execute()
        This method will be called when the task is started, the task logic should go here.