Package org.aksw.iguana.cc.tasks
Class AbstractTask
- java.lang.Object
-
- org.aksw.iguana.cc.tasks.AbstractTask
-
- All Implemented Interfaces:
Task
- Direct Known Subclasses:
Stresstest
public abstract class AbstractTask extends java.lang.Object implements Task
Abstract Task to help create a Task. Will do the background work- Author:
- f.conrads
-
-
Constructor Summary
Constructors Constructor Description AbstractTask()Creates an AbstractTask with the TaskID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetaData()Will add the Meta data for the start which then can be saved into the triple based storagesvoidclose()Will close the Task and post process everything (e.g.voidinit(java.lang.String[] ids, java.lang.String dataset, Connection con)Will initialize the taskvoidsendResults(java.util.Properties data)Will send the results to the result processing.voidstart()Will start the Task (sending the rabbitMQ start flag)
-
-
-
Method Detail
-
init
public void init(java.lang.String[] ids, java.lang.String dataset, Connection con)Description copied from interface:TaskWill initialize the task
-
start
public void start()
Description copied from interface:TaskWill start the Task (sending the rabbitMQ start flag)
-
sendResults
public void sendResults(java.util.Properties data) throws java.io.IOExceptionDescription copied from interface:TaskWill send the results to the result processing.- Specified by:
sendResultsin interfaceTask- Throws:
java.io.IOException
-
close
public void close()
Description copied from interface:TaskWill close the Task and post process everything (e.g. send the end flag to the rabbit mq queue)
-
addMetaData
public void addMetaData()
Description copied from interface:TaskWill add the Meta data for the start which then can be saved into the triple based storages- Specified by:
addMetaDatain interfaceTask
-
-