Exemple #1
0
 // 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
Exemple #2
0
 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
Exemple #3
0
 public org.omg.CORBA.Object getFacetByName(String facet) throws corbaObjects.scs.InvalidName {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("getFacetByName", true);
     $out.write_string(facet);
     $in = _invoke($out);
     org.omg.CORBA.Object $result = org.omg.CORBA.ObjectHelper.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);
     throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return getFacetByName(facet);
   } finally {
     _releaseReply($in);
   }
 } // getFacetByName
Exemple #4
0
 public corbaObjects.scs.ReceptacleDescription[] getReceptaclesByName(String[] names)
     throws corbaObjects.scs.InvalidName {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("getReceptaclesByName", true);
     corbaObjects.scs.NameListHelper.write($out, names);
     $in = _invoke($out);
     corbaObjects.scs.ReceptacleDescription $result[] =
         corbaObjects.scs.ReceptacleDescriptionsHelper.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);
     throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     return getReceptaclesByName(names);
   } finally {
     _releaseReply($in);
   }
 } // getReceptaclesByName