TAO 2.0.4
|
Use the Leader/Follower loop to wait for one specific event in the invocation path. More...
#include <LF_Invocation_Event.h>
Public Member Functions | |
TAO_LF_Invocation_Event (void) | |
Constructor. | |
virtual | ~TAO_LF_Invocation_Event (void) |
Destructor. | |
int | successful (void) const |
int | error_detected (void) const |
Protected Member Functions | |
virtual void | state_changed_i (int new_state) |
Validate and perform the state change. | |
Private Member Functions | |
int | is_state_final (void) |
Check whether we have reached the final state.. |
Use the Leader/Follower loop to wait for one specific event in the invocation path.
Concrete event types and manipulation class through which the invocation data path would flow. Typically state changes of interest include whether a message has arrived, or timedout waiting for a message or if the connection is closed waiting for a message. Details of the states are documented within the class.
TAO_LF_Invocation_Event::TAO_LF_Invocation_Event | ( | void | ) |
Constructor.
TAO_LF_Invocation_Event::~TAO_LF_Invocation_Event | ( | void | ) | [virtual] |
Destructor.
int TAO_LF_Invocation_Event::error_detected | ( | void | ) | const [virtual] |
Return 1 if an error was detected while waiting for the event
Implements TAO_LF_Event.
int TAO_LF_Invocation_Event::is_state_final | ( | void | ) | [private, virtual] |
Check whether we have reached the final state..
Implements TAO_LF_Event.
void TAO_LF_Invocation_Event::state_changed_i | ( | int | new_state | ) | [protected, virtual] |
Validate and perform the state change.
This concrete class uses the following states declared in the class TAO_LF_Event
LFS_IDLE - The event is created, and is in initial state. LFS_ACTIVE - The event is active and it can transition to any of the following states, all the states are final. LFS_SUCCESS - The event has completed successfully. LFS_FAILURE - A failure has been detected while the event was active. LFS_TIMEOUT - The event has timed out. LFS_CONNECTION_CLOSED - The connection was closed when the state was active.
Implements TAO_LF_Event.
int TAO_LF_Invocation_Event::successful | ( | void | ) | const [virtual] |
Return 1 if the condition was satisfied successfully, 0 if it has not
Implements TAO_LF_Event.