sends::authorize Class Reference
[Sends Pipeline Stage Classes]

User authorization SEDA stage. More...

#include <authorize.hh>

Inheritance diagram for sends::authorize:

sends::seda_stage sends::thread_pool

List of all members.

Public Member Functions

 authorize (int nThread, int nTrans, int nBuffer=128)
 Contructor.
 ~authorize (void)
 Destructor.
buffer_poolref_resource (void)
 get resource queue.
void filter (transaction *trans)
 Perform authorization processing.
const char * stage_name (void) const
 Stage name.


Detailed Description

User authorization SEDA stage.

This stage performs the user authentication and copies the user data to the transaction object. The transaction is then passed on to the following stage.

Author:
John Zweizig
Version:
1.0: Last modified January 23, 2008

Constructor & Destructor Documentation

sends::authorize::authorize ( int  nThread,
int  nTrans,
int  nBuffer = 128 
)

Contructor.

Construct an authorization stage and thread pool consisting of nThread threads, with an input queue of nTrans slots and a resource queue with nBuffer buffers.

Parameters:
nThread Number of threads in the authorization thread pool.
nTrans Maximum number of transactions in th input queue.
nBuffer Number of buffers in the resource queue.

sends::authorize::~authorize ( void   ) 

Destructor.

Destroy the authorization stage.


Member Function Documentation

buffer_pool & sends::authorize::ref_resource ( void   )  [inline]

get resource queue.

Return a modifiable reference to the resource buffer queue.

Returns:
Reference to the resource queue.

void sends::authorize::filter ( transaction trans  )  [virtual]

Perform authorization processing.

Complete the connection handshake with the client and perform the user authentication processing. At present (2008.01.23) there is no user authentication, although the stage reads a string that will be used for this purpose in the future.

Parameters:
trans Transaction object to be processed by this stage.

Implements sends::seda_stage.

const char* sends::authorize::stage_name ( void   )  const [virtual]

Stage name.

Return a constant pointer to a null-terminated character vector with the stage name ("authorization").

Returns:
Pointer to the stage name string.

Implements sends::seda_stage.


The documentation for this class was generated from the following file:

Generated on Tue Jun 10 12:18:12 2008 for SENDS by  doxygen 1.5.5