![]() |
OpendTect
6.3
|
Runs all jobs defined by JobDescProv. More...
Public Member Functions | |
| JobRunner (JobDescProv *, const char *cmd, od_ostream *logstrm=0) | |
| 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 | message () const |
| uiString | nrDoneText () const |
| void | setFirstPort (int n) |
| void | setRshComm (const char *s) |
| void | setProg (const char *s) |
| void | setPriority (float) |
| void | showMachStatus (BufferStringSet &) const |
| const File::Path & | getBaseFilePath (JobInfo &, const HostData &) |
| const JobInfo & | curJobInfo () const |
| IOPar & | curJobIOPar () |
| const File::Path & | curJobFilePath () |
| 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 uiRetVal | errorWithDetails () const |
| 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 NamedCallBacker | |
| NamedCallBacker (const char *nm=0) | |
| NamedCallBacker (const NamedCallBacker &) | |
| bool | operator== (const NamedCallBacker &oth) const |
| bool | operator== (const NamedObject &oth) const |
| virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
| bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
| void | detachCB (const NotifierAccess &, const CallBack &) const |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
| virtual bool | isCapsule () const |
| void | stopReceivingNotifications () const |
Public Member Functions inherited from NamedObject | |
| NamedObject (const char *nm=0) | |
| NamedObject (const NamedObject &oth) | |
| virtual | ~NamedObject () |
| NamedObject & | operator= (const NamedObject &) |
| bool | operator== (const NamedObject &oth) const |
| virtual const OD::String & | name () const |
| virtual BufferString | getName () const |
| virtual void | setName (const char *nm) |
| bool | getNameFromPar (const IOPar &) |
| void | putNameInPar (IOPar &) const |
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 |
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 NamedCallBacker | |
| void | sendDelNotif () const |
Protected Member Functions inherited from CallBacker | |
| void | detachAllNotifiers () const |
| Call from the destructor of your inherited object. More... | |
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 | stdMessage () |
| static uiString | stdNrDoneText () |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Runs all jobs defined by JobDescProv.
|
protected |
|
protected |
|
protected |
| JobRunner::JobRunner | ( | JobDescProv * | , |
| const char * | cmd, | ||
| od_ostream * | logstrm = 0 |
||
| ) |
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 |
| const File::Path& JobRunner::getBaseFilePath | ( | JobInfo & | , |
| const HostData & | |||
| ) |
|
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 |
Implements Executor.
|
inline |
| void JobRunner::pauseHost | ( | int | , |
| bool | |||
| ) |
|
inline |
| void JobRunner::removeHost | ( | int | ) |
|
inline |
| void JobRunner::setPriority | ( | float | ) |
|
inline |
|
inline |
| void JobRunner::showMachStatus | ( | BufferStringSet & | ) | const |
|
protected |
| bool JobRunner::stopAll | ( | ) |
|
inline |
|
protected |
|
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. 2017