OpendTect-6_4  6.4
jobinfo.h
Go to the documentation of this file.
1 #ifndef jobinfo_h
2 #define jobinfo_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H.Bril
9  Date: Oct 2004
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "mmprocmod.h"
16 #include "iopar.h"
17 
18 class HostData;
19 
25 {
26  friend class JobRunner;
27 public:
28 
29  enum State { ToDo, Scheduled, Preparing, Working, WrappingUp,
30  Paused, Completed, JobFailed, HostFailed };
33 
34  JobInfo( int dnr )
35  : descnr_(dnr)
36  , state_(ToDo)
37  , statusmsg_("Scheduled")
38  , infomsg_("")
39  , jobfailures_(0)
40  , hstfailures_(0)
41  , hostdata_(0)
42  , osprocid_(-1)
43  , starttime_(0)
44  , recvtime_(0) {}
45 
46  int descnr_;
50  int nrdone_;
51  int osprocid_;
54 
56 
57 protected:
58 
60  int recvtime_;
61 };
62 
63 
64 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BufferString statusmsg_
Definition: jobinfo.h:52
BufferString infomsg_
Error msg if failure.
Definition: jobinfo.h:53
int hstfailures_
Failures probably caused by host.
Definition: jobinfo.h:49
Definition: jobinfo.h:30
int starttime_
Definition: jobinfo.h:59
State state_
Definition: jobinfo.h:47
int osprocid_
OS process ID.
Definition: jobinfo.h:51
Definition: jobinfo.h:29
int descnr_
JobdescProv's job number.
Definition: jobinfo.h:46
Definition: jobrunner.h:164
const HostData * hostdata_
Host currently working on job.
Definition: jobinfo.h:55
Multi Machine Processing.
Definition: mmassetmgr.h:23
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Runs all jobs defined by JobDescProv.
Definition: jobrunner.h:54
JobInfo(int dnr)
Definition: jobinfo.h:34
Host name and aliases.
Definition: hostdata.h:36
int nrdone_
Definition: jobinfo.h:50
int jobfailures_
Failures probably caused by job.
Definition: jobinfo.h:48
All information on a job.
Definition: jobinfo.h:24
State
Definition: jobinfo.h:29
int recvtime_
Definition: jobinfo.h:60

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019