|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
Trivial implementation of a persistence manager. More...
#include <InMemoryRegistrationDatabase.hxx>
Public Member Functions | |
| InMemoryRegistrationDatabase (bool checkExpiry=false) | |
| virtual | ~InMemoryRegistrationDatabase () |
| virtual void | addAor (const Uri &aor, const ContactList &contacts) |
| virtual void | removeAor (const Uri &aor) |
| virtual bool | aorIsRegistered (const Uri &aor) |
| virtual void | lockRecord (const Uri &aor) |
| virtual void | unlockRecord (const Uri &aor) |
| virtual update_status_t | updateContact (const resip::Uri &aor, const ContactInstanceRecord &rec) |
| virtual void | removeContact (const Uri &aor, const ContactInstanceRecord &rec) |
| virtual void | getContacts (const Uri &aor, ContactList &container) |
| virtual void | getAors (UriList &container) |
| return all the AOR in the DB | |
Public Member Functions inherited from resip::RegistrationPersistenceManager | |
| RegistrationPersistenceManager () | |
| virtual | ~RegistrationPersistenceManager () |
Protected Types | |
| typedef std::map< Uri, ContactList * > | database_map_t |
Protected Member Functions | |
| database_map_t::iterator | findNotExpired (const Uri &aor) |
| Find aor in mDatabase Before returning the iterator pointing to aor, delete all expired contacts. | |
Protected Attributes | |
| database_map_t | mDatabase |
| Mutex | mDatabaseMutex |
| std::set< Uri > | mLockedRecords |
| Mutex | mLockedRecordsMutex |
| Condition | mRecordUnlocked |
| bool | mCheckExpiry |
Additional Inherited Members | |
Public Types inherited from resip::RegistrationPersistenceManager | |
| enum | update_status_t { CONTACT_CREATED , CONTACT_UPDATED } |
| typedef std::list< Uri > | UriList |
Trivial implementation of a persistence manager.
This class keeps all registrations in memory, and has no schemes for disk storage or replication of any kind. It's good for testing, but probably inappropriate for any commercially deployable products.
Definition at line 21 of file InMemoryRegistrationDatabase.hxx.
|
protected |
Definition at line 51 of file InMemoryRegistrationDatabase.hxx.
| InMemoryRegistrationDatabase::InMemoryRegistrationDatabase | ( | bool | checkExpiry = false | ) |
| checkExpiry | if set, then the methods aorIsRegistered() and getContacts() will check that contacts are not expired before returning an answer. |
Definition at line 12 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Definition at line 17 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Implements resip::RegistrationPersistenceManager.
Definition at line 28 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Implements resip::RegistrationPersistenceManager.
Definition at line 68 of file InMemoryRegistrationDatabase.cxx.
|
protected |
Find aor in mDatabase Before returning the iterator pointing to aor, delete all expired contacts.
Definition at line 242 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
return all the AOR in the DB
Implements resip::RegistrationPersistenceManager.
Definition at line 56 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Implements resip::RegistrationPersistenceManager.
Definition at line 199 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Implements resip::RegistrationPersistenceManager.
Definition at line 80 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Implements resip::RegistrationPersistenceManager.
Definition at line 36 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Implements resip::RegistrationPersistenceManager.
Definition at line 164 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Implements resip::RegistrationPersistenceManager.
Definition at line 99 of file InMemoryRegistrationDatabase.cxx.
|
virtual |
Implements resip::RegistrationPersistenceManager.
Definition at line 122 of file InMemoryRegistrationDatabase.cxx.
|
protected |
Definition at line 59 of file InMemoryRegistrationDatabase.hxx.
|
protected |
Definition at line 52 of file InMemoryRegistrationDatabase.hxx.
|
protected |
Definition at line 53 of file InMemoryRegistrationDatabase.hxx.
|
protected |
Definition at line 55 of file InMemoryRegistrationDatabase.hxx.
|
protected |
Definition at line 56 of file InMemoryRegistrationDatabase.hxx.
|
protected |
Definition at line 57 of file InMemoryRegistrationDatabase.hxx.