TAO
2.3.3
|
Represents a node in the queue of incoming messages. More...
#include <Queued_Data.h>
Public Member Functions | |
TAO_Queued_Data (ACE_Allocator *alloc=0) | |
Default Constructor. More... | |
TAO_Queued_Data (ACE_Message_Block *mb, ACE_Allocator *alloc=0) | |
Constructor. More... | |
TAO_Queued_Data (const TAO_Queued_Data &qd) | |
Copy constructor. More... | |
int | consolidate (void) |
size_t | missing_data (void) const |
Get missing data. More... | |
void | missing_data (size_t data) |
Set missing data. More... | |
TAO_GIOP_Message_Version const & | giop_version (void) const |
Get the GIOP version. More... | |
CORBA::Octet | byte_order (void) const |
Get byte_order. More... | |
CORBA::Boolean | more_fragments (void) const |
Get more fragments. More... | |
GIOP::MsgType | msg_type (void) const |
Get message type. More... | |
TAO_Queued_Data * | next (void) const |
Get next. More... | |
void | next (TAO_Queued_Data *qd) |
Set next. More... | |
ACE_Message_Block * | msg_block (void) const |
Get message block. More... | |
void | msg_block (ACE_Message_Block *mb) |
Set message block. More... | |
void | state (const TAO_GIOP_Message_State &state) |
Set the state. More... | |
const TAO_GIOP_Message_State & | state (void) const |
Get the state. More... | |
Static Public Member Functions | |
static TAO_Queued_Data * | make_queued_data (ACE_Allocator *message_buffer_alloc=0, ACE_Allocator *input_cdr_alloc=0, ACE_Data_Block *db=0) |
Creation of a node in the queue. More... | |
static void | release (TAO_Queued_Data *qd) |
Deletion of a node from the queue. More... | |
static TAO_Queued_Data * | duplicate (TAO_Queued_Data &qd) |
Static Private Member Functions | |
static void | replace_data_block (ACE_Message_Block &mb) |
Private Attributes | |
ACE_Message_Block * | msg_block_ |
The message block that contains the message. More... | |
TAO_GIOP_Message_State | state_ |
State of this queued data. More... | |
TAO_Queued_Data * | next_ |
Pounter to the next element in the queue. More... | |
ACE_Allocator * | allocator_ |
The allocator used to allocate this class. More... | |
Missing Data details | |
The missing_data_ member contains the number of bytes of data missing from msg_block_. | |
size_t | missing_data_ |
Represents a node in the queue of incoming messages.
This class contains necessary information about a message that is stored in the queue. Such a node can be used by the incoming thread from the reactor to dequeue and process the message by sending it to the higher layers of the ORB.
The ACE_Message_Block contained within this class may contain a chain of message blocks (usually when GIOP fragments are involved). In that case consolidate () needs to be called prior to being sent to higher layers of the ORB when the GIOP fragment chain is complete.
TAO_Queued_Data::TAO_Queued_Data | ( | ACE_Allocator * | alloc = 0 | ) |
Default Constructor.
TAO_Queued_Data::TAO_Queued_Data | ( | ACE_Message_Block * | mb, |
ACE_Allocator * | alloc = 0 |
||
) |
Constructor.
TAO_Queued_Data::TAO_Queued_Data | ( | const TAO_Queued_Data & | qd | ) |
Copy constructor.
CORBA::Octet TAO_Queued_Data::byte_order | ( | void | ) | const |
Get byte_order.
int TAO_Queued_Data::consolidate | ( | void | ) |
Consolidate this fragments chained message blocks into one.
|
static |
Duplicate ourselves. This creates a copy of ourselves on the heap and returns a pointer to the duplicated node.
TAO_GIOP_Message_Version const & TAO_Queued_Data::giop_version | ( | void | ) | const |
Get the GIOP version.
|
static |
Creation of a node in the queue.
size_t TAO_Queued_Data::missing_data | ( | void | ) | const |
Get missing data.
void TAO_Queued_Data::missing_data | ( | size_t | data | ) |
Set missing data.
CORBA::Boolean TAO_Queued_Data::more_fragments | ( | void | ) | const |
Get more fragments.
ACE_Message_Block * TAO_Queued_Data::msg_block | ( | void | ) | const |
Get message block.
void TAO_Queued_Data::msg_block | ( | ACE_Message_Block * | mb | ) |
Set message block.
GIOP::MsgType TAO_Queued_Data::msg_type | ( | void | ) | const |
Get message type.
TAO_Queued_Data * TAO_Queued_Data::next | ( | void | ) | const |
Get next.
void TAO_Queued_Data::next | ( | TAO_Queued_Data * | qd | ) |
Set next.
|
static |
Deletion of a node from the queue.
|
staticprivate |
Replace the datablock with a one allocated on the heap or allocator
void TAO_Queued_Data::state | ( | const TAO_GIOP_Message_State & | state | ) |
Set the state.
const TAO_GIOP_Message_State & TAO_Queued_Data::state | ( | void | ) | const |
Get the state.
|
private |
The allocator used to allocate this class.
|
private |
Data missing in the above message that hasn't been read or processed yet, the value TAO_MISSING_DATA_UNDEFINED indicates it hasn't been processed yet, otherwise greater or equal zero.
|
private |
The message block that contains the message.
|
private |
Pounter to the next element in the queue.
|
private |
State of this queued data.