ACE_QoS
6.3.2
|
Concrete factory for the QoS Session objects. More...
#include <QoS_Session_Factory.h>
Public Types | |
enum | ACE_QoS_Session_Type { ACE_RAPI_SESSION, ACE_GQOS_SESSION } |
Types of sessions for this factory to manage. More... | |
Public Member Functions | |
ACE_QoS_Session_Factory (void) | |
Default constructor. More... | |
~ACE_QoS_Session_Factory (void) | |
Default destructor. More... | |
ACE_QoS_Session * | create_session (ACE_QoS_Session_Type qos_session_type=ACE_DEFAULT_QOS_SESSION) |
Create a QoS session of the given type (RAPI or GQoS). More... | |
int | destroy_session (ACE_QoS_Session *qos_session) |
Destroy the QoS Session. More... | |
Static Public Attributes | |
static enum ACE_QoS_Session_Type | ACE_DEFAULT_QOS_SESSION |
Private Types | |
typedef ACE_Unbounded_Set< ACE_QoS_Session * > | QOS_SESSION_SET |
Unordered set of QoS Sessions. More... | |
Private Member Functions | |
int | add_session (ACE_QoS_Session *qos_session) |
int | remove_session (ACE_QoS_Session *qos_session) |
Private Attributes | |
QOS_SESSION_SET | qos_session_set_ |
Concrete factory for the QoS Session objects.
This class manages the life cycle of QoS Session objects. These objects are currently either RAPI session objects or GQoS session objects. It stores the sessions in an unbounded set.
|
private |
Unordered set of QoS Sessions.
ACE_QoS_Session_Factory::ACE_QoS_Session_Factory | ( | void | ) |
Default constructor.
ACE_QoS_Session_Factory::~ACE_QoS_Session_Factory | ( | void | ) |
Default destructor.
|
private |
Used by the create_session () to add new sessions to the set of sessions created by this factory.
ACE_QoS_Session * ACE_QoS_Session_Factory::create_session | ( | ACE_QoS_Session_Type | qos_session_type = ACE_DEFAULT_QOS_SESSION | ) |
Create a QoS session of the given type (RAPI or GQoS).
int ACE_QoS_Session_Factory::destroy_session | ( | ACE_QoS_Session * | qos_session | ) |
Destroy the QoS Session.
|
private |
Used by the destroy_session () to remove a session from the set of sessions created by this factory.
|
static |
The default QoS type supported on this platform.
ACE_DEFAULT_QOS_SESSION = ACE_RAPI_SESSION on Unix platforms with RAPI support = ACE_GQOS_SESSION on Windows platforms with GQOS support
|
private |