OpendTect
7.0
|
Base class for OpendTect Service Manager and external services/apps. More...
Classes | |
struct | packetData |
Public Member Functions | |
virtual | ~ServiceMgrBase () |
Network::Authority | getAuthority (bool islocal) const |
bool | isOK (bool islocal) const |
virtual void | stopServer (bool islocal) |
Public Member Functions inherited from NamedCallBacker | |
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 |
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 () |
Public Member Functions inherited from NamedObject | |
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) |
Public Member Functions inherited from ObjectWithName | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
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 Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Protected Member Functions | |
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 bool | canParseAction (const char *, uiRetVal &) |
virtual bool | canParseRequest (const OD::JSON::Object &, uiRetVal &) |
virtual void | closeApp () |
virtual void | doAppClosing (CallBacker *) |
virtual uiRetVal | doHandleAction (const char *action) |
virtual uiRetVal | doHandleRequest (const OD::JSON::Object &) |
virtual void | doPyEnvChange (CallBacker *) |
virtual void | doSurveyChanged (CallBacker *) |
bool | isMainService () const |
void | sendErr (uiRetVal &) |
void | sendOK () |
Protected Member Functions inherited from NamedCallBacker | |
void | sendDelNotif () const |
Static Protected Member Functions | |
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) |
Protected Attributes | |
CNotifier< ServiceMgrBase, BufferString > | startHandleAction |
CNotifier< ServiceMgrBase, const OD::JSON::Object * > | startHandleRequest |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
Private Member Functions | |
ServiceMgrBase (ServiceMgrBase &&)=delete | |
void | appClosingCB (CallBacker *) |
uiRetVal | applyInOtherThread (const packetData &) |
bool | canDoAction (const OD::JSON::Object &, packetData &) |
bool | canDoRequest (const OD::JSON::Object &, packetData &) |
void | connClosedCB (CallBacker *) |
void | doHandleActionRequest (CallBacker *) |
uiRetVal | handleActionRequestInThread (const packetData &) |
void | init (bool islocal, bool assignport=true, Network::SpecAddr=Network::Any) |
bool | isServerOK (bool local) const |
mOD_DisableCopy (ServiceMgrBase) | |
void | newConnectionCB (CallBacker *) |
ServiceMgrBase & | operator= (ServiceMgrBase &&)=delete |
void | packetArrivedCB (CallBacker *) |
void | pyenvChangeCB (CallBacker *) |
uiRetVal | pythEnvChangedReq (const OD::JSON::Object &) |
bool & | serverIsMine (bool islocal) |
uiRetVal | survChangedReq (const OD::JSON::Object &) |
void | surveyChangedCB (CallBacker *) |
bool | useServer (Network::RequestServer *, bool islocal) |
Static Private Member Functions | |
static uiRetVal | sendRequest_ (const Network::Authority &, const char *servicenm, const OD::JSON::Object &) |
static const char * | sKeyAction () |
static const char * | sKeyError () |
static const char * | sKeyOK () |
static ServiceMgrBase * | theNewMain (bool local, ServiceMgrBase *) |
static ServiceMgrBase * | theNewMain (ServiceMgrBase *) |
Private Attributes | |
ObjectSet< packetData > | applydata_ |
Network::RequestConnection * | localconn_ = nullptr |
Network::RequestServer * | localserver_ = nullptr |
bool | localserverismine_ = true |
RefMan< Network::RequestPacket > | packet_ |
Network::RequestConnection * | tcpconn_ = nullptr |
Network::RequestServer * | tcpserver_ = nullptr |
bool | tcpserverismine_ = true |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
Base class for OpendTect Service Manager and external services/apps.
<>
|
virtual |
|
protected |
|
protected |
|
privatedelete |
|
staticprotected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
protectedvirtual |
Reimplemented in uiServiceServerMgr, uiServiceClientMgr, BatchServiceClientMgr, ServiceClientMgr, and BatchServiceServerMgr.
|
protectedvirtual |
Reimplemented in uiServiceServerMgr, uiServiceClientMgr, BatchServiceClientMgr, ServiceClientMgr, and BatchServiceServerMgr.
|
protectedvirtual |
Reimplemented in uiServiceClientMgr, uiServiceServerMgr, ServiceClientMgr, and BatchServiceServerMgr.
|
private |
|
staticprotected |
|
protectedvirtual |
Reimplemented in uiServiceClientMgr, uiServiceServerMgr, ServiceServerMgr, BatchServiceClientMgr, ServiceClientMgr, and BatchServiceServerMgr.
|
protectedvirtual |
Reimplemented in uiServiceServerMgr, BatchServiceClientMgr, ServiceClientMgr, BatchServiceServerMgr, and uiServiceClientMgr.
|
private |
|
protectedvirtual |
Reimplemented in uiServiceServerMgr, uiServiceClientMgr, BatchServiceClientMgr, ServiceClientMgr, and BatchServiceServerMgr.
|
inlineprotectedvirtual |
Reimplemented in uiServiceClientMgr, and ServiceServerMgr.
|
inlineprotectedvirtual |
Reimplemented in uiServiceClientMgr.
Network::Authority ServiceMgrBase::getAuthority | ( | bool | islocal | ) | const |
|
staticprotected |
|
private |
|
private |
|
protected |
bool ServiceMgrBase::isOK | ( | bool | islocal | ) | const |
|
private |
|
private |
|
private |
|
privatedelete |
|
private |
|
private |
|
private |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |
Reimplement these functions to intercept packets intended for your service Return true if the action/request can be handled
|
staticprivate |
|
private |
|
inlinestaticprivate |
|
inlinestaticprotected |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
virtual |
|
private |
|
private |
|
staticprotected |
|
staticprotected |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024