Scale Stack 0.3 Developer Documentation

scalestack::database_proxy::service Class Reference

#include <service.h>

Inheritance diagram for scalestack::database_proxy::service:
scalestack::network::stream_service scalestack::kernel::service

Public Member Functions

 service (kernel::module &module)
 ~service ()
network::streamadd_stream (void)
void remove_stream (network::stream *stream)
clientget_client (connection *connection, bool need_handshake)
void yield_client (client *client)
void remove_from_queue (connection *connection)

Private Member Functions

 service (const service &)
serviceoperator= (const service &)

Private Attributes

network::ip::tcp::connection_service _connection_service
network::ip::tcp::listener_service _listener_service
client_service _client_service

Detailed Description

Definition at line 40 of file service.h.


Constructor & Destructor Documentation

scalestack::database_proxy::service::service ( kernel::module module  ) 

Reimplemented from scalestack::kernel::service.

Definition at line 38 of file service.cc.

scalestack::database_proxy::service::~service (  )  [virtual]

Reimplemented from scalestack::kernel::service.

Definition at line 47 of file service.cc.

scalestack::database_proxy::service::service ( const service  )  [private]

Don't allow copying of objects.


Member Function Documentation

network::stream * scalestack::database_proxy::service::add_stream ( void   )  [virtual]
void scalestack::database_proxy::service::remove_stream ( network::stream stream  ) 

See network::stream_service::remove_stream().

Definition at line 56 of file service.cc.

client * scalestack::database_proxy::service::get_client ( connection connection,
bool  need_handshake 
)

Get a client connection to proxy to.

Definition at line 61 of file service.cc.

void scalestack::database_proxy::service::yield_client ( client client  ) 

Yield a client to other pending transactions.

Definition at line 66 of file service.cc.

void scalestack::database_proxy::service::remove_from_queue ( connection connection  ) 

Erase a connection from the queue.

Definition at line 71 of file service.cc.

service& scalestack::database_proxy::service::operator= ( const service  )  [private]

Don't allow assignment of objects.


Field Documentation

Definition at line 85 of file service.h.

Definition at line 86 of file service.h.

Definition at line 87 of file service.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 17 13:10:21 2011 by  doxygen 1.6.3