openlsd.web.extension.LSDWebPoolConnection Class Reference

Inheritance diagram for openlsd.web.extension.LSDWebPoolConnection:

Inheritance graph
[legend]
Collaboration diagram for openlsd.web.extension.LSDWebPoolConnection:

Collaboration graph
[legend]

List of all members.


Detailed Description

Pool of Web Get connection for Web Get operations
Author:
Frederic BREGIER LGPL 2007

Public Member Functions

 LSDWebPoolConnection (LSDDbIpPort ipport, LSDWebClientGetSessionHandler lwcgsh)
LSDWebClientGet getGet ()
void close (LSDWebClientGet session)
void close (LSDClientCommon client)
void remove (LSDClientCommon client)
int getNbInPool ()
int checkNbInPool ()
void closeAll ()

Private Attributes

LSDDbIpPort ipport = null
LSDWebClientGetSessionHandler lwcgsh = null
int count = 0
ConcurrentLinkedQueue
< LSDWebClientGet
list = null

Constructor & Destructor Documentation

openlsd.web.extension.LSDWebPoolConnection.LSDWebPoolConnection ( LSDDbIpPort  ipport,
LSDWebClientGetSessionHandler  lwcgsh 
)

Constructor

Parameters:
ipport 
lwcgsh 


Member Function Documentation

LSDWebClientGet openlsd.web.extension.LSDWebPoolConnection.getGet (  ) 

Get One WebGet Client

Returns:
The client in pool mode or null

void openlsd.web.extension.LSDWebPoolConnection.close ( LSDWebClientGet  session  ) 

Returns the session in the pool

Parameters:
session 

void openlsd.web.extension.LSDWebPoolConnection.close ( LSDClientCommon  client  )  [virtual]

void openlsd.web.extension.LSDWebPoolConnection.remove ( LSDClientCommon  client  )  [virtual]

int openlsd.web.extension.LSDWebPoolConnection.getNbInPool (  ) 

Returns the number of sessions in the pool

Returns:
the number of sessions

int openlsd.web.extension.LSDWebPoolConnection.checkNbInPool (  ) 

Returns the number of active sessions in the pool

Returns:
the number of active sessions

void openlsd.web.extension.LSDWebPoolConnection.closeAll (  ) 

Close all connections


Member Data Documentation

Associated ipport

The associated Get Client Session Handler

Number of sessions in pool

ConcurrentLinkedQueue<LSDWebClientGet> openlsd.web.extension.LSDWebPoolConnection.list = null [private]

List of Web Get Client


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