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