zeroc-ice 3.7.11__cp314-cp314-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- Glacier2/Metrics_ice.py +82 -0
- Glacier2/PermissionsVerifierF_ice.py +32 -0
- Glacier2/PermissionsVerifier_ice.py +284 -0
- Glacier2/RouterF_ice.py +28 -0
- Glacier2/Router_ice.py +618 -0
- Glacier2/SSLInfo_ice.py +179 -0
- Glacier2/Session_ice.py +1103 -0
- Glacier2/__init__.py +226 -0
- Ice/BuiltinSequences_ice.py +65 -0
- Ice/CommunicatorF_ice.py +27 -0
- Ice/Communicator_ice.py +469 -0
- Ice/ConnectionF_ice.py +33 -0
- Ice/Connection_ice.py +680 -0
- Ice/Current_ice.py +175 -0
- Ice/EndpointF_ice.py +45 -0
- Ice/EndpointTypes_ice.py +54 -0
- Ice/Endpoint_ice.py +304 -0
- Ice/FacetMap_ice.py +27 -0
- Ice/Identity_ice.py +133 -0
- Ice/ImplicitContextF_ice.py +27 -0
- Ice/ImplicitContext_ice.py +119 -0
- Ice/InstrumentationF_ice.py +38 -0
- Ice/Instrumentation_ice.py +566 -0
- Ice/LocalException_ice.py +1715 -0
- Ice/LocatorF_ice.py +32 -0
- Ice/Locator_ice.py +728 -0
- Ice/LoggerF_ice.py +27 -0
- Ice/Logger_ice.py +96 -0
- Ice/Metrics_ice.py +864 -0
- Ice/ObjectAdapterF_ice.py +27 -0
- Ice/ObjectAdapter_ice.py +461 -0
- Ice/ObjectFactory_ice.py +68 -0
- Ice/PluginF_ice.py +30 -0
- Ice/Plugin_ice.py +136 -0
- Ice/ProcessF_ice.py +28 -0
- Ice/Process_ice.py +175 -0
- Ice/PropertiesAdmin_ice.py +247 -0
- Ice/PropertiesF_ice.py +31 -0
- Ice/Properties_ice.py +199 -0
- Ice/Py3/IceFuture.py +52 -0
- Ice/Py3/__init__.py +3 -0
- Ice/RemoteLogger_ice.py +617 -0
- Ice/RouterF_ice.py +28 -0
- Ice/Router_ice.py +350 -0
- Ice/ServantLocatorF_ice.py +27 -0
- Ice/ServantLocator_ice.py +110 -0
- Ice/SliceChecksumDict_ice.py +29 -0
- Ice/ValueFactory_ice.py +125 -0
- Ice/Version_ice.py +217 -0
- Ice/__init__.py +2008 -0
- IceBox/IceBox_ice.py +644 -0
- IceBox/__init__.py +10 -0
- IceGrid/Admin_ice.py +6662 -0
- IceGrid/Descriptor_ice.py +1795 -0
- IceGrid/Exception_ice.py +592 -0
- IceGrid/FileParser_ice.py +171 -0
- IceGrid/PluginFacade_ice.py +288 -0
- IceGrid/Registry_ice.py +985 -0
- IceGrid/Session_ice.py +406 -0
- IceGrid/UserAccountMapper_ice.py +166 -0
- IceGrid/__init__.py +17 -0
- IceMX/__init__.py +12 -0
- IcePatch2/FileInfo_ice.py +287 -0
- IcePatch2/FileServer_ice.py +555 -0
- IcePatch2/__init__.py +11 -0
- IcePy.cp314-win_amd64.pdb +0 -0
- IcePy.cp314-win_amd64.pyd +0 -0
- IceStorm/IceStorm_ice.py +1265 -0
- IceStorm/Metrics_ice.py +106 -0
- IceStorm/__init__.py +10 -0
- slice/Glacier2/Metrics.ice +88 -0
- slice/Glacier2/PermissionsVerifier.ice +111 -0
- slice/Glacier2/PermissionsVerifierF.ice +30 -0
- slice/Glacier2/Router.ice +186 -0
- slice/Glacier2/RouterF.ice +29 -0
- slice/Glacier2/SSLInfo.ice +59 -0
- slice/Glacier2/Session.ice +274 -0
- slice/Ice/BuiltinSequences.ice +59 -0
- slice/Ice/Communicator.ice +676 -0
- slice/Ice/CommunicatorF.ice +31 -0
- slice/Ice/Connection.ice +516 -0
- slice/Ice/ConnectionF.ice +33 -0
- slice/Ice/Current.ice +170 -0
- slice/Ice/Endpoint.ice +291 -0
- slice/Ice/EndpointF.ice +43 -0
- slice/Ice/EndpointTypes.ice +48 -0
- slice/Ice/FacetMap.ice +36 -0
- slice/Ice/Identity.ice +75 -0
- slice/Ice/ImplicitContext.ice +119 -0
- slice/Ice/ImplicitContextF.ice +30 -0
- slice/Ice/Instrumentation.ice +509 -0
- slice/Ice/InstrumentationF.ice +38 -0
- slice/Ice/LocalException.ice +1040 -0
- slice/Ice/Locator.ice +239 -0
- slice/Ice/LocatorF.ice +32 -0
- slice/Ice/Logger.ice +99 -0
- slice/Ice/LoggerF.ice +31 -0
- slice/Ice/Metrics.ice +436 -0
- slice/Ice/ObjectAdapter.ice +710 -0
- slice/Ice/ObjectAdapterF.ice +31 -0
- slice/Ice/ObjectFactory.ice +71 -0
- slice/Ice/Plugin.ice +131 -0
- slice/Ice/PluginF.ice +36 -0
- slice/Ice/Process.ice +64 -0
- slice/Ice/ProcessF.ice +31 -0
- slice/Ice/Properties.ice +244 -0
- slice/Ice/PropertiesAdmin.ice +87 -0
- slice/Ice/PropertiesF.ice +32 -0
- slice/Ice/RemoteLogger.ice +226 -0
- slice/Ice/Router.ice +103 -0
- slice/Ice/RouterF.ice +31 -0
- slice/Ice/ServantLocator.ice +136 -0
- slice/Ice/ServantLocatorF.ice +31 -0
- slice/Ice/SliceChecksumDict.ice +36 -0
- slice/Ice/ValueFactory.ice +133 -0
- slice/Ice/Version.ice +51 -0
- slice/IceBT/ConnectionInfo.ice +59 -0
- slice/IceBT/EndpointInfo.ice +57 -0
- slice/IceBT/Types.ice +45 -0
- slice/IceBox/IceBox.ice +216 -0
- slice/IceGrid/Admin.ice +1957 -0
- slice/IceGrid/Descriptor.ice +1094 -0
- slice/IceGrid/Exception.ice +396 -0
- slice/IceGrid/FileParser.ice +72 -0
- slice/IceGrid/PluginFacade.ice +329 -0
- slice/IceGrid/Registry.ice +269 -0
- slice/IceGrid/Session.ice +128 -0
- slice/IceGrid/UserAccountMapper.ice +69 -0
- slice/IceIAP/ConnectionInfo.ice +74 -0
- slice/IceIAP/EndpointInfo.ice +68 -0
- slice/IcePatch2/FileInfo.ice +85 -0
- slice/IcePatch2/FileServer.ice +191 -0
- slice/IceSSL/ConnectionInfo.ice +54 -0
- slice/IceSSL/ConnectionInfoF.ice +31 -0
- slice/IceSSL/EndpointInfo.ice +45 -0
- slice/IceStorm/IceStorm.ice +414 -0
- slice/IceStorm/Metrics.ice +83 -0
- slice2py.py +21 -0
- zeroc_ice-3.7.11.dist-info/METADATA +97 -0
- zeroc_ice-3.7.11.dist-info/RECORD +143 -0
- zeroc_ice-3.7.11.dist-info/WHEEL +5 -0
- zeroc_ice-3.7.11.dist-info/entry_points.txt +2 -0
- zeroc_ice-3.7.11.dist-info/top_level.txt +10 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:ICE_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Ice/Ice.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
|
|
11
|
+
[["ice-prefix"]]
|
|
12
|
+
|
|
13
|
+
[["js:module:ice"]]
|
|
14
|
+
[["js:cjs-module"]]
|
|
15
|
+
|
|
16
|
+
[["objc:dll-export:ICE_API"]]
|
|
17
|
+
[["objc:header-dir:objc"]]
|
|
18
|
+
|
|
19
|
+
[["python:pkgdir:Ice"]]
|
|
20
|
+
|
|
21
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
22
|
+
[["java:package:com.zeroc"]]
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
["objc:prefix:ICE"]
|
|
26
|
+
module Ice
|
|
27
|
+
{
|
|
28
|
+
|
|
29
|
+
local interface Properties;
|
|
30
|
+
interface PropertiesAdmin;
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
#include <Ice/BuiltinSequences.ice>
|
|
8
|
+
|
|
9
|
+
[["cpp:dll-export:ICE_API"]]
|
|
10
|
+
[["cpp:doxygen:include:Ice/Ice.h"]]
|
|
11
|
+
[["cpp:header-ext:h"]]
|
|
12
|
+
[["cpp:include:list"]]
|
|
13
|
+
|
|
14
|
+
[["ice-prefix"]]
|
|
15
|
+
|
|
16
|
+
[["js:module:ice"]]
|
|
17
|
+
[["js:cjs-module"]]
|
|
18
|
+
|
|
19
|
+
[["objc:dll-export:ICE_API"]]
|
|
20
|
+
[["objc:header-dir:objc"]]
|
|
21
|
+
|
|
22
|
+
[["python:pkgdir:Ice"]]
|
|
23
|
+
|
|
24
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
25
|
+
[["java:package:com.zeroc"]]
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
["objc:prefix:ICE"]
|
|
29
|
+
module Ice
|
|
30
|
+
{
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* An enumeration representing the different types of log messages.
|
|
35
|
+
*
|
|
36
|
+
**/
|
|
37
|
+
enum LogMessageType
|
|
38
|
+
{
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* The {@link Logger} received a print message.
|
|
42
|
+
*
|
|
43
|
+
**/
|
|
44
|
+
PrintMessage,
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* The {@link Logger} received a trace message.
|
|
49
|
+
*
|
|
50
|
+
**/
|
|
51
|
+
TraceMessage,
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* The {@link Logger} received a warning message.
|
|
56
|
+
*
|
|
57
|
+
**/
|
|
58
|
+
WarningMessage,
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* The {@link Logger} received an error message.
|
|
63
|
+
*
|
|
64
|
+
**/
|
|
65
|
+
ErrorMessage
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* A sequence of {@link LogMessageType}
|
|
71
|
+
*
|
|
72
|
+
**/
|
|
73
|
+
sequence<LogMessageType> LogMessageTypeSeq;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* A complete log message.
|
|
78
|
+
*
|
|
79
|
+
**/
|
|
80
|
+
struct LogMessage
|
|
81
|
+
{
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* The type of message sent to the {@link Logger}.
|
|
85
|
+
*
|
|
86
|
+
**/
|
|
87
|
+
LogMessageType type;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* The date and time when the {@link Logger} received this message, expressed
|
|
92
|
+
* as the number of microseconds since the Unix Epoch (00:00:00 UTC on 1 January 1970)
|
|
93
|
+
*
|
|
94
|
+
**/
|
|
95
|
+
long timestamp;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* For a message of type trace, the trace category of this log message;
|
|
100
|
+
* otherwise, the empty string.
|
|
101
|
+
*
|
|
102
|
+
**/
|
|
103
|
+
string traceCategory;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* The log message itself.
|
|
108
|
+
*
|
|
109
|
+
**/
|
|
110
|
+
string message;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* A sequence of {@link LogMessage}.
|
|
116
|
+
*
|
|
117
|
+
**/
|
|
118
|
+
["cpp:type:std::list<LogMessage>"]
|
|
119
|
+
sequence<LogMessage> LogMessageSeq;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* The Ice remote logger interface. An application can implement a
|
|
124
|
+
* RemoteLogger to receive the log messages sent to the local {@link Logger}
|
|
125
|
+
* of another Ice application.
|
|
126
|
+
*
|
|
127
|
+
**/
|
|
128
|
+
interface RemoteLogger
|
|
129
|
+
{
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
133
|
+
*
|
|
134
|
+
* @param prefix The prefix of the associated local Logger.
|
|
135
|
+
*
|
|
136
|
+
* @param logMessages Old log messages generated before "now".
|
|
137
|
+
*
|
|
138
|
+
**/
|
|
139
|
+
void init(string prefix, LogMessageSeq logMessages);
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
144
|
+
*
|
|
145
|
+
* @param message The message to log.
|
|
146
|
+
*
|
|
147
|
+
**/
|
|
148
|
+
void log(LogMessage message);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* Thrown when the provided RemoteLogger was previously attached to a LoggerAdmin.
|
|
154
|
+
*
|
|
155
|
+
**/
|
|
156
|
+
exception RemoteLoggerAlreadyAttachedException
|
|
157
|
+
{
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* The interface of the admin object that allows an Ice application the attach its
|
|
163
|
+
* {@link RemoteLogger} to the {@link Logger} of this admin object's Ice communicator.
|
|
164
|
+
*
|
|
165
|
+
**/
|
|
166
|
+
interface LoggerAdmin
|
|
167
|
+
{
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* Attaches a RemoteLogger object to the local logger.
|
|
171
|
+
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
172
|
+
*
|
|
173
|
+
* @param prx A proxy to the remote logger.
|
|
174
|
+
*
|
|
175
|
+
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
176
|
+
* An empty list means no filtering (send all message types).
|
|
177
|
+
*
|
|
178
|
+
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
179
|
+
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
180
|
+
* An empty list means no filtering (send all trace categories).
|
|
181
|
+
*
|
|
182
|
+
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
183
|
+
* to init. A negative value requests all messages available.
|
|
184
|
+
*
|
|
185
|
+
* @throws RemoteLoggerAlreadyAttachedException Raised if this remote logger is already
|
|
186
|
+
* attached to this admin object.
|
|
187
|
+
*
|
|
188
|
+
**/
|
|
189
|
+
void attachRemoteLogger(RemoteLogger* prx, LogMessageTypeSeq messageTypes, StringSeq traceCategories,
|
|
190
|
+
int messageMax)
|
|
191
|
+
throws RemoteLoggerAlreadyAttachedException;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* Detaches a RemoteLogger object from the local logger.
|
|
196
|
+
*
|
|
197
|
+
* @param prx A proxy to the remote logger.
|
|
198
|
+
*
|
|
199
|
+
* @return True if the provided remote logger proxy was detached, and false otherwise.
|
|
200
|
+
*
|
|
201
|
+
**/
|
|
202
|
+
bool detachRemoteLogger(RemoteLogger* prx);
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* Retrieves log messages recently logged.
|
|
207
|
+
*
|
|
208
|
+
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
209
|
+
* An empty list means no filtering (send all message types).
|
|
210
|
+
*
|
|
211
|
+
* @param traceCategories The categories of traces that caller wish to receive.
|
|
212
|
+
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
213
|
+
* An empty list means no filtering (send all trace categories).
|
|
214
|
+
*
|
|
215
|
+
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
216
|
+
* A negative value requests all messages available.
|
|
217
|
+
*
|
|
218
|
+
* @param prefix The prefix of the associated local logger.
|
|
219
|
+
*
|
|
220
|
+
* @return The Log messages.
|
|
221
|
+
*
|
|
222
|
+
**/
|
|
223
|
+
LogMessageSeq getLog(LogMessageTypeSeq messageTypes, StringSeq traceCategories, int messageMax, out string prefix);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
}
|
slice/Ice/Router.ice
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:ICE_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Ice/Ice.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
|
|
11
|
+
[["ice-prefix"]]
|
|
12
|
+
|
|
13
|
+
[["js:module:ice"]]
|
|
14
|
+
[["js:cjs-module"]]
|
|
15
|
+
|
|
16
|
+
[["objc:dll-export:ICE_API"]]
|
|
17
|
+
[["objc:header-dir:objc"]]
|
|
18
|
+
|
|
19
|
+
[["python:pkgdir:Ice"]]
|
|
20
|
+
|
|
21
|
+
#include <Ice/BuiltinSequences.ice>
|
|
22
|
+
|
|
23
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
24
|
+
[["java:package:com.zeroc"]]
|
|
25
|
+
#endif
|
|
26
|
+
|
|
27
|
+
["objc:prefix:ICE"]
|
|
28
|
+
module Ice
|
|
29
|
+
{
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* The Ice router interface. Routers can be set either globally with
|
|
34
|
+
* {@link Communicator#setDefaultRouter}, or with <code>ice_router</code> on specific
|
|
35
|
+
* proxies.
|
|
36
|
+
*
|
|
37
|
+
**/
|
|
38
|
+
interface Router
|
|
39
|
+
{
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
|
43
|
+
* forwarding requests from the client to the router.
|
|
44
|
+
*
|
|
45
|
+
* If a null proxy is returned, the client will forward requests
|
|
46
|
+
* to the router's endpoints.
|
|
47
|
+
*
|
|
48
|
+
* @param hasRoutingTable Indicates whether or not the router supports a routing
|
|
49
|
+
* table. If it is supported, the Ice runtime will call addProxies to populate the
|
|
50
|
+
* routing table. This out parameter is only supported starting with Ice 3.7.
|
|
51
|
+
* The Ice runtime assumes the router has a routing table if the optional is not
|
|
52
|
+
* set.
|
|
53
|
+
*
|
|
54
|
+
* @return The router's client proxy.
|
|
55
|
+
*
|
|
56
|
+
**/
|
|
57
|
+
["nonmutating", "cpp:const"] idempotent Object* getClientProxy(out optional(1) bool hasRoutingTable);
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
|
62
|
+
* forwarding requests from the server to the router.
|
|
63
|
+
*
|
|
64
|
+
* @return The router's server proxy.
|
|
65
|
+
*
|
|
66
|
+
**/
|
|
67
|
+
["nonmutating", "cpp:const"] idempotent Object* getServerProxy();
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* Add new proxy information to the router's routing table.
|
|
72
|
+
*
|
|
73
|
+
* @param proxies The proxies to add.
|
|
74
|
+
*
|
|
75
|
+
* @return Proxies discarded by the router.
|
|
76
|
+
*
|
|
77
|
+
**/
|
|
78
|
+
idempotent ObjectProxySeq addProxies(ObjectProxySeq proxies);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* This interface should be implemented by services implementing the
|
|
84
|
+
* Ice::Router interface. It should be advertised through an Ice
|
|
85
|
+
* object with the identity `Ice/RouterFinder'. This allows clients to
|
|
86
|
+
* retrieve the router proxy with just the endpoint information of the
|
|
87
|
+
* service.
|
|
88
|
+
*
|
|
89
|
+
**/
|
|
90
|
+
interface RouterFinder
|
|
91
|
+
{
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* Get the router proxy implemented by the process hosting this
|
|
95
|
+
* finder object. The proxy might point to several replicas.
|
|
96
|
+
*
|
|
97
|
+
* @return The router proxy.
|
|
98
|
+
*
|
|
99
|
+
**/
|
|
100
|
+
Router* getRouter();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
slice/Ice/RouterF.ice
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:ICE_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Ice/Ice.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
|
|
11
|
+
[["ice-prefix"]]
|
|
12
|
+
|
|
13
|
+
[["js:module:ice"]]
|
|
14
|
+
[["js:cjs-module"]]
|
|
15
|
+
|
|
16
|
+
[["objc:dll-export:ICE_API"]]
|
|
17
|
+
[["objc:header-dir:objc"]]
|
|
18
|
+
|
|
19
|
+
[["python:pkgdir:Ice"]]
|
|
20
|
+
|
|
21
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
22
|
+
[["java:package:com.zeroc"]]
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
["objc:prefix:ICE"]
|
|
26
|
+
module Ice
|
|
27
|
+
{
|
|
28
|
+
|
|
29
|
+
interface Router;
|
|
30
|
+
|
|
31
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:ICE_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Ice/Ice.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
|
|
11
|
+
[["ice-prefix"]]
|
|
12
|
+
|
|
13
|
+
[["js:module:ice"]]
|
|
14
|
+
[["js:cjs-module"]]
|
|
15
|
+
|
|
16
|
+
[["objc:dll-export:ICE_API"]]
|
|
17
|
+
[["objc:header-dir:objc"]]
|
|
18
|
+
|
|
19
|
+
[["python:pkgdir:Ice"]]
|
|
20
|
+
|
|
21
|
+
#include <Ice/ObjectAdapterF.ice>
|
|
22
|
+
#include <Ice/Current.ice>
|
|
23
|
+
|
|
24
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
25
|
+
[["java:package:com.zeroc"]]
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
["objc:prefix:ICE"]
|
|
29
|
+
module Ice
|
|
30
|
+
{
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* A servant locator is called by an object adapter to
|
|
35
|
+
* locate a servant that is not found in its active servant map.
|
|
36
|
+
*
|
|
37
|
+
* @see ObjectAdapter
|
|
38
|
+
* @see ObjectAdapter#addServantLocator
|
|
39
|
+
* @see ObjectAdapter#findServantLocator
|
|
40
|
+
*
|
|
41
|
+
**/
|
|
42
|
+
local interface ServantLocator
|
|
43
|
+
{
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* Called before a request is dispatched if a
|
|
47
|
+
* servant cannot be found in the object adapter's active servant
|
|
48
|
+
* map. Note that the object adapter does not automatically insert
|
|
49
|
+
* the returned servant into its active servant map. This must be
|
|
50
|
+
* done by the servant locator implementation, if this is desired.
|
|
51
|
+
*
|
|
52
|
+
* <code>locate</code> can throw any user exception. If it does, that exception
|
|
53
|
+
* is marshaled back to the client. If the Slice definition for the
|
|
54
|
+
* corresponding operation includes that user exception, the client
|
|
55
|
+
* receives that user exception; otherwise, the client receives
|
|
56
|
+
* {@link UnknownUserException}.
|
|
57
|
+
*
|
|
58
|
+
* If <code>locate</code> throws any exception, the Ice run time does <em>not</em>
|
|
59
|
+
* call <code>finished</code>.
|
|
60
|
+
*
|
|
61
|
+
* <p class="Note">If you call <code>locate</code> from your own code, you
|
|
62
|
+
* must also call <code>finished</code> when you have finished using the
|
|
63
|
+
* servant, provided that <code>locate</code> returned a non-null servant;
|
|
64
|
+
* otherwise, you will get undefined behavior if you use
|
|
65
|
+
* servant locators such as the Freeze Evictor.
|
|
66
|
+
*
|
|
67
|
+
* @param curr Information about the current operation for which
|
|
68
|
+
* a servant is required.
|
|
69
|
+
*
|
|
70
|
+
* @param cookie A "cookie" that will be passed to <code>finished</code>.
|
|
71
|
+
*
|
|
72
|
+
* @return The located servant, or null if no suitable servant has
|
|
73
|
+
* been found.
|
|
74
|
+
*
|
|
75
|
+
* @throws UserException The implementation can raise a UserException
|
|
76
|
+
* and the run time will marshal it as the result of the invocation.
|
|
77
|
+
*
|
|
78
|
+
* @see ObjectAdapter
|
|
79
|
+
* @see Current
|
|
80
|
+
* @see #finished
|
|
81
|
+
*
|
|
82
|
+
**/
|
|
83
|
+
["java:UserException"] Object locate(Current curr, out LocalObject cookie);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* Called by the object adapter after a request has been
|
|
88
|
+
* made. This operation is only called if <code>locate</code> was called
|
|
89
|
+
* prior to the request and returned a non-null servant. This
|
|
90
|
+
* operation can be used for cleanup purposes after a request.
|
|
91
|
+
*
|
|
92
|
+
* <code>finished</code> can throw any user exception. If it does, that exception
|
|
93
|
+
* is marshaled back to the client. If the Slice definition for the
|
|
94
|
+
* corresponding operation includes that user exception, the client
|
|
95
|
+
* receives that user exception; otherwise, the client receives
|
|
96
|
+
* {@link UnknownUserException}.
|
|
97
|
+
*
|
|
98
|
+
* If both the operation and <code>finished</code> throw an exception, the
|
|
99
|
+
* exception thrown by <code>finished</code> is marshaled back to the client.
|
|
100
|
+
*
|
|
101
|
+
* @param curr Information about the current operation call for
|
|
102
|
+
* which a servant was located by <code>locate</code>.
|
|
103
|
+
*
|
|
104
|
+
* @param servant The servant that was returned by <code>locate</code>.
|
|
105
|
+
*
|
|
106
|
+
* @param cookie The cookie that was returned by <code>locate</code>.
|
|
107
|
+
*
|
|
108
|
+
* @throws UserException The implementation can raise a UserException
|
|
109
|
+
* and the run time will marshal it as the result of the invocation.
|
|
110
|
+
*
|
|
111
|
+
* @see ObjectAdapter
|
|
112
|
+
* @see Current
|
|
113
|
+
* @see #locate
|
|
114
|
+
*
|
|
115
|
+
**/
|
|
116
|
+
["java:UserException"] void finished(Current curr,
|
|
117
|
+
["swift:nonnull"] Object servant,
|
|
118
|
+
LocalObject cookie);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* Called when the object adapter in which this servant locator is
|
|
123
|
+
* installed is destroyed.
|
|
124
|
+
*
|
|
125
|
+
* @param category Indicates for which category the servant locator
|
|
126
|
+
* is being deactivated.
|
|
127
|
+
*
|
|
128
|
+
* @see ObjectAdapter#destroy
|
|
129
|
+
* @see Communicator#shutdown
|
|
130
|
+
* @see Communicator#destroy
|
|
131
|
+
*
|
|
132
|
+
**/
|
|
133
|
+
["swift:noexcept"] void deactivate(string category);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:ICE_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Ice/Ice.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
|
|
11
|
+
[["ice-prefix"]]
|
|
12
|
+
|
|
13
|
+
[["js:module:ice"]]
|
|
14
|
+
[["js:cjs-module"]]
|
|
15
|
+
|
|
16
|
+
[["objc:dll-export:ICE_API"]]
|
|
17
|
+
[["objc:header-dir:objc"]]
|
|
18
|
+
|
|
19
|
+
[["python:pkgdir:Ice"]]
|
|
20
|
+
|
|
21
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
22
|
+
[["java:package:com.zeroc"]]
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
["objc:prefix:ICE"]
|
|
26
|
+
module Ice
|
|
27
|
+
{
|
|
28
|
+
|
|
29
|
+
local interface ServantLocator;
|
|
30
|
+
|
|
31
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:ICE_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Ice/Ice.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
|
|
11
|
+
[["ice-prefix"]]
|
|
12
|
+
|
|
13
|
+
[["js:module:ice"]]
|
|
14
|
+
[["js:cjs-module"]]
|
|
15
|
+
|
|
16
|
+
[["objc:dll-export:ICE_API"]]
|
|
17
|
+
[["objc:header-dir:objc"]]
|
|
18
|
+
|
|
19
|
+
[["python:pkgdir:Ice"]]
|
|
20
|
+
|
|
21
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
22
|
+
[["java:package:com.zeroc"]]
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
["objc:prefix:ICE"]
|
|
26
|
+
module Ice
|
|
27
|
+
{
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A mapping from type IDs to Slice checksums. The dictionary
|
|
31
|
+
* allows verification at run time that client and server
|
|
32
|
+
* use matching Slice definitions.
|
|
33
|
+
**/
|
|
34
|
+
dictionary<string, string> SliceChecksumDict;
|
|
35
|
+
|
|
36
|
+
}
|