#include <Token_Request_Reply.h>
Collaboration diagram for ACE_Token_Request:

Public Types | |
| enum | OPERATION { ACQUIRE, RELEASE, RENEW, REMOVE, TRY_ACQUIRE } |
| Operation types. More... | |
Public Methods | |
| ACE_Token_Request (void) | |
| Default constructor. More... | |
| ACE_Token_Request (int token_type, int proxy_type, ACE_UINT32 operation, const ACE_TCHAR token_name[], const ACE_TCHAR client_id[], const ACE_Synch_Options &options) | |
| token_type - MUTEX, RWLOCK proxy_type - MUTEX, RLOCK, WLOCK (acquires mean different things) operation - method token_name client_id options - we check USE_TIMEOUT and use the arg. More... | |
| ACE_UINT32 | length (void) const |
| Get the length of the encoded/decoded message. More... | |
| void | length (ACE_UINT32) |
| Set the length of the encoded/decoded message. More... | |
| int | proxy_type (void) const |
| Get the type of proxy. More... | |
| void | proxy_type (int proxy_type) |
| Set the type of proxy. More... | |
| int | token_type (void) const |
| Get the type of token. More... | |
| void | token_type (int token_type) |
| Set the type of token. More... | |
| ACE_UINT32 | operation_type (void) const |
| Get the type of the operation. More... | |
| void | operation_type (ACE_UINT32) |
| Set the type of the operation. More... | |
| ACE_UINT32 | requeue_position (void) const |
| Get the requeue position. These should be used when renew is the operation type. More... | |
| void | requeue_position (ACE_UINT32) |
| Set the requeue position. These should be used when renew is the operation type. More... | |
| ACE_UINT32 | notify (void) const |
| Get notify. These should be used when acquire is the operation type. More... | |
| void | notify (ACE_UINT32) |
| Set notify. These should be used when acquire is the operation type. More... | |
| ACE_Synch_Options & | options (void) const |
| void | options (const ACE_Synch_Options &options) |
| ACE_TCHAR * | token_name (void) const |
| ACE_TCHAR * | client_id (void) const |
| void | token_name (const ACE_TCHAR *token_name, const ACE_TCHAR *client_id) |
| int | encode (void *&) |
| Encode the message before transmission. More... | |
| int | decode (void) |
| Decode message after reception. This must be called to set the internal options. More... | |
| void | dump (void) const |
| Print out the values of the message for debugging purposes. More... | |
Private Attributes | |
| ACE_Token_Request::Transfer | transfer_ |
| ACE_TCHAR * | token_name_ |
| Pointer to the beginning of the token name in this->data_. More... | |
| ACE_TCHAR * | client_id_ |
| Pointer to the beginning of the client id in this->data_;. More... | |
| ACE_Synch_Options | options_ |
| Holds arg, sec, usec, etc. More... | |
This class is implemented to minimize data copying. In particular, all marshaling is done in situ...
|
|
Operation types.
|
|
|
Default constructor.
|
|
||||||||||||||||||||||||||||
|
token_type - MUTEX, RWLOCK proxy_type - MUTEX, RLOCK, WLOCK (acquires mean different things) operation - method token_name client_id options - we check USE_TIMEOUT and use the arg.
|
|
|
|
|
|
Decode message after reception. This must be called to set the internal options.
|
|
|
Print out the values of the message for debugging purposes.
|
|
|
Encode the message before transmission.
|
|
|
Set the length of the encoded/decoded message.
|
|
|
Get the length of the encoded/decoded message.
|
|
|
Set notify. These should be used when acquire is the operation type.
|
|
|
Get notify. These should be used when acquire is the operation type.
|
|
|
Set the type of the operation.
|
|
|
Get the type of the operation.
|
|
|
|
|
|
|
|
|
Set the type of proxy.
|
|
|
Get the type of proxy.
|
|
|
Set the requeue position. These should be used when renew is the operation type.
|
|
|
Get the requeue position. These should be used when renew is the operation type.
|
|
||||||||||||
|
|
|
|
|
|
|
Set the type of token.
|
|
|
Get the type of token.
|
|
|
Pointer to the beginning of the client id in this->data_;.
|
|
|
Holds arg, sec, usec, etc.
|
|
|
Pointer to the beginning of the token name in this->data_.
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001