 |
OpendTect
6.6
|
Go to the documentation of this file.
14 #include "mmprocmod.h"
41 const char* mg,
const char* hostname,
43 : tag(tg), descnr(desc), status(stat), msg(mg)
44 , hostnm(hostname), timestamp(time), procid(pid) {}
69 const char*
peekMsg() {
if ( msg_.size() )
return msg_;
return 0; }
106 const char* progname,
const FilePath& basefp,
108 const char* rshcomm);
133 void addFlag(
const char* flag,
const char* value);
int procid
Definition: jobiomgr.h:50
BufferString msg
Definition: jobiomgr.h:52
static BufferString mkRexecCmd(const char *prognm, const HostData &machine, const HostData &localhost)
CommandString & operator=(const char *)
JobIOHandler & iohdlr_
Definition: jobiomgr.h:98
#define mGlobal(module)
Definition: commondefs.h:180
JobIOMgr(PortNr_Type firstport=19345, int niceval=19)
StatusInfo(char tg, int desc, int stat, int pid, const char *mg, const char *hostname, int time)
Definition: jobiomgr.h:40
bool mkIOParFile(FilePath &, const FilePath &basefnm, const HostData &, const IOPar &)
Host name and aliases.
Definition: hostdata.h:35
const OD::String & string()
Definition: jobiomgr.h:137
#define mExpClass(module)
Definition: commondefs.h:177
void setNiceNess(int n)
Definition: jobiomgr.h:75
File pathname tools.
Definition: filepath.h:34
BufferString msg_
Definition: jobiomgr.h:99
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
void fetchMsg(BufferString &bs)
Definition: jobiomgr.h:70
int & MMJob_getTempFileNr()
Mode
Definition: jobiomgr.h:64
const char * peekMsg()
Definition: jobiomgr.h:69
void mkCommand(OS::MachineCommand &, const HostData &, const char *progname, const FilePath &basefp, const FilePath &iopfp, const JobInfo &, const char *rshcomm)
Specifies how to execute a command.
Definition: oscommand.h:36
BufferString hostnm
Definition: jobiomgr.h:51
Encapsulates status message from a running client.
Definition: jobiomgr.h:38
All information on a job.
Definition: jobinfo.h:24
#define mClass(module)
Definition: commondefs.h:181
int status
Definition: jobiomgr.h:48
void setRexecCmd(const char *prognm, const HostData &machine, const HostData &localhost, OS::MachineCommand &) const
Handles starting & stopping of jobs on client machines. Sets up a separate thread to maintain contact...
Definition: jobiomgr.h:62
void reqModeForJob(const JobInfo &, Mode)
void addFlag(const char *flag, int value)
const OD::String & getTempBaseNm()
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
OS::CommandExecPars execpars_
Definition: jobiomgr.h:101
Definition: jobiomgr.h:126
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
CommandString(const HostData &targetmachine, const char *init=0)
char tag
Definition: jobiomgr.h:46
Encapsulates an actual command to execute + the machine to run it on.
Definition: oscommand.h:94
@ Work
Definition: jobiomgr.h:64
void removeJob(const char *, int)
Queue of objects.
Definition: queue.h:39
bool startProg(const char *, IOPar &, const FilePath &, const JobInfo &, const char *)
void addFilePath(const FilePath &)
ObjQueue< StatusInfo > & statusQueue()
int descnr
Definition: jobiomgr.h:47
Distributed Computing.
Definition: mmassetmgr.h:23
void addFlag(const char *flag, const char *value)
const HostData & hstdata_
Definition: jobiomgr.h:144
static bool mkIOParFile(const FilePath &basefnm, const HostData &, const IOPar &, FilePath &, BufferString &msg)
unsigned short PortNr_Type
Definition: commontypes.h:37
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
BufferString cmd_
Definition: jobiomgr.h:143
int niceval_
Definition: jobiomgr.h:100
int timestamp
Definition: jobiomgr.h:49
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021