OpendTect-6_4
6.4
|
Runs all jobs defined by JobDescProv. More...
Public Member Functions | |
JobRunner (JobDescProv *, const char *cmd) | |
JobDescProv becomes mine. Never pass null. More... | |
~JobRunner () | |
const JobDescProv * | descProv () const |
const ObjectSet< HostNFailInfo > & | hostInfo () const |
bool | addHost (const HostData &) |
void | removeHost (int) |
void | pauseHost (int, bool) |
bool | stopAll () |
bool | hostFailed (int) const |
bool | isPaused (int) const |
bool | isAssigned (const JobInfo &ji) const |
int | nrJobs (bool failed=false) const |
const JobInfo & | jobInfo (int idx, bool failed=false) const |
int | jobsDone () const |
int | jobsInProgress () const |
int | jobsLeft () const |
int | totalJobs () const |
JobInfo * | currentJob (const HostNFailInfo *) const |
int | nextStep () |
od_int64 | nrDone () const |
od_int64 | totalNr () const |
uiString | uiMessage () const |
will be message() again in 7.x More... | |
uiString | nrDoneMessage () const |
void | setFirstPort (int n) |
void | setRshComm (const char *s) |
void | setProg (const char *s) |
void | setNiceNess (int n) |
void | showMachStatus (BufferStringSet &) const |
const FilePath & | getBaseFilePath (JobInfo &, const HostData &) |
const JobInfo & | curJobInfo () const |
IOPar & | curJobIOPar () |
const FilePath & | curJobFilePath () |
int | getLastReceivedTime (JobInfo &) |
const char * | procDir () const |
uiString | errorMsg () const |
Public Member Functions inherited from Executor | |
Executor (const char *nm) | |
virtual | ~Executor () |
virtual int | doStep () |
bool | go (od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0) |
bool | go (od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0) |
virtual bool | execute () |
Public Member Functions inherited from SequentialTask | |
SequentialTask (const char *nm=0) | |
virtual | ~SequentialTask () |
void | setProgressMeter (ProgressMeter *) |
Must be called before execute() More... | |
ProgressMeter * | progressMeter () |
const ProgressMeter * | progressMeter () const |
bool | execute () |
Public Member Functions inherited from Task | |
virtual | ~Task () |
virtual uiString | uiNrDoneText () const |
will be nrDoneText() in 7.x More... | |
virtual void | enableWorkControl (bool=true) |
Must be called before execute() More... | |
bool | workControlEnabled () const |
virtual void | controlWork (Control) |
virtual Control | getState () const |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=0) | |
NamedObject (const NamedObject *linkedto) | |
NamedObject (const NamedObject &) | |
virtual | ~NamedObject () |
void | setLinkedTo (NamedObject *) |
bool | operator== (const NamedObject &oth) const |
virtual const OD::String & | name () const |
virtual const OD::String & | annotName () const |
virtual void | setName (const char *) |
void | setCleanName (const char *) |
cleans string first More... | |
void | deleteNotify (const CallBack &) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Public Attributes | |
Notifier< JobRunner > | preJobStart |
Notifier< JobRunner > | postJobStart |
Notifier< JobRunner > | jobFailed |
Notifier< JobRunner > | msgAvail |
Public Attributes inherited from Executor | |
Notifier< Executor > | prestep |
Notifier< Executor > | poststep |
Only when MoreToDo will be returned. More... | |
Protected Types | |
enum | StartRes { Started, NotStarted, JobBad, HostBad } |
enum | AssignStat { NotReady, BadHost, JobStarted, NoJobs } |
enum | HostStat { OK = 0, SomeFailed = 1, HostFailed = 2 } |
Protected Member Functions | |
JobIOMgr & | iomgr () |
int | doCycle () |
HostNFailInfo * | hostNFailInfoFor (const HostData *) const |
void | updateJobInfo () |
void | handleStatusInfo (StatusInfo &) |
JobInfo * | gtJob (int descnr) |
void | failedJob (JobInfo &, JobInfo::State) |
StartRes | startJob (JobInfo &ji, HostNFailInfo &jhi) |
bool | runJob (JobInfo &, const HostData &) |
AssignStat | assignJob (HostNFailInfo &) |
bool | haveIncomplete () const |
HostStat | hostStatus (const HostNFailInfo *) const |
void | handleExitStatus (JobInfo &) |
Protected Member Functions inherited from Executor | |
virtual bool | goImpl (od_ostream *, bool, bool, int) |
Protected Member Functions inherited from Task | |
Task (const char *nm=0) | |
virtual bool | shouldContinue () |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
JobDescProv * | descprov_ |
ObjectSet< JobInfo > | jobinfos_ |
ObjectSet< HostNFailInfo > | hostinfo_ |
ObjectSet< JobInfo > | failedjobs_ |
BufferString | prog_ |
BufferString | procdir_ |
FilePath & | curjobfp_ |
IOPar & | curjobiop_ |
JobInfo * | curjobinfo_ |
JobIOMgr * | iomgr_ |
int | niceval_ |
int | firstport_ |
BufferString | rshcomm_ |
int | maxhostfailures_ |
host failrs B4 host bad More... | |
int | maxjobfailures_ |
job related job failrs More... | |
int | maxjobhstfails_ |
host related job failrs More... | |
int | starttimeout_ |
int | failtimeout_ |
int | wrapuptimeout_ |
int | hosttimeout_ |
int | startwaittime_ |
wait B4 next client start More... | |
uiString | errmsg_ |
Protected Attributes inherited from SequentialTask | |
ProgressMeter * | progressmeter_ |
int | lastupdate_ |
Protected Attributes inherited from Task | |
Control | control_ |
Threads::ConditionVar * | workcontrolcondvar_ |
Protected Attributes inherited from NamedObject | |
BufferString * | name_ |
NamedObject * | linkedto_ |
CallBackSet * | delnotify_ |
Private Member Functions | |
mODTextTranslationClass (JobRunner) | |
Additional Inherited Members | |
Public Types inherited from Task | |
enum | Control { Run, Pause, Stop } |
Static Public Member Functions inherited from SequentialTask | |
static int | ErrorOccurred () |
static int | Finished () |
static int | MoreToDo () |
static int | WarningAvailable () |
Static Public Member Functions inherited from Task | |
static uiString | stdNrDoneText () |
static uiString | uiStdNrDoneText () |
Runs all jobs defined by JobDescProv.
|
protected |
|
protected |
|
protected |
JobRunner::JobRunner | ( | JobDescProv * | , |
const char * | cmd | ||
) |
JobDescProv becomes mine. Never pass null.
JobRunner::~JobRunner | ( | ) |
bool JobRunner::addHost | ( | const HostData & | ) |
|
protected |
|
inline |
|
inline |
|
inline |
JobInfo* JobRunner::currentJob | ( | const HostNFailInfo * | ) | const |
|
inline |
|
protected |
uiString JobRunner::errorMsg | ( | ) | const |
|
protected |
int JobRunner::getLastReceivedTime | ( | JobInfo & | ) |
|
protected |
|
protected |
|
protected |
|
protected |
bool JobRunner::hostFailed | ( | int | ) | const |
|
inline |
|
protected |
|
protected |
|
protected |
bool JobRunner::isAssigned | ( | const JobInfo & | ji | ) | const |
bool JobRunner::isPaused | ( | int | ) | const |
|
inline |
int JobRunner::jobsDone | ( | ) | const |
int JobRunner::jobsInProgress | ( | ) | const |
|
inline |
|
private |
|
inlinevirtual |
MoreToDo() | Not finished. Call me again. |
Finished() | Nothing more to do. |
ErrorOccurred() | Something went wrong. |
Implements SequentialTask.
|
inlinevirtual |
Reimplemented from Task.
uiString JobRunner::nrDoneMessage | ( | ) | const |
|
inline |
void JobRunner::pauseHost | ( | int | , |
bool | |||
) |
|
inline |
void JobRunner::removeHost | ( | int | ) |
|
inline |
void JobRunner::setNiceNess | ( | int | n | ) |
|
inline |
|
inline |
void JobRunner::showMachStatus | ( | BufferStringSet & | ) | const |
|
protected |
bool JobRunner::stopAll | ( | ) |
|
inline |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
host failrs B4 host bad
|
protected |
job related job failrs
|
protected |
host related job failrs
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
wait B4 next client start
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019