Public Member Functions
Tonido::System::SyncProxyService Class Reference

Service that allows an asynchronous call to be changed to a synchronous one. More...

Inheritance diagram for Tonido::System::SyncProxyService:
Tonido::System::Service

List of all members.

Public Member Functions

 SyncProxyService ()
 Ctor.
virtual ~SyncProxyService ()
 Dtor.
virtual bool startup (MessageDispatcher *dispatcher)
 startup
virtual bool init (const std::string &a_basePath)
 init
virtual const std::string & name () const
 name
virtual bool shutdown ()
 shutdown
virtual void onMessage (const void *pSender, Tonido::Data::Message::SharedPtr &args)
 onMessage
boost::shared_ptr< SyncProxyTokenSyncProxyMessage (Tonido::Data::Message::SharedPtr &message)
 SyncProxyMessage.
boost::shared_ptr< SyncProxyTokenSyncNetProxyMessage (Tonido::Data::Message::SharedPtr &message, Tonido::Data::Message::SharedPtr &pNetworkMessage)
 SyncNetworkProxyMessage.
void cancelSync (const Poco::UUID &a_UUID)
 Cancels the SyncProxy Token.

Detailed Description

Service that allows an asynchronous call to be changed to a synchronous one.

This allows other services to perform a synchronous message request/response

---------------------- Operation: Defs::Sync::MO_SYNC Arguments: [Defs::Sync::MS_SYNC][Defs::Sync::S_SYNC_TOKEN] = UUID

This is the token that identifies the waiter event. Needs to be available for a sucessful call. ----------------------


Constructor & Destructor Documentation

Tonido::System::SyncProxyService::SyncProxyService ( )

Ctor.

Details if needed

Tonido::System::SyncProxyService::~SyncProxyService ( ) [virtual]

Dtor.

Details if needed


Member Function Documentation

bool Tonido::System::SyncProxyService::init ( const std::string &  a_basePath) [virtual]

init

Inits the Service

Implements Tonido::System::Service.

const std::string & Tonido::System::SyncProxyService::name ( ) const [virtual]

name

name of the service

Implements Tonido::System::Service.

void Tonido::System::SyncProxyService::onMessage ( const void *  pSender,
Tonido::Data::Message::SharedPtr &  args 
) [virtual]

onMessage

onMessage virtual

Implements Tonido::System::Service.

bool Tonido::System::SyncProxyService::shutdown ( ) [virtual]

shutdown

Shuts down the SyncProxyService Service

Implements Tonido::System::Service.

bool Tonido::System::SyncProxyService::startup ( MessageDispatcher dispatcher) [virtual]

startup

Starts the SyncProxyService Service

Implements Tonido::System::Service.

boost::shared_ptr< SyncProxyToken > Tonido::System::SyncProxyService::SyncNetProxyMessage ( Tonido::Data::Message::SharedPtr &  message,
Tonido::Data::Message::SharedPtr &  pNetworkMessage 
)

SyncNetworkProxyMessage.

Sends the message on behalf of the sender to the network and notifies sender when response is received.

SyncProxyToken::SharedPtr Tonido::System::SyncProxyService::SyncProxyMessage ( Tonido::Data::Message::SharedPtr &  message)

SyncProxyMessage.

Sends the message on behalf of the sender and notifies sender when response is received.


Generated on Wed Oct 12 2011 21:46:54. © CodeLathe LLC 2007-2011. All Rights Reserved.