![]() |
OpendTect
6.3
|
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 () |
| void | setProgressDetail (const char *str) |
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 | detachCB (const NotifierAccess &, const CallBack &) const |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
| virtual bool | isCapsule () const |
| void | stopReceivingNotifications () const |
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 () const |
| 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_ |
| BufferString | progressdetail_ |
| 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) |
| 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_ |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
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 |
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 |
|
inline |
| void JobCommunic::setTimeBetweenMsgUpdates | ( | int | ) |
|
inline |
|
private |
|
inline |
|
inline |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017