#include <fullMasterCM.h>


Definition at line 26 of file fullMasterCM.h.
Versioning | |
| virtual uint32_t | commitNB () |
| Start committing a new version. | |
| virtual uint32_t | commitSync (const uint32_t commitID) |
| Finalize a commit transaction. | |
| virtual void | obsolete (const uint32_t version) |
| Explicitily obsolete all versions. | |
| virtual void | setAutoObsolete (const uint32_t count, const uint32_t flags) |
| Automatically obsolete old versions. | |
| virtual uint32_t | getAutoObsoleteCount () const |
| virtual uint32_t | sync (const uint32_t version) |
| Sync to a given version. | |
| virtual uint32_t | getHeadVersion () const |
| virtual uint32_t | getVersion () const |
| virtual uint32_t | getOldestVersion () const |
| virtual bool | isMaster () const |
| virtual uint32_t | getMasterInstanceID () const |
| virtual void | addSlave (NodePtr node, const uint32_t instanceID, const uint32_t version) |
| Add a subscribed slave to the managed object. | |
| virtual void | removeSlave (NodePtr node) |
| Remove a subscribed slave. | |
| virtual void | applyMapData () |
| Apply the initial data after mapping. | |
Public Member Functions | |
| FullMasterCM (Object *object) | |
| virtual void | notifyAttached () |
| Notification that the object is attached to a session. | |
| virtual void | makeThreadSafe () |
| Make this object thread safe. | |
Classes | |
| struct | DeltaData |
| void eq::net::FullMasterCM::notifyAttached | ( | ) | [virtual] |
Notification that the object is attached to a session.
Implements eq::net::ObjectCM.
Definition at line 63 of file fullMasterCM.cpp.
References eq::net::Session::getCommandThreadQueue(), eq::net::Object::getSession(), and eq::net::Base::registerCommand().

| virtual void eq::net::FullMasterCM::makeThreadSafe | ( | ) | [inline, virtual] |
Make this object thread safe.
The caller has to ensure that no other thread is using this object when this function is called. It is primarily used by the session during object instanciation.
Implements eq::net::ObjectCM.
Definition at line 33 of file fullMasterCM.h.
| uint32_t eq::net::FullMasterCM::commitNB | ( | ) | [virtual] |
Start committing a new version.
Implements eq::net::ObjectCM.
Definition at line 81 of file fullMasterCM.cpp.
References eq::net::Object::_instanceID, eq::net::Object::getChangeType(), eq::net::Object::getLocalNode(), eq::net::Object::INSTANCE, eq::base::RequestHandler::registerRequest(), and eq::net::Object::send().

| uint32_t eq::net::FullMasterCM::commitSync | ( | const uint32_t | commitID | ) | [virtual] |
Finalize a commit transaction.
| commitID | the commit identifier returned from commitNB |
Implements eq::net::ObjectCM.
Definition at line 94 of file fullMasterCM.cpp.
References eq::base::RequestHandler::waitRequest().

| virtual void eq::net::FullMasterCM::obsolete | ( | const uint32_t | version | ) | [inline, virtual] |
Explicitily obsolete all versions.
| version | the version to obsolete |
Implements eq::net::ObjectCM.
Definition at line 42 of file fullMasterCM.h.
| virtual void eq::net::FullMasterCM::setAutoObsolete | ( | const uint32_t | count, | |
| const uint32_t | flags | |||
| ) | [inline, virtual] |
Automatically obsolete old versions.
| count | the number of versions to retain, excluding the head version. | |
| flags | additional flags for the auto-obsoletion mechanism |
Implements eq::net::ObjectCM.
Definition at line 44 of file fullMasterCM.h.
| virtual uint32_t eq::net::FullMasterCM::getAutoObsoleteCount | ( | ) | const [inline, virtual] |
Implements eq::net::ObjectCM.
Definition at line 48 of file fullMasterCM.h.
| virtual uint32_t eq::net::FullMasterCM::sync | ( | const uint32_t | version | ) | [inline, virtual] |
Sync to a given version.
| version | the version to synchronize, must be bigger than the current version. |
Implements eq::net::ObjectCM.
Definition at line 50 of file fullMasterCM.h.
| virtual uint32_t eq::net::FullMasterCM::getHeadVersion | ( | ) | const [inline, virtual] |
Implements eq::net::ObjectCM.
Definition at line 53 of file fullMasterCM.h.
| virtual uint32_t eq::net::FullMasterCM::getVersion | ( | ) | const [inline, virtual] |
Implements eq::net::ObjectCM.
Definition at line 54 of file fullMasterCM.h.
| uint32_t eq::net::FullMasterCM::getOldestVersion | ( | ) | const [virtual] |
Implements eq::net::ObjectCM.
Definition at line 126 of file fullMasterCM.cpp.
Referenced by addSlave().

| virtual bool eq::net::FullMasterCM::isMaster | ( | ) | const [inline, virtual] |
Implements eq::net::ObjectCM.
Definition at line 58 of file fullMasterCM.h.
| virtual uint32_t eq::net::FullMasterCM::getMasterInstanceID | ( | ) | const [inline, virtual] |
Implements eq::net::ObjectCM.
Definition at line 59 of file fullMasterCM.h.
| void eq::net::FullMasterCM::addSlave | ( | NodePtr | node, | |
| const uint32_t | instanceID, | |||
| const uint32_t | version | |||
| ) | [virtual] |
Add a subscribed slave to the managed object.
| node | the slave node. | |
| instanceID | the object instance identifier on the slave node. | |
| version | the initial version. |
Implements eq::net::ObjectCM.
Definition at line 134 of file fullMasterCM.cpp.
References eq::net::Object::_id, eq::base::Buffer< T >::data, eq::net::Object::getChangeType(), getOldestVersion(), eq::net::Object::INSTANCE, eq::net::Object::send(), and eq::base::Buffer< T >::size.

| void eq::net::FullMasterCM::removeSlave | ( | NodePtr | node | ) | [virtual] |
Remove a subscribed slave.
| node | the slave node. |
Implements eq::net::ObjectCM.
Definition at line 185 of file fullMasterCM.cpp.
| virtual void eq::net::FullMasterCM::applyMapData | ( | ) | [inline, virtual] |
Apply the initial data after mapping.
Implements eq::net::ObjectCM.
Definition at line 65 of file fullMasterCM.h.
0.6 by
1.5.5