zeroc-ice-x64-mingw 3.6b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +7 -0
  2. data/ICE_LICENSE +54 -0
  3. data/LICENSE +339 -0
  4. data/bin/slice2rb +17 -0
  5. data/ice-x64-mingw.gemspec +41 -0
  6. data/lib/Glacier2.rb +12 -0
  7. data/lib/Glacier2/Metrics.rb +99 -0
  8. data/lib/Glacier2/PermissionsVerifier.rb +168 -0
  9. data/lib/Glacier2/PermissionsVerifierF.rb +34 -0
  10. data/lib/Glacier2/Router.rb +141 -0
  11. data/lib/Glacier2/RouterF.rb +29 -0
  12. data/lib/Glacier2/SSLInfo.rb +79 -0
  13. data/lib/Glacier2/Session.rb +470 -0
  14. data/lib/Ice.rb +659 -0
  15. data/lib/Ice/BuiltinSequences.rb +64 -0
  16. data/lib/Ice/Communicator.rb +93 -0
  17. data/lib/Ice/CommunicatorF.rb +28 -0
  18. data/lib/Ice/Connection.rb +414 -0
  19. data/lib/Ice/ConnectionF.rb +36 -0
  20. data/lib/Ice/Current.rb +152 -0
  21. data/lib/Ice/Endpoint.rb +265 -0
  22. data/lib/Ice/EndpointF.rb +52 -0
  23. data/lib/Ice/EndpointTypes.rb +77 -0
  24. data/lib/Ice/FacetMap.rb +28 -0
  25. data/lib/Ice/Identity.rb +70 -0
  26. data/lib/Ice/ImplicitContext.rb +59 -0
  27. data/lib/Ice/ImplicitContextF.rb +28 -0
  28. data/lib/Ice/Instrumentation.rb +425 -0
  29. data/lib/Ice/InstrumentationF.rb +35 -0
  30. data/lib/Ice/LocalException.rb +1081 -0
  31. data/lib/Ice/Locator.rb +314 -0
  32. data/lib/Ice/LocatorF.rb +34 -0
  33. data/lib/Ice/Logger.rb +57 -0
  34. data/lib/Ice/LoggerF.rb +28 -0
  35. data/lib/Ice/Metrics.rb +696 -0
  36. data/lib/Ice/ObjectAdapterF.rb +28 -0
  37. data/lib/Ice/ObjectFactory.rb +53 -0
  38. data/lib/Ice/ObjectFactoryF.rb +28 -0
  39. data/lib/Ice/Plugin.rb +87 -0
  40. data/lib/Ice/PluginF.rb +32 -0
  41. data/lib/Ice/Process.rb +93 -0
  42. data/lib/Ice/ProcessF.rb +29 -0
  43. data/lib/Ice/Properties.rb +65 -0
  44. data/lib/Ice/PropertiesAdmin.rb +104 -0
  45. data/lib/Ice/PropertiesF.rb +33 -0
  46. data/lib/Ice/Router.rb +163 -0
  47. data/lib/Ice/RouterF.rb +29 -0
  48. data/lib/Ice/SliceChecksumDict.rb +28 -0
  49. data/lib/Ice/Version.rb +100 -0
  50. data/lib/IceBox.rb +10 -0
  51. data/lib/IceBox/IceBox.rb +272 -0
  52. data/lib/IceGrid.rb +17 -0
  53. data/lib/IceGrid/Admin.rb +1076 -0
  54. data/lib/IceGrid/Descriptor.rb +1505 -0
  55. data/lib/IceGrid/Exception.rb +401 -0
  56. data/lib/IceGrid/FileParser.rb +105 -0
  57. data/lib/IceGrid/Locator.rb +105 -0
  58. data/lib/IceGrid/Observer.rb +571 -0
  59. data/lib/IceGrid/Query.rb +168 -0
  60. data/lib/IceGrid/Registry.rb +120 -0
  61. data/lib/IceGrid/Session.rb +114 -0
  62. data/lib/IceGrid/UserAccountMapper.rb +101 -0
  63. data/lib/IcePatch2.rb +10 -0
  64. data/lib/IcePatch2/FileInfo.rb +75 -0
  65. data/lib/IcePatch2/FileServer.rb +141 -0
  66. data/lib/IceRuby.so +0 -0
  67. data/lib/IceStorm.rb +11 -0
  68. data/lib/IceStorm/IceStorm.rb +463 -0
  69. data/lib/IceStorm/Metrics.rb +155 -0
  70. data/slice/Freeze/BackgroundSaveEvictor.ice +111 -0
  71. data/slice/Freeze/CatalogData.ice +49 -0
  72. data/slice/Freeze/Connection.ice +111 -0
  73. data/slice/Freeze/ConnectionF.ice +20 -0
  74. data/slice/Freeze/DB.ice +37 -0
  75. data/slice/Freeze/Evictor.ice +339 -0
  76. data/slice/Freeze/EvictorF.ice +22 -0
  77. data/slice/Freeze/EvictorStorage.ice +72 -0
  78. data/slice/Freeze/Exception.ice +100 -0
  79. data/slice/Freeze/Transaction.ice +57 -0
  80. data/slice/Freeze/TransactionalEvictor.ice +50 -0
  81. data/slice/Glacier2/Metrics.ice +77 -0
  82. data/slice/Glacier2/PermissionsVerifier.ice +105 -0
  83. data/slice/Glacier2/PermissionsVerifierF.ice +21 -0
  84. data/slice/Glacier2/Router.ice +178 -0
  85. data/slice/Glacier2/RouterF.ice +20 -0
  86. data/slice/Glacier2/SSLInfo.ice +50 -0
  87. data/slice/Glacier2/Session.ice +273 -0
  88. data/slice/Ice/BuiltinSequences.ice +48 -0
  89. data/slice/Ice/Communicator.ice +567 -0
  90. data/slice/Ice/CommunicatorF.ice +20 -0
  91. data/slice/Ice/Connection.ice +323 -0
  92. data/slice/Ice/ConnectionF.ice +22 -0
  93. data/slice/Ice/Current.ice +160 -0
  94. data/slice/Ice/Endpoint.ice +227 -0
  95. data/slice/Ice/EndpointF.ice +32 -0
  96. data/slice/Ice/EndpointTypes.ice +38 -0
  97. data/slice/Ice/FacetMap.ice +25 -0
  98. data/slice/Ice/Identity.ice +59 -0
  99. data/slice/Ice/ImplicitContext.ice +109 -0
  100. data/slice/Ice/ImplicitContextF.ice +20 -0
  101. data/slice/Ice/Instrumentation.ice +499 -0
  102. data/slice/Ice/InstrumentationF.ice +26 -0
  103. data/slice/Ice/LocalException.ice +1015 -0
  104. data/slice/Ice/Locator.ice +227 -0
  105. data/slice/Ice/LocatorF.ice +21 -0
  106. data/slice/Ice/Logger.ice +86 -0
  107. data/slice/Ice/LoggerF.ice +20 -0
  108. data/slice/Ice/Metrics.ice +422 -0
  109. data/slice/Ice/ObjectAdapter.ice +673 -0
  110. data/slice/Ice/ObjectAdapterF.ice +20 -0
  111. data/slice/Ice/ObjectFactory.ice +60 -0
  112. data/slice/Ice/ObjectFactoryF.ice +20 -0
  113. data/slice/Ice/Plugin.ice +117 -0
  114. data/slice/Ice/PluginF.ice +21 -0
  115. data/slice/Ice/Process.ice +54 -0
  116. data/slice/Ice/ProcessF.ice +20 -0
  117. data/slice/Ice/Properties.ice +228 -0
  118. data/slice/Ice/PropertiesAdmin.ice +75 -0
  119. data/slice/Ice/PropertiesF.ice +21 -0
  120. data/slice/Ice/RemoteLogger.ice +232 -0
  121. data/slice/Ice/Router.ice +83 -0
  122. data/slice/Ice/RouterF.ice +20 -0
  123. data/slice/Ice/ServantLocator.ice +117 -0
  124. data/slice/Ice/ServantLocatorF.ice +20 -0
  125. data/slice/Ice/SliceChecksumDict.ice +25 -0
  126. data/slice/Ice/Version.ice +39 -0
  127. data/slice/IceBox/IceBox.ice +194 -0
  128. data/slice/IceDiscovery/IceDiscovery.ice +32 -0
  129. data/slice/IceGrid/Admin.ice +1578 -0
  130. data/slice/IceGrid/Descriptor.ice +1079 -0
  131. data/slice/IceGrid/Discovery.ice +73 -0
  132. data/slice/IceGrid/Exception.ice +383 -0
  133. data/slice/IceGrid/FileParser.ice +61 -0
  134. data/slice/IceGrid/Locator.ice +56 -0
  135. data/slice/IceGrid/Observer.ice +394 -0
  136. data/slice/IceGrid/PluginFacade.ice +316 -0
  137. data/slice/IceGrid/Query.ice +130 -0
  138. data/slice/IceGrid/Registry.ice +138 -0
  139. data/slice/IceGrid/Session.ice +124 -0
  140. data/slice/IceGrid/UserAccountMapper.ice +58 -0
  141. data/slice/IcePatch2/FileInfo.ice +49 -0
  142. data/slice/IcePatch2/FileServer.ice +129 -0
  143. data/slice/IceSSL/ConnectionInfo.ice +34 -0
  144. data/slice/IceSSL/EndpointInfo.ice +41 -0
  145. data/slice/IceStorm/IceStorm.ice +405 -0
  146. data/slice/IceStorm/Metrics.ice +71 -0
  147. metadata +207 -0
@@ -0,0 +1,75 @@
1
+ // **********************************************************************
2
+ //
3
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
4
+ //
5
+ // This copy of Ice is licensed to you under the terms described in the
6
+ // ICE_LICENSE file included in this distribution.
7
+ //
8
+ // **********************************************************************
9
+
10
+ #pragma once
11
+
12
+ [["cpp:header-ext:h"]]
13
+
14
+ #include <Ice/BuiltinSequences.ice>
15
+
16
+ module Ice
17
+ {
18
+
19
+ /**
20
+ *
21
+ * A simple collection of properties, represented as a dictionary of
22
+ * key/value pairs. Both key and value are strings.
23
+ *
24
+ * @see Properties#getPropertiesForPrefix
25
+ *
26
+ **/
27
+ dictionary<string, string> PropertyDict;
28
+
29
+ /**
30
+ *
31
+ * The PropertiesAdmin interface provides remote access to the properties
32
+ * of a communicator.
33
+ *
34
+ **/
35
+ interface PropertiesAdmin
36
+ {
37
+ /**
38
+ *
39
+ * Get a property by key. If the property is not set, an empty
40
+ * string is returned.
41
+ *
42
+ * @param key The property key.
43
+ *
44
+ * @return The property value.
45
+ *
46
+ **/
47
+ string getProperty(string key);
48
+
49
+ /**
50
+ *
51
+ * Get all properties whose keys begin with <em>prefix</em>. If
52
+ * <em>prefix</em> is an empty string then all properties are returned.
53
+ *
54
+ * @param prefix The prefix to search for (empty string if none).
55
+ * @return The matching property set.
56
+ *
57
+ **/
58
+ ["java:type:java.util.TreeMap<String, String>"] PropertyDict getPropertiesForPrefix(string prefix);
59
+
60
+ /**
61
+ *
62
+ * Update the communicator's properties with the given property set.
63
+ *
64
+ * @param newProperties Properties to be added, changed, or removed.
65
+ * If an entry in <em>newProperties</em> matches the name of an existing property,
66
+ * that property's value is replaced with the new value. If the new value
67
+ * is an empty string, the property is removed. Any existing properties
68
+ * that are not modified or removed by the entries in newProperties are
69
+ * retained with their original values.
70
+ *
71
+ **/
72
+ ["amd"] void setProperties(PropertyDict newProperties);
73
+ };
74
+
75
+ };
@@ -0,0 +1,21 @@
1
+ // **********************************************************************
2
+ //
3
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
4
+ //
5
+ // This copy of Ice is licensed to you under the terms described in the
6
+ // ICE_LICENSE file included in this distribution.
7
+ //
8
+ // **********************************************************************
9
+
10
+ #pragma once
11
+
12
+ [["cpp:header-ext:h"]]
13
+
14
+ module Ice
15
+ {
16
+
17
+ local interface Properties;
18
+ interface PropertiesAdmin;
19
+
20
+ };
21
+
@@ -0,0 +1,232 @@
1
+ // **********************************************************************
2
+ //
3
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
4
+ //
5
+ // This copy of Ice is licensed to you under the terms described in the
6
+ // ICE_LICENSE file included in this distribution.
7
+ //
8
+ // **********************************************************************
9
+
10
+ #pragma once
11
+
12
+ #include <Ice/BuiltinSequences.ice>
13
+
14
+ [["cpp:header-ext:h"]]
15
+ [["cpp:include:list"]]
16
+
17
+ module Ice
18
+ {
19
+
20
+ /**
21
+ *
22
+ * An enumeration representing the different types of log messages.
23
+ *
24
+ **/
25
+ enum LogMessageType
26
+ {
27
+ /**
28
+ *
29
+ * The {@link Logger} received a print message.
30
+ *
31
+ **/
32
+ PrintMessage,
33
+
34
+ /**
35
+ *
36
+ * The {@link Logger} received a trace message.
37
+ *
38
+ **/
39
+ TraceMessage,
40
+
41
+ /**
42
+ *
43
+ * The {@link Logger} received a warning message.
44
+ *
45
+ **/
46
+ WarningMessage,
47
+
48
+ /**
49
+ *
50
+ * The {@link Logger} received an error message.
51
+ *
52
+ **/
53
+ ErrorMessage
54
+ };
55
+
56
+
57
+ /**
58
+ *
59
+ * A sequence of {@link LogMessageType}
60
+ *
61
+ **/
62
+ sequence<LogMessageType> LogMessageTypeSeq;
63
+
64
+
65
+ /**
66
+ *
67
+ * A complete log message.
68
+ *
69
+ **/
70
+ struct LogMessage
71
+ {
72
+ /**
73
+ *
74
+ * The type of message sent to the {@link Logger}.
75
+ *
76
+ **/
77
+ LogMessageType type;
78
+
79
+ /**
80
+ *
81
+ * The date and time when the {@link Logger} received this message, expressed
82
+ * as the number of microseconds since the Unix Epoch (00:00:00 UTC on 1 January 1970)
83
+ *
84
+ **/
85
+ long timestamp;
86
+
87
+ /**
88
+ *
89
+ * For a message of type trace, the trace category of this log message;
90
+ * otherwise, the empty string.
91
+ *
92
+ **/
93
+ string traceCategory;
94
+
95
+ /**
96
+ *
97
+ * The log message itself.
98
+ *
99
+ **/
100
+ string message;
101
+ };
102
+
103
+
104
+ /**
105
+ *
106
+ * A sequence of {@link LogMessage}.
107
+ *
108
+ **/
109
+ ["cpp:type:std::list<LogMessage>"]
110
+ sequence<LogMessage> LogMessageSeq;
111
+
112
+
113
+ /**
114
+ *
115
+ * The Ice remote logger interface. An application can implement a
116
+ * RemoteLogger to receive the log messages sent to the local {@link Logger}
117
+ * of another Ice application.
118
+ *
119
+ **/
120
+ interface RemoteLogger
121
+ {
122
+ /**
123
+ *
124
+ * init is called by {@link LoggerAdmin#attachRemoteLogger} when a
125
+ * RemoteLogger proxy is attached.
126
+ *
127
+ * @param prefix The prefix of the associated local {@link Logger}
128
+ *
129
+ * @param logMessages Old log messages generated before "now".
130
+ *
131
+ * @see LoggerAdmin#attachRemoteLogger
132
+ *
133
+ *
134
+ **/
135
+ void init(string prefix, LogMessageSeq logMessages);
136
+
137
+
138
+ /**
139
+ *
140
+ * log a {@link LogMessage}. Note that log may be called by {@link LoggerAdmin}
141
+ * before {@link init}.
142
+ *
143
+ * @param message The message to log.
144
+ *
145
+ * @see Logger
146
+ *
147
+ **/
148
+ void log(LogMessage message);
149
+ };
150
+
151
+
152
+ /**
153
+ *
154
+ * An exception thrown by {@link LoggerAdmin#attachRemoteLogger} to report
155
+ * that the provided {@link RemoteLogger} was previously attached to this
156
+ * {@link LoggerAdmin}.
157
+ *
158
+ **/
159
+ exception RemoteLoggerAlreadyAttachedException
160
+ {
161
+ };
162
+
163
+ /**
164
+ *
165
+ * The interface of the admin object that allows an Ice application the attach its
166
+ * {@link RemoteLogger} to the {@link Logger} of this admin object's Ice communicator.
167
+ *
168
+ **/
169
+ interface LoggerAdmin
170
+ {
171
+ /**
172
+ *
173
+ * attachRemoteLogger is called to attach a {@link RemoteLogger} object to
174
+ * the local {@link Logger}.
175
+ * attachRemoteLogger calls init on the provided {@link RemoteLogger} proxy.
176
+ *
177
+ * @param prx A proxy to the remote logger.
178
+ *
179
+ * @param messageTypes The list of message types that the remote logger wishes to receive.
180
+ * An empty list means no filtering (send all message types).
181
+ *
182
+ * @param traceCategories The categories of traces that the remote logger wishes to receive.
183
+ * This parameter is ignored if messageTypes is not empty and does not include trace.
184
+ * An empty list means no filtering (send all trace categories).
185
+ *
186
+ * @param messageMax The maximum number of log messages (of all types) to be provided
187
+ * to {@link RemoteLogger#init}. A negative value requests all messages available.
188
+ *
189
+ * @throws RemoteLoggerAlreadyAttachedException Raised if this remote logger is already
190
+ * attached to this admin object.
191
+ *
192
+ **/
193
+ void attachRemoteLogger(RemoteLogger* prx, LogMessageTypeSeq messageTypes, StringSeq traceCategories,
194
+ int messageMax)
195
+ throws RemoteLoggerAlreadyAttachedException;
196
+
197
+ /**
198
+ *
199
+ * detachRemoteLogger is called to detach a {@link RemoteLogger} object from
200
+ * the local {@link Logger}.
201
+ *
202
+ * @param prx A proxy to the remote logger.
203
+ *
204
+ * @return True if the provided remote logger proxy was detached, and false otherwise.
205
+ *
206
+ **/
207
+ bool detachRemoteLogger(RemoteLogger* prx);
208
+
209
+ /**
210
+ *
211
+ * getLog retrieves log messages recently logged.
212
+ *
213
+ * @param messageTypes The list of message types that the caller wishes to receive.
214
+ * An empty list means no filtering (send all message types).
215
+ *
216
+ * @param traceCategories The categories of traces that caller wish to receive.
217
+ * This parameter is ignored if messageTypes is not empty and does not include trace.
218
+ * An empty list means no filtering (send all trace categories).
219
+ *
220
+ * @param messageMax The maximum number of log messages (of all types) to be returned.
221
+ * A negative value requests all messages available.
222
+ *
223
+ * @param prefix The prefix of the associated local {@link Logger}.
224
+ *
225
+ * @return The Log messages.
226
+ *
227
+ **/
228
+ LogMessageSeq getLog(LogMessageTypeSeq messageTypes, StringSeq traceCategories, int messageMax, out string prefix);
229
+ };
230
+
231
+ };
232
+
@@ -0,0 +1,83 @@
1
+ // **********************************************************************
2
+ //
3
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
4
+ //
5
+ // This copy of Ice is licensed to you under the terms described in the
6
+ // ICE_LICENSE file included in this distribution.
7
+ //
8
+ // **********************************************************************
9
+
10
+ #pragma once
11
+
12
+ [["cpp:header-ext:h"]]
13
+
14
+ #include <Ice/BuiltinSequences.ice>
15
+
16
+ module Ice
17
+ {
18
+
19
+ /**
20
+ *
21
+ * The Ice router interface. Routers can be set either globally with
22
+ * {@link Communicator.setDefaultRouter}, or with <tt>ice_router</tt> on specific
23
+ * proxies.
24
+ *
25
+ **/
26
+ interface Router
27
+ {
28
+ /**
29
+ *
30
+ * Get the router's client proxy, i.e., the proxy to use for
31
+ * forwarding requests from the client to the router.
32
+ *
33
+ * @return The router's client proxy.
34
+ *
35
+ **/
36
+ ["nonmutating", "cpp:const"] idempotent Object* getClientProxy();
37
+
38
+ /**
39
+ *
40
+ * Get the router's server proxy, i.e., the proxy to use for
41
+ * forwarding requests from the server to the router.
42
+ *
43
+ * @return The router's server proxy.
44
+ *
45
+ **/
46
+ ["nonmutating", "cpp:const"] idempotent Object* getServerProxy();
47
+
48
+ /**
49
+ *
50
+ * Add new proxy information to the router's routing table.
51
+ *
52
+ * @param proxies The proxies to add.
53
+ *
54
+ * @return Proxies discarded by the router.
55
+ *
56
+ **/
57
+ idempotent ObjectProxySeq addProxies(ObjectProxySeq proxies);
58
+ };
59
+
60
+ /**
61
+ *
62
+ * This inferface should be implemented by services implementing the
63
+ * Ice::Router interface. It should be advertised through an Ice
64
+ * object with the identity `Ice/RouterFinder'. This allows clients to
65
+ * retrieve the router proxy with just the endpoint information of the
66
+ * service.
67
+ *
68
+ **/
69
+ interface RouterFinder
70
+ {
71
+ /**
72
+ *
73
+ * Get the router proxy implemented by the process hosting this
74
+ * finder object. The proxy might point to several replicas.
75
+ *
76
+ * @return The router proxy.
77
+ *
78
+ **/
79
+ Router* getRouter();
80
+ };
81
+
82
+ };
83
+
@@ -0,0 +1,20 @@
1
+ // **********************************************************************
2
+ //
3
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
4
+ //
5
+ // This copy of Ice is licensed to you under the terms described in the
6
+ // ICE_LICENSE file included in this distribution.
7
+ //
8
+ // **********************************************************************
9
+
10
+ #pragma once
11
+
12
+ [["cpp:header-ext:h"]]
13
+
14
+ module Ice
15
+ {
16
+
17
+ interface Router;
18
+
19
+ };
20
+
@@ -0,0 +1,117 @@
1
+ // **********************************************************************
2
+ //
3
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
4
+ //
5
+ // This copy of Ice is licensed to you under the terms described in the
6
+ // ICE_LICENSE file included in this distribution.
7
+ //
8
+ // **********************************************************************
9
+
10
+ #pragma once
11
+
12
+ [["cpp:header-ext:h"]]
13
+
14
+ #include <Ice/ObjectAdapterF.ice>
15
+ #include <Ice/Current.ice>
16
+
17
+ module Ice
18
+ {
19
+
20
+ /**
21
+ *
22
+ * A servant locator is called by an object adapter to
23
+ * locate a servant that is not found in its active servant map.
24
+ *
25
+ * @see ObjectAdapter
26
+ * @see ObjectAdapter#addServantLocator
27
+ * @see ObjectAdapter#findServantLocator
28
+ *
29
+ **/
30
+ local interface ServantLocator
31
+ {
32
+ /**
33
+ *
34
+ * Called before a request is dispatched if a
35
+ * servant cannot be found in the object adapter's active servant
36
+ * map. Note that the object adapter does not automatically insert
37
+ * the returned servant into its active servant map. This must be
38
+ * done by the servant locator implementation, if this is desired.
39
+ *
40
+ * {@link #locate} can throw any user exception. If it does, that exception
41
+ * is marshaled back to the client. If the Slice definition for the
42
+ * corresponding operation includes that user exception, the client
43
+ * receives that user exception; otherwise, the client receives
44
+ * {@link UnknownUserException}.
45
+ *
46
+ * If {@link #locate} throws any exception, the Ice run time does <em>not</em>
47
+ * call {@link finished}.
48
+ *
49
+ * <p class="Note">If you call {@link #locate} from your own code, you
50
+ * must also call {@link #finished} when you have finished using the
51
+ * servant, provided that {@link #locate} returned a non-null servant;
52
+ * otherwise, you will get undefined behavior if you use
53
+ * servant locators such as the {@link Freeze.Evictor}.
54
+ *
55
+ * @param curr Information about the current operation for which
56
+ * a servant is required.
57
+ *
58
+ * @param cookie A "cookie" that will be passed to {@link #finished}.
59
+ *
60
+ * @return The located servant, or null if no suitable servant has
61
+ * been found.
62
+ *
63
+ * @see ObjectAdapter
64
+ * @see Current
65
+ * @see #finished
66
+ *
67
+ **/
68
+ ["UserException"] Object locate(Current curr, out LocalObject cookie);
69
+
70
+ /**
71
+ *
72
+ * Called by the object adapter after a request has been
73
+ * made. This operation is only called if {@link #locate} was called
74
+ * prior to the request and returned a non-null servant. This
75
+ * operation can be used for cleanup purposes after a request.
76
+ *
77
+ * {@link finished} can throw any user exception. If it does, that exception
78
+ * is marshaled back to the client. If the Slice definition for the
79
+ * corresponding operation includes that user exception, the client
80
+ * receives that user exception; otherwise, the client receives
81
+ * {@link UnknownUserException}.
82
+ *
83
+ * If both the operation and {@link #finished} throw an exception, the
84
+ * exception thrown by {@link #finished} is marshaled back to the client.
85
+ *
86
+ * @param curr Information about the current operation call for
87
+ * which a servant was located by {@link #locate}.
88
+ *
89
+ * @param servant The servant that was returned by {@link #locate}.
90
+ *
91
+ * @param cookie The cookie that was returned by {@link #locate}.
92
+ *
93
+ * @see ObjectAdapter
94
+ * @see Current
95
+ * @see #locate
96
+ *
97
+ **/
98
+ ["UserException"] void finished(Current curr, Object servant, LocalObject cookie);
99
+
100
+ /**
101
+ *
102
+ * Called when the object adapter in which this servant locator is
103
+ * installed is destroyed.
104
+ *
105
+ * @param category Indicates for which category the servant locator
106
+ * is being deactivated.
107
+ *
108
+ * @see ObjectAdapter#destroy
109
+ * @see Communicator#shutdown
110
+ * @see Communicator#destroy
111
+ *
112
+ **/
113
+ void deactivate(string category);
114
+ };
115
+
116
+ };
117
+