#include <SALOMESDS_DataScopeServer.hxx>

Public Member Functions | |
| DataScopeServer (const SALOME_CPythonHelper *pyHelper, CORBA::ORB_ptr orb, SALOME::DataScopeKiller_var killer, const std::string &scopeName, SALOME_NamingService_Container_Abstract *ns) | |
| DataScopeServer (const DataScopeServer &other) | |
| SALOME::BasicDataServer_ptr | retrieveVar (const char *varName) |
| SALOME::PickelizedPyObjRdOnlyServer_ptr | createRdOnlyVar (const char *varName, const SALOME::ByteVec &constValue) |
| SALOME::PickelizedPyObjRdExtServer_ptr | createRdExtVar (const char *varName, const SALOME::ByteVec &constValue) |
| SALOME::PickelizedPyObjRdWrServer_ptr | createRdWrVar (const char *typeName, const char *varName) |
| ~DataScopeServer () | |
| void | ping () |
| Called remotely -> to protect against throw. More... | |
| char * | getScopeName () |
| Called remotely -> to protect against throw. More... | |
| SALOME::StringVec * | listVars () |
| Called remotely -> to protect against throw. More... | |
| CORBA::Boolean | existVar (const char *varName) |
| SALOME::BasicDataServer_ptr | retrieveVarInternal (const char *varName) |
| void | deleteVar (const char *varName) |
| CORBA::Boolean | shutdownIfNotHostedByDSM (SALOME::DataScopeKiller_out killer) |
| SALOME::ByteVec * | fetchSerializedContent (const char *varName) |
| SALOME::SeqOfByteVec * | getAllKeysOfVarWithTypeDict (const char *varName) |
| SALOME::ByteVec * | getValueOfVarWithTypeDict (const char *varName, const SALOME::ByteVec &constKey) |
| void | takeANap (CORBA::Double napDurationInSec) |
| BasicDataServer * | retrieveVarInternal2 (const std::string &varName) |
| void | registerToSalomePiDict () const |
| void | setPOA (PortableServer::POA_var poa) |
| void | registerInNS (SALOME::DataScopeServerBase_ptr ptr) |
| PyObject * | getGlobals () const |
| PyObject * | getLocals () const |
| PyObject * | getPickler () const |
| PortableServer::POA_var | getPOA () const |
| CORBA::ORB_var | getORB () |
| std::string | getScopeNameCpp () const |
| std::vector< std::string > | getAllVarNames () const |
| bool | isExistingVar (const std::string &varName) const |
| void | checkNotAlreadyExistingVar (const std::string &varName) const |
| void | checkExistingVar (const std::string &varName) const |
| PickelizedPyObjServer * | checkVarExistingAndDict (const std::string &varName) |
| void | moveStatusOfVarFromRdWrToRdOnly (const std::string &varName) |
| void | moveStatusOfVarFromRdOnlyToRdWr (const std::string &varName) |
| void | moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit (const std::string &varName) |
| void | moveStatusOfVarFromRdExtOrRdExtInitToRdExt (const std::string &varName) |
| CORBA::Object_var | activate () |
| void | enforcedRelease () |
Static Public Member Functions | |
| static std::string | BuildTmpVarNameFrom (const std::string &varName) |
Protected Member Functions | |
| std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > >::const_iterator | retrieveVarInternal3 (const std::string &varName) const |
| std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > >::iterator | retrieveVarInternal4 (const std::string &varName) |
Protected Attributes | |
| SALOME_NamingService_Container_Abstract * | _ns = nullptr |
| const SALOME_CPythonHelper * | _pyHelper = nullptr |
| PortableServer::POA_var | _poa |
| CORBA::ORB_var | _orb |
| std::string | _name |
| std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > > | _vars |
| SALOME::DataScopeKiller_var | _killer |
Static Protected Attributes | |
| static std::size_t | COUNTER =0 |
| DataScopeServer::DataScopeServer | ( | const SALOME_CPythonHelper * | pyHelper, |
| CORBA::ORB_ptr | orb, | ||
| SALOME::DataScopeKiller_var | killer, | ||
| const std::string & | scopeName, | ||
| SALOME_NamingService_Container_Abstract * | ns | ||
| ) |
| DataScopeServer::DataScopeServer | ( | const DataScopeServer & | other | ) |
| DataScopeServer::~DataScopeServer | ( | ) |
|
inherited |
< TODO: unused variables
References SALOMESDS::POAHolder::getPOA(), SALOME_ContainerPy::poa, and TestKernelHelpers::ret.
Referenced by SALOMESDS::DataServerManager::DataServerManager(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExt(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdOnlyToRdWr(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdWrToRdOnly(), and SALOMESDS::DataScopeServerTransaction::waitForKeyInVarAndKillIt().
|
staticinherited |
|
inherited |
|
inherited |
References SALOMESDS::DataScopeServerBase::isExistingVar(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::DataScopeServerTransaction::createRdExtInitVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtInitVarTransac(), createRdExtVar(), SALOMESDS::DataScopeServerTransaction::createRdExtVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtVarTransac(), createRdOnlyVar(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarTransac(), createRdWrVar(), SALOMESDS::DataScopeServerTransaction::createRdWrVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdWrVarTransac(), and SALOMESDS::DataScopeServerTransaction::createWorkingVarTransac().
|
inherited |
References SALOMESDS::DataScopeServerBase::checkExistingVar(), TestKernelHelpers::ret, SALOMESDS::DataScopeServerBase::retrieveVarInternal2(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::DataScopeServerTransaction::addKeyValueInVarErrorIfAlreadyExisting(), SALOMESDS::TransactionMultiKeyAddSession::addKeyValueInVarErrorIfAlreadyExistingNow(), SALOMESDS::DataScopeServerTransaction::addKeyValueInVarHard(), SALOMESDS::DataScopeServerTransaction::addMultiKeyValueSession(), SALOMESDS::TransactionDictModify::checkVarExistingAndDict(), SALOMESDS::DataScopeServerTransaction::removeKeyInVarErrorIfNotAlreadyExisting(), SALOMESDS::DataScopeServerTransaction::waitForKeyInVar(), and SALOMESDS::DataScopeServerTransaction::waitForKeyInVarAndKillIt().
| SALOME::PickelizedPyObjRdExtServer_ptr DataScopeServer::createRdExtVar | ( | const char * | varName, |
| const SALOME::ByteVec & | constValue | ||
| ) |
| SALOME::PickelizedPyObjRdOnlyServer_ptr DataScopeServer::createRdOnlyVar | ( | const char * | varName, |
| const SALOME::ByteVec & | constValue | ||
| ) |
| SALOME::PickelizedPyObjRdWrServer_ptr DataScopeServer::createRdWrVar | ( | const char * | typeName, |
| const char * | varName | ||
| ) |
|
inherited |
|
inherited |
References SALOMESDS::POAHolder::getPOA(), and SALOME_ContainerPy::poa.
Referenced by SALOMESDS::RefCountServ::decrRef(), SALOMESDS::BasicDataServer::Destroy(), SALOMESDS::DataScopeServerBase::shutdownIfNotHostedByDSM(), SALOMESDS::DataScopeServerTransaction::waitForAndKill(), and SALOMESDS::DataScopeServerTransaction::waitForMonoThrRev().
|
inherited |
References SALOMESDS::DataScopeServerBase::_vars, and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::TransactionVarCreate::rollBack().
|
inherited |
|
inherited |
< TODO: convert Py_ssize_t in CORBA::ULong
< TODO: convert Py_ssize_t in CORBA::ULong
References SALOMESDS::PickelizedPyObjServer::FromCppToByteSeq(), SALOMESDS::PickelizedPyObjServer::getPyObj(), SALOMESDS::PickelizedPyObjServer::isDict(), SALOMESDS::PickelizedPyObjServer::pickelize(), TestKernelHelpers::ret, SALOMESDS::DataScopeServerBase::retrieveVarInternal2(), and TestSalomeSDSHelper0::varName.
|
inherited |
References SALOMESDS::DataScopeServerBase::_vars, and TestKernelHelpers::ret.
Referenced by SALOMESDS::DataScopeServerBase::checkExistingVar(), SALOMESDS::DataScopeServerBase::deleteVar(), SALOMESDS::DataScopeServerBase::isExistingVar(), SALOMESDS::DataScopeServerBase::retrieveVarInternal3(), and SALOMESDS::DataScopeServerBase::retrieveVarInternal4().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
|
inherited |
Called remotely -> to protect against throw.
References SALOMESDS::DataScopeServerBase::_name.
Referenced by SALOMESDS::BasicDataServer::getScopeName().
|
inherited |
|
inherited |
References SALOMESDS::PickelizedPyObjServer::FromByteSeqToCpp(), SALOMESDS::PickelizedPyObjServer::FromCppToByteSeq(), SALOME::AutoPyRef::get(), SALOMESDS::PickelizedPyObjServer::getPyObj(), SALOMESDS::PickelizedPyObjServer::GetPyObjFromPickled(), SALOMESDS::PickelizedPyObjServer::isDict(), SALOMESDS::PickelizedPyObjServer::Pickelize(), TestKernelHelpers::ret, SALOMESDS::DataScopeServerBase::retrieveVarInternal2(), and TestSalomeSDSHelper0::varName.
|
inherited |
|
inherited |
Called remotely -> to protect against throw.
< TODO: size_t to CORBA::ULong
< TODO: size_t to CORBA::ULong
References SALOMESDS::DataScopeServerBase::_vars, pythfilter::name, KERNEL_PY.batchmode_salome::obj, and TestKernelHelpers::ret.
Referenced by SALOMESDS::RequestSwitcher::listVars().
|
inherited |
References SALOMESDS::POAHolder::activate(), SALOMESDS::PickelizedPyObjRdExtInitServer::buildStdInstanceFrom(), SALOMESDS::PickelizedPyObjRdExtInitServer::decrNbClients(), SALOMESDS::RefCountServ::decrRef(), KERNEL_PY.batchmode_salome::obj, SALOMESDS::DataScopeServerBase::retrieveVarInternal4(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::TransactionMultiKeyAddSession::perform().
|
inherited |
References SALOMESDS::POAHolder::activate(), SALOMESDS::PickelizedPyObjRdExtServer::buildInitInstanceFrom(), SALOMESDS::RefCountServ::decrRef(), SALOMESDS::PickelizedPyObjRdExtInitServer::incrNbClients(), KERNEL_PY.batchmode_salome::obj, SALOMESDS::DataScopeServerBase::retrieveVarInternal4(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::TransactionMultiKeyAddSession::TransactionMultiKeyAddSession().
|
inherited |
References SALOMESDS::POAHolder::activate(), SALOMESDS::RefCountServ::decrRef(), SALOMESDS::PickelizedPyObjServer::getPyObj(), KERNEL_PY.batchmode_salome::obj, SALOMESDS::DataScopeServerBase::retrieveVarInternal4(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::TransactionMorphRdWrIntoRdOnly::rollBack().
|
inherited |
References SALOMESDS::POAHolder::activate(), SALOMESDS::RefCountServ::decrRef(), SALOMESDS::PickelizedPyObjServer::getPyObj(), KERNEL_PY.batchmode_salome::obj, SALOMESDS::DataScopeServerBase::retrieveVarInternal4(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::TransactionMorphRdWrIntoRdOnly::perform().
|
inherited |
Called remotely -> to protect against throw.
|
inherited |
|
inherited |
| SALOME::BasicDataServer_ptr SALOMESDS::DataScopeServer::retrieveVar | ( | const char * | varName | ) |
References TestSalomeSDSHelper0::varName.
|
inherited |
References SALOMESDS::DataScopeServerBase::retrieveVarInternal3(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::TransactionMorphRdWrIntoRdOnly::getVar().
|
inherited |
References SALOMESDS::DataScopeServerBase::retrieveVarInternal3(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::DataScopeServerBase::checkVarExistingAndDict(), SALOMESDS::DataScopeServerTransaction::createRdExtVarFreeStyleInternal(), SALOMESDS::DataScopeServerBase::fetchSerializedContent(), SALOMESDS::DataScopeServerTransaction::getAccessOfVar(), SALOMESDS::DataScopeServerBase::getAllKeysOfVarWithTypeDict(), SALOMESDS::DataScopeServerBase::getValueOfVarWithTypeDict(), and SALOMESDS::TransactionMorphRdWrIntoRdOnly::prepareRollBackInCaseOfFailure().
|
protectedinherited |
|
protectedinherited |
References SALOMESDS::DataScopeServerBase::_vars, pythonpath_reduction::copy(), SALOMESDS::DataScopeServerBase::getAllVarNames(), and TestSalomeSDSHelper0::varName.
Referenced by SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExt(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdOnlyToRdWr(), and SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdWrToRdOnly().
|
inherited |
References SALOMESDS::DataScopeServerBase::_poa, and SALOME_ContainerPy::poa.
Referenced by SALOMESDS::DataServerManager::DataServerManager().
|
inherited |
References SALOMESDS::DataScopeServerBase::_killer, SALOMESDS::DataScopeServerBase::_name, SALOMESDS::DataScopeServerBase::_ns, SALOMESDS::DataScopeServerBase::_poa, SALOMESDS::DataServerManager::CreateAbsNameInNSFromScopeName(), SALOME_NamingService_Container_Abstract::Destroy_Name(), salome::dsm, SALOMESDS::POAHolder::enforcedRelease(), SALOMESDS::DataServerManager::NAME_IN_NS, KERNEL_PY.batchmode_salome::obj, SALOME_NamingService_Container_Abstract::Resolve(), and TestKernelHelpers::ret.
|
inherited |
References TestKernelHelpers::ret.
|
protectedinherited |
Referenced by SALOMESDS::DataScopeServerBase::shutdownIfNotHostedByDSM().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by SALOME_Container.SALOME_Container_Abstract_i::__init__(), SALOME_ContainerPy.SALOME_ContainerPy_Gen_i::__init__(), SALOME_ContainerPy.SALOME_ContainerPy_i::__init__(), SALOME_ComponentPy.SALOME_ComponentPy_Gen_i::__init__(), SALOME_NamingServicePy.SALOME_NamingServicePy_i::__init__(), SALOME_ContainerPy.SALOME_ContainerPy_Gen_i::create_component_instance(), SALOME_Container.SALOME_Container_Abstract_i::create_component_instance(), SALOME_Container.SALOME_Container_Abstract_i::create_pynode(), SALOME_Container.SALOME_Container_Abstract_i::create_pyscriptnode(), SALOMESDS::DataScopeServerTransaction::DataScopeServerTransaction(), SALOMESDS::DataScopeServerTransaction::getRequestSwitcher(), SALOME_Embedded_NamingService_ClientPy.SALOME_Embedded_NamingService_ClientPy::Register(), SALOME_Embedded_NamingService_ClientPy.SALOME_Embedded_NamingService_ClientPy::Resolve(), and SALOME_ContainerPy.SALOME_ContainerPy_Gen_i::Shutdown().
|
protectedinherited |
Referenced by SALOME_Container.SALOME_Container_Abstract_i::__init__(), SALOME_ContainerPy.SALOME_ContainerPy_Gen_i::__init__(), SALOME_ComponentPy.SALOME_ComponentPy_Gen_i::__init__(), SALOMESDS::DataScopeServerTransaction::atomicApply(), SALOME_ContainerPy.SALOME_ContainerPy_Gen_i::create_component_instance(), SALOME_Container.SALOME_Container_Abstract_i::create_component_instance(), SALOME_Container.SALOME_Container_Abstract_i::create_pynode(), SALOME_Container.SALOME_Container_Abstract_i::create_pyscriptnode(), SALOME_ComponentPy.SALOME_ComponentPy_Gen_i::destroy(), SALOME_PyNode.ContextExchanger_i::getInputContext(), SALOME_PyNode.ContextExchanger_i::getPOA(), SALOMESDS::DataScopeServerBase::setPOA(), and SALOMESDS::DataScopeServerBase::shutdownIfNotHostedByDSM().
|
protectedinherited |
Referenced by SALOMESDS::DataScopeServerBase::registerToSalomePiDict().
|
protectedinherited |
Referenced by SALOMESDS::DataScopeServerTransaction::createRdExtInitVarInternal(), createRdExtVar(), SALOMESDS::DataScopeServerTransaction::createRdExtVarFreeStyleInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtVarInternal(), createRdOnlyVar(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarInternal(), createRdWrVar(), SALOMESDS::DataScopeServerTransaction::createRdWrVarInternal(), SALOMESDS::DataScopeServerTransaction::createWorkingVarTransac(), SALOMESDS::DataScopeServerBase::deleteVar(), SALOMESDS::DataScopeServerBase::existVar(), SALOMESDS::DataScopeServerBase::getAllVarNames(), SALOMESDS::DataScopeServerBase::listVars(), SALOMESDS::DataScopeServerBase::retrieveVarInternal3(), SALOMESDS::DataScopeServerBase::retrieveVarInternal4(), and SALOMESDS::DataScopeServerBase::~DataScopeServerBase().
|
staticprotectedinherited |
Referenced by SALOMESDS::DataScopeServerBase::BuildTmpVarNameFrom().