OpendTect
6.6
|
Multi-machine socket communicator Handles the communication between a client and the primary host, 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, PortNr_Type, int jobid) | |
mDeprecatedDef | JobCommunic (const char *host, PortNr_Type, int jobid, StreamData &) |
~JobCommunic () | |
void | disConnect () |
uiString | errMsg () |
bool | ok () |
bool | pauseRequested () const |
bool | sendErrMsg (const char *msg) |
hostrelated error messages are more serious. More... | |
bool | sendPID (int pid) |
bool | sendProgress (int p) |
bool | sendState (bool isexit=false) |
void | setState (State s) |
void | setStream (od_ostream &strm) |
void | setTimeBetweenMsgUpdates (int) |
State | state () const |
bool | updateProgress (int p) |
bool | updateState () |
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 |
Protected Member Functions | |
void | alarmHndl (CallBacker *) |
time-out More... | |
bool | sendErrMsg_ (const char *msg) |
bool | sendPID_ (int) |
bool | sendProgress_ (int, bool immediate) |
bool | sendState_ (State, bool isexit, bool immediate) |
Protected Attributes | |
uiString | errmsg_ |
int | jobid_ |
Network::Authority | masterauth_ |
bool | pausereq_ |
Network::Socket * | socket_ |
State | stat_ |
bool | stillok_ |
od_ostream * | strm_ = nullptr |
Private Member Functions | |
BufferString | buildString (char tag, int, const char *msg=0) |
void | checkMasterTimeout () |
void | checkPrimaryHostTimeout () |
void | clearHiddenParams () |
od_ostream * | createLogStream () |
void | directMsg (const char *msg) |
directly to bp.stdout.ostrem or std::cerr. More... | |
void | dumpSystemInfo () |
void | logMsg (bool stat, const char *msg, const char *details) |
Network::Authority & | primaryAuthority () |
bool | sendMsg (char tag, int, const char *msg=0) |
void | sendMsgCB (CallBacker *cb=nullptr) |
void | setErrMsg (const char *) |
bool | updateMsg (char tag, int, const char *msg=0) |
Private Attributes | |
int | failtimeout_ |
int | lastsucces_ |
int | lastupdate_ |
od_ostream * | logstream_ |
int | maxtries_ |
int | min_time_between_msgupdates_ |
int | min_time_between_update_ |
int | nrattempts_ |
int | socktimeout_ |
int | timestamp_ |
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 primary host, from the client's point of view.
<>
enum JobCommunic::State |
JobCommunic::JobCommunic | ( | const char * | host, |
PortNr_Type | , | ||
int | jobid | ||
) |
mDeprecatedDef JobCommunic::JobCommunic | ( | const char * | host, |
PortNr_Type | , | ||
int | jobid, | ||
StreamData & | |||
) |
JobCommunic::~JobCommunic | ( | ) |
|
protected |
time-out
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
directly to bp.stdout.ostrem or std::cerr.
void JobCommunic::disConnect | ( | ) |
|
private |
|
inline |
|
private |
|
inline |
|
inline |
|
private |
|
inline |
hostrelated error messages are more serious.
|
protected |
|
private |
|
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 |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022