Version: 8.3.0
SALOMESDS::DataScopeServerTransaction Class Reference

#include <SALOMESDS_DataScopeServer.hxx>

Inheritance diagram for SALOMESDS::DataScopeServerTransaction:

Public Member Functions

 DataScopeServerTransaction (CORBA::ORB_ptr orb, SALOME::DataScopeKiller_var killer, const std::string &scopeName)
 
 DataScopeServerTransaction (const DataScopeServerTransaction &other)
 
 ~DataScopeServerTransaction ()
 
void createRdOnlyVarInternal (const std::string &varName, const SALOME::ByteVec &constValue)
 
void createRdExtVarInternal (const std::string &varName, const SALOME::ByteVec &constValue)
 
void createRdExtInitVarInternal (const std::string &varName, const SALOME::ByteVec &constValue)
 
void createRdWrVarInternal (const std::string &varName, const SALOME::ByteVec &constValue)
 
PortableServer::POA_var getPOA4KeyWaiter () const
 
void addWaitKey (KeyWaiter *kw)
 
void pingKey (PyObject *keyObj)
 
void notifyKey (const std::string &varName, PyObject *keyObj, PyObject *valueObj)
 
SALOME::ByteVecwaitForMonoThrRev (SALOME::KeyWaiter_ptr kw)
 
SALOME::ByteVecwaitForAndKill (SALOME::KeyWaiter_ptr kw)
 
chargetAccessOfVar (const char *varName)
 
void fetchAndGetAccessOfVar (const char *varName, CORBA::String_out access, SALOME::ByteVec_out data)
 This method is here to retrieve atomically accessStr and picklization. More...
 
SALOME::Transaction_ptr createRdOnlyVarTransac (const char *varName, const SALOME::ByteVec &constValue)
 
SALOME::Transaction_ptr createRdExtVarTransac (const char *varName, const SALOME::ByteVec &constValue)
 
SALOME::Transaction_ptr createRdExtInitVarTransac (const char *varName, const SALOME::ByteVec &constValue)
 
SALOME::Transaction_ptr createRdWrVarTransac (const char *varName, const SALOME::ByteVec &constValue)
 
SALOME::Transaction_ptr addKeyValueInVarHard (const char *varName, const SALOME::ByteVec &key, const SALOME::ByteVec &value)
 
SALOME::Transaction_ptr addKeyValueInVarErrorIfAlreadyExisting (const char *varName, const SALOME::ByteVec &key, const SALOME::ByteVec &value)
 
SALOME::TransactionMultiKeyAddSession_ptr addMultiKeyValueSession (const char *varName)
 
SALOME::Transaction_ptr removeKeyInVarErrorIfNotAlreadyExisting (const char *varName, const SALOME::ByteVec &key)
 
SALOME::TransactionRdWrAccess_ptr createWorkingVarTransac (const char *varName, const SALOME::ByteVec &constValue)
 
SALOME::Transaction_ptr killVarTransac (const char *varName)
 
SALOME::KeyWaiter_ptr waitForKeyInVar (const char *varName, const SALOME::ByteVec &keyVal)
 
SALOME::KeyWaiter_ptr waitForKeyInVarAndKillIt (const char *varName, const SALOME::ByteVec &keyVal, SALOME::Transaction_out transac)
 
void atomicApply (const SALOME::ListOfTransaction &transactions)
 
void ping ()
 Called remotely -> to protect against throw. More...
 
chargetScopeName ()
 Called remotely -> to protect against throw. More...
 
SALOME::StringVeclistVars ()
 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::ByteVecfetchSerializedContent (const char *varName)
 
SALOME::SeqOfByteVecgetAllKeysOfVarWithTypeDict (const char *varName)
 
BasicDataServerretrieveVarInternal2 (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
 
PickelizedPyObjServercheckVarExistingAndDict (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
 

Private Member Functions

PyObject * getPyCmpFunc ()
 Returns borrowed reference. More...
 

Private Attributes

PortableServer::POA_var _poa_for_key_waiter
 
std::list< KeyWaiter * > _waiting_keys
 

Constructor & Destructor Documentation

DataScopeServerTransaction::DataScopeServerTransaction ( CORBA::ORB_ptr  orb,
SALOME::DataScopeKiller_var  killer,
const std::string &  scopeName 
)
DataScopeServerTransaction::DataScopeServerTransaction ( const DataScopeServerTransaction other)
DataScopeServerTransaction::~DataScopeServerTransaction ( )

Member Function Documentation

SALOME::Transaction_ptr DataScopeServerTransaction::addKeyValueInVarErrorIfAlreadyExisting ( const char varName,
const SALOME::ByteVec key,
const SALOME::ByteVec value 
)
SALOME::Transaction_ptr DataScopeServerTransaction::addKeyValueInVarHard ( const char varName,
const SALOME::ByteVec key,
const SALOME::ByteVec value 
)
SALOME::TransactionMultiKeyAddSession_ptr DataScopeServerTransaction::addMultiKeyValueSession ( const char varName)
void DataScopeServerTransaction::addWaitKey ( KeyWaiter kw)
void DataScopeServerTransaction::atomicApply ( const SALOME::ListOfTransaction transactions)
std::string DataScopeServerBase::BuildTmpVarNameFrom ( const std::string &  varName)
staticinherited
void DataScopeServerBase::checkExistingVar ( const std::string &  varName) const
inherited
void DataScopeServerTransaction::createRdExtInitVarInternal ( const std::string &  varName,
const SALOME::ByteVec constValue 
)
SALOME::Transaction_ptr DataScopeServerTransaction::createRdExtInitVarTransac ( const char varName,
const SALOME::ByteVec constValue 
)
void DataScopeServerTransaction::createRdExtVarInternal ( const std::string &  varName,
const SALOME::ByteVec constValue 
)
SALOME::Transaction_ptr DataScopeServerTransaction::createRdExtVarTransac ( const char varName,
const SALOME::ByteVec constValue 
)
void DataScopeServerTransaction::createRdOnlyVarInternal ( const std::string &  varName,
const SALOME::ByteVec constValue 
)
SALOME::Transaction_ptr DataScopeServerTransaction::createRdOnlyVarTransac ( const char varName,
const SALOME::ByteVec constValue 
)
void DataScopeServerTransaction::createRdWrVarInternal ( const std::string &  varName,
const SALOME::ByteVec constValue 
)
SALOME::Transaction_ptr DataScopeServerTransaction::createRdWrVarTransac ( const char varName,
const SALOME::ByteVec constValue 
)
SALOME::TransactionRdWrAccess_ptr DataScopeServerTransaction::createWorkingVarTransac ( const char varName,
const SALOME::ByteVec constValue 
)
CORBA::Boolean DataScopeServerBase::existVar ( const char varName)
inherited
void DataScopeServerTransaction::fetchAndGetAccessOfVar ( const char varName,
CORBA::String_out  access,
SALOME::ByteVec_out  data 
)

This method is here to retrieve atomically accessStr and picklization.

References SALOMESDS::DataScopeServerBase::fetchSerializedContent(), and getAccessOfVar().

SALOME::ByteVec * DataScopeServerBase::fetchSerializedContent ( const char varName)
inherited
PyObject* SALOMESDS::DataScopeServerBase::getGlobals ( ) const
inherited
PyObject* SALOMESDS::DataScopeServerBase::getLocals ( ) const
inherited
CORBA::ORB_var SALOMESDS::DataScopeServerBase::getORB ( )
inherited
PyObject* SALOMESDS::DataScopeServerBase::getPickler ( ) const
inherited
PortableServer::POA_var SALOMESDS::DataScopeServerTransaction::getPOA4KeyWaiter ( ) const
PyObject * DataScopeServerTransaction::getPyCmpFunc ( )
private

Returns borrowed reference.

References SALOMESDS::DataScopeServerBase::_globals.

Referenced by notifyKey(), and pingKey().

char * DataScopeServerBase::getScopeName ( )
inherited

Called remotely -> to protect against throw.

References SALOMESDS::DataScopeServerBase::_name.

Referenced by SALOMESDS::BasicDataServer::getScopeName().

std::string SALOMESDS::DataScopeServerBase::getScopeNameCpp ( ) const
inherited
void DataScopeServerBase::initializePython ( int  argc,
char argv[] 
)
inherited
SALOME::Transaction_ptr DataScopeServerTransaction::killVarTransac ( const char varName)
SALOME::StringVec * DataScopeServerBase::listVars ( )
inherited

Called remotely -> to protect against throw.

References SALOMESDS::DataScopeServerBase::_vars, and SALOMESDS::BasicDataServer::getVarNameCpp().

void DataScopeServerTransaction::notifyKey ( const std::string &  varName,
PyObject *  keyObj,
PyObject *  valueObj 
)
void DataScopeServerBase::ping ( )
inherited

Called remotely -> to protect against throw.

void DataScopeServerTransaction::pingKey ( PyObject *  keyObj)
void DataScopeServerBase::registerToSalomePiDict ( ) const
inherited
SALOME::Transaction_ptr DataScopeServerTransaction::removeKeyInVarErrorIfNotAlreadyExisting ( const char varName,
const SALOME::ByteVec key 
)
SALOME::BasicDataServer_ptr DataScopeServerBase::retrieveVarInternal ( const char varName)
inherited
std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > >::const_iterator DataScopeServerBase::retrieveVarInternal3 ( const std::string &  varName) const
protectedinherited
void DataScopeServerBase::setPOA ( PortableServer::POA_var  poa)
inherited
SALOME::ByteVec * DataScopeServerTransaction::waitForAndKill ( SALOME::KeyWaiter_ptr  kw)
SALOME::KeyWaiter_ptr DataScopeServerTransaction::waitForKeyInVar ( const char varName,
const SALOME::ByteVec keyVal 
)
SALOME::KeyWaiter_ptr DataScopeServerTransaction::waitForKeyInVarAndKillIt ( const char varName,
const SALOME::ByteVec keyVal,
SALOME::Transaction_out  transac 
)
SALOME::ByteVec * DataScopeServerTransaction::waitForMonoThrRev ( SALOME::KeyWaiter_ptr  kw)

Field Documentation

PyObject* SALOMESDS::DataScopeServerBase::_globals
protectedinherited
SALOME::DataScopeKiller_var SALOMESDS::DataScopeServerBase::_killer
protectedinherited
PyObject* SALOMESDS::DataScopeServerBase::_locals
protectedinherited
CORBA::ORB_var SALOMESDS::DataScopeServerBase::_orb
protectedinherited
PyObject* SALOMESDS::DataScopeServerBase::_pickler
protectedinherited
PortableServer::POA_var SALOMESDS::DataScopeServerBase::_poa
protectedinherited
PortableServer::POA_var SALOMESDS::DataScopeServerTransaction::_poa_for_key_waiter
private
std::list< KeyWaiter * > SALOMESDS::DataScopeServerTransaction::_waiting_keys
private

Referenced by addWaitKey(), notifyKey(), and pingKey().

std::size_t DataScopeServerBase::COUNTER =0
staticprotectedinherited