OpendTect  7.0
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
uiServiceClientMgr Class Reference
Inheritance diagram for uiServiceClientMgr:
[legend]

Public Member Functions

virtual ~uiServiceClientMgr ()
 
bool isOK () const
 
void raise (const Network::Service::ID) const
 
- Public Member Functions inherited from ServiceClientMgr
virtual ~ServiceClientMgr ()
 
BufferString getLockFileFP (const Network::Service::ID) const
 
bool isAlive (const Network::Service::ID) const
 
bool isPresent (const Network::Service::ID) const
 
void printInfo (const Network::Service::ID, const char *desc=nullptr, od_ostream *=nullptr) const
 
uiRetVal sendAction (const Network::Service::ID, const char *) const
 
uiRetVal sendRequest (const Network::Service::ID, const char *, const OD::JSON::Object &) const
 
BufferString serviceName (const Network::Service::ID) const
 
Network::Service::SubID serviceSubID (const Network::Service::ID) const
 
bool stopService (const Network::Service::ID)
 
- Public Member Functions inherited from ServiceMgrBase
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 CallBackertrueCaller ()
 
- 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_typename () const override
 
NamedObjectoperator= (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 uiServiceClientMgrgetMgr ()
 
static void setFor (uiMainWin &)
 
- Static Public Member Functions inherited from ServiceClientMgr
static bool addApplicationAuthority (OS::MachineCommand &)
 
- Static Public Member Functions inherited from ServiceMgrBase
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 ()
 

Private Member Functions

 uiServiceClientMgr ()
 
bool canClaimService (const Network::Service &) const override
 
bool canParseAction (const char *, uiRetVal &) override
 
bool canParseRequest (const OD::JSON::Object &, uiRetVal &) override
 
void closeApp () override final
 
void doAppClosing (CallBacker *) override final
 
uiRetVal doHandleAction (const char *) override
 
uiRetVal doHandleRequest (const OD::JSON::Object &) override
 
void doPyEnvChange (CallBacker *) override final
 
void doSurveyChanged (CallBacker *) override final
 
uiRetVal logsChanged (const OD::JSON::Object &)
 
uiRetVal startWorkflow (const OD::JSON::Object &)
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Public Attributes inherited from ServiceClientMgr
CNotifier< ServiceClientMgr, Network::Service::IDserviceAdded
 
CNotifier< ServiceClientMgr, Network::Service::IDserviceRemoved
 
- Protected Member Functions inherited from ServiceClientMgr
 ServiceClientMgr (const char *servicenm)
 
 ServiceClientMgr (const char *servicenm, bool assignport, Network::SpecAddr=Network::Any)
 
bool checkService (const Network::Service::ID) const
 
Network::ServicegetService (const Network::Service::ID)
 
const Network::ServicegetService (const Network::Service::ID) const
 
uiRetVal sendAction (const Network::Service &, const char *) const
 
uiRetVal sendRequest (const Network::Service &, const char *, const OD::JSON::Object &) const
 
- Protected Member Functions inherited from ServiceMgrBase
 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)
 
bool isMainService () const
 
void sendErr (uiRetVal &)
 
void sendOK ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Static Protected Member Functions inherited from ServiceMgrBase
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 ServiceMgrBasetheMain ()
 
static const ServiceMgrBasetheMain (bool local)
 
- Protected Attributes inherited from ServiceClientMgr
ObjectSet< Network::Serviceservices_
 
CNotifier< ServiceClientMgr, Network::Service * > serviceToBeAdded
 
CNotifier< ServiceClientMgr, Network::Service * > serviceToBeRemoved
 
- Protected Attributes inherited from ServiceMgrBase
CNotifier< ServiceMgrBase, BufferStringstartHandleAction
 
CNotifier< ServiceMgrBase, const OD::JSON::Object * > startHandleRequest
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ ~uiServiceClientMgr()

virtual uiServiceClientMgr::~uiServiceClientMgr ( )
virtual

◆ uiServiceClientMgr()

uiServiceClientMgr::uiServiceClientMgr ( )
private

Member Function Documentation

◆ canClaimService()

bool uiServiceClientMgr::canClaimService ( const Network::Service ) const
overrideprivatevirtual

Implements ServiceClientMgr.

◆ canParseAction()

bool uiServiceClientMgr::canParseAction ( const char *  ,
uiRetVal  
)
overrideprivatevirtual

Reimplemented from ServiceClientMgr.

◆ canParseRequest()

bool uiServiceClientMgr::canParseRequest ( const OD::JSON::Object ,
uiRetVal  
)
overrideprivatevirtual

Reimplemented from ServiceClientMgr.

◆ closeApp()

void uiServiceClientMgr::closeApp ( )
finaloverrideprivatevirtual

Reimplemented from ServiceClientMgr.

◆ doAppClosing()

void uiServiceClientMgr::doAppClosing ( CallBacker )
finaloverrideprivatevirtual

Reimplemented from ServiceClientMgr.

◆ doHandleAction()

uiRetVal uiServiceClientMgr::doHandleAction ( const char *  )
overrideprivatevirtual

Reimplemented from ServiceClientMgr.

◆ doHandleRequest()

uiRetVal uiServiceClientMgr::doHandleRequest ( const OD::JSON::Object )
overrideprivatevirtual

Reimplemented from ServiceClientMgr.

◆ doPyEnvChange()

void uiServiceClientMgr::doPyEnvChange ( CallBacker )
finaloverrideprivatevirtual

Reimplemented from ServiceMgrBase.

◆ doSurveyChanged()

void uiServiceClientMgr::doSurveyChanged ( CallBacker )
finaloverrideprivatevirtual

Reimplemented from ServiceMgrBase.

◆ getMgr()

static uiServiceClientMgr& uiServiceClientMgr::getMgr ( )
static

◆ isOK()

bool uiServiceClientMgr::isOK ( ) const

◆ logsChanged()

uiRetVal uiServiceClientMgr::logsChanged ( const OD::JSON::Object )
private

◆ raise()

void uiServiceClientMgr::raise ( const Network::Service::ID  ) const

◆ setFor()

static void uiServiceClientMgr::setFor ( uiMainWin )
static

◆ startWorkflow()

uiRetVal uiServiceClientMgr::startWorkflow ( const OD::JSON::Object )
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024