LLCacheName::Impl Class Reference

Collaboration diagram for LLCacheName::Impl:

Collaboration graph
[legend]
List of all members.

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

LLMessageSystemmMsg
LLHost mUpstreamHost
Cache mCache
AskQueue mAskNameQueue
AskQueue mAskGroupQueue
PendingQueue mPendingQueue
ReplyQueue mReplyQueue
Observers mObservers
LLFrameTimer mProcessTimer

Detailed Description

Definition at line 190 of file llcachename.cpp.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 267 of file llcachename.cpp.

References mCache.


Member Function Documentation

void LLCacheName::Impl::handleUUIDGroupNameReply ( LLMessageSystem msg,
void **  userdata 
) [static]

Definition at line 882 of file llcachename.cpp.

Referenced by Impl().

void LLCacheName::Impl::handleUUIDGroupNameRequest ( LLMessageSystem msg,
void **  userdata 
) [static]

Definition at line 877 of file llcachename.cpp.

Referenced by Impl().

void LLCacheName::Impl::handleUUIDNameReply ( LLMessageSystem msg,
void **  userdata 
) [static]

Definition at line 867 of file llcachename.cpp.

Referenced by Impl().

void LLCacheName::Impl::handleUUIDNameRequest ( LLMessageSystem msg,
void **  userdata 
) [static]

Definition at line 872 of file llcachename.cpp.

Referenced by Impl().

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().

void LLCacheName::Impl::sendRequest ( const char *  msg_name,
const AskQueue queue 
)

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().


Member Data Documentation

AskQueue LLCacheName::Impl::mAskGroupQueue

Definition at line 200 of file llcachename.cpp.

Referenced by LLCacheName::dumpStats(), LLCacheName::get(), LLCacheName::getGroupName(), processPendingAsks(), and processUUIDRequest().

AskQueue LLCacheName::Impl::mAskNameQueue

Definition at line 199 of file llcachename.cpp.

Referenced by LLCacheName::dumpStats(), LLCacheName::get(), LLCacheName::getName(), processPendingAsks(), and processUUIDRequest().

Cache LLCacheName::Impl::mCache

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().

LLMessageSystem* LLCacheName::Impl::mMsg

Definition at line 193 of file llcachename.cpp.

Referenced by Impl(), and sendRequest().

Observers LLCacheName::Impl::mObservers

Definition at line 209 of file llcachename.cpp.

Referenced by LLCacheName::addObserver(), LLCacheName::dumpStats(), notifyObservers(), and LLCacheName::removeObserver().

PendingQueue LLCacheName::Impl::mPendingQueue

Definition at line 203 of file llcachename.cpp.

Referenced by LLCacheName::deleteEntriesOlderThan(), LLCacheName::dumpStats(), isRequestPending(), and processUUIDReply().

LLFrameTimer LLCacheName::Impl::mProcessTimer

Definition at line 211 of file llcachename.cpp.

Referenced by LLCacheName::processPending().

ReplyQueue LLCacheName::Impl::mReplyQueue

Definition at line 206 of file llcachename.cpp.

Referenced by LLCacheName::cancelCallback(), LLCacheName::dumpStats(), LLCacheName::get(), processPendingReplies(), and processUUIDRequest().

LLHost LLCacheName::Impl::mUpstreamHost

Definition at line 194 of file llcachename.cpp.

Referenced by LLCacheName::processPending(), processUUIDRequest(), sendRequest(), and LLCacheName::setUpstream().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:12 2010 for Second Life Viewer by  doxygen 1.4.7