class JobExecuterTask

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::make::JobExecuterTask Class Reference

#include <JobExecuterTask.h>

Inheritance diagram for acdk::make::JobExecuterTask:

acdk::make::AbstractTask acdk::lang::Object acdk::make::Task acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Runs a collection of task in threads.

See also:

Public Member Functions

 JobExecuterTask (int threadNum, bool breakOnFail=true)
void addTask (IN(RJobTask) jt)
void addTask (IN(RTask) task, IN(RString) cmd, IN(RProps) props)
virtual bool execute (IN(RString) exec, IN(RProps) props)
 Public interface to execute a task.

bool breakOnFail ()

Private Attributes

RThreadPool _pool
int _threadNum
bool _breakOnFail

Constructor & Destructor Documentation

acdk::make::JobExecuterTask::JobExecuterTask int  threadNum,
bool  breakOnFail = true

Member Function Documentation

void acdk::make::JobExecuterTask::addTask IN(RTask task,
IN(RString cmd,
IN(RProps props

void acdk::make::JobExecuterTask::addTask IN(RJobTask jt  )  [inline]

bool acdk::make::JobExecuterTask::breakOnFail  )  [inline]

virtual bool acdk::make::JobExecuterTask::execute IN(RString exec,
IN(RProps props

Public interface to execute a task.

Implementation Task should implement execute.

exec string identifies what to do
props current properties

Reimplemented from acdk::make::AbstractTask.

Member Data Documentation

bool acdk::make::JobExecuterTask::_breakOnFail [private]

RThreadPool acdk::make::JobExecuterTask::_pool [private]

int acdk::make::JobExecuterTask::_threadNum [private]