コード例 #1
0
ファイル: _IComponentStub.java プロジェクト: mh3ry/lleme
 public corbaObjects.scs.ConnectionDescription[] getReceptacleConnections(
     String receptacle_interface)
     throws corbaObjects.scs.InvalidName, corbaObjects.scs.InvalidConnection,
         corbaObjects.scs.AlreadyConnected, corbaObjects.scs.ExceededConnectionLimit,
         corbaObjects.scs.InternalError {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("getReceptacleConnections", true);
     $out.write_string(receptacle_interface);
     $in = _invoke($out);
     corbaObjects.scs.ConnectionDescription $result[] =
         corbaObjects.scs.ConnectionDescriptionsHelper.read($in);
     return $result;
   } catch (org.omg.CORBA.portable.ApplicationException $ex) {
     $in = $ex.getInputStream();
     String _id = $ex.getId();
     if (_id.equals("IDL:corbaObjects/scs/InvalidName:1.0"))
       throw corbaObjects.scs.InvalidNameHelper.read($in);
     else if (_id.equals("IDL:corbaObjects/scs/InvalidConnection:1.0"))
       throw corbaObjects.scs.InvalidConnectionHelper.read($in);
     else if (_id.equals("IDL:corbaObjects/scs/AlreadyConnected:1.0"))
       throw corbaObjects.scs.AlreadyConnectedHelper.read($in);
     else if (_id.equals("IDL:corbaObjects/scs/ExceededConnectionLimit:1.0"))
       throw corbaObjects.scs.ExceededConnectionLimitHelper.read($in);
     else if (_id.equals("IDL:corbaObjects/scs/InternalError:1.0"))
       throw corbaObjects.scs.InternalErrorHelper.read($in);
     else throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return getReceptacleConnections(receptacle_interface);
   } finally {
     _releaseReply($in);
   }
 } // getReceptacleConnections
コード例 #2
0
ファイル: _IComponentStub.java プロジェクト: mh3ry/lleme
 // Receptacle
 public int connect(String receptacle, org.omg.CORBA.Object obj)
     throws corbaObjects.scs.InvalidName, corbaObjects.scs.InvalidConnection,
         corbaObjects.scs.AlreadyConnected, corbaObjects.scs.ExceededConnectionLimit {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("connect", true);
     $out.write_string(receptacle);
     org.omg.CORBA.ObjectHelper.write($out, obj);
     $in = _invoke($out);
     int $result = corbaObjects.scs.ConnectionIdHelper.read($in);
     return $result;
   } catch (org.omg.CORBA.portable.ApplicationException $ex) {
     $in = $ex.getInputStream();
     String _id = $ex.getId();
     if (_id.equals("IDL:corbaObjects/scs/InvalidName:1.0"))
       throw corbaObjects.scs.InvalidNameHelper.read($in);
     else if (_id.equals("IDL:corbaObjects/scs/InvalidConnection:1.0"))
       throw corbaObjects.scs.InvalidConnectionHelper.read($in);
     else if (_id.equals("IDL:corbaObjects/scs/AlreadyConnected:1.0"))
       throw corbaObjects.scs.AlreadyConnectedHelper.read($in);
     else if (_id.equals("IDL:corbaObjects/scs/ExceededConnectionLimit:1.0"))
       throw corbaObjects.scs.ExceededConnectionLimitHelper.read($in);
     else throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return connect(receptacle, obj);
   } finally {
     _releaseReply($in);
   }
 } // connect
コード例 #3
0
ファイル: _IComponentStub.java プロジェクト: mh3ry/lleme
 public corbaObjects.scs.ConnectionDescription getConnection(int id)
     throws corbaObjects.scs.InvalidConnection {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("getConnection", true);
     corbaObjects.scs.ConnectionIdHelper.write($out, id);
     $in = _invoke($out);
     corbaObjects.scs.ConnectionDescription $result =
         corbaObjects.scs.ConnectionDescriptionHelper.read($in);
     return $result;
   } catch (org.omg.CORBA.portable.ApplicationException $ex) {
     $in = $ex.getInputStream();
     String _id = $ex.getId();
     if (_id.equals("IDL:corbaObjects/scs/InvalidConnection:1.0"))
       throw corbaObjects.scs.InvalidConnectionHelper.read($in);
     throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return getConnection(id);
   } finally {
     _releaseReply($in);
   }
 } // getConnection