zeroc-ice 3.7.11__cp314-cp314-macosx_10_15_universal2.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.
Files changed (142) hide show
  1. Glacier2/Metrics_ice.py +82 -0
  2. Glacier2/PermissionsVerifierF_ice.py +32 -0
  3. Glacier2/PermissionsVerifier_ice.py +284 -0
  4. Glacier2/RouterF_ice.py +28 -0
  5. Glacier2/Router_ice.py +618 -0
  6. Glacier2/SSLInfo_ice.py +179 -0
  7. Glacier2/Session_ice.py +1103 -0
  8. Glacier2/__init__.py +226 -0
  9. Ice/BuiltinSequences_ice.py +65 -0
  10. Ice/CommunicatorF_ice.py +27 -0
  11. Ice/Communicator_ice.py +469 -0
  12. Ice/ConnectionF_ice.py +33 -0
  13. Ice/Connection_ice.py +680 -0
  14. Ice/Current_ice.py +175 -0
  15. Ice/EndpointF_ice.py +45 -0
  16. Ice/EndpointTypes_ice.py +54 -0
  17. Ice/Endpoint_ice.py +304 -0
  18. Ice/FacetMap_ice.py +27 -0
  19. Ice/Identity_ice.py +133 -0
  20. Ice/ImplicitContextF_ice.py +27 -0
  21. Ice/ImplicitContext_ice.py +119 -0
  22. Ice/InstrumentationF_ice.py +38 -0
  23. Ice/Instrumentation_ice.py +566 -0
  24. Ice/LocalException_ice.py +1715 -0
  25. Ice/LocatorF_ice.py +32 -0
  26. Ice/Locator_ice.py +728 -0
  27. Ice/LoggerF_ice.py +27 -0
  28. Ice/Logger_ice.py +96 -0
  29. Ice/Metrics_ice.py +864 -0
  30. Ice/ObjectAdapterF_ice.py +27 -0
  31. Ice/ObjectAdapter_ice.py +461 -0
  32. Ice/ObjectFactory_ice.py +68 -0
  33. Ice/PluginF_ice.py +30 -0
  34. Ice/Plugin_ice.py +136 -0
  35. Ice/ProcessF_ice.py +28 -0
  36. Ice/Process_ice.py +175 -0
  37. Ice/PropertiesAdmin_ice.py +247 -0
  38. Ice/PropertiesF_ice.py +31 -0
  39. Ice/Properties_ice.py +199 -0
  40. Ice/Py3/IceFuture.py +52 -0
  41. Ice/Py3/__init__.py +3 -0
  42. Ice/RemoteLogger_ice.py +617 -0
  43. Ice/RouterF_ice.py +28 -0
  44. Ice/Router_ice.py +350 -0
  45. Ice/ServantLocatorF_ice.py +27 -0
  46. Ice/ServantLocator_ice.py +110 -0
  47. Ice/SliceChecksumDict_ice.py +29 -0
  48. Ice/ValueFactory_ice.py +125 -0
  49. Ice/Version_ice.py +217 -0
  50. Ice/__init__.py +2008 -0
  51. IceBox/IceBox_ice.py +644 -0
  52. IceBox/__init__.py +10 -0
  53. IceGrid/Admin_ice.py +6662 -0
  54. IceGrid/Descriptor_ice.py +1795 -0
  55. IceGrid/Exception_ice.py +592 -0
  56. IceGrid/FileParser_ice.py +171 -0
  57. IceGrid/PluginFacade_ice.py +288 -0
  58. IceGrid/Registry_ice.py +985 -0
  59. IceGrid/Session_ice.py +406 -0
  60. IceGrid/UserAccountMapper_ice.py +166 -0
  61. IceGrid/__init__.py +17 -0
  62. IceMX/__init__.py +12 -0
  63. IcePatch2/FileInfo_ice.py +287 -0
  64. IcePatch2/FileServer_ice.py +555 -0
  65. IcePatch2/__init__.py +11 -0
  66. IcePy.cpython-314-darwin.so +0 -0
  67. IceStorm/IceStorm_ice.py +1265 -0
  68. IceStorm/Metrics_ice.py +106 -0
  69. IceStorm/__init__.py +10 -0
  70. slice/Glacier2/Metrics.ice +88 -0
  71. slice/Glacier2/PermissionsVerifier.ice +111 -0
  72. slice/Glacier2/PermissionsVerifierF.ice +30 -0
  73. slice/Glacier2/Router.ice +186 -0
  74. slice/Glacier2/RouterF.ice +29 -0
  75. slice/Glacier2/SSLInfo.ice +59 -0
  76. slice/Glacier2/Session.ice +274 -0
  77. slice/Ice/BuiltinSequences.ice +59 -0
  78. slice/Ice/Communicator.ice +676 -0
  79. slice/Ice/CommunicatorF.ice +31 -0
  80. slice/Ice/Connection.ice +516 -0
  81. slice/Ice/ConnectionF.ice +33 -0
  82. slice/Ice/Current.ice +170 -0
  83. slice/Ice/Endpoint.ice +291 -0
  84. slice/Ice/EndpointF.ice +43 -0
  85. slice/Ice/EndpointTypes.ice +48 -0
  86. slice/Ice/FacetMap.ice +36 -0
  87. slice/Ice/Identity.ice +75 -0
  88. slice/Ice/ImplicitContext.ice +119 -0
  89. slice/Ice/ImplicitContextF.ice +30 -0
  90. slice/Ice/Instrumentation.ice +509 -0
  91. slice/Ice/InstrumentationF.ice +38 -0
  92. slice/Ice/LocalException.ice +1040 -0
  93. slice/Ice/Locator.ice +239 -0
  94. slice/Ice/LocatorF.ice +32 -0
  95. slice/Ice/Logger.ice +99 -0
  96. slice/Ice/LoggerF.ice +31 -0
  97. slice/Ice/Metrics.ice +436 -0
  98. slice/Ice/ObjectAdapter.ice +710 -0
  99. slice/Ice/ObjectAdapterF.ice +31 -0
  100. slice/Ice/ObjectFactory.ice +71 -0
  101. slice/Ice/Plugin.ice +131 -0
  102. slice/Ice/PluginF.ice +36 -0
  103. slice/Ice/Process.ice +64 -0
  104. slice/Ice/ProcessF.ice +31 -0
  105. slice/Ice/Properties.ice +244 -0
  106. slice/Ice/PropertiesAdmin.ice +87 -0
  107. slice/Ice/PropertiesF.ice +32 -0
  108. slice/Ice/RemoteLogger.ice +226 -0
  109. slice/Ice/Router.ice +103 -0
  110. slice/Ice/RouterF.ice +31 -0
  111. slice/Ice/ServantLocator.ice +136 -0
  112. slice/Ice/ServantLocatorF.ice +31 -0
  113. slice/Ice/SliceChecksumDict.ice +36 -0
  114. slice/Ice/ValueFactory.ice +133 -0
  115. slice/Ice/Version.ice +51 -0
  116. slice/IceBT/ConnectionInfo.ice +59 -0
  117. slice/IceBT/EndpointInfo.ice +57 -0
  118. slice/IceBT/Types.ice +45 -0
  119. slice/IceBox/IceBox.ice +216 -0
  120. slice/IceGrid/Admin.ice +1957 -0
  121. slice/IceGrid/Descriptor.ice +1094 -0
  122. slice/IceGrid/Exception.ice +396 -0
  123. slice/IceGrid/FileParser.ice +72 -0
  124. slice/IceGrid/PluginFacade.ice +329 -0
  125. slice/IceGrid/Registry.ice +269 -0
  126. slice/IceGrid/Session.ice +128 -0
  127. slice/IceGrid/UserAccountMapper.ice +69 -0
  128. slice/IceIAP/ConnectionInfo.ice +74 -0
  129. slice/IceIAP/EndpointInfo.ice +68 -0
  130. slice/IcePatch2/FileInfo.ice +85 -0
  131. slice/IcePatch2/FileServer.ice +191 -0
  132. slice/IceSSL/ConnectionInfo.ice +54 -0
  133. slice/IceSSL/ConnectionInfoF.ice +31 -0
  134. slice/IceSSL/EndpointInfo.ice +45 -0
  135. slice/IceStorm/IceStorm.ice +414 -0
  136. slice/IceStorm/Metrics.ice +83 -0
  137. slice2py.py +21 -0
  138. zeroc_ice-3.7.11.dist-info/METADATA +97 -0
  139. zeroc_ice-3.7.11.dist-info/RECORD +142 -0
  140. zeroc_ice-3.7.11.dist-info/WHEEL +5 -0
  141. zeroc_ice-3.7.11.dist-info/entry_points.txt +2 -0
  142. zeroc_ice-3.7.11.dist-info/top_level.txt +10 -0
slice/Ice/Metrics.ice ADDED
@@ -0,0 +1,436 @@
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
+ /**
24
+ *
25
+ * The Ice Management eXtension facility. It provides the
26
+ * {@link IceMX#MetricsAdmin} interface for management clients to
27
+ * retrieve metrics from Ice applications.
28
+ *
29
+ **/
30
+ #ifndef __SLICE2JAVA_COMPAT__
31
+ [["java:package:com.zeroc"]]
32
+ #endif
33
+
34
+ ["objc:prefix:ICEMX", "swift:module:Ice:MX"]
35
+ module IceMX
36
+ {
37
+
38
+ /**
39
+ *
40
+ * A dictionary of strings to integers.
41
+ *
42
+ **/
43
+ dictionary<string, int> StringIntDict;
44
+
45
+ /**
46
+ *
47
+ * The base class for metrics. A metrics object represents a
48
+ * collection of measurements associated to a given a system.
49
+ *
50
+ **/
51
+ class Metrics
52
+ {
53
+ /**
54
+ *
55
+ * The metrics identifier.
56
+ *
57
+ **/
58
+ string id;
59
+
60
+ /**
61
+ *
62
+ * The total number of objects observed by this metrics. This includes
63
+ * the number of currently observed objects and the number of objects
64
+ * observed in the past.
65
+ *
66
+ **/
67
+ long total = 0;
68
+
69
+ /**
70
+ *
71
+ * The number of objects currently observed by this metrics.
72
+ *
73
+ **/
74
+ int current = 0;
75
+
76
+ /**
77
+ *
78
+ * The sum of the lifetime of each observed objects. This does not
79
+ * include the lifetime of objects which are currently observed,
80
+ * only the objects observed in the past.
81
+ *
82
+ **/
83
+ long totalLifetime = 0;
84
+
85
+ /**
86
+ *
87
+ * The number of failures observed.
88
+ *
89
+ **/
90
+ int failures = 0;
91
+ }
92
+
93
+ /**
94
+ *
95
+ * A structure to keep track of failures associated with a given
96
+ * metrics.
97
+ *
98
+ **/
99
+ struct MetricsFailures
100
+ {
101
+ /**
102
+ *
103
+ * The identifier of the metrics object associated to the
104
+ * failures.
105
+ *
106
+ **/
107
+ string id;
108
+
109
+ /**
110
+ *
111
+ * The failures observed for this metrics.
112
+ *
113
+ **/
114
+ StringIntDict failures;
115
+ }
116
+
117
+ /**
118
+ *
119
+ * A sequence of {@link MetricsFailures}.
120
+ *
121
+ **/
122
+ sequence<MetricsFailures> MetricsFailuresSeq;
123
+
124
+ /**
125
+ *
126
+ * A metrics map is a sequence of metrics. We use a sequence here
127
+ * instead of a map because the ID of the metrics is already included
128
+ * in the Metrics class and using sequences of metrics objects is more
129
+ * efficient than using dictionaries since lookup is not necessary.
130
+ *
131
+ **/
132
+ sequence<Metrics> MetricsMap;
133
+
134
+ /**
135
+ *
136
+ * A metrics view is a dictionary of metrics map. The key of the
137
+ * dictionary is the name of the metrics map.
138
+ *
139
+ **/
140
+ dictionary<string, MetricsMap> MetricsView;
141
+
142
+ /**
143
+ *
144
+ * Raised if a metrics view cannot be found.
145
+ *
146
+ **/
147
+ exception UnknownMetricsView
148
+ {
149
+ }
150
+
151
+ /**
152
+ *
153
+ * The metrics administrative facet interface. This interface allows
154
+ * remote administrative clients to access metrics of an application
155
+ * that enabled the Ice administrative facility and configured some
156
+ * metrics views.
157
+ *
158
+ **/
159
+ ["format:sliced"]
160
+ interface MetricsAdmin
161
+ {
162
+ /**
163
+ *
164
+ * Get the names of enabled and disabled metrics.
165
+ *
166
+ * @param disabledViews The names of the disabled views.
167
+ *
168
+ * @return The name of the enabled views.
169
+ *
170
+ **/
171
+ Ice::StringSeq getMetricsViewNames(out Ice::StringSeq disabledViews);
172
+
173
+ /**
174
+ *
175
+ * Enables a metrics view.
176
+ *
177
+ * @param name The metrics view name.
178
+ *
179
+ * @throws UnknownMetricsView Raised if the metrics view cannot be
180
+ * found.
181
+ *
182
+ **/
183
+ void enableMetricsView(string name)
184
+ throws UnknownMetricsView;
185
+
186
+ /**
187
+ *
188
+ * Disable a metrics view.
189
+ *
190
+ * @param name The metrics view name.
191
+ *
192
+ * @throws UnknownMetricsView Raised if the metrics view cannot be
193
+ * found.
194
+ *
195
+ **/
196
+ void disableMetricsView(string name)
197
+ throws UnknownMetricsView;
198
+
199
+ /**
200
+ *
201
+ * Get the metrics objects for the given metrics view. This
202
+ * returns a dictionary of metric maps for each metrics class
203
+ * configured with the view. The timestamp allows the client to
204
+ * compute averages which are not dependent of the invocation
205
+ * latency for this operation.
206
+ *
207
+ * @param view The name of the metrics view.
208
+ *
209
+ * @param timestamp The local time of the process when the metrics
210
+ * object were retrieved.
211
+ *
212
+ * @return The metrics view data.
213
+ *
214
+ * @throws UnknownMetricsView Raised if the metrics view cannot be
215
+ * found.
216
+ *
217
+ **/
218
+ MetricsView getMetricsView(string view, out long timestamp)
219
+ throws UnknownMetricsView;
220
+
221
+ /**
222
+ *
223
+ * Get the metrics failures associated with the given view and map.
224
+ *
225
+ * @param view The name of the metrics view.
226
+ *
227
+ * @param map The name of the metrics map.
228
+ *
229
+ * @return The metrics failures associated with the map.
230
+ *
231
+ * @throws UnknownMetricsView Raised if the metrics view cannot be
232
+ * found.
233
+ *
234
+ **/
235
+ MetricsFailuresSeq getMapMetricsFailures(string view, string map)
236
+ throws UnknownMetricsView;
237
+
238
+ /**
239
+ *
240
+ * Get the metrics failure associated for the given metrics.
241
+ *
242
+ * @param view The name of the metrics view.
243
+ *
244
+ * @param map The name of the metrics map.
245
+ *
246
+ * @param id The ID of the metrics.
247
+ *
248
+ * @return The metrics failures associated with the metrics.
249
+ *
250
+ * @throws UnknownMetricsView Raised if the metrics view cannot be
251
+ * found.
252
+ *
253
+ **/
254
+ MetricsFailures getMetricsFailures(string view, string map, string id)
255
+ throws UnknownMetricsView;
256
+ }
257
+
258
+ /**
259
+ *
260
+ * Provides information on the number of threads currently in use and
261
+ * their activity.
262
+ *
263
+ **/
264
+ class ThreadMetrics extends Metrics
265
+ {
266
+ /**
267
+ *
268
+ * The number of threads which are currently performing socket
269
+ * read or writes.
270
+ *
271
+ **/
272
+ int inUseForIO = 0;
273
+
274
+ /**
275
+ *
276
+ * The number of threads which are currently calling user code
277
+ * (servant dispatch, AMI callbacks, etc).
278
+ *
279
+ **/
280
+ int inUseForUser = 0;
281
+
282
+ /**
283
+ *
284
+ * The number of threads which are currently performing other
285
+ * activities. These are all other that are not counted with
286
+ * {@link #inUseForUser} or {@link #inUseForIO}, such as DNS
287
+ * lookups, garbage collection).
288
+ *
289
+ **/
290
+ int inUseForOther = 0;
291
+ }
292
+
293
+ /**
294
+ *
295
+ * Provides information on servant dispatch.
296
+ *
297
+ **/
298
+ class DispatchMetrics extends Metrics
299
+ {
300
+ /**
301
+ *
302
+ * The number of dispatch that failed with a user exception.
303
+ *
304
+ **/
305
+ int userException = 0;
306
+
307
+ /**
308
+ *
309
+ * The size of the dispatch. This corresponds to the size of the
310
+ * marshalled input parameters.
311
+ *
312
+ **/
313
+ long size = 0;
314
+
315
+ /**
316
+ *
317
+ * The size of the dispatch reply. This corresponds to the size of
318
+ * the marshalled output and return parameters.
319
+ *
320
+ **/
321
+ long replySize = 0;
322
+ }
323
+
324
+ /**
325
+ *
326
+ * Provides information on child invocations. A child invocation is
327
+ * either remote (sent over an Ice connection) or collocated. An
328
+ * invocation can have multiple child invocation if it is
329
+ * retried. Child invocation metrics are embedded within
330
+ * {@link InvocationMetrics}.
331
+ *
332
+ **/
333
+ class ChildInvocationMetrics extends Metrics
334
+ {
335
+ /**
336
+ *
337
+ * The size of the invocation. This corresponds to the size of the
338
+ * marshalled input parameters.
339
+ *
340
+ **/
341
+ long size = 0;
342
+
343
+ /**
344
+ *
345
+ * The size of the invocation reply. This corresponds to the size
346
+ * of the marshalled output and return parameters.
347
+ *
348
+ **/
349
+ long replySize = 0;
350
+ }
351
+
352
+ /**
353
+ *
354
+ * Provides information on invocations that are collocated. Collocated
355
+ * metrics are embedded within {@link InvocationMetrics}.
356
+ *
357
+ **/
358
+ class CollocatedMetrics extends ChildInvocationMetrics
359
+ {
360
+ }
361
+
362
+ /**
363
+ *
364
+ * Provides information on invocations that are specifically sent over
365
+ * Ice connections. Remote metrics are embedded within {@link InvocationMetrics}.
366
+ *
367
+ **/
368
+ class RemoteMetrics extends ChildInvocationMetrics
369
+ {
370
+ }
371
+
372
+ /**
373
+ *
374
+ * Provide measurements for proxy invocations. Proxy invocations can
375
+ * either be sent over the wire or be collocated.
376
+ *
377
+ **/
378
+ class InvocationMetrics extends Metrics
379
+ {
380
+ /**
381
+ *
382
+ * The number of retries for the invocation(s).
383
+ *
384
+ **/
385
+ int retry = 0;
386
+
387
+ /**
388
+ *
389
+ * The number of invocations that failed with a user exception.
390
+ *
391
+ **/
392
+ int userException = 0;
393
+
394
+ /**
395
+ *
396
+ * The remote invocation metrics map.
397
+ *
398
+ * @see RemoteMetrics
399
+ *
400
+ **/
401
+ MetricsMap remotes;
402
+
403
+ /**
404
+ *
405
+ * The collocated invocation metrics map.
406
+ *
407
+ * @see CollocatedMetrics
408
+ *
409
+ **/
410
+ MetricsMap collocated;
411
+ }
412
+
413
+ /**
414
+ *
415
+ * Provides information on the data sent and received over Ice
416
+ * connections.
417
+ *
418
+ **/
419
+ class ConnectionMetrics extends Metrics
420
+ {
421
+ /**
422
+ *
423
+ * The number of bytes received by the connection.
424
+ *
425
+ **/
426
+ long receivedBytes = 0;
427
+
428
+ /**
429
+ *
430
+ * The number of bytes sent by the connection.
431
+ *
432
+ **/
433
+ long sentBytes = 0;
434
+ }
435
+
436
+ }