sources:
ComparisonType.java (1.1k)
ComparisonTypeHelper.java (1.4k)
ComparisonTypeHolder.java (845 bytes)
OverlapType.java (1.3k)
OverlapTypeHelper.java (1.4k)
OverlapTypeHolder.java (818 bytes)
TimeComparison.java (1.4k)
TimeComparisonHelper.java (1.5k)
TimeComparisonHolder.java (845 bytes)
TimeService.java (337 bytes)
TimeServiceHelper.java (1.9k)
TimeServiceHolder.java (818 bytes)
TimeServiceOperations.java (531 bytes)
TimeUnavailable.java (509 bytes)
TimeUnavailableHelper.java (2.0k)
TimeUnavailableHolder.java (854 bytes)
UTO.java (305 bytes)
UTOHelper.java (1.8k)
UTOHolder.java (746 bytes)
UTOOperations.java (458 bytes)
_TimeServiceStub.java (5.1k)
_UTOStub.java (5.3k)


website:
more info here
studies/corba/Corba-Code1/client/CosTime/_TimeServiceStub.java
download file

  1 package CosTime;
  2
  3
  4 /** * CosTime/_TimeServiceStub.java . * Generated by the IDL-to-Java compiler (portable), version "3.1" * from time.idl * Freitag, 18. April 2003 11.06 Uhr CEST */
  5
  6 public class _TimeServiceStub extends org.omg.CORBA.portable.ObjectImpl implements CosTime.TimeService
  7 {
  8
  9   public CosTime.UTO universal_time () throws CosTime.TimeUnavailable
 10   {
 11             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 12             try {
 13                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("universal_time", true);
 14                 ===>$<===in = _invoke (===>$<===out);
 15                 CosTime.UTO ===>$<===result = CosTime.UTOHelper.read (===>$<===in);
 16                 return ===>$<===result;
 17             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 18                 ===>$<===in = ===>$<===ex.getInputStream ();
 19                 String _id = ===>$<===ex.getId ();
 20                 if (_id.equals ("IDL:hpi.uni-potsdam.de/CosTime/TimeUnavailable:1.0"))
 21                     throw CosTime.TimeUnavailableHelper.read (===>$<===in);
 22                 else
 23                     throw new org.omg.CORBA.MARSHAL (_id);
 24             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
 25                 return universal_time (        );
 26             } finally {
 27                 _releaseReply (===>$<===in);
 28             }
 29   } // universal_time
 30
 31   public CosTime.UTO secure_universal_time () throws CosTime.TimeUnavailable
 32   {
 33             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 34             try {
 35                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("secure_universal_time", true);
 36                 ===>$<===in = _invoke (===>$<===out);
 37                 CosTime.UTO ===>$<===result = CosTime.UTOHelper.read (===>$<===in);
 38                 return ===>$<===result;
 39             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 40                 ===>$<===in = ===>$<===ex.getInputStream ();
 41                 String _id = ===>$<===ex.getId ();
 42                 if (_id.equals ("IDL:hpi.uni-potsdam.de/CosTime/TimeUnavailable:1.0"))
 43                     throw CosTime.TimeUnavailableHelper.read (===>$<===in);
 44                 else
 45                     throw new org.omg.CORBA.MARSHAL (_id);
 46             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
 47                 return secure_universal_time (        );
 48             } finally {
 49                 _releaseReply (===>$<===in);
 50             }
 51   } // secure_universal_time
 52
 53   public CosTime.UTO new_universal_time (long time, long inaccuracy)
 54   {
 55             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 56             try {
 57                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("new_universal_time", true);
 58                 TimeBase.TimeTHelper.write (===>$<===out, time);
 59                 TimeBase.InaccuracyTHelper.write (===>$<===out, inaccuracy);
 60                 ===>$<===in = _invoke (===>$<===out);
 61                 CosTime.UTO ===>$<===result = CosTime.UTOHelper.read (===>$<===in);
 62                 return ===>$<===result;
 63             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 64                 ===>$<===in = ===>$<===ex.getInputStream ();
 65                 String _id = ===>$<===ex.getId ();
 66                 throw new org.omg.CORBA.MARSHAL (_id);
 67             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
 68                 return new_universal_time (time, inaccuracy        );
 69             } finally {
 70                 _releaseReply (===>$<===in);
 71             }
 72   } // new_universal_time
 73
 74   public CosTime.UTO uto_from_utc (TimeBase.UtcT utc)
 75   {
 76             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 77             try {
 78                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("uto_from_utc", true);
 79                 TimeBase.UtcTHelper.write (===>$<===out, utc);
 80                 ===>$<===in = _invoke (===>$<===out);
 81                 CosTime.UTO ===>$<===result = CosTime.UTOHelper.read (===>$<===in);
 82                 return ===>$<===result;
 83             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 84                 ===>$<===in = ===>$<===ex.getInputStream ();
 85                 String _id = ===>$<===ex.getId ();
 86                 throw new org.omg.CORBA.MARSHAL (_id);
 87             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
 88                 return uto_from_utc (utc        );
 89             } finally {
 90                 _releaseReply (===>$<===in);
 91             }
 92   } // uto_from_utc
 93
 94   // Type-specific CORBA::Object operations
 95   private static String[] __ids = {
 96     "IDL:hpi.uni-potsdam.de/CosTime/TimeService:1.0"};
 97
 98   public String[] _ids ()
 99   {
100     return (String[])__ids.clone ();
101   }
102
103   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
104   {
105      String str = s.readUTF ();
106      String[] args = null;
107      java.util.Properties props = null;
108      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
109      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
110      _set_delegate (delegate);
111   }
112
113   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
114   {
115      String[] args = null;
116      java.util.Properties props = null;
117      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
118      s.writeUTF (str);
119   }
120 } // class _TimeServiceStub
121