OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "mmprocmod.h"
15 #include "iopar.h"
16 
17 class HostData;
18 
24 {
25  friend class JobRunner;
26 public:
27 
28  enum State { ToDo, Scheduled, Preparing, Working, WrappingUp,
29  Paused, Completed, JobFailed, HostFailed };
32 
33  JobInfo( int dnr )
34  : descnr_(dnr)
35  , state_(ToDo)
36  , statusmsg_("Scheduled")
37  , infomsg_("")
38  , jobfailures_(0)
39  , hstfailures_(0)
40  , hostdata_(0)
41  , osprocid_(-1)
42  , starttime_(0)
43  , recvtime_(0) {}
44 
45  int descnr_;
49  int nrdone_;
50  int osprocid_;
53 
55 
56 protected:
57 
59  int recvtime_;
60 };
61 
62 
JobInfo::osprocid_
int osprocid_
OS process ID.
Definition: jobinfo.h:50
JobInfo::hostdata_
const HostData * hostdata_
Host currently working on job.
Definition: jobinfo.h:54
HostData
Host name and aliases.
Definition: hostdata.h:35
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
JobInfo::recvtime_
int recvtime_
Definition: jobinfo.h:59
JobInfo::Paused
@ Paused
Definition: jobinfo.h:29
JobInfo::jobfailures_
int jobfailures_
Failures probably caused by job.
Definition: jobinfo.h:47
JobInfo::JobInfo
JobInfo(int dnr)
Definition: jobinfo.h:33
JobRunner::HostFailed
@ HostFailed
Definition: jobrunner.h:163
JobInfo::starttime_
int starttime_
Definition: jobinfo.h:58
JobInfo
All information on a job.
Definition: jobinfo.h:24
JobInfo::state_
State state_
Definition: jobinfo.h:46
JobInfo::hstfailures_
int hstfailures_
Failures probably caused by host.
Definition: jobinfo.h:48
JobInfo::WrappingUp
@ WrappingUp
Definition: jobinfo.h:28
JobInfo::descnr_
int descnr_
JobdescProv's job number.
Definition: jobinfo.h:45
JobInfo::nrdone_
int nrdone_
Definition: jobinfo.h:49
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
JobInfo::infomsg_
BufferString infomsg_
Error msg if failure.
Definition: jobinfo.h:52
JobInfo::State
State
Definition: jobinfo.h:28
iopar.h
JobInfo::statusmsg_
BufferString statusmsg_
Definition: jobinfo.h:51
JobRunner
Runs all jobs defined by JobDescProv.
Definition: jobrunner.h:54
MMProc
Distributed Computing.
Definition: mmassetmgr.h:23

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