commore  1.0.6-SNAPSHOT
All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::ProxyService Class Reference

#include <Service.h>

+ Inheritance diagram for commore::ProxyService:

Public Member Functions

 ProxyService (const AChar *class_name, const AChar *name, const AChar *args)
 
bool is_proxy () const
 
virtual long call (const Tuple &inArgs, Tuple &outArgs)
 
virtual long call (const AChar *interface_name, const Tuple &inArgs, Tuple &outArgs)
 
virtual long call (const AChar *interface_name, const Tuple &inArgs, Tuple &outArgs, const Tuple *param)
 
AString get_address () const
 
bool check_connection ()
 
- Public Member Functions inherited from commore::Service
ListAStringget_addresses (ListAString &addresses) const
 
AString get_address () const
 
PService get_service ()
 
const AStringget_name () const
 
void set_name (const AChar *name)
 
const AStringget_class_name () const
 
virtual long connect (const AChar *user_name, const AChar *password)
 
AString get_session_id () const
 
void set_session_id (const AChar *session_id)
 
Tupleget_session_context_ptr (bool createIfNeeded=false)
 
virtual bool get_session_context (Tuple &t)
 
virtual void set_session_context (const Tuple &sessionContext)
 
virtual bool get_self_session_context (Tuple &t) const
 
virtual void set_self_session_context ()
 
long publish (PServiceManager &manager)
 
long unpublish (PServiceManager &manager)
 
long unpublish ()
 
long get_managers (List< PServiceManager > &managers) const
 
long call (Tuple &sessionContext, const AChar *interface_name, const Tuple &inArgs, Tuple &outArgs)
 
long get_interface (const AChar *name, PInterface &inter)
 
bool add_interface (const PInterface &inter)
 
- Public Member Functions inherited from commore::Interface
 Interface (const AChar *name)
 
virtual long call (const Tuple &in_args, Tuple &out_args, const Tuple *param)
 
const AStringget_name () const
 
virtual PService get_service () const
 
CriticalSectionget_cs () const
 
- Public Member Functions inherited from commore::RefObject
 RefObject ()
 
virtual void attach ()
 
virtual void release ()
 
virtual void nested_attach ()
 
virtual void nested_release ()
 
virtual void interface_release ()
 
virtual void Run ()
 
virtual CriticalSectionget_cs ()
 

Additional Inherited Members

- Static Public Member Functions inherited from commore::Service
static AutoRefBase create (const AChar *)
 
static AutoRefBase create (const AChar *, ServiceFactory &factory)
 
static AutoRefBase bind (const AChar *spec)
 
- Static Public Member Functions inherited from commore::RefObject
static AutoRefBase auto_create ()
 
static AutoRefBase auto_create (const AChar *s)
 
static AutoRefBase create ()
 
static AutoRefBase create (const AChar *s)
 
static AutoRefBase bind ()
 
static AutoRefBase bind (const AChar *s)
 
static const AChar * factory_name ()
 
- Protected Member Functions inherited from commore::Service
 Service (const AChar *class_name)
 
 Service (const AChar *class_name, const AChar *name, const AChar *address)
 
 Service (const AChar *class_name, const Tuple &init)
 
- Protected Member Functions inherited from commore::Interface
bool set_service (const PService &service)
 
 Interface (const Interface &)
 
- Protected Attributes inherited from commore::Interface
Internals_ * internals_
 

Detailed Description

Proxy service for client implementation

Member Function Documentation

virtual long commore::ProxyService::call ( const Tuple inArgs,
Tuple outArgs 
)
virtual

Basic call method

Reimplemented from commore::Service.

virtual long commore::ProxyService::call ( const AChar *  interface_name,
const Tuple inArgs,
Tuple outArgs 
)
virtual

Call method with interface name

Reimplemented from commore::Service.

virtual long commore::ProxyService::call ( const AChar *  interface_name,
const Tuple inArgs,
Tuple outArgs,
const Tuple param 
)
virtual

Call method with interface name and param

Reimplemented from commore::Service.

bool commore::ProxyService::check_connection ( )

Reserved for proxy

AString commore::ProxyService::get_address ( ) const

Get remote service address

bool commore::ProxyService::is_proxy ( ) const
inlinevirtual
Returns
true if interface is not an implementation but a proxy

Reimplemented from commore::Interface.


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