OpendTect
7.0
|
Multi-machine socket communicator Handles the communication between a client and the primary host, from the client's point of view. More...
Classes | |
struct | sendData |
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 *) |
hostrelated error messages are more serious. More... | |
bool | sendPID (PID_Type) |
bool | sendProgress (int) |
bool | sendState (bool isexit=false) |
void | setState (State s) |
void | setStream (od_ostream &strm) |
void | setTimeBetweenMsgUpdates (int) |
State | state () const |
bool | updateProgress (int) |
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 |
virtual CallBacker * | trueCaller () |
Protected Member Functions | |
void | alarmHndl (CallBacker *) |
time-out More... | |
bool | sendErrMsg_ (const char *msg) |
bool | sendPID_ (PID_Type) |
bool | sendProgress_ (int, bool immediate) |
bool | sendState_ (State, bool isexit, bool immediate) |
Protected Attributes | |
uiString | errmsg_ |
int | jobid_ |
Network::Authority | masterauth_ |
bool | pausereq_ = false |
Network::Socket * | socket_ |
State | stat_ |
bool | stillok_ = true |
od_ostream * | strm_ = nullptr |
Private Member Functions | |
BufferString | buildString (char tag, int, const char *msg=nullptr) |
void | checkPrimaryHostTimeout () |
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=nullptr) |
void | sendMsgCB (CallBacker *cb=nullptr) |
void | setErrMsg (const char *) |
bool | updateMsg (char tag, int, const char *msg=nullptr) |
Private Attributes | |
int | failtimeout_ |
int | lastsucces_ |
int | lastupdate_ |
Threads::Lock | lock_ |
od_ostream * | logstream_ |
int | maxtries_ |
int | min_time_between_msgupdates_ |
int | min_time_between_update_ |
int | nrattempts_ = 0 |
Threads::Lock | sendmsglock_ |
bool | sendret_ = false |
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 |
directly to bp.stdout.ostrem or std::cerr.
void JobCommunic::disConnect | ( | ) |
|
private |
|
inline |
|
private |
|
inline |
|
inline |
|
private |
bool JobCommunic::sendErrMsg | ( | const char * | ) |
hostrelated error messages are more serious.
|
protected |
|
private |
|
private |
bool JobCommunic::sendPID | ( | PID_Type | ) |
|
protected |
bool JobCommunic::sendProgress | ( | int | ) |
|
protected |
bool JobCommunic::sendState | ( | bool | isexit = false | ) |
|
protected |
|
private |
|
inline |
|
inline |
void JobCommunic::setTimeBetweenMsgUpdates | ( | int | ) |
|
inline |
|
private |
bool JobCommunic::updateProgress | ( | int | ) |
bool JobCommunic::updateState | ( | ) |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024