Public Member Functions | Private Member Functions | Private Attributes

TAO_Notify_Reactive_Task Class Reference

A reactive worker task. Simply executes the command in the caller's context. More...

#include <Reactive_Task.h>

Inheritance diagram for TAO_Notify_Reactive_Task:
Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Reactive_Task:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_Notify_Reactive_Task (void)
 Constructor.
virtual ~TAO_Notify_Reactive_Task (void)
 Destructor.
void init (void)
 Init the reactive task.
virtual void shutdown (void)
 Shutdown task.
virtual void execute (TAO_Notify_Method_Request &method_request)
 Exec the request.
virtual TAO_Notify_Timertimer (void)
 The object used by clients to register timers. This method returns a Reactor based Timer.
virtual
TAO_Notify_Buffering_Strategy
buffering_strategy (void)
 Returns NULL.

Private Member Functions

virtual void release (void)
 Release.

Private Attributes

TAO_Notify_Timer_Reactor::Ptr timer_
 The timer.

Detailed Description

A reactive worker task. Simply executes the command in the caller's context.

Definition at line 35 of file Reactive_Task.h.


Constructor & Destructor Documentation

TAO_Notify_Reactive_Task::TAO_Notify_Reactive_Task ( void   ) 

Constructor.

Definition at line 15 of file Reactive_Task.cpp.

  :timer_ (0)
{
}

TAO_Notify_Reactive_Task::~TAO_Notify_Reactive_Task ( void   )  [virtual]

Destructor.

Definition at line 20 of file Reactive_Task.cpp.

{
}


Member Function Documentation

TAO_Notify_Buffering_Strategy * TAO_Notify_Reactive_Task::buffering_strategy ( void   )  [virtual]

Returns NULL.

Definition at line 8 of file Reactive_Task.inl.

{
  return 0;
}

void TAO_Notify_Reactive_Task::execute ( TAO_Notify_Method_Request method_request  )  [virtual]

Exec the request.

Implements TAO_Notify_Worker_Task.

Definition at line 48 of file Reactive_Task.cpp.

{
  method_request.execute ();
}

void TAO_Notify_Reactive_Task::init ( void   ) 

Init the reactive task.

Definition at line 25 of file Reactive_Task.cpp.

{
  ACE_ASSERT (this->timer_.get() == 0);

  TAO_Notify_Timer_Reactor* timer = 0;
  ACE_NEW_THROW_EX (timer,
                    TAO_Notify_Timer_Reactor (),
                    CORBA::NO_MEMORY ());
  this->timer_.reset (timer);
}

void TAO_Notify_Reactive_Task::release ( void   )  [private, virtual]

Release.

Implements TAO_Notify_Refcountable.

Definition at line 37 of file Reactive_Task.cpp.

{
  delete this; //TODO: Release via factory.
}

void TAO_Notify_Reactive_Task::shutdown ( void   )  [virtual]

Shutdown task.

Implements TAO_Notify_Worker_Task.

Definition at line 43 of file Reactive_Task.cpp.

{
}

TAO_Notify_Timer * TAO_Notify_Reactive_Task::timer ( void   )  [virtual]

The object used by clients to register timers. This method returns a Reactor based Timer.

Implements TAO_Notify_Worker_Task.

Definition at line 54 of file Reactive_Task.cpp.

{
  return this->timer_.get();
}


Member Data Documentation

The timer.

Definition at line 62 of file Reactive_Task.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines