OrbFunctional.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_CORBA_OrbFunctional__
  3. #define __gnu_CORBA_OrbFunctional__
  4. #pragma interface
  5. #include <gnu/CORBA/OrbRestricted.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace CORBA
  12. {
  13. class Asynchron;
  14. class Connected_objects;
  15. class Connected_objects$cObject;
  16. namespace GIOP
  17. {
  18. class MessageHeader;
  19. class RequestHeader;
  20. }
  21. class IOR;
  22. namespace NamingService
  23. {
  24. class NameParser;
  25. }
  26. class OrbFunctional;
  27. class OrbFunctional$portServer;
  28. namespace Poa
  29. {
  30. class gnuForwardRequest;
  31. }
  32. class ResponseHandlerImpl;
  33. class Version;
  34. namespace interfaces
  35. {
  36. class SocketFactory;
  37. }
  38. }
  39. }
  40. namespace java
  41. {
  42. namespace applet
  43. {
  44. class Applet;
  45. }
  46. namespace net
  47. {
  48. class ServerSocket;
  49. class Socket;
  50. }
  51. }
  52. namespace org
  53. {
  54. namespace omg
  55. {
  56. namespace CORBA
  57. {
  58. class Object;
  59. class Request;
  60. class SystemException;
  61. }
  62. }
  63. }
  64. }
  65. class gnu::CORBA::OrbFunctional : public ::gnu::CORBA::OrbRestricted
  66. {
  67. public:
  68. OrbFunctional();
  69. virtual void setMaxVersion(::gnu::CORBA::Version *);
  70. virtual ::gnu::CORBA::Version * getMaxVersion();
  71. virtual jint getFreePort();
  72. static void setPort(jint);
  73. virtual void connect(::org::omg::CORBA::Object *);
  74. virtual void connect(::org::omg::CORBA::Object *, JArray< jbyte > *);
  75. virtual void connect_1_thread(::org::omg::CORBA::Object *, JArray< jbyte > *, ::java::lang::Object *);
  76. virtual void startService(::gnu::CORBA::IOR *);
  77. virtual void destroy();
  78. virtual void disconnect(::org::omg::CORBA::Object *);
  79. virtual void identityDestroyed(::java::lang::Object *);
  80. virtual ::org::omg::CORBA::Object * find_local_object(::gnu::CORBA::IOR *);
  81. virtual JArray< ::java::lang::String * > * list_initial_services();
  82. virtual ::java::lang::String * object_to_string(::org::omg::CORBA::Object *);
  83. virtual ::gnu::CORBA::IOR * getLocalIor(::org::omg::CORBA::Object *);
  84. virtual ::org::omg::CORBA::Object * resolve_initial_references(::java::lang::String *);
  85. virtual void run();
  86. virtual void ensureRunning();
  87. virtual void shutdown(jboolean);
  88. virtual ::org::omg::CORBA::Object * string_to_object(::java::lang::String *);
  89. virtual ::org::omg::CORBA::Object * ior_to_object(::gnu::CORBA::IOR *);
  90. public: // actually protected
  91. virtual ::org::omg::CORBA::Object * getDefaultNameService();
  92. virtual ::org::omg::CORBA::Object * find_connected_object(JArray< jbyte > *, jint);
  93. virtual void set_parameters(::java::applet::Applet *, ::java::util::Properties *);
  94. virtual void set_parameters(JArray< ::java::lang::String * > *, ::java::util::Properties *);
  95. virtual ::gnu::CORBA::IOR * createIOR(::gnu::CORBA::Connected_objects$cObject *);
  96. virtual void prepareObject(::org::omg::CORBA::Object *, ::gnu::CORBA::IOR *);
  97. private:
  98. void respond_to_client(::java::io::OutputStream *, ::gnu::CORBA::GIOP::MessageHeader *, ::gnu::CORBA::GIOP::RequestHeader *, ::gnu::CORBA::ResponseHandlerImpl *, ::org::omg::CORBA::SystemException *);
  99. void forward_request(::java::io::OutputStream *, ::gnu::CORBA::GIOP::MessageHeader *, ::gnu::CORBA::GIOP::RequestHeader *, ::gnu::CORBA::Poa::gnuForwardRequest *);
  100. public: // actually package-private
  101. virtual void serve(::gnu::CORBA::OrbFunctional$portServer *, ::java::net::ServerSocket *);
  102. virtual void serveStep(::java::net::Socket *, jboolean);
  103. public: // actually protected
  104. virtual void useProperties(::java::util::Properties *);
  105. public:
  106. virtual ::org::omg::CORBA::Request * get_next_response();
  107. virtual jboolean poll_next_response();
  108. virtual void send_multiple_requests_deferred(JArray< ::org::omg::CORBA::Request * > *);
  109. virtual void send_multiple_requests_oneway(JArray< ::org::omg::CORBA::Request * > *);
  110. public: // actually protected
  111. virtual void finalize();
  112. public:
  113. virtual jint countConnectedObjects();
  114. static jint DEFAULT_INITIAL_PORT;
  115. static jint RANDOM_PORT_FROM;
  116. static jint RANDOM_PORT_TO;
  117. static jint RANDOM_PORT_ATTEMPTS;
  118. static ::java::lang::String * LISTEN_ON;
  119. static ::java::lang::String * REFERENCE;
  120. static ::java::lang::String * NS_PORT;
  121. static ::java::lang::String * NS_HOST;
  122. static ::java::lang::String * NAME_SERVICE;
  123. static ::java::lang::String * ORB_ID;
  124. static ::java::lang::String * SERVER_ID;
  125. static ::java::lang::String * START_READING_MESSAGE;
  126. static ::java::lang::String * WHILE_READING;
  127. static ::java::lang::String * AFTER_RECEIVING;
  128. static ::java::lang::String * SERVER_ERROR_PAUSE;
  129. ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::CORBA::OrbRestricted)))) LOCAL_HOST;
  130. jint TOUT_START_READING_MESSAGE;
  131. jint TOUT_WHILE_READING;
  132. jint TOUT_AFTER_RECEIVING;
  133. jint TWAIT_SERVER_ERROR_PAUSE;
  134. static jint TANDEM_REQUESTS;
  135. ::java::lang::String * orb_id;
  136. static ::java::lang::String * server_id;
  137. public: // actually protected
  138. ::gnu::CORBA::Connected_objects * connected_objects;
  139. ::gnu::CORBA::Version * max_version;
  140. jboolean running;
  141. ::java::util::Map * initial_references;
  142. ::java::util::ArrayList * portServers;
  143. private:
  144. ::java::lang::String * ns_host;
  145. static jint Port;
  146. jint ns_port;
  147. public: // actually package-private
  148. ::gnu::CORBA::NamingService::NameParser * nameParser;
  149. public: // actually protected
  150. ::gnu::CORBA::Asynchron * asynchron;
  151. ::java::util::LinkedList * freed_ports;
  152. ::java::util::Hashtable * identities;
  153. private:
  154. jint MAX_RUNNING_THREADS;
  155. public:
  156. ::gnu::CORBA::interfaces::SocketFactory * socketFactory;
  157. static ::java::lang::Class class$;
  158. };
  159. #endif // __gnu_CORBA_OrbFunctional__