Maintains state information for a particular servant. More...
#include <CSD_TP_Servant_State.h>
Public Types | |
typedef TAO_Intrusive_Ref_Count_Handle < TP_Servant_State > | HandleType |
Handle Type (aka, Smart Pointer Type). | |
Public Member Functions | |
TP_Servant_State () | |
Default Constructor. | |
virtual | ~TP_Servant_State () |
Virtual Destructor. | |
bool | busy_flag () const |
Accessor for the servant busy flag. | |
void | busy_flag (bool new_value) |
Mutator for the servant busy flag. | |
Private Attributes | |
bool | busy_flag_ |
The servant's current "busy" state (true == busy, false == not busy). |
Maintains state information for a particular servant.
This TP_Servant_State class is an intrusively reference-counted class. This allows it to be held in a "smart pointer" (aka, handle) object that will manage the reference-counting automagically.
One TP_Servant_State object is created for each servant object for which a request is to be dispatched. The servant state objects are held (via smart pointers) in a TP_Servant_State_Map object. In turn, the TP_Servant_State_Map object is a data member of the TP_Stategy class. Each request placed on to the request queue will hold a reference (via a smart pointer) to the servant state object.
Currently, the only "state" info held in this TP_Servant_State class is the servant's busy flag.
Definition at line 56 of file CSD_TP_Servant_State.h.
typedef TAO_Intrusive_Ref_Count_Handle<TP_Servant_State> TAO::CSD::TP_Servant_State::HandleType |
Handle Type (aka, Smart Pointer Type).
Definition at line 62 of file CSD_TP_Servant_State.h.
TAO::CSD::TP_Servant_State::TP_Servant_State | ( | ) |
TAO::CSD::TP_Servant_State::~TP_Servant_State | ( | ) | [virtual] |
bool TAO::CSD::TP_Servant_State::busy_flag | ( | ) | const |
Accessor for the servant busy flag.
Definition at line 16 of file CSD_TP_Servant_State.inl.
{ return this->busy_flag_; }
void TAO::CSD::TP_Servant_State::busy_flag | ( | bool | new_value | ) |
Mutator for the servant busy flag.
Definition at line 24 of file CSD_TP_Servant_State.inl.
{ this->busy_flag_ = new_value; }
bool TAO::CSD::TP_Servant_State::busy_flag_ [private] |
The servant's current "busy" state (true == busy, false == not busy).
Definition at line 79 of file CSD_TP_Servant_State.h.