#include <SALOMESDS_DataScopeServer.hxx>
Public Member Functions | |
DataScopeServerBase (CORBA::ORB_ptr orb, SALOME::DataScopeKiller_var killer, const std::string &scopeName) | |
DataScopeServerBase (const DataScopeServerBase &other) | |
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) |
~DataScopeServerBase () | |
BasicDataServer * | retrieveVarInternal2 (const std::string &varName) |
void | initializePython (int argc, char *argv[]) |
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 |
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 | |
PyObject * | _globals |
PyObject * | _locals |
PyObject * | _pickler |
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 |
DataScopeServerBase::DataScopeServerBase | ( | CORBA::ORB_ptr | orb, |
SALOME::DataScopeKiller_var | killer, | ||
const std::string & | scopeName | ||
) |
DataScopeServerBase::DataScopeServerBase | ( | const DataScopeServerBase & | other | ) |
DataScopeServerBase::~DataScopeServerBase | ( | ) |
References _locals, _pickler, _vars, and SALOMESDS::RefCountServ::decrRef().
|
inherited |
References SALOMESDS::POAHolder::getPOA().
Referenced by SALOMESDS::DataScopeServerTransaction::addKeyValueInVarErrorIfAlreadyExisting(), SALOMESDS::DataScopeServerTransaction::addKeyValueInVarHard(), SALOMESDS::DataScopeServerTransaction::addMultiKeyValueSession(), SALOMESDS::DataScopeServerTransaction::createRdExtInitVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtInitVarTransac(), SALOMESDS::DataScopeServer::createRdExtVar(), SALOMESDS::DataScopeServerTransaction::createRdExtVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtVarTransac(), SALOMESDS::DataScopeServer::createRdOnlyVar(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarTransac(), SALOMESDS::DataScopeServer::createRdWrVar(), SALOMESDS::DataScopeServerTransaction::createRdWrVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdWrVarTransac(), SALOMESDS::DataScopeServerTransaction::createWorkingVarTransac(), SALOMESDS::DataServerManager::DataServerManager(), SALOMESDS::DataScopeServerTransaction::killVarTransac(), moveStatusOfVarFromRdExtOrRdExtInitToRdExt(), moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit(), moveStatusOfVarFromRdOnlyToRdWr(), moveStatusOfVarFromRdWrToRdOnly(), SALOMESDS::DataScopeServerTransaction::removeKeyInVarErrorIfNotAlreadyExisting(), SALOMESDS::DataScopeServerTransaction::waitForKeyInVar(), and SALOMESDS::DataScopeServerTransaction::waitForKeyInVarAndKillIt().
|
static |
References COUNTER.
Referenced by SALOMESDS::PickelizedPyObjRdExtServer::invokePythonMethodOn(), and SALOMESDS::PickelizedPyObjRdWrServer::invokePythonMethodOn().
void DataScopeServerBase::checkExistingVar | ( | const std::string & | varName | ) | const |
void DataScopeServerBase::checkNotAlreadyExistingVar | ( | const std::string & | varName | ) | const |
References getAllVarNames().
Referenced by SALOMESDS::DataScopeServerTransaction::createRdExtInitVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtInitVarTransac(), SALOMESDS::DataScopeServer::createRdExtVar(), SALOMESDS::DataScopeServerTransaction::createRdExtVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtVarTransac(), SALOMESDS::DataScopeServer::createRdOnlyVar(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarTransac(), SALOMESDS::DataScopeServer::createRdWrVar(), SALOMESDS::DataScopeServerTransaction::createRdWrVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdWrVarTransac(), and SALOMESDS::DataScopeServerTransaction::createWorkingVarTransac().
PickelizedPyObjServer * DataScopeServerBase::checkVarExistingAndDict | ( | const std::string & | varName | ) |
References checkExistingVar(), SALOMESDS::PickelizedPyObjServer::isDict(), and retrieveVarInternal2().
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().
void DataScopeServerBase::deleteVar | ( | const char * | varName | ) |
References _vars, and getAllVarNames().
Referenced by SALOMESDS::TransactionKillVar::perform(), and SALOMESDS::TransactionVarCreate::rollBack().
|
inherited |
CORBA::Boolean DataScopeServerBase::existVar | ( | const char * | varName | ) |
References _vars.
Referenced by SALOMESDS::TransactionVarCreate::rollBack().
SALOME::ByteVec * DataScopeServerBase::fetchSerializedContent | ( | const char * | varName | ) |
SALOME::SeqOfByteVec * DataScopeServerBase::getAllKeysOfVarWithTypeDict | ( | const char * | varName | ) |
std::vector< std::string > DataScopeServerBase::getAllVarNames | ( | ) | const |
References _vars.
Referenced by checkExistingVar(), checkNotAlreadyExistingVar(), deleteVar(), retrieveVarInternal3(), and retrieveVarInternal4().
PyObject* SALOMESDS::DataScopeServerBase::getGlobals | ( | ) | const |
PyObject* SALOMESDS::DataScopeServerBase::getLocals | ( | ) | const |
CORBA::ORB_var SALOMESDS::DataScopeServerBase::getORB | ( | ) |
PyObject* SALOMESDS::DataScopeServerBase::getPickler | ( | ) | const |
|
virtual |
char * DataScopeServerBase::getScopeName | ( | ) |
Called remotely -> to protect against throw.
References _name.
Referenced by SALOMESDS::BasicDataServer::getScopeName().
std::string SALOMESDS::DataScopeServerBase::getScopeNameCpp | ( | ) | const |
void DataScopeServerBase::initializePython | ( | int | argc, |
char * | argv[] | ||
) |
References _globals, _locals, and _pickler.
Referenced by SALOMESDS::DataServerManager::DataServerManager().
SALOME::StringVec * DataScopeServerBase::listVars | ( | ) |
Called remotely -> to protect against throw.
References _vars, and SALOMESDS::BasicDataServer::getVarNameCpp().
void DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExt | ( | const std::string & | varName | ) |
void DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit | ( | const std::string & | varName | ) |
References SALOMESDS::POAHolder::activate(), SALOMESDS::RefCountServ::decrRef(), SALOMESDS::PickelizedPyObjServer::getPyObj(), SALOMESDS::PickelizedPyObjRdExtInitServer::incrNbClients(), and retrieveVarInternal4().
Referenced by SALOMESDS::TransactionMultiKeyAddSession::TransactionMultiKeyAddSession().
void DataScopeServerBase::moveStatusOfVarFromRdOnlyToRdWr | ( | const std::string & | varName | ) |
void DataScopeServerBase::moveStatusOfVarFromRdWrToRdOnly | ( | const std::string & | varName | ) |
void DataScopeServerBase::ping | ( | ) |
Called remotely -> to protect against throw.
void DataScopeServerBase::registerInNS | ( | SALOME::DataScopeServerBase_ptr | ptr | ) |
References _name, _orb, SALOMESDS::DataServerManager::CreateAbsNameInNSFromScopeName(), and SALOME_NamingService::Register().
Referenced by SALOMESDS::DataServerManager::DataServerManager().
void DataScopeServerBase::registerToSalomePiDict | ( | ) | const |
SALOME::BasicDataServer_ptr DataScopeServerBase::retrieveVarInternal | ( | const char * | varName | ) |
References retrieveVarInternal3().
Referenced by SALOMESDS::TransactionMorphRdWrIntoRdOnly::getVar().
BasicDataServer * DataScopeServerBase::retrieveVarInternal2 | ( | const std::string & | varName | ) |
|
protected |
References _vars, and getAllVarNames().
Referenced by retrieveVarInternal(), and retrieveVarInternal2().
|
protected |
void DataScopeServerBase::setPOA | ( | PortableServer::POA_var | poa | ) |
References _poa.
Referenced by SALOMESDS::DataServerManager::DataServerManager().
CORBA::Boolean DataScopeServerBase::shutdownIfNotHostedByDSM | ( | SALOME::DataScopeKiller_out | killer | ) |
|
protected |
Referenced by SALOMESDS::DataScopeServerTransaction::getPyCmpFunc(), and initializePython().
|
protected |
Referenced by shutdownIfNotHostedByDSM().
|
protected |
Referenced by initializePython(), and ~DataScopeServerBase().
|
protected |
Referenced by getScopeName(), registerInNS(), and shutdownIfNotHostedByDSM().
|
protected |
|
protected |
Referenced by initializePython(), and ~DataScopeServerBase().
|
protected |
Referenced by SALOMESDS::DataScopeServerTransaction::atomicApply(), setPOA(), and shutdownIfNotHostedByDSM().
|
protected |
Referenced by SALOMESDS::DataScopeServerTransaction::createRdExtInitVarInternal(), SALOMESDS::DataScopeServer::createRdExtVar(), SALOMESDS::DataScopeServerTransaction::createRdExtVarInternal(), SALOMESDS::DataScopeServer::createRdOnlyVar(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarInternal(), SALOMESDS::DataScopeServer::createRdWrVar(), SALOMESDS::DataScopeServerTransaction::createRdWrVarInternal(), SALOMESDS::DataScopeServerTransaction::createWorkingVarTransac(), deleteVar(), existVar(), getAllVarNames(), listVars(), retrieveVarInternal3(), retrieveVarInternal4(), and ~DataScopeServerBase().
|
staticprotected |
Referenced by BuildTmpVarNameFrom().