MIRA
Public Member Functions | Protected Attributes | List of all members
AbstractDeferredInvoker Class Referenceabstract

Abstract interface for DeferredInvoker which is a class to support different RPC backends. More...

#include <rpc/AbstractDeferredInvoker.h>

Inheritance diagram for AbstractDeferredInvoker:
Inheritance graph
[legend]

Public Member Functions

 AbstractDeferredInvoker (const std::string &callId, const std::string &service, const std::string &method)
 
virtual ~AbstractDeferredInvoker ()
 
const std::string & getCallId () const
 Returns the unique ID of the RPC call that is about to be invoked by this invoker. More...
 
void setFinishHandler (DeferredInvokerFinishHandler *handler)
 Sets a handler that is called after the RPC call was invoked and has finished. More...
 
virtual void invoke ()=0
 Invokes the RPC call that is represented by this DeferredInvoker. More...
 
const std::string & getServiceName () const
 Returns the name of the service where the method is invoked. More...
 
const std::string & getMethodName () const
 Returns the name of the method that is invoked. More...
 

Protected Attributes

std::string mCallId
 
std::string mServiceName
 
std::string mMethodName
 
DeferredInvokerFinishHandlermFinishHandler
 

Detailed Description

Abstract interface for DeferredInvoker which is a class to support different RPC backends.

Constructor & Destructor Documentation

◆ AbstractDeferredInvoker()

AbstractDeferredInvoker ( const std::string &  callId,
const std::string &  service,
const std::string &  method 
)
inline

◆ ~AbstractDeferredInvoker()

virtual ~AbstractDeferredInvoker ( )
inlinevirtual

Member Function Documentation

◆ getCallId()

const std::string& getCallId ( ) const
inline

Returns the unique ID of the RPC call that is about to be invoked by this invoker.

◆ setFinishHandler()

void setFinishHandler ( DeferredInvokerFinishHandler handler)
inline

Sets a handler that is called after the RPC call was invoked and has finished.

◆ invoke()

virtual void invoke ( )
pure virtual

Invokes the RPC call that is represented by this DeferredInvoker.

Implemented in RPCServer::DeferredInvoker< Backend >.

◆ getServiceName()

const std::string& getServiceName ( ) const
inline

Returns the name of the service where the method is invoked.

◆ getMethodName()

const std::string& getMethodName ( ) const
inline

Returns the name of the method that is invoked.

Member Data Documentation

◆ mCallId

std::string mCallId
protected

◆ mServiceName

std::string mServiceName
protected

◆ mMethodName

std::string mMethodName
protected

◆ mFinishHandler

DeferredInvokerFinishHandler* mFinishHandler
protected

The documentation for this class was generated from the following file: