Public Member Functions | |
Impl (LLMessageSystem *msg) | |
~Impl () | |
void | processPendingAsks () |
void | processPendingReplies () |
void | sendRequest (const char *msg_name, const AskQueue &queue) |
bool | isRequestPending (const LLUUID &id) |
void | processUUIDRequest (LLMessageSystem *msg, bool isGroup) |
void | processUUIDReply (LLMessageSystem *msg, bool isGroup) |
void | notifyObservers (const LLUUID &id, const char *first, const char *last, BOOL group) |
Static Public Member Functions | |
static void | handleUUIDNameRequest (LLMessageSystem *msg, void **userdata) |
static void | handleUUIDNameReply (LLMessageSystem *msg, void **userdata) |
static void | handleUUIDGroupNameRequest (LLMessageSystem *msg, void **userdata) |
static void | handleUUIDGroupNameReply (LLMessageSystem *msg, void **userdata) |
Public Attributes | |
LLMessageSystem * | mMsg |
LLHost | mUpstreamHost |
Cache | mCache |
AskQueue | mAskNameQueue |
AskQueue | mAskGroupQueue |
PendingQueue | mPendingQueue |
ReplyQueue | mReplyQueue |
Observers | mObservers |
LLFrameTimer | mProcessTimer |
Definition at line 190 of file llcachename.cpp.
LLCacheName::Impl::Impl | ( | LLMessageSystem * | msg | ) |
Definition at line 253 of file llcachename.cpp.
References _PREHASH_UUIDGroupNameReply, _PREHASH_UUIDGroupNameRequest, _PREHASH_UUIDNameReply, _PREHASH_UUIDNameRequest, handleUUIDGroupNameReply(), handleUUIDGroupNameRequest(), handleUUIDNameReply(), handleUUIDNameRequest(), mMsg, and LLMessageSystem::setHandlerFuncFast().
LLCacheName::Impl::~Impl | ( | ) |
void LLCacheName::Impl::handleUUIDGroupNameReply | ( | LLMessageSystem * | msg, | |
void ** | userdata | |||
) | [static] |
void LLCacheName::Impl::handleUUIDGroupNameRequest | ( | LLMessageSystem * | msg, | |
void ** | userdata | |||
) | [static] |
void LLCacheName::Impl::handleUUIDNameReply | ( | LLMessageSystem * | msg, | |
void ** | userdata | |||
) | [static] |
void LLCacheName::Impl::handleUUIDNameRequest | ( | LLMessageSystem * | msg, | |
void ** | userdata | |||
) | [static] |
bool LLCacheName::Impl::isRequestPending | ( | const LLUUID & | id | ) |
Definition at line 749 of file llcachename.cpp.
References mPendingQueue, NULL, and PENDING_TIMEOUT_SECS.
Referenced by LLCacheName::get(), LLCacheName::getGroupName(), LLCacheName::getName(), and processUUIDRequest().
void LLCacheName::Impl::notifyObservers | ( | const LLUUID & | id, | |
const char * | first, | |||
const char * | last, | |||
BOOL | group | |||
) |
Definition at line 737 of file llcachename.cpp.
References end, i, mObservers, and NULL.
Referenced by processUUIDReply().
void LLCacheName::Impl::processPendingAsks | ( | ) |
Definition at line 646 of file llcachename.cpp.
References _PREHASH_UUIDGroupNameRequest, _PREHASH_UUIDNameRequest, mAskGroupQueue, mAskNameQueue, and sendRequest().
Referenced by LLCacheName::processPending().
void LLCacheName::Impl::processPendingReplies | ( | ) |
Definition at line 654 of file llcachename.cpp.
References end, FALSE, get_ptr_in_map(), mCache, mReplyQueue, and TRUE.
Referenced by LLCacheName::processPending().
void LLCacheName::Impl::processUUIDReply | ( | LLMessageSystem * | msg, | |
bool | isGroup | |||
) |
Definition at line 822 of file llcachename.cpp.
References _PREHASH_FirstName, _PREHASH_GroupName, _PREHASH_ID, _PREHASH_LastName, _PREHASH_UUIDNameBlock, count, DB_FIRST_NAME_BUF_SIZE, DB_GROUP_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, FALSE, get_ptr_in_map(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), i, mCache, LLCacheNameEntry::mCreateTime, LLCacheNameEntry::mFirstName, LLCacheNameEntry::mGroupName, LLCacheNameEntry::mIsGroup, LLCacheNameEntry::mLastName, mPendingQueue, notifyObservers(), NULL, S32, and TRUE.
void LLCacheName::Impl::processUUIDRequest | ( | LLMessageSystem * | msg, | |
bool | isGroup | |||
) |
Definition at line 766 of file llcachename.cpp.
References _PREHASH_ID, _PREHASH_UUIDNameBlock, count, get_ptr_in_map(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getSender(), LLMessageSystem::getUUIDFast(), i, LLHost::isOk(), isRequestPending(), llendl, llwarns, mAskGroupQueue, mAskNameQueue, mCache, LLCacheNameEntry::mIsGroup, mReplyQueue, mUpstreamHost, S32, and ReplySender::send().
Definition at line 703 of file llcachename.cpp.
References _PREHASH_ID, _PREHASH_UUIDNameBlock, LLMessageSystem::addUUIDFast(), end, LLMessageSystem::isSendFullFast(), mMsg, mUpstreamHost, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().
Referenced by processPendingAsks().
Definition at line 200 of file llcachename.cpp.
Referenced by LLCacheName::dumpStats(), LLCacheName::get(), LLCacheName::getGroupName(), processPendingAsks(), and processUUIDRequest().
Definition at line 199 of file llcachename.cpp.
Referenced by LLCacheName::dumpStats(), LLCacheName::get(), LLCacheName::getName(), processPendingAsks(), and processUUIDRequest().
Definition at line 196 of file llcachename.cpp.
Referenced by LLCacheName::deleteEntriesOlderThan(), LLCacheName::dump(), LLCacheName::dumpStats(), LLCacheName::exportFile(), LLCacheName::get(), LLCacheName::getGroupName(), LLCacheName::getName(), LLCacheName::importFile(), processPendingReplies(), processUUIDReply(), processUUIDRequest(), and ~Impl().
Definition at line 209 of file llcachename.cpp.
Referenced by LLCacheName::addObserver(), LLCacheName::dumpStats(), notifyObservers(), and LLCacheName::removeObserver().
Definition at line 203 of file llcachename.cpp.
Referenced by LLCacheName::deleteEntriesOlderThan(), LLCacheName::dumpStats(), isRequestPending(), and processUUIDReply().
Definition at line 206 of file llcachename.cpp.
Referenced by LLCacheName::cancelCallback(), LLCacheName::dumpStats(), LLCacheName::get(), processPendingReplies(), and processUUIDRequest().
Definition at line 194 of file llcachename.cpp.
Referenced by LLCacheName::processPending(), processUUIDRequest(), sendRequest(), and LLCacheName::setUpstream().