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

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