2005/5/9

     
 

class ServerDelegate

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdkx::orb::ServerDelegate Class Reference

#include <ServerDelegate.h>

Inheritance diagram for acdkx::orb::ServerDelegate:

org::omg::CORBA::portable::ObjectImpl org::omg::CORBA::portable::Delegate acdk::lang::Object org::omg::CORBA::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdkx::orb::AcdkObject acdkx::orb::CorObject acdkx::orb::namesrv::BindingIteratorImpl acdkx::orb::namesrv::NamingContextImpl acdkx::orb::selftests::TestInterfaceImpl tests::acdkx::arb::HelloImpl tests::acdkx::arb::TestInterfaceImpl tests::acdkx::arb::TtyImpl tests::acdkx::orb::AdressBookImpl List of all members.

Detailed Description

Implements the dynamic wrapper for CORBA interfaces.


Public Member Functions

 ServerDelegate ()
 called if this is server-component

 ServerDelegate (IN(RString) theobjectref)
 called if it is an client

 ServerDelegate (IN(RORB) theOrb, IN(RString) theobjectref)
 ServerDelegate (IN(RORB) theOrb, IN(RObjectKey) theObject)
 ~ServerDelegate ()
virtual void finalize ()
 This is for java-compatibility.

RObjectKey objectKey ()
void setObjectKey (IN(RObjectKey) key)
virtual::org::omg::CORBA::portable::RDelegate _get_delegate ()
virtual void _set_delegate (IN(::org::omg::CORBA::portable::RDelegate) del)
virtual bool is_nil ()
virtual::org::omg::CORBA::RObject get_interface_def ()
virtual::org::omg::CORBA::RObject duplicate ()
 does nothing, because internal reference counting will be used

virtual void release ()
 does nothing, because internal reference counting will be used

virtual bool is_a (IN(RString) logical_type_id)
virtual bool non_existent ()
virtual bool is_equivalent (IN(::org::omg::CORBA::RObject) other_object)
virtual int hash (int maximum)
::org::omg::CORBA::portable::ROutputStream _request (IN(RString) operation, bool responseExpected)
 called by a stub to obtain an OutputStream for marshaling arguments.

::org::omg::CORBA::portable::RInputStream _invoke (IN(::org::omg::CORBA::portable::ROutputStream) output) throw ( RApplicationException , RRemarshalException )
 called by a stup

virtual void _releaseReply (IN(::org::omg::CORBA::portable::RInputStream) input)
virtual bool is_local ()
::acdk::lang::ObjectlocalObject ()
virtual RString toString ()
 return a string representation of this object Object::toString() return getName() by default

virtual::org::omg::CORBA::RORB orb ()
virtual bool is_nil (::org::omg::CORBA::RObject self)
virtual::org::omg::CORBA::RObject get_interface_def (IN(::org::omg::CORBA::RObject) self)
virtual::org::omg::CORBA::RObject duplicate (IN(::org::omg::CORBA::RObject) self)
virtual void release (IN(::org::omg::CORBA::RObject) self)
virtual bool is_a (IN(::org::omg::CORBA::RObject) self, IN(RString) repository_id)
virtual bool non_existent (IN(::org::omg::CORBA::RObject) self)
virtual bool is_equivalent (IN(::org::omg::CORBA::RObject) self, IN(::org::omg::CORBA::RObject) rhs)
virtual int hash (IN(::org::omg::CORBA::RObject) self, int max)
virtual::org::omg::CORBA::portable::ROutputStream request (IN(::org::omg::CORBA::RObject) self, IN(RString) operation, bool responseExpected)
virtual::org::omg::CORBA::portable::RInputStream orb_invoke (IN(::org::omg::CORBA::RObject) self, IN(::org::omg::CORBA::portable::ROutputStream) os) throw ( RApplicationException , RRemarshalException )
virtual void releaseReply (IN(::org::omg::CORBA::RObject) self, IN(::org::omg::CORBA::portable::RInputStream) is)
virtual::org::omg::CORBA::RORB orb (IN(::org::omg::CORBA::RObject) self)
virtual bool is_local (IN(::org::omg::CORBA::RObject) self)
virtual RString get_typeid ()
 returns name of type id

virtual RString toString (IN(::org::omg::CORBA::RObject) self)
virtual void write (::org::omg::CORBA::portable::OutputStream &out)
bool isClient ()
void isClient (bool isclient)

Static Public Member Functions

RServerDelegate read (::org::omg::CORBA::portable::InputStream &in, IN(RClass) clz=Nil)
RServerDelegate string_to_object (IN(RString) str)
RString object_to_string (IN(::org::omg::CORBA::RObject) obj)

Private Attributes

::org::omg::CORBA::RORB _orb
RObjectKey _objectKey
 the remote this pointer

RObjectKey _currentObjectKey
 used to store the current remote this pointer.

ROrbConnection _connection
bool _isClient
 this instance of ServerDelegate manages a client proxy

bool _permanent
 This server side instant should be permanent service and will not be destroyed until ORB finished.


Constructor & Destructor Documentation

acdkx::orb::ServerDelegate::ServerDelegate  ) 
 

called if this is server-component

acdkx::orb::ServerDelegate::ServerDelegate IN(RString theobjectref  ) 
 

called if it is an client

acdkx::orb::ServerDelegate::ServerDelegate IN(RORB theOrb,
IN(RString theobjectref
 

acdkx::orb::ServerDelegate::ServerDelegate IN(RORB theOrb,
IN(RObjectKey theObject
 

acdkx::orb::ServerDelegate::~ServerDelegate  ) 
 


Member Function Documentation

virtual ::org::omg::CORBA::portable::RDelegate acdkx::orb::ServerDelegate::_get_delegate  )  [inline, virtual]
 

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

::org::omg::CORBA::portable::RInputStream acdkx::orb::ServerDelegate::_invoke IN(::org::omg::CORBA::portable::ROutputStream output  )  throw ( RApplicationException , RRemarshalException )
 

called by a stup

virtual void acdkx::orb::ServerDelegate::_releaseReply IN(::org::omg::CORBA::portable::RInputStream input  )  [virtual]
 

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

::org::omg::CORBA::portable::ROutputStream acdkx::orb::ServerDelegate::_request IN(RString operation,
bool  responseExpected
 

called by a stub to obtain an OutputStream for marshaling arguments.

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

virtual void acdkx::orb::ServerDelegate::_set_delegate IN(::org::omg::CORBA::portable::RDelegate del  )  [inline, virtual]
 

virtual ::org::omg::CORBA::RObject acdkx::orb::ServerDelegate::duplicate IN(::org::omg::CORBA::RObject self  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::Delegate.

virtual ::org::omg::CORBA::RObject acdkx::orb::ServerDelegate::duplicate  )  [virtual]
 

does nothing, because internal reference counting will be used

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

virtual void acdkx::orb::ServerDelegate::finalize  )  [virtual]
 

This is for java-compatibility.

For real clean using Destructor is a better way. But different to destructors inside finalize() calls to virtual methods will still be dispatched to derived classes.

Reimplemented from acdk::lang::Object.

virtual ::org::omg::CORBA::RObject acdkx::orb::ServerDelegate::get_interface_def IN(::org::omg::CORBA::RObject self  )  [inline]
 

Reimplemented from org::omg::CORBA::portable::Delegate.

virtual ::org::omg::CORBA::RObject acdkx::orb::ServerDelegate::get_interface_def  ) 
 

virtual RString acdkx::orb::ServerDelegate::get_typeid  )  [virtual]
 

returns name of type id

virtual int acdkx::orb::ServerDelegate::hash IN(::org::omg::CORBA::RObject self,
int  max
[inline, virtual]
 

Implements org::omg::CORBA::portable::Delegate.

virtual int acdkx::orb::ServerDelegate::hash int  maximum  )  [virtual]
 

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

virtual bool acdkx::orb::ServerDelegate::is_a IN(::org::omg::CORBA::RObject self,
IN(RString repository_id
[inline, virtual]
 

Implements org::omg::CORBA::portable::Delegate.

virtual bool acdkx::orb::ServerDelegate::is_a IN(RString logical_type_id  )  [virtual]
 

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

virtual bool acdkx::orb::ServerDelegate::is_equivalent IN(::org::omg::CORBA::RObject self,
IN(::org::omg::CORBA::RObject rhs
[inline, virtual]
 

Implements org::omg::CORBA::portable::Delegate.

virtual bool acdkx::orb::ServerDelegate::is_equivalent IN(::org::omg::CORBA::RObject other_object  )  [virtual]
 

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

virtual bool acdkx::orb::ServerDelegate::is_local IN(::org::omg::CORBA::RObject self  )  [inline, virtual]
 

virtual bool acdkx::orb::ServerDelegate::is_local  )  [virtual]
 

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

virtual bool acdkx::orb::ServerDelegate::is_nil ::org::omg::CORBA::RObject  self  )  [inline, virtual]
 

virtual bool acdkx::orb::ServerDelegate::is_nil  )  [virtual]
 

Implements org::omg::CORBA::portable::Delegate.

void acdkx::orb::ServerDelegate::isClient bool  isclient  )  [inline]
 

bool acdkx::orb::ServerDelegate::isClient  )  [inline]
 

::acdk::lang::Object* acdkx::orb::ServerDelegate::localObject  )  [inline]
 

virtual bool acdkx::orb::ServerDelegate::non_existent IN(::org::omg::CORBA::RObject self  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::Delegate.

virtual bool acdkx::orb::ServerDelegate::non_existent  )  [virtual]
 

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

RString acdkx::orb::ServerDelegate::object_to_string IN(::org::omg::CORBA::RObject obj  )  [static]
 

RObjectKey acdkx::orb::ServerDelegate::objectKey  )  [inline]
 

virtual ::org::omg::CORBA::RORB acdkx::orb::ServerDelegate::orb IN(::org::omg::CORBA::RObject self  )  [inline]
 

Reimplemented from org::omg::CORBA::portable::Delegate.

virtual ::org::omg::CORBA::RORB acdkx::orb::ServerDelegate::orb  ) 
 

virtual ::org::omg::CORBA::portable::RInputStream acdkx::orb::ServerDelegate::orb_invoke IN(::org::omg::CORBA::RObject self,
IN(::org::omg::CORBA::portable::ROutputStream os
throw ( RApplicationException , RRemarshalException ) [inline]
 

Reimplemented from org::omg::CORBA::portable::Delegate.

RServerDelegate acdkx::orb::ServerDelegate::read ::org::omg::CORBA::portable::InputStream in,
IN(RClass clz = Nil
[static]
 

virtual void acdkx::orb::ServerDelegate::release IN(::org::omg::CORBA::RObject self  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::Delegate.

virtual void acdkx::orb::ServerDelegate::release  )  [virtual]
 

does nothing, because internal reference counting will be used

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

virtual void acdkx::orb::ServerDelegate::releaseReply IN(::org::omg::CORBA::RObject self,
IN(::org::omg::CORBA::portable::RInputStream is
[inline, virtual]
 

Reimplemented from org::omg::CORBA::portable::Delegate.

virtual ::org::omg::CORBA::portable::ROutputStream acdkx::orb::ServerDelegate::request IN(::org::omg::CORBA::RObject self,
IN(RString operation,
bool  responseExpected
[inline]
 

Reimplemented from org::omg::CORBA::portable::Delegate.

void acdkx::orb::ServerDelegate::setObjectKey IN(RObjectKey key  )  [inline]
 

RServerDelegate acdkx::orb::ServerDelegate::string_to_object IN(RString str  )  [static]
 

virtual RString acdkx::orb::ServerDelegate::toString IN(::org::omg::CORBA::RObject self  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::Delegate.

virtual RString acdkx::orb::ServerDelegate::toString  )  [virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.

virtual void acdkx::orb::ServerDelegate::write ::org::omg::CORBA::portable::OutputStream out  )  [virtual]
 


Member Data Documentation

ROrbConnection acdkx::orb::ServerDelegate::_connection [private]
 

RObjectKey acdkx::orb::ServerDelegate::_currentObjectKey [private]
 

used to store the current remote this pointer.

It only differs if Server replies with LOCATION_FORWARD message

bool acdkx::orb::ServerDelegate::_isClient [private]
 

this instance of ServerDelegate manages a client proxy

RObjectKey acdkx::orb::ServerDelegate::_objectKey [private]
 

the remote this pointer

::org::omg::CORBA::RORB acdkx::orb::ServerDelegate::_orb [private]
 

Reimplemented from org::omg::CORBA::portable::ObjectImpl.

bool acdkx::orb::ServerDelegate::_permanent [private]
 

This server side instant should be permanent service and will not be destroyed until ORB finished.