/[classpath]/classpath/org/omg/CORBA/ORB.java
ViewVC logotype

Diff of /classpath/org/omg/CORBA/ORB.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2.2.2 by gnu_andrew, Fri May 20 18:21:00 2005 UTC revision 1.2.2.3 by gnu_andrew, Fri May 27 00:01:46 2005 UTC
# Line 45  import gnu.CORBA.gnuContext; Line 45  import gnu.CORBA.gnuContext;
45  import gnu.CORBA.recordTypeCode;  import gnu.CORBA.recordTypeCode;
46  import gnu.CORBA.recursiveTypeCode;  import gnu.CORBA.recursiveTypeCode;
47    
48    import org.omg.CORBA.ORBPackage.InconsistentTypeCode;
49    
50  import java.applet.Applet;  import java.applet.Applet;
51    
52  import java.io.BufferedInputStream;  import java.io.BufferedInputStream;
# Line 182  public abstract class ORB Line 184  public abstract class ORB
184    public abstract ContextList create_context_list();    public abstract ContextList create_context_list();
185    
186    /**    /**
187       * The support for {@link DynAny} and derived interfaces
188       * has never been implemented in Sun's java releases,
189       * at least till v1.4 inclusive.
190       *
191       * Since v1.4 this stil missing implementation was replaced
192       * by the new DynamicAny package.
193       *
194       * @throws NO_IMPLEMENT, always.
195       */
196      public DynAny create_basic_dyn_any(org.omg.CORBA.TypeCode t)
197      {
198        throw new NO_IMPLEMENT();
199      };
200    
201      /**
202       * The support for {@link DynAny} and derived interfaces
203       * has never been implemented in Sun's java releases,
204       * at least till v1.4 inclusive.
205       *
206       * Since v1.4 this stil missing implementation was replaced
207       * by the new DynamicAny package.
208       *
209       * @throws NO_IMPLEMENT, always.
210       */
211      public DynAny create_dyn_any(org.omg.CORBA.Any a)
212                           throws InconsistentTypeCode
213      {
214        throw new NO_IMPLEMENT();
215      };
216    
217      /**
218       * The support for {@link DynArray}
219       * has never been implemented in Sun's java releases,
220       * at least till v1.4 inclusive.
221       *
222       * Since v1.4 this stil missing implementation was replaced
223       * by the new DynamicAny package.
224       *
225       * @throws NO_IMPLEMENT, always.
226       */
227      public DynArray create_dyn_array(org.omg.CORBA.TypeCode t)
228                           throws InconsistentTypeCode
229       {
230         throw new NO_IMPLEMENT();
231       };
232    
233      /**
234       * The support for {@link DynEnum}
235       * has never been implemented in Sun's java releases,
236       * at least till v1.4 inclusive.
237       *
238       * Since v1.4 this stil missing implementation was replaced
239       * by the new DynamicAny package.
240       *
241       * @throws NO_IMPLEMENT, always.
242       */
243      public DynEnum create_dyn_enum(org.omg.CORBA.TypeCode t)
244                           throws InconsistentTypeCode
245      {
246        throw new NO_IMPLEMENT();
247      };
248    
249      /**
250       * The support for {@link DynSequence}
251       * has never been implemented in Sun's java releases,
252       * at least till v1.4 inclusive.
253       *
254       * Since v1.4 this stil missing implementation was replaced
255       * by the new DynamicAny package.
256       *
257       * @throws NO_IMPLEMENT, always.
258       */
259      public DynSequence create_dyn_sequence(org.omg.CORBA.TypeCode t)
260                           throws InconsistentTypeCode
261      {
262        throw new NO_IMPLEMENT();
263      };
264    
265      /**
266       * The support for {@link DynStruct} and derived interfaces
267       * has never been implemented in Sun's java releases,
268       * at least till v1.4 inclusive.
269       *
270       * Since v1.4 this stil missing implementation was replaced
271       * by the new DynamicAny package.
272       *
273       * @throws NO_IMPLEMENT, always.
274       */
275      public DynStruct create_dyn_struct(org.omg.CORBA.TypeCode t)
276                           throws InconsistentTypeCode
277      {
278        throw new NO_IMPLEMENT();
279      };
280    
281      /**
282       * The support for {@link DynUnion} and derived interfaces
283       * has never been implemented in Sun's java releases,
284       * at least till v1.4 inclusive.
285       *
286       * Since v1.4 this stil missing implementation was replaced
287       * by the new DynamicAny package.
288       *
289       * @throws NO_IMPLEMENT, always.
290       */
291      public DynUnion create_dyn_union(org.omg.CORBA.TypeCode t)
292                           throws InconsistentTypeCode
293      {
294        throw new NO_IMPLEMENT();
295      };
296    
297      /**
298     * Create a typecode, defining the given enumeration.     * Create a typecode, defining the given enumeration.
299     *     *
300     * @param id the id.     * @param id the id.
# Line 267  public abstract class ORB Line 380  public abstract class ORB
380    public abstract NamedValue create_named_value(String s, Any any, int flags);    public abstract NamedValue create_named_value(String s, Any any, int flags);
381    
382    /**    /**
383       * Send multiple prepared requests one way, do not caring about the answer.
384       * The messages, containing requests, will be marked, indicating that
385       * the sender is not expecting to get a reply.
386       *
387       * @param requests the prepared array of requests.
388       *
389       * @see Request#send_oneway()
390       */
391      public abstract void send_multiple_requests_oneway(Request[] requests);
392    
393      /**
394       * Send multiple prepared requests expecting to get a reply. All requests
395       * are send in parallel, each in its own separate thread. When the
396       * reply arrives, it is stored in the agreed fields of the corresponing
397       * request data structure. If this method is called repeatedly,
398       * the new requests are added to the set of the currently sent requests,
399       * but the old set is not discarded.
400       *
401       * @param requests the prepared array of requests.
402       *
403       * @see #poll_next_response()
404       * @see #get_next_response()
405       * @see Request#send_deferred()
406       */
407      public abstract void send_multiple_requests_deferred(Request[] requests);
408    
409      /**
410       * Find if any of the requests that have been previously sent with
411       * {@link #send_multiple_requests_deferred}, have a response yet.
412       *
413       * @return true if there is at least one response to the previously
414       * sent request, false otherwise.
415       */
416      public abstract boolean poll_next_response();
417    
418      /**
419       * Get the next instance with a response being received. If all currently
420       * sent responses not yet processed, this method pauses till at least one of
421       * them is complete. If there are no requests currently sent, the method
422       * pauses till some request is submitted and the response is received.
423       * This strategy is identical to the one accepted by Suns 1.4 ORB
424       * implementation.
425       *
426       * @return the previously sent request that now contains the received
427       * response.
428       *
429       * @throws WrongTransaction If the method was called from the transaction
430       * scope different than the one, used to send the request. The exception
431       * can be raised only if the request is implicitly associated with some
432       * particular transaction.
433       */
434      public abstract Request get_next_response()
435                                       throws WrongTransaction;
436    
437    
438      /**
439     * Create a new CDR output stream, where the parameter values can be written     * Create a new CDR output stream, where the parameter values can be written
440     * during the method invocation.     * during the method invocation.
441     *     *
# Line 275  public abstract class ORB Line 444  public abstract class ORB
444    public abstract org.omg.CORBA.portable.OutputStream create_output_stream();    public abstract org.omg.CORBA.portable.OutputStream create_output_stream();
445    
446    /**    /**
447       * This should create the new policy with the specified type and initial
448       * state. The policies and methods for getting them are not implemented till
449       * v1.4 inclusive.
450       *
451       * @param type the policy type.
452       * @param value the policy value.
453       *
454       * @return never
455       *
456       * @throws NO_IMPLEMENT, always.
457       */
458      public Policy create_policy(int type, Any value)
459                           throws PolicyError
460      {
461        throw new NO_IMPLEMENT();
462      }
463    
464      /**
465     * Create typecode, defining the sequence of the elements, having     * Create typecode, defining the sequence of the elements, having
466     * the given type.     * the given type.
467     *     *
# Line 384  public abstract class ORB Line 571  public abstract class ORB
571    }    }
572    
573    /**    /**
574       * This should return the information, related to the current thread.
575       * The {@link Current} is very general interface, with no fields and
576       * operations defined. This method is not implemented in Suns
577       * releases at least till v1.4 inclusive.
578       *
579       * @deprecated since 1.2
580       *
581       * @return never
582       *
583       * @throws NO_IMPLEMENT, always.
584       */
585      public Current get_current()
586      {
587        throw new NO_IMPLEMENT();
588      }
589    
590      /**
591     * Get the default context of this ORB. This is an initial root of all     * Get the default context of this ORB. This is an initial root of all
592     * contexts.     * contexts.
593     *     *
# Line 541  public abstract class ORB Line 745  public abstract class ORB
745    public abstract String object_to_string(Object forObject);    public abstract String object_to_string(Object forObject);
746    
747    /**    /**
748       * This should perform the implementation dependent unit of work in the
749       * main thread.
750       *
751       * This method is part of the support for the distribute use of the
752       * single execution thread.
753       *
754       * Same as in Suns releases at least till 1.4 inclusive,
755       * the distribute use of the single thread is not implemented.
756       * Use multiple threads, provided by jre.
757       *
758       * The method returns without action.
759       */
760      public void perform_work()
761      {
762      }
763    
764       /**
765       * Checks if the ORB needs the main thread to perform some work.
766       * The method should return true if the ORB needs the main thread,
767       * and false if it does not.
768       *
769       * This method is part of the support for the distribute use of the
770       * single execution thread.
771       *
772       * Same as in Suns releases at least till 1.4 inclusive,
773       * the distributed use of the single thread is not implemented.
774       * Use multiple threads, provided by jre.
775       *
776       * @return false, always.
777       */
778      public boolean work_pending()
779      {
780        return false;
781      }
782    
783      /**
784     * Find and return the CORBA object, addressed by the given     * Find and return the CORBA object, addressed by the given
785     * IOR string representation. The object can (an usually is)     * IOR string representation. The object can (an usually is)
786     * located on a remote computer, possibly running a different     * located on a remote computer, possibly running a different

Legend:
Removed from v.1.2.2.2  
changed lines
  Added in v.1.2.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26