GlobalObjects
|
Überwachungsklasse für Lese-Index-, Schreibe-Index- und Reindex-Aktionen der Datenbank. Mehr ...
Öffentliche Methoden | |
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) |
Geschützte Methoden | |
void | clearCommunicatorIndexReadWriteNotifyModesMap () |
Private Attribute | |
std::map< CommunicatorCallBackIndex, CommunicatorIndexReadWriteNotifyModes *, std::less< CommunicatorCallBackIndex > > | m_CommunicatorIndexReadWriteNotifyModesMap |
Überwachungsklasse für Lese-Index-, Schreibe-Index- und Reindex-Aktionen der Datenbank.
glo::WatchNotifyManager::IndexReadWriteWatch::IndexReadWriteWatch | ( | ) |
Standard-Konstruktor.
glo::WatchNotifyManager::IndexReadWriteWatch::~IndexReadWriteWatch | ( | ) |
Destruktor.
|
protected |
Entfernt alle Lese-, Schreib- oder Reindex-Überwachungen.
void glo::WatchNotifyManager::IndexReadWriteWatch::deleteAllWatches | ( | Communicator * | pCommunicator | ) |
Entfernt alle Überwachungen des übergebenen Client-Kommunikators.
[in] | pCommunicator | Der Client-Kommunikators. |
std::size_t glo::WatchNotifyManager::IndexReadWriteWatch::getCommunicatorIndexReadWriteNotifyModesMapCount | ( | ) | const |
Liefert die Anzahl der Lese-Index-, Schreibe-Index- und Reindex-Überwachungen.
bool glo::WatchNotifyManager::IndexReadWriteWatch::hasWatches | ( | ) | const |
Prüft ob Lese-Index-, Schreibe-Index- oder Reindex-Überwachungen gesetzt sind.
void glo::WatchNotifyManager::IndexReadWriteWatch::setWatch | ( | const CommunicatorCallBackIndex & | rCommunicatorCallBackIndex, |
TdWatchNotifyMode | tdWatchNotifyMode ) |
Registriert eine Lese-, Schreib- oder Reindex-Überwachung.
[in] | rCommunicatorCallBackIndex | Der Client-Kommunikator, der überwachen möchte. |
[in] | tdWatchNotifyMode | Der aktivierte Überwachungsmodus. |
int glo::WatchNotifyManager::IndexReadWriteWatch::unsetWatch | ( | const CommunicatorCallBackIndex & | rCommunicatorCallBackIndex, |
TdWatchNotifyMode | tdWatchNotifyMode, | ||
bool | bSimulate = false ) |
Deregistriert eine Lese-, Schreib- oder Reindex-Überwachung.
[in] | rCommunicatorCallBackIndex | Der Client-Kommunikator mit seiner Adresse der CallBack-Funktion, welcher überwachen möchte. |
[in] | tdWatchNotifyMode | Der zu deregistrierende Überwachungsmodus für den Client. |
[in] | bSimulate | Wenn true, wird nur simuliert, also kein Wert gesetzt, aber ein Ergebnis bzw. Fehler geliefert. |
|
private |
Die einzelnen CommunicatorIndexReadWriteNotifyModes der Lese-Index-, Schreibe-Index- und Reindex-Aktionen der Datenbank mit dem CommunicatorCallBackIndex als Index in einer Map.