OpendTect-6_4
6.4
|
Base class (with factory) for methods to kick-off an OD batch job. More...
Public Member Functions | |
JobDispatcher () | |
virtual | ~JobDispatcher () |
virtual uiString | description () const =0 |
virtual bool | isSuitedFor (const char *prognm) const =0 |
virtual bool | canHandle (const JobSpec &) const |
virtual bool | canResume (const JobSpec &) const |
bool | go (const JobSpec &) |
uiString | errMsg () const |
mDefineFactoryInClass (JobDispatcher, factory) | |
void | setToDefParFileName () |
void | setJobName (const char *) |
BufferString | jobName () const |
Static Public Member Functions | |
static void | getDefParFilename (const char *prognm, BufferString &) |
static void | getJobNames (BufferStringSet &) |
static BufferString | getJobName (const char *) |
static void | setUserWantsResume (IOPar &, bool) |
static bool | userWantsResume (const IOPar &) |
Public Attributes | |
JobSpec | jobspec_ |
BufferString | parfnm_ |
Protected Member Functions | |
virtual bool | init () |
virtual bool | launch ()=0 |
bool | writeParFile () const |
Protected Attributes | |
uiString | errmsg_ |
Private Member Functions | |
mODTextTranslationClass (JobDispatcher) | |
Base class (with factory) for methods to kick-off an OD batch job.
Subclasses are expected to be ranging from simple single-prcess starters to elaborate cluster-based job splitting monsters.
isSuitedFor() determines whether a certain type of dispatcher can handle any job for this program. canHandle() decides on the whole JobSpec. If the job creates intermediate results, then it may be able to resume after the user has stopped. In that case, canResume() can return true.
Every job will sooner or later be written to a par file. We want to have user select job names, not par file names. Thus, there are both job names and the actual parameter file full path. Par files are written to, and expected to be in the 'Proc' directory. If that is the case, than job name <-> par file goes both ways.
|
inline |
|
inlinevirtual |
|
virtual |
Reimplemented in Batch::MMJobDispatcher, and Batch::ClusterJobDispatcher.
|
inlinevirtual |
Reimplemented in Batch::MMJobDispatcher, and Batch::ClusterJobDispatcher.
|
pure virtual |
Implemented in Batch::SingleJobDispatcher, Batch::MMJobDispatcher, and Batch::ClusterJobDispatcher.
|
inline |
|
static |
|
static |
|
static |
bool Batch::JobDispatcher::go | ( | const JobSpec & | ) |
|
inlineprotectedvirtual |
Reimplemented in Batch::SingleJobDispatcher, and Batch::MMJobDispatcher.
|
pure virtual |
Implemented in Batch::SingleJobDispatcher, Batch::MMJobDispatcher, and Batch::ClusterJobDispatcher.
|
inline |
|
protectedpure virtual |
Batch::JobDispatcher::mDefineFactoryInClass | ( | JobDispatcher | , |
factory | |||
) |
|
private |
void Batch::JobDispatcher::setJobName | ( | const char * | ) |
|
inline |
|
static |
|
static |
|
protected |
|
mutableprotected |
JobSpec Batch::JobDispatcher::jobspec_ |
BufferString Batch::JobDispatcher::parfnm_ |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019