Equalizer
1.2.1
|
Interface for entities which map and register objects. More...
#include <objectHandler.h>
Public Member Functions | |
ObjectHandler () | |
Construct a new object handler. | |
virtual | ~ObjectHandler () |
Destroy this object handler. | |
virtual bool | registerObject (Object *object)=0 |
Register a distributed object. | |
virtual void | deregisterObject (Object *object)=0 |
Deregister a distributed object. | |
virtual uint32_t | mapObjectNB (Object *object, const UUID &id, const uint128_t &version, NodePtr master)=0 |
Start mapping a distributed object. | |
virtual bool | mapObjectSync (const uint32_t requestID)=0 |
Finalize the mapping of a distributed object. | |
virtual void | unmapObject (Object *object)=0 |
Unmap a mapped object. |
Interface for entities which map and register objects.
Definition at line 24 of file objectHandler.h.
co::ObjectHandler::ObjectHandler | ( | ) | [inline] |
virtual co::ObjectHandler::~ObjectHandler | ( | ) | [inline, virtual] |
Destroy this object handler.
Definition at line 31 of file objectHandler.h.
virtual void co::ObjectHandler::deregisterObject | ( | Object * | object | ) | [pure virtual] |
Deregister a distributed object.
object | the object instance. |
virtual uint32_t co::ObjectHandler::mapObjectNB | ( | Object * | object, |
const UUID & | id, | ||
const uint128_t & | version, | ||
NodePtr | master | ||
) | [pure virtual] |
Start mapping a distributed object.
object | the object to map. |
id | the object identifier |
version | the version to map. |
master | the master node, may be invalid/0. |
virtual bool co::ObjectHandler::mapObjectSync | ( | const uint32_t | requestID | ) | [pure virtual] |
Finalize the mapping of a distributed object.
virtual bool co::ObjectHandler::registerObject | ( | Object * | object | ) | [pure virtual] |
Register a distributed object.
Registering a distributed object makes this object the master version. The object's identifier is used to map slave instances of the object. Master versions of objects are typically writable and can commit new versions of the distributed object.
object | the object instance. |
virtual void co::ObjectHandler::unmapObject | ( | Object * | object | ) | [pure virtual] |
Unmap a mapped object.