GlobalObjects
|
Monitoring class for read-index, write-index and reindex actions of the database. More...
Public Member Functions | |
IndexReadWriteWatch () | |
~IndexReadWriteWatch () | |
void | deleteAllWatches (Communicator *pCommunicator) |
std::size_t | getCommunicatorIndexReadWriteNotifyModesMapCount () const |
bool | hasWatches () const |
void | setWatch (const CommunicatorCallBackIndex &rCommunicatorCallBackIndex, TdWatchNotifyMode tdWatchNotifyMode) |
int | unsetWatch (const CommunicatorCallBackIndex &rCommunicatorCallBackIndex, TdWatchNotifyMode tdWatchNotifyMode, bool bSimulate=false) |
Protected Member Functions | |
void | clearCommunicatorIndexReadWriteNotifyModesMap () |
Private Attributes | |
std::map< CommunicatorCallBackIndex, CommunicatorIndexReadWriteNotifyModes *, std::less< CommunicatorCallBackIndex > > | m_CommunicatorIndexReadWriteNotifyModesMap |
Monitoring class for read-index, write-index and reindex actions of the database.
glo::WatchNotifyManager::IndexReadWriteWatch::IndexReadWriteWatch | ( | ) |
Standard constructor.
glo::WatchNotifyManager::IndexReadWriteWatch::~IndexReadWriteWatch | ( | ) |
Destructor.
|
protected |
Removes all read-index, write-index or reindex monitoring.
void glo::WatchNotifyManager::IndexReadWriteWatch::deleteAllWatches | ( | Communicator * | pCommunicator | ) |
Removes all monitoring of the transferred client communicator.
[in] | pCommunicator | The client communicator. |
std::size_t glo::WatchNotifyManager::IndexReadWriteWatch::getCommunicatorIndexReadWriteNotifyModesMapCount | ( | ) | const |
Returns the number of read-index, write-index and reindex monitors.
bool glo::WatchNotifyManager::IndexReadWriteWatch::hasWatches | ( | ) | const |
Checks if read-index, write-index or reindex monitors are set.
void glo::WatchNotifyManager::IndexReadWriteWatch::setWatch | ( | const CommunicatorCallBackIndex & | rCommunicatorCallBackIndex, |
TdWatchNotifyMode | tdWatchNotifyMode ) |
Registers a monitoring for the read-index, write-index or reindex.
[in] | rCommunicatorCallBackIndex | The client communicator that wants to monitor. |
[in] | tdWatchNotifyMode | The activated monitoring mode. |
int glo::WatchNotifyManager::IndexReadWriteWatch::unsetWatch | ( | const CommunicatorCallBackIndex & | rCommunicatorCallBackIndex, |
TdWatchNotifyMode | tdWatchNotifyMode, | ||
bool | bSimulate = false ) |
Deregisters a monitoring for the read-index, write-index or reindex.
[in] | rCommunicatorCallBackIndex | The client communicator that has monitored. |
[in] | tdWatchNotifyMode | The suspended monitoring mode. |
[in] | bSimulate | If true, only simulation is performed, no value is set, but a result or error is returned. |
|
private |
The individual CommunicatorIndexReadWriteNotifyModes of the read index, write index and reindex actions of the database with the CommunicatorCallBackIndex as index in a map.