

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()} |
Definition at line 18 of file _SimpleAdapterStub.java.
|
|
Definition at line 20 of file _SimpleAdapterStub.java. 00020 {}
|
|
|
Definition at line 138 of file _SimpleAdapterStub.java. 00138 {
00139 return _ids;
00140 }
|
|
|
Exports a CORBA object to the target adapter.
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 }
|
|
|
Exports a CORBA object to the target adapter, using the specified TCP port.
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 }
|
|
|
Unexports the provided 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 }
|
|
|
Definition at line 138 of file _SimpleAdapterStub.java. 00138 {
00139 return _ids;
00140 }
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001