OpendTect-6_4
6.4
|
Multi-machine socket communicator Handles the communication between a client and the master, from the client's point of view. More...
Public Types | |
enum | State { Undef, Working, WrapUp, Finished, AllDone, Paused, JobError, HostError, Killed, Timeout } |
Public Member Functions | |
JobCommunic (const char *host, int port, int jobid, StreamData &) | |
~JobCommunic () | |
bool | ok () |
uiString | errMsg () |
State | state () const |
void | setState (State s) |
bool | updateState () |
bool | updateProgress (int p) |
void | setTimeBetweenMsgUpdates (int) |
bool | sendState (bool isexit=false) |
bool | sendProgress (int p) |
bool | sendErrMsg (const char *msg) |
hostrelated error messages are more serious. More... | |
bool | sendPID (int pid) |
bool | pauseRequested () const |
void | disConnect () |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Protected Member Functions | |
bool | sendState_ (State, bool isexit, bool immediate) |
bool | sendProgress_ (int, bool immediate) |
bool | sendPID_ (int) |
bool | sendErrMsg_ (const char *msg) |
void | alarmHndl (CallBacker *) |
time-out More... | |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
BufferString | masterhost_ |
int | masterport_ |
bool | stillok_ |
State | stat_ |
uiString | errmsg_ |
int | jobid_ |
bool | pausereq_ |
StreamData & | sdout_ |
Network::Socket * | socket_ |
Private Member Functions | |
mODTextTranslationClass (JobCommunic) | |
bool | updateMsg (char tag, int, const char *msg=0) |
bool | sendMsg (char tag, int, const char *msg=0) |
BufferString | buildString (char tag, int, const char *msg=0) |
void | directMsg (const char *msg) |
directly to bp.stdout.ostrem or std::cerr. More... | |
void | setErrMsg (const char *) |
void | checkMasterTimeout () |
void | logMsg (bool stat, const char *msg, const char *details) |
od_ostream * | createLogStream () |
void | dumpSystemInfo () |
Private Attributes | |
int | timestamp_ |
int | nrattempts_ |
int | maxtries_ |
int | socktimeout_ |
int | failtimeout_ |
int | min_time_between_update_ |
int | lastsucces_ |
int | min_time_between_msgupdates_ |
int | lastupdate_ |
od_ostream * | logstream_ |
Multi-machine socket communicator Handles the communication between a client and the master, from the client's point of view.
enum JobCommunic::State |
JobCommunic::JobCommunic | ( | const char * | host, |
int | port, | ||
int | jobid, | ||
StreamData & | |||
) |
JobCommunic::~JobCommunic | ( | ) |
|
protected |
time-out
|
private |
|
private |
|
private |
|
private |
directly to bp.stdout.ostrem or std::cerr.
void JobCommunic::disConnect | ( | ) |
|
private |
|
inline |
|
private |
|
private |
|
inline |
|
inline |
|
inline |
hostrelated error messages are more serious.
|
protected |
|
private |
|
inline |
|
protected |
|
inline |
|
protected |
|
inline |
|
protected |
|
private |
|
inline |
void JobCommunic::setTimeBetweenMsgUpdates | ( | int | ) |
|
inline |
|
private |
|
inline |
|
inline |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019