Runs all jobs defined by JobDescProv.
More...
List of all members.
Public Member Functions |
| | JobRunner (JobDescProv *, const char *cmd) |
| | JobDescProv becomes mine. Never pass null.
|
| | ~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 |
| const char * | message () const |
| const char * | 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 () |
| const char * | procDir () const |
Public Attributes |
| Notifier< JobRunner > | preJobStart |
| Notifier< JobRunner > | postJobStart |
| Notifier< JobRunner > | jobFailed |
| Notifier< JobRunner > | msgAvail |
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 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
|
| int | maxjobfailures_ |
| | job related job failrs
|
| int | maxjobhstfails_ |
| | host related job failrs
|
| int | starttimeout_ |
| int | failtimeout_ |
| int | wrapuptimeout_ |
| int | hosttimeout_ |
| int | startwaittime_ |
| | wait B4 next client start
|
Detailed Description
Runs all jobs defined by JobDescProv.
Member Enumeration Documentation
- Enumerator:
| NotReady |
|
| BadHost |
|
| JobStarted |
|
| NoJobs |
|
- Enumerator:
| Started |
|
| NotStarted |
|
| JobBad |
|
| HostBad |
|
Constructor & Destructor Documentation
| JobRunner::JobRunner |
( |
JobDescProv * |
, |
|
|
const char * |
cmd | |
|
) |
| | |
| JobRunner::~JobRunner |
( |
|
) |
|
Member Function Documentation
| bool JobRunner::addHost |
( |
const HostData & |
|
) |
|
| const FilePath& JobRunner::curJobFilePath |
( |
|
) |
[inline] |
| const JobInfo& JobRunner::curJobInfo |
( |
|
) |
const [inline] |
| IOPar& JobRunner::curJobIOPar |
( |
|
) |
[inline] |
| const JobDescProv* JobRunner::descProv |
( |
|
) |
const [inline] |
| int JobRunner::doCycle |
( |
|
) |
[protected] |
| JobInfo* JobRunner::gtJob |
( |
int |
descnr |
) |
[protected] |
| void JobRunner::handleStatusInfo |
( |
StatusInfo & |
|
) |
[protected] |
| bool JobRunner::haveIncomplete |
( |
|
) |
const [protected] |
| bool JobRunner::hostFailed |
( |
int |
|
) |
const |
| JobIOMgr& JobRunner::iomgr |
( |
|
) |
[protected] |
| bool JobRunner::isAssigned |
( |
const JobInfo & |
ji |
) |
const |
| bool JobRunner::isPaused |
( |
int |
|
) |
const |
| const JobInfo& JobRunner::jobInfo |
( |
int |
idx, |
|
|
bool |
failed = false | |
|
) |
| | const [inline] |
| int JobRunner::jobsDone |
( |
|
) |
const |
| int JobRunner::jobsInProgress |
( |
|
) |
const |
| int JobRunner::jobsLeft |
( |
|
) |
const [inline] |
| const char* JobRunner::message |
( |
|
) |
const [virtual] |
| int JobRunner::nextStep |
( |
|
) |
[inline, virtual] |
| od_int64 JobRunner::nrDone |
( |
|
) |
const [inline, virtual] |
| const char* JobRunner::nrDoneMessage |
( |
|
) |
const |
| int JobRunner::nrJobs |
( |
bool |
failed = false |
) |
const [inline] |
| void JobRunner::pauseHost |
( |
int |
, |
|
|
bool |
| |
|
) |
| | |
| const char* JobRunner::procDir |
( |
|
) |
const [inline] |
| void JobRunner::removeHost |
( |
int |
|
) |
|
| void JobRunner::setFirstPort |
( |
int |
n |
) |
[inline] |
| void JobRunner::setNiceNess |
( |
int |
n |
) |
|
| void JobRunner::setProg |
( |
const char * |
s |
) |
[inline] |
| void JobRunner::setRshComm |
( |
const char * |
s |
) |
[inline] |
| bool JobRunner::stopAll |
( |
|
) |
|
| int JobRunner::totalJobs |
( |
|
) |
const [inline] |
| od_int64 JobRunner::totalNr |
( |
|
) |
const [inline, virtual] |
| void JobRunner::updateJobInfo |
( |
|
) |
[protected] |
Member Data Documentation
wait B4 next client start