Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CacheServer::LoaderThread Class Reference

Inheritance diagram for CacheServer::LoaderThread:

ServerThread List of all members.

Public Member Functions

 this (AbstractServer server, ServerSocket socket, ClusterServer cs)
void load (IConduit conduit)

Private Member Functions

 this (AbstractServer server, ServerSocket socket)
int run ()

Private Attributes

ClusterCache cache
IBuffer buffer
ProtocolReader reader
ProtocolWriter writer
ILogger logger
ServerSocket socket
AbstractServer server

Member Function Documentation

this AbstractServer  server,
ServerSocket  socket,
ClusterServer  cs
[inline]
 

Definition at line 382 of file ClusterServer.d.

References Buffer, AbstractServer::getLogger(), ProtocolReader, and ProtocolWriter.

void load IConduit  conduit  )  [inline]
 

Definition at line 409 of file ClusterServer.d.

References IBuffer::clear(), ProtocolWriter::Command, ProtocolWriter::flush(), ProtocolReader::getPacket(), ProtocolReader::getPayload(), IPayload::getTime(), ILogger::isEnabled(), ILevel::Level, ICacheLoader::load(), ClusterCache::lockWhereInvalid(), ClusterCache::put(), ProtocolWriter::put(), IBuffer::setConduit(), ProtocolWriter::success(), time, ILogger::trace(), and ClusterCache::unlock().

Referenced by CacheServer::service().

this AbstractServer  server,
ServerSocket  socket
[inline, inherited]
 

Construct a ServerThread for the given Server, upon the specified socket

Reimplemented in HttpThread.

Definition at line 68 of file ServerThread.d.

References AbstractServer::socket.

int run  )  [inline, inherited]
 

Execute this thread until the Server says to halt. Each thread waits in the socket.accept() state, waiting for a connection request to arrive. Upon selection, a thread dispatches the request via the request service-handler and, upon completion, enters the socket.accept() state once more.

Definition at line 85 of file ServerThread.d.

References ServerSocket::accept(), ILogger::error(), ILogger::fatal(), AbstractServer::getLogger(), and AbstractServer::service().


Member Data Documentation

ClusterCache cache [private]
 

Definition at line 371 of file ClusterServer.d.

IBuffer buffer [private]
 

Definition at line 372 of file ClusterServer.d.

ProtocolReader reader [private]
 

Definition at line 373 of file ClusterServer.d.

ProtocolWriter writer [private]
 

Definition at line 374 of file ClusterServer.d.

ILogger logger [private]
 

Definition at line 375 of file ClusterServer.d.

ServerSocket socket [inherited]
 

Definition at line 58 of file ServerThread.d.

AbstractServer server [inherited]
 

Definition at line 59 of file ServerThread.d.

Referenced by HttpBridge::this().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:00 2004 for Mango by doxygen 1.3.6