Interface Task

  • All Known Implementing Classes:
    AbstractTask, Stresstest

    public interface Task
    A simple Task to execute
    Author:
    f.conrads
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addMetaData()
      Will add the Meta data for the start which then can be saved into the triple based storages
      void close()
      Will close the Task and post process everything (e.g.
      void execute()
      Will execute the Task
      void init​(java.lang.String[] ids, java.lang.String dataset, Connection con)
      Will initialize the task
      void sendResults​(java.util.Properties data)
      Will send the results to the result processing.
      void start()
      Will start the Task (sending the rabbitMQ start flag)
    • Method Detail

      • execute

        void execute()
        Will execute the Task
      • start

        void start()
        Will start the Task (sending the rabbitMQ start flag)
      • sendResults

        void sendResults​(java.util.Properties data)
                  throws java.io.IOException
        Will send the results to the result processing.
        Parameters:
        data -
        Throws:
        java.io.IOException
      • close

        void close()
        Will close the Task and post process everything (e.g. send the end flag to the rabbit mq queue)
      • addMetaData

        void addMetaData()
        Will add the Meta data for the start which then can be saved into the triple based storages
      • init

        void init​(java.lang.String[] ids,
                  java.lang.String dataset,
                  Connection con)
        Will initialize the task
        Parameters:
        ids - normally the suiteID, experimentID, taskID
        dataset - the dataset name
        con - the current connection to execute the task against