15 #include "mmprocmod.h" 25 namespace OS {
class MachineCommand; }
42 const char* mg,
const char* hostname,
44 : tag(tg), descnr(desc), status(stat), msg(mg)
45 , hostnm(hostname), timestamp(time), procid(pid) {}
67 JobIOMgr(
int firstport=19345,
int niceval=19);
70 const char*
peekMsg() {
if ( msg_.size() )
return msg_;
return 0; }
78 void removeJob(
const char*,
int);
83 static bool mkIOParFile(
const FilePath& basefnm,
106 const char* progname,
const FilePath& basefp,
108 const char* rshcomm);
110 const char* progname,
const FilePath& basefp,
112 const char* rshcomm);
125 CommandString(
const HostData& targetmachine,
128 CommandString& operator=(
const char*);
130 void addFlag(
const char* flag,
const char* value);
131 void addFlag(
const char* flag,
int value);
138 void add(
const char*);
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
BufferString cmd_
Definition: jobiomgr.h:140
#define mGlobal(module)
Definition: commondefs.h:163
Encapsulates status message from a running client.
Definition: jobiomgr.h:38
Definition: oscommand.h:24
int & MMJob_getTempFileNr()
Encapsulates an actual command to execute + the machine to run it on.
Definition: oscommand.h:80
int status
Definition: jobiomgr.h:49
Definition: jobiomgr.h:122
Handles starting & stopping of jobs on client machines. Sets up a separate thread to maintain contact...
Definition: jobiomgr.h:62
Queue of objects.
Definition: queue.h:39
const OD::String & string()
Definition: jobiomgr.h:134
const OD::String & getTempBaseNm()
int niceval_
Definition: jobiomgr.h:101
JobIOHandler & iohdlr_
Definition: jobiomgr.h:99
BufferString msg_
Definition: jobiomgr.h:100
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
void fetchMsg(BufferString &bs)
Definition: jobiomgr.h:71
void setNiceNess(int n)
Definition: jobiomgr.h:76
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
int descnr
Definition: jobiomgr.h:48
char tag
Definition: jobiomgr.h:47
Mode
Definition: jobiomgr.h:65
Multi Machine Processing.
Definition: mmassetmgr.h:23
Definition: jobiomgr.h:65
const char * peekMsg()
Definition: jobiomgr.h:70
BufferString msg
Definition: jobiomgr.h:53
BufferString hostnm
Definition: jobiomgr.h:52
File pathname tools.
Definition: filepath.h:34
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
int timestamp
Definition: jobiomgr.h:50
int procid
Definition: jobiomgr.h:51
OpendTect.
Definition: commontypes.h:29
StatusInfo(char tg, int desc, int stat, int pid, const char *mg, const char *hostname, int time)
Definition: jobiomgr.h:41
const HostData & hstdata_
Definition: jobiomgr.h:141
Host name and aliases.
Definition: hostdata.h:36
#define mClass(module)
Definition: commondefs.h:164
All information on a job.
Definition: jobinfo.h:24