OpendTect
7.0
|
Handles starting & stopping of jobs on client machines. Sets up a separate thread to maintain contact with client. More...
Public Types | |
enum | Mode { Work , Pause , Stop } |
Public Member Functions | |
JobIOMgr (PortNr_Type firstport=19345, int niceval=19) | |
virtual | ~JobIOMgr () |
Network::Authority | authority () const |
void | fetchMsg (BufferString &bs) |
bool | isReady () const |
const char * | peekMsg () |
void | removeJob (const char *, int) |
void | reqModeForJob (const JobInfo &, Mode) |
void | setNiceNess (int n) |
bool | startProg (const char *, IOPar &, const FilePath &, const JobInfo &, const char *) |
ObjQueue< StatusInfo > & | statusQueue () |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
void | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
virtual CallBacker * | trueCaller () |
Static Public Member Functions | |
static bool | mkIOParFile (const FilePath &basefnm, const HostData &, const IOPar &, FilePath &, BufferString &msg) |
static BufferString | mkRexecCmd (const char *prognm, const HostData &machine, const HostData &localhost) |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Protected Member Functions | |
void | mkCommand (OS::MachineCommand &, const HostData &, const char *progname, const FilePath &basefp, const FilePath &iopfp, const JobInfo &, const char *rshcomm) |
bool | mkIOParFile (FilePath &, const FilePath &basefnm, const HostData &, const IOPar &) |
Protected Attributes | |
OS::CommandExecPars | execpars_ |
JobIOHandler & | iohdlr_ |
BufferString | msg_ |
int | niceval_ |
Private Member Functions | |
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 with client.
<>
enum JobIOMgr::Mode |
JobIOMgr::JobIOMgr | ( | PortNr_Type | firstport = 19345 , |
int | niceval = 19 |
||
) |
|
virtual |
Network::Authority JobIOMgr::authority | ( | ) | const |
|
inline |
bool JobIOMgr::isReady | ( | ) | const |
|
protected |
|
static |
|
protected |
|
static |
Sets up the command to be executed with GetScriptDir()/exec_prog script. This latter ensures all the environment is restored on the remote machine ( rsh/ssh do NOT forward environment variables such as LD_LIBRARY_PATH ).
|
inline |
void JobIOMgr::removeJob | ( | const char * | , |
int | |||
) |
|
inline |
|
private |
bool JobIOMgr::startProg | ( | const char * | , |
IOPar & | , | ||
const FilePath & | , | ||
const JobInfo & | , | ||
const char * | |||
) |
ObjQueue<StatusInfo>& JobIOMgr::statusQueue | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024