Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

_SimpleAdapterStub Class Reference

Inheritance diagram for _SimpleAdapterStub:

Inheritance graph
[legend]
Collaboration diagram for _SimpleAdapterStub:

Collaboration graph
[legend]
List of all members.

Public Methods

 _SimpleAdapterStub ()
void export (org.omg.CORBA.Object obj)
void exportWithPort (org.omg.CORBA.Object obj, int port)
void unexport (org.omg.CORBA.Object obj)
String [] _ids ()

Static Private Attributes

String [] _ids = { org.objectweb.david.apis.binding.simpleoa.SimpleAdapterHelper.id()}

Detailed Description

org.objectweb.david.apis.binding.simpleoa.SimpleAdapter Client Stub generated by the Idl2Java Compiler 3.1 of Jonathan

Definition at line 18 of file _SimpleAdapterStub.java.


Constructor & Destructor Documentation

_SimpleAdapterStub::_SimpleAdapterStub ( ) [inline]
 

Definition at line 20 of file _SimpleAdapterStub.java.

00020 {}


Member Function Documentation

String[] _SimpleAdapterStub::_ids ( ) [inline]
 

Definition at line 138 of file _SimpleAdapterStub.java.

00138                                {
00139                 return _ids;
00140         }

void _SimpleAdapterStub::export ( org.omg.CORBA.Object obj ) [inline]
 

Exports a CORBA object to the target adapter.

Parameters:
obj   a CORBA object.

Reimplemented from SimpleAdapterOperations.

Definition at line 27 of file _SimpleAdapterStub.java.

00027                                                         {
00028                 Delegate _d = _get_delegate();
00029                 if (_d.is_local(this)) {
00030                         ServantObject _servant = _d.servant_preinvoke(this,"export",SimpleAdapterOperations.class);
00031                         if (_servant != null) {
00032                                 try {
00033                                         ((SimpleAdapterOperations) _servant.servant).export(obj);
00034                                         return;
00035                                 } finally {
00036                                         _d.servant_postinvoke(this,_servant);
00037                                 }
00038                         }
00039                 }
00040                 OutputStream _ostream = _d.request(this,"export",true);
00041                 // argument .... marshalling
00042                 _ostream.write_Object(obj);
00043                 //reply
00044                 try {
00045                         InputStream _istream = _d.invoke(this,_ostream);
00046                         _d.releaseReply(this,_istream);
00047                         return ;
00048                 } catch (ApplicationException _e) {
00049                         InputStream _istream = _e.getInputStream();
00050                         String _id = _istream.read_string();
00051                         _d.releaseReply(this,_istream);
00052                         throw new org.omg.CORBA.UNKNOWN("Unknown exception identifier");
00053                 } catch (RemarshalException _e) {
00054                         export(obj);
00055                 }
00056         
00057 }

void _SimpleAdapterStub::exportWithPort ( org.omg.CORBA.Object obj,
int port ) [inline]
 

Exports a CORBA object to the target adapter, using the specified TCP port.

Parameters:
obj   a CORBA object;
port   a TCP port number.

Reimplemented from SimpleAdapterOperations.

Definition at line 67 of file _SimpleAdapterStub.java.

00067                                                                         {
00068                 Delegate _d = _get_delegate();
00069                 if (_d.is_local(this)) {
00070                         ServantObject _servant = _d.servant_preinvoke(this,"exportWithPort",SimpleAdapterOperations.class);
00071                         if (_servant != null) {
00072                                 try {
00073                                         ((SimpleAdapterOperations) _servant.servant).exportWithPort(obj,port);
00074                                         return;
00075                                 } finally {
00076                                         _d.servant_postinvoke(this,_servant);
00077                                 }
00078                         }
00079                 }
00080                 OutputStream _ostream = _d.request(this,"exportWithPort",true);
00081                 // argument .... marshalling
00082                 _ostream.write_Object(obj);
00083                 _ostream.write_long(port);
00084                 //reply
00085                 try {
00086                         InputStream _istream = _d.invoke(this,_ostream);
00087                         _d.releaseReply(this,_istream);
00088                         return ;
00089                 } catch (ApplicationException _e) {
00090                         InputStream _istream = _e.getInputStream();
00091                         String _id = _istream.read_string();
00092                         _d.releaseReply(this,_istream);
00093                         throw new org.omg.CORBA.UNKNOWN("Unknown exception identifier");
00094                 } catch (RemarshalException _e) {
00095                         exportWithPort(obj,port);
00096                 }
00097         
00098 }

void _SimpleAdapterStub::unexport ( org.omg.CORBA.Object obj ) [inline]
 

Unexports the provided CORBA object.

Parameters:
obj   a CORBA object.

Reimplemented from SimpleAdapterOperations.

Definition at line 106 of file _SimpleAdapterStub.java.

00106                                                         {
00107                 Delegate _d = _get_delegate();
00108                 if (_d.is_local(this)) {
00109                         ServantObject _servant = _d.servant_preinvoke(this,"unexport",SimpleAdapterOperations.class);
00110                         if (_servant != null) {
00111                                 try {
00112                                         ((SimpleAdapterOperations) _servant.servant).unexport(obj);
00113                                         return;
00114                                 } finally {
00115                                         _d.servant_postinvoke(this,_servant);
00116                                 }
00117                         }
00118                 }
00119                 OutputStream _ostream = _d.request(this,"unexport",true);
00120                 // argument .... marshalling
00121                 _ostream.write_Object(obj);
00122                 //reply
00123                 try {
00124                         InputStream _istream = _d.invoke(this,_ostream);
00125                         _d.releaseReply(this,_istream);
00126                         return ;
00127                 } catch (ApplicationException _e) {
00128                         InputStream _istream = _e.getInputStream();
00129                         String _id = _istream.read_string();
00130                         _d.releaseReply(this,_istream);
00131                         throw new org.omg.CORBA.UNKNOWN("Unknown exception identifier");
00132                 } catch (RemarshalException _e) {
00133                         unexport(obj);
00134                 }
00135         
00136 }


Member Data Documentation

String[] _SimpleAdapterStub::_ids = { org.objectweb.david.apis.binding.simpleoa.SimpleAdapterHelper.id()} [inline, static, private]
 

Definition at line 138 of file _SimpleAdapterStub.java.

00138                                {
00139                 return _ids;
00140         }


The documentation for this class was generated from the following file:
Generated at Fri May 31 19:23:39 2002 for Jonathan by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001