metaproxy  1.13.0
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
metaproxy_1::filter::SessionShared::BackendClass Class Reference
Inheritance diagram for metaproxy_1::filter::SessionShared::BackendClass:
Inheritance graph
Collaboration diagram for metaproxy_1::filter::SessionShared::BackendClass:
Collaboration graph

Public Member Functions

 BackendClass (const yazpp_1::GDU &init_request, int resultset_ttl, int resultset_max, int session_ttl, Odr_int preferredRecordSize, Odr_int maximumRecordSize)
 
 ~BackendClass ()
 

Private Member Functions

BackendInstancePtr create_backend (const Package &package, int &code, std::string &addinfo)
 
void remove_backend (BackendInstancePtr b)
 
BackendInstancePtr get_backend (const Package &package, int &code, std::string &addinfo)
 
void use_backend (BackendInstancePtr b)
 
void release_backend (BackendInstancePtr b)
 
bool expire_instances ()
 

Private Attributes

bool m_named_result_sets
 
BackendInstanceList m_backend_list
 
yazpp_1::GDU m_init_request
 
yazpp_1::GDU m_init_response
 
boost::mutex m_mutex_backend_class
 
boost::condition m_cond_set_ready
 
int m_sequence_top
 
time_t m_backend_set_ttl
 
time_t m_backend_expiry_ttl
 
size_t m_backend_set_max
 
Odr_int m_preferredMessageSize
 
Odr_int m_maximumRecordSize
 
int m_no_failed
 
int m_no_succeeded
 
int m_no_init
 

Friends

class Rep
 
struct Frontend
 

Detailed Description

Definition at line 118 of file filter_session_shared.cpp.

Constructor & Destructor Documentation

metaproxy_1::filter::SessionShared::BackendClass::BackendClass ( const yazpp_1::GDU &  init_request,
int  resultset_ttl,
int  resultset_max,
int  session_ttl,
Odr_int  preferredRecordSize,
Odr_int  maximumRecordSize 
)
metaproxy_1::filter::SessionShared::BackendClass::~BackendClass ( )

Member Function Documentation

BackendInstancePtr metaproxy_1::filter::SessionShared::BackendClass::create_backend ( const Package &  package,
int &  code,
std::string &  addinfo 
)
private
bool metaproxy_1::filter::SessionShared::BackendClass::expire_instances ( )
private
BackendInstancePtr metaproxy_1::filter::SessionShared::BackendClass::get_backend ( const Package &  package,
int &  code,
std::string &  addinfo 
)
private
void metaproxy_1::filter::SessionShared::BackendClass::release_backend ( BackendInstancePtr  b)
private
void metaproxy_1::filter::SessionShared::BackendClass::remove_backend ( BackendInstancePtr  b)
private
void metaproxy_1::filter::SessionShared::BackendClass::use_backend ( BackendInstancePtr  b)
private

Friends And Related Function Documentation

friend struct Frontend
friend

Definition at line 120 of file filter_session_shared.cpp.

friend class Rep
friend

Definition at line 119 of file filter_session_shared.cpp.

Member Data Documentation

time_t metaproxy_1::filter::SessionShared::BackendClass::m_backend_expiry_ttl
private

Definition at line 137 of file filter_session_shared.cpp.

BackendInstanceList metaproxy_1::filter::SessionShared::BackendClass::m_backend_list
private

Definition at line 122 of file filter_session_shared.cpp.

size_t metaproxy_1::filter::SessionShared::BackendClass::m_backend_set_max
private

Definition at line 138 of file filter_session_shared.cpp.

time_t metaproxy_1::filter::SessionShared::BackendClass::m_backend_set_ttl
private

Definition at line 136 of file filter_session_shared.cpp.

boost::condition metaproxy_1::filter::SessionShared::BackendClass::m_cond_set_ready
private

Definition at line 134 of file filter_session_shared.cpp.

yazpp_1::GDU metaproxy_1::filter::SessionShared::BackendClass::m_init_request
private

Definition at line 131 of file filter_session_shared.cpp.

yazpp_1::GDU metaproxy_1::filter::SessionShared::BackendClass::m_init_response
private

Definition at line 132 of file filter_session_shared.cpp.

Odr_int metaproxy_1::filter::SessionShared::BackendClass::m_maximumRecordSize
private

Definition at line 140 of file filter_session_shared.cpp.

boost::mutex metaproxy_1::filter::SessionShared::BackendClass::m_mutex_backend_class
private

Definition at line 133 of file filter_session_shared.cpp.

bool metaproxy_1::filter::SessionShared::BackendClass::m_named_result_sets
private

Definition at line 121 of file filter_session_shared.cpp.

int metaproxy_1::filter::SessionShared::BackendClass::m_no_failed
private

Definition at line 141 of file filter_session_shared.cpp.

int metaproxy_1::filter::SessionShared::BackendClass::m_no_init
private

Definition at line 143 of file filter_session_shared.cpp.

int metaproxy_1::filter::SessionShared::BackendClass::m_no_succeeded
private

Definition at line 142 of file filter_session_shared.cpp.

Odr_int metaproxy_1::filter::SessionShared::BackendClass::m_preferredMessageSize
private

Definition at line 139 of file filter_session_shared.cpp.

int metaproxy_1::filter::SessionShared::BackendClass::m_sequence_top
private

Definition at line 135 of file filter_session_shared.cpp.


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