13 #include "mmprocmod.h" 24 namespace File {
class Path; }
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,
float priority=-1.f,
71 const char*
peekMsg() {
if ( msg_.size() )
return msg_;
return 0; }
77 void setPriority(
float p );
79 void removeJob(
const char*,
int);
84 static bool mkIOParFile(
const File::Path& basefnm,
106 const char* progname,
const File::Path& basefp,
108 const char* rshcomm);
120 CommandString(
const HostData& targetmachine,
123 CommandString& operator=(
const char*);
125 void addFlag(
const char* flag,
const char* value);
126 void addFlag(
const char* flag,
int value);
133 void add(
const char*);
#define mExpClass(module)
Definition: commondefs.h:157
Interface for several file and directory related services.
Definition: file.h:29
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
BufferString cmd_
Definition: jobiomgr.h:135
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
Specifies how to execute a command.
Definition: oscommand.h:31
#define mGlobal(module)
Definition: commondefs.h:160
Encapsulates status message from a running client.
Definition: jobiomgr.h:38
Encapsulates an actual command to execute + the machine to run it on.
Definition: oscommand.h:77
int status
Definition: jobiomgr.h:49
Definition: jobiomgr.h:117
Handles starting & stopping of jobs on client machines. Sets up a separate thread to maintain contact...
Definition: jobiomgr.h:62
File pathname tools.
Definition: filepath.h:35
Queue of objects.
Definition: queue.h:37
const OD::String & string()
Definition: jobiomgr.h:129
const OD::String & getTempBaseNm()
JobIOHandler & iohdlr_
Definition: jobiomgr.h:100
OS::CommandExecPars execpars_
Definition: jobiomgr.h:102
BufferString msg_
Definition: jobiomgr.h:101
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
void fetchMsg(BufferString &bs)
Definition: jobiomgr.h:72
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:29
int descnr
Definition: jobiomgr.h:48
char tag
Definition: jobiomgr.h:47
Mode
Definition: jobiomgr.h:65
Multi Machine Processing.
Definition: mmassetmgr.h:21
Definition: jobiomgr.h:65
const char * peekMsg()
Definition: jobiomgr.h:71
BufferString msg
Definition: jobiomgr.h:53
BufferString hostnm
Definition: jobiomgr.h:52
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
int timestamp
Definition: jobiomgr.h:50
int procid
Definition: jobiomgr.h:51
OpendTect.
Definition: commontypes.h:25
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:136
Host name and aliases.
Definition: hostdata.h:34
#define mClass(module)
Definition: commondefs.h:161
void add(T *item)
item becomes MINE!
Definition: queue.h:43
od_ostream * logstrm_
Definition: jobiomgr.h:103
All information on a job.
Definition: jobinfo.h:22