Stores information about cached URLs. More...
#include <cached_url.h>
Public Member Functions | |
| CachedURL (int object_id, zmm::String url) | |
| Creates a cached url object. | |
| int | getObjectID () |
| Retrieves the object id. | |
| zmm::String | getURL () |
| Retrieves the cached URL. | |
| time_t | getCreationTime () |
| Retrieves the time when the object was created. | |
| time_t | getLastAccessTime () |
| Retrieves the time when the last access time of the data. | |
| void | retain () |
| void | release () |
| int | getRefCount () |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| static void | operator delete (void *ptr) |
Protected Attributes | |
| int | object_id |
| zmm::String | url |
| time_t | creation_time |
| time_t | last_access_time |
| zmm::Ref< Mutex > | mutex |
| mt_atomic_t | _ref_count |
Stores information about cached URLs.
Definition at line 41 of file cached_url.h.
| CachedURL::CachedURL | ( | int | object_id, | |
| zmm::String | url | |||
| ) |
Creates a cached url object.
Definition at line 43 of file cached_url.cc.
References _, _Exception, creation_time, last_access_time, mt_strerror(), mutex, and NULL.
| time_t CachedURL::getCreationTime | ( | ) |
Retrieves the time when the object was created.
Definition at line 74 of file cached_url.cc.
References creation_time.
| time_t CachedURL::getLastAccessTime | ( | ) |
Retrieves the time when the last access time of the data.
Definition at line 80 of file cached_url.cc.
References AUTOLOCK, last_access_time, and mutex.
| int CachedURL::getObjectID | ( | ) |
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| String CachedURL::getURL | ( | ) |
Retrieves the cached URL.
Definition at line 62 of file cached_url.cc.
References _, _Exception, AUTOLOCK, last_access_time, mt_strerror(), mutex, NULL, and url.
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
time_t CachedURL::creation_time [protected] |
Definition at line 62 of file cached_url.h.
Referenced by CachedURL(), and getCreationTime().
time_t CachedURL::last_access_time [protected] |
Definition at line 63 of file cached_url.h.
Referenced by CachedURL(), getLastAccessTime(), and getURL().
zmm::Ref<Mutex> CachedURL::mutex [protected] |
Reimplemented from zmm::Object.
Definition at line 65 of file cached_url.h.
Referenced by CachedURL(), getLastAccessTime(), and getURL().
int CachedURL::object_id [protected] |
Definition at line 60 of file cached_url.h.
Referenced by getObjectID().
zmm::String CachedURL::url [protected] |
Definition at line 61 of file cached_url.h.
Referenced by getURL().
1.6.1