![]() |
OpendTect
7.0
|
Service manager for all OpendTect batch programs. Allows informing od_main on the program of the batch program, and getting data required to perform the work from the main application. More...
Public Member Functions | |
virtual | ~BatchServiceServerMgr () |
bool | isOK () const |
![]() | |
virtual | ~ServiceServerMgr () |
bool | canReceiveRequests () const |
bool | isStandAloneApp () const |
virtual uiRetVal | sendAction (const char *act, const Network::Authority *=nullptr, const char *servicenm=nullptr) const |
virtual uiRetVal | sendActionRequest (const char *reqkey, const char *act, const OD::JSON::Object *morereq=nullptr, const Network::Authority *=nullptr, const char *servicenm=nullptr) const |
virtual uiRetVal | sendRequest (const char *reqkey, const OD::JSON::Object &, const Network::Authority *=nullptr, const char *servicenm=nullptr) const |
![]() | |
virtual | ~ServiceMgrBase () |
Network::Authority | getAuthority (bool islocal) const |
bool | isOK (bool islocal) const |
virtual void | stopServer (bool islocal) |
![]() | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) const |
![]() | |
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 () |
![]() | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
virtual BufferString | getName () const |
bool | getNameFromPar (const IOPar &) |
const name_type & | name () const override |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
virtual void | setName (const char *nm) |
![]() | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
static BatchServiceServerMgr & | getMgr () |
![]() | |
static const char * | sKeyCloseEv () |
static const char * | sKeyDeregister () |
static const char * | sKeyEvent () |
static const char * | sKeyODServer () |
static const char * | sKeyPyEnvChangeEv () |
static const char * | sKeyRegister () |
static const char * | sKeyStatusEv () |
static const char * | sKeySurveyChangeEv () |
![]() | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Protected Member Functions | |
BatchServiceServerMgr () | |
bool | canParseAction (const char *, uiRetVal &) override |
bool | canParseRequest (const OD::JSON::Object &, uiRetVal &) override |
void | closeApp () override |
void | doAppClosing (CallBacker *) override |
uiRetVal | doHandleAction (const char *action) override |
uiRetVal | doHandleRequest (const OD::JSON::Object &) override |
void | killedCB (CallBacker *) |
void | pausedCB (CallBacker *) |
void | resumedCB (CallBacker *) |
void | workEnded (CallBacker *) |
void | workStartedCB (CallBacker *) |
![]() | |
ServiceServerMgr (Network::Service::ServType, const char *servicenm) | |
ServiceServerMgr (Network::Service::ServType, const char *servicenm, bool assignport, Network::SpecAddr=Network::Any) | |
virtual void | checkOnReportToApplication (bool startyn, int eachms=5000) |
void | doPyEnvChange (CallBacker *) override |
bool | isDependentApp () const |
bool | isRegistered () const |
virtual bool | reportingAppIsAlive () const |
void | setUnregistered () |
const Network::Service * | thisService () const |
![]() | |
ServiceMgrBase (const char *servicenm) | |
ServiceMgrBase (const char *servicenm, bool assignport, Network::SpecAddr=Network::Any) | |
bool | addLocalServer () |
bool | addTCPServer (bool assignport=true, Network::SpecAddr=Network::Any) |
virtual void | doSurveyChanged (CallBacker *) |
bool | isMainService () const |
void | sendErr (uiRetVal &) |
void | sendOK () |
![]() | |
void | sendDelNotif () const |
Protected Attributes | |
uiRetVal | lastreport_ |
![]() | |
CNotifier< ServiceMgrBase, BufferString > | startHandleAction |
CNotifier< ServiceMgrBase, const OD::JSON::Object * > | startHandleRequest |
![]() | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
![]() | |
BufferString | name_ |
Private Member Functions | |
void | reportToCheckCB (CallBacker *) override |
uiRetVal | sendActionRequest_ (const char *action, const OD::JSON::Object *=nullptr) |
Private Attributes | |
BatchProgram & | bp_ |
Friends | |
class | BatchProgram |
Additional Inherited Members | |
![]() | |
enum | RegState { Unregistered , Requested , Confirmed , Unrequested } |
![]() | |
typedef OD::String | name_type |
![]() | |
static bool | addApplicationAuthority (bool local, OS::MachineCommand &) |
static void | debugMsg (const char *) |
static void | getPythEnvRequestInfo (OD::JSON::Object &) |
static uiRetVal | sendAction (const Network::Authority &, const char *servicenm, const char *action) |
static uiRetVal | sendRequest (const Network::Authority &, const char *servicenm, const char *reqkey, const OD::JSON::Object &) |
static const char * | sKeyClientAppCloseEv () |
static const ServiceMgrBase * | theMain () |
static const ServiceMgrBase * | theMain (bool local) |
Service manager for all OpendTect batch programs. Allows informing od_main on the program of the batch program, and getting data required to perform the work from the main application.
<>
|
virtual |
|
protected |
|
overrideprotectedvirtual |
Reimplemented from ServiceMgrBase.
|
overrideprotectedvirtual |
Reimplemented from ServiceMgrBase.
|
overrideprotectedvirtual |
Reimplemented from ServiceMgrBase.
|
overrideprotectedvirtual |
Reimplemented from ServiceServerMgr.
|
overrideprotectedvirtual |
Reimplemented from ServiceMgrBase.
|
overrideprotectedvirtual |
Reimplemented from ServiceMgrBase.
|
static |
bool BatchServiceServerMgr::isOK | ( | ) | const |
|
protected |
|
protected |
|
overrideprivatevirtual |
Reimplemented from ServiceServerMgr.
|
protected |
|
private |
|
protected |
|
protected |
|
friend |
|
private |
|
protected |
Generated at 02/08/2024 10:19:32 for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024