zeroc-ice 3.7.11 → 3.8.1
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.
- checksums.yaml +4 -4
- data/dist/IceRuby/Communicator.cpp +159 -376
- data/dist/IceRuby/Communicator.h +8 -9
- data/dist/IceRuby/Config.h +23 -89
- data/dist/IceRuby/Connection.cpp +111 -219
- data/dist/IceRuby/Connection.h +8 -12
- data/dist/IceRuby/DefaultSliceLoader.cpp +45 -0
- data/dist/IceRuby/DefaultSliceLoader.h +25 -0
- data/dist/IceRuby/Endpoint.cpp +63 -65
- data/dist/IceRuby/Endpoint.h +7 -11
- data/dist/IceRuby/ImplicitContext.cpp +26 -31
- data/dist/IceRuby/ImplicitContext.h +6 -10
- data/dist/IceRuby/Init.cpp +27 -40
- data/dist/IceRuby/Logger.cpp +23 -28
- data/dist/IceRuby/Logger.h +8 -12
- data/dist/IceRuby/Operation.cpp +177 -219
- data/dist/IceRuby/Operation.h +15 -18
- data/dist/IceRuby/Properties.cpp +133 -89
- data/dist/IceRuby/Properties.h +6 -10
- data/dist/IceRuby/Proxy.cpp +179 -649
- data/dist/IceRuby/Proxy.h +11 -12
- data/dist/IceRuby/RubySliceLoader.cpp +39 -0
- data/dist/IceRuby/RubySliceLoader.h +27 -0
- data/dist/IceRuby/Slice.cpp +88 -94
- data/dist/IceRuby/Slice.h +3 -7
- data/dist/IceRuby/Types.cpp +987 -1190
- data/dist/IceRuby/Types.h +390 -461
- data/dist/IceRuby/Util.cpp +214 -473
- data/dist/IceRuby/Util.h +378 -479
- data/dist/ice/cpp/include/Ice/AsyncResponseHandler.h +85 -0
- data/dist/ice/cpp/include/Ice/BatchRequest.h +39 -0
- data/dist/ice/cpp/include/Ice/BatchRequestQueueF.h +4 -10
- data/dist/ice/cpp/include/Ice/Buffer.h +116 -111
- data/dist/ice/cpp/include/Ice/Communicator.h +411 -0
- data/dist/ice/cpp/include/Ice/CommunicatorF.h +16 -0
- data/dist/ice/cpp/include/Ice/Config.h +46 -62
- data/dist/ice/cpp/include/Ice/Connection.h +410 -0
- data/dist/ice/cpp/include/Ice/ConnectionF.h +36 -0
- data/dist/ice/cpp/include/Ice/ConnectionIF.h +6 -28
- data/dist/ice/cpp/include/Ice/CtrlCHandler.h +56 -0
- data/dist/ice/cpp/include/Ice/Current.h +60 -0
- data/dist/ice/cpp/include/Ice/DefaultSliceLoader.h +160 -0
- data/dist/ice/cpp/include/Ice/Demangle.h +17 -0
- data/dist/ice/cpp/include/Ice/Endpoint.h +298 -0
- data/dist/ice/cpp/include/Ice/EndpointF.h +44 -0
- data/dist/ice/cpp/include/Ice/EndpointSelectionType.h +21 -0
- data/dist/ice/cpp/include/Ice/Exception.h +46 -151
- data/dist/ice/cpp/include/Ice/FacetMap.h +16 -0
- data/dist/ice/cpp/include/Ice/Format.h +11 -27
- data/dist/ice/cpp/include/Ice/Ice.h +53 -48
- data/dist/ice/cpp/include/Ice/IconvStringConverter.h +165 -326
- data/dist/ice/cpp/include/Ice/ImplicitContext.h +76 -0
- data/dist/ice/cpp/include/Ice/IncomingRequest.h +75 -0
- data/dist/ice/cpp/include/Ice/Initialize.h +113 -927
- data/dist/ice/cpp/include/Ice/InputStream.h +748 -1320
- data/dist/ice/cpp/include/Ice/InstanceF.h +4 -10
- data/dist/ice/cpp/include/Ice/Instrumentation.h +319 -0
- data/dist/ice/cpp/include/Ice/LocalException.h +58 -0
- data/dist/ice/cpp/include/Ice/LocalExceptions.h +870 -0
- data/dist/ice/cpp/include/Ice/Logger.h +62 -0
- data/dist/ice/cpp/include/Ice/LoggerUtil.h +124 -147
- data/dist/ice/cpp/include/Ice/MarshaledResult.h +50 -0
- data/dist/ice/cpp/include/Ice/NativePropertiesAdmin.h +41 -71
- data/dist/ice/cpp/include/Ice/Object.h +151 -490
- data/dist/ice/cpp/include/Ice/ObjectAdapter.h +324 -0
- data/dist/ice/cpp/include/Ice/ObjectAdapterF.h +16 -0
- data/dist/ice/cpp/include/Ice/ObjectF.h +5 -19
- data/dist/ice/cpp/include/Ice/ObserverHelper.h +115 -132
- data/dist/ice/cpp/include/Ice/OutgoingAsync.h +392 -748
- data/dist/ice/cpp/include/Ice/OutgoingResponse.h +129 -0
- data/dist/ice/cpp/include/Ice/OutputStream.h +756 -956
- data/dist/ice/cpp/include/Ice/Plugin.h +73 -0
- data/dist/ice/cpp/include/Ice/PluginFactory.h +77 -0
- data/dist/ice/cpp/include/{IceUtil → Ice}/PopDisableWarnings.h +8 -6
- data/dist/ice/cpp/include/Ice/Properties.h +307 -0
- data/dist/ice/cpp/include/Ice/PropertiesF.h +19 -0
- data/dist/ice/cpp/include/Ice/Proxy.h +665 -5094
- data/dist/ice/cpp/include/Ice/ProxyF.h +2 -44
- data/dist/ice/cpp/include/Ice/ProxyFunctions.h +209 -0
- data/dist/ice/cpp/include/Ice/PushDisableWarnings.h +29 -0
- data/dist/ice/cpp/include/Ice/ReferenceF.h +4 -19
- data/dist/ice/cpp/include/Ice/RequestHandlerF.h +8 -18
- data/dist/ice/cpp/include/Ice/SSL/ClientAuthenticationOptions.h +276 -0
- data/dist/ice/cpp/include/Ice/SSL/Config.h +54 -0
- data/dist/ice/cpp/include/Ice/SSL/ConnectionInfo.h +107 -0
- data/dist/ice/cpp/include/Ice/SSL/ConnectionInfoF.h +39 -0
- data/dist/ice/cpp/include/Ice/SSL/EndpointInfo.h +40 -0
- data/dist/ice/cpp/include/Ice/SSL/SSLException.h +32 -0
- data/dist/ice/cpp/include/Ice/SSL/ServerAuthenticationOptions.h +286 -0
- data/dist/ice/cpp/include/Ice/ServantLocator.h +51 -0
- data/dist/ice/cpp/include/Ice/Service.h +182 -342
- data/dist/ice/cpp/include/Ice/SliceLoader.h +67 -0
- data/dist/ice/cpp/include/Ice/SlicedData.h +113 -160
- data/dist/ice/cpp/include/Ice/SlicedDataF.h +17 -27
- data/dist/ice/cpp/include/Ice/StreamHelpers.h +532 -1070
- data/dist/ice/cpp/include/Ice/StreamableTraits.h +291 -0
- data/dist/ice/cpp/include/Ice/StringConverter.h +152 -63
- data/dist/ice/cpp/include/Ice/StringUtil.h +114 -0
- data/dist/ice/cpp/include/Ice/TimerTask.h +24 -0
- data/dist/ice/cpp/include/Ice/TupleCompare.h +103 -0
- data/dist/ice/cpp/include/Ice/UUID.h +6 -9
- data/dist/ice/cpp/include/Ice/UserException.h +46 -0
- data/dist/ice/cpp/include/Ice/UserExceptionFactory.h +4 -79
- data/dist/ice/cpp/include/Ice/Value.h +103 -115
- data/dist/ice/cpp/include/Ice/ValueF.h +6 -11
- data/dist/ice/cpp/include/IceDiscovery/IceDiscovery.h +16 -1877
- data/dist/ice/cpp/include/IceLocatorDiscovery/IceLocatorDiscovery.h +16 -1185
- data/dist/ice/cpp/include/generated/Ice/BuiltinSequences.h +46 -146
- data/dist/ice/cpp/include/generated/Ice/Context.h +40 -0
- data/dist/ice/cpp/include/generated/Ice/EndpointTypes.h +49 -93
- data/dist/ice/cpp/include/generated/Ice/Identity.h +70 -226
- data/dist/ice/cpp/include/generated/Ice/Locator.h +494 -3850
- data/dist/ice/cpp/include/generated/Ice/LocatorRegistry.h +443 -0
- data/dist/ice/cpp/include/generated/Ice/Metrics.h +937 -4603
- data/dist/ice/cpp/include/generated/Ice/OperationMode.h +73 -0
- data/dist/ice/cpp/include/generated/Ice/Process.h +197 -929
- data/dist/ice/cpp/include/generated/Ice/PropertiesAdmin.h +249 -1301
- data/dist/ice/cpp/include/generated/Ice/PropertyDict.h +39 -0
- data/dist/ice/cpp/include/generated/Ice/RemoteLogger.h +637 -2620
- data/dist/ice/cpp/include/generated/Ice/ReplyStatus.h +94 -0
- data/dist/ice/cpp/include/generated/Ice/Router.h +429 -1783
- data/dist/ice/cpp/include/generated/Ice/SliceChecksumDict.h +18 -65
- data/dist/ice/cpp/include/generated/Ice/Version.h +73 -318
- data/dist/ice/cpp/include/generated/IceDiscovery/Lookup.h +498 -0
- data/dist/ice/cpp/include/generated/IceLocatorDiscovery/Lookup.h +387 -0
- data/dist/ice/cpp/src/Ice/Acceptor.h +28 -24
- data/dist/ice/cpp/src/Ice/AcceptorF.h +6 -14
- data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories.h +16 -0
- data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_all.cpp +43 -0
- data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_min.cpp +17 -0
- data/dist/ice/cpp/src/Ice/ArgVector.cpp +17 -18
- data/dist/ice/cpp/src/Ice/ArgVector.h +19 -25
- data/dist/ice/cpp/src/Ice/Base64.cpp +66 -66
- data/dist/ice/cpp/src/Ice/Base64.h +14 -19
- data/dist/ice/cpp/src/Ice/BatchRequestQueue.cpp +70 -121
- data/dist/ice/cpp/src/Ice/BatchRequestQueue.h +37 -47
- data/dist/ice/cpp/src/Ice/Buffer.cpp +73 -41
- data/dist/ice/cpp/src/Ice/CheckIdentity.h +21 -0
- data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +215 -249
- data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.h +38 -60
- data/dist/ice/cpp/src/Ice/Communicator.cpp +399 -0
- data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.cpp +140 -0
- data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.h +39 -0
- data/dist/ice/cpp/src/Ice/ConnectRequestHandler.cpp +63 -184
- data/dist/ice/cpp/src/Ice/ConnectRequestHandler.h +30 -51
- data/dist/ice/cpp/src/Ice/ConnectRequestHandlerF.h +4 -14
- data/dist/ice/cpp/src/Ice/Connection.cpp +44 -0
- data/dist/ice/cpp/src/Ice/ConnectionFactory.cpp +578 -792
- data/dist/ice/cpp/src/Ice/ConnectionFactory.h +200 -200
- data/dist/ice/cpp/src/Ice/ConnectionFactoryF.h +6 -19
- data/dist/ice/cpp/src/Ice/ConnectionI.cpp +1674 -1782
- data/dist/ice/cpp/src/Ice/ConnectionI.h +333 -293
- data/dist/ice/cpp/src/Ice/ConnectionOptions.h +22 -0
- data/dist/ice/cpp/src/Ice/Connector.h +25 -19
- data/dist/ice/cpp/src/Ice/ConnectorF.h +4 -11
- data/dist/ice/cpp/src/{IceUtil → Ice}/ConsoleUtil.cpp +32 -53
- data/dist/ice/cpp/src/Ice/ConsoleUtil.h +79 -0
- data/dist/ice/cpp/src/Ice/CtrlCHandler.cpp +189 -0
- data/dist/ice/cpp/src/Ice/Current.cpp +29 -0
- data/dist/ice/cpp/src/Ice/DLLMain.cpp +25 -35
- data/dist/ice/cpp/src/Ice/DefaultSliceLoader.cpp +39 -0
- data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +41 -119
- data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.h +27 -41
- data/dist/ice/cpp/src/Ice/DefaultsAndOverridesF.h +4 -11
- data/dist/ice/cpp/src/Ice/Demangle.cpp +26 -0
- data/dist/ice/cpp/src/Ice/DisableWarnings.h +31 -0
- data/dist/ice/cpp/src/Ice/DynamicLibrary.cpp +44 -112
- data/dist/ice/cpp/src/Ice/DynamicLibrary.h +91 -0
- data/dist/ice/cpp/src/Ice/Endian.h +40 -0
- data/dist/ice/cpp/src/Ice/EndpointFactory.cpp +35 -59
- data/dist/ice/cpp/src/Ice/EndpointFactory.h +82 -103
- data/dist/ice/cpp/src/Ice/EndpointFactoryF.h +4 -11
- data/dist/ice/cpp/src/Ice/EndpointFactoryManager.cpp +54 -87
- data/dist/ice/cpp/src/Ice/EndpointFactoryManager.h +28 -33
- data/dist/ice/cpp/src/Ice/EndpointFactoryManagerF.h +4 -11
- data/dist/ice/cpp/src/Ice/EndpointI.cpp +53 -23
- data/dist/ice/cpp/src/Ice/EndpointI.h +132 -200
- data/dist/ice/cpp/src/Ice/EndpointIF.h +11 -39
- data/dist/ice/cpp/src/Ice/EventHandler.cpp +3 -26
- data/dist/ice/cpp/src/Ice/EventHandler.h +46 -56
- data/dist/ice/cpp/src/Ice/EventHandlerF.h +4 -14
- data/dist/ice/cpp/src/Ice/Exception.cpp +3 -816
- data/dist/ice/cpp/src/Ice/FileUtil.cpp +476 -0
- data/dist/ice/cpp/src/Ice/FileUtil.h +152 -0
- data/dist/ice/cpp/src/Ice/FixedRequestHandler.cpp +34 -0
- data/dist/ice/cpp/src/Ice/FixedRequestHandler.h +29 -0
- data/dist/ice/cpp/src/Ice/HashUtil.h +46 -32
- data/dist/ice/cpp/src/Ice/HttpParser.cpp +431 -431
- data/dist/ice/cpp/src/Ice/HttpParser.h +95 -100
- data/dist/ice/cpp/src/Ice/IPEndpointI.cpp +207 -324
- data/dist/ice/cpp/src/Ice/IPEndpointI.h +80 -126
- data/dist/ice/cpp/src/Ice/IPEndpointIF.h +6 -17
- data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.cpp +172 -0
- data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.h +89 -0
- data/dist/ice/cpp/src/Ice/ImplicitContext.cpp +109 -0
- data/dist/ice/cpp/src/Ice/IncomingRequest.cpp +66 -0
- data/dist/ice/cpp/src/Ice/Initialize.cpp +48 -542
- data/dist/ice/cpp/src/Ice/InputStream.cpp +848 -1385
- data/dist/ice/cpp/src/Ice/Instance.cpp +816 -827
- data/dist/ice/cpp/src/Ice/Instance.h +202 -212
- data/dist/ice/cpp/src/Ice/InstrumentationI.cpp +526 -661
- data/dist/ice/cpp/src/Ice/InstrumentationI.h +171 -192
- data/dist/ice/cpp/src/Ice/LocalException.cpp +518 -0
- data/dist/ice/cpp/src/Ice/LocalExceptions.cpp +577 -0
- data/dist/ice/cpp/src/Ice/LocatorInfo.cpp +291 -329
- data/dist/ice/cpp/src/Ice/LocatorInfo.h +144 -157
- data/dist/ice/cpp/src/Ice/LocatorInfoF.h +8 -17
- data/dist/ice/cpp/src/Ice/LoggerAdminI.cpp +561 -743
- data/dist/ice/cpp/src/Ice/LoggerAdminI.h +18 -28
- data/dist/ice/cpp/src/Ice/LoggerI.cpp +66 -91
- data/dist/ice/cpp/src/Ice/LoggerI.h +36 -41
- data/dist/ice/cpp/src/Ice/LoggerMiddleware.cpp +176 -0
- data/dist/ice/cpp/src/Ice/LoggerMiddleware.h +42 -0
- data/dist/ice/cpp/src/Ice/LoggerUtil.cpp +14 -38
- data/dist/ice/cpp/src/Ice/MarshaledResult.cpp +20 -0
- data/dist/ice/cpp/src/Ice/MetricsAdminI.cpp +194 -280
- data/dist/ice/cpp/src/Ice/MetricsAdminI.h +600 -0
- data/dist/ice/cpp/src/Ice/MetricsFunctional.h +92 -0
- data/dist/ice/cpp/src/Ice/MetricsObserverI.h +587 -0
- data/dist/ice/cpp/src/Ice/NativePropertiesAdmin.cpp +185 -0
- data/dist/ice/cpp/src/Ice/Network.cpp +595 -917
- data/dist/ice/cpp/src/Ice/Network.h +189 -213
- data/dist/ice/cpp/src/Ice/NetworkF.h +2 -10
- data/dist/ice/cpp/src/Ice/NetworkProxy.cpp +99 -104
- data/dist/ice/cpp/src/Ice/NetworkProxy.h +49 -54
- data/dist/ice/cpp/src/Ice/NetworkProxyF.h +4 -11
- data/dist/ice/cpp/src/Ice/OSLogLoggerI.cpp +16 -18
- data/dist/ice/cpp/src/Ice/OSLogLoggerI.h +22 -27
- data/dist/ice/cpp/src/Ice/Object.cpp +152 -338
- data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +170 -113
- data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.h +41 -41
- data/dist/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +4 -15
- data/dist/ice/cpp/src/Ice/ObjectAdapterI.cpp +580 -727
- data/dist/ice/cpp/src/Ice/ObjectAdapterI.h +149 -145
- data/dist/ice/cpp/src/Ice/ObserverHelper.cpp +36 -17
- data/dist/ice/cpp/src/Ice/ObserverMiddleware.cpp +96 -0
- data/dist/ice/cpp/src/Ice/ObserverMiddleware.h +25 -0
- data/dist/ice/cpp/src/Ice/OpaqueEndpointI.cpp +147 -187
- data/dist/ice/cpp/src/Ice/OpaqueEndpointI.h +56 -64
- data/dist/ice/cpp/src/{IceUtil → Ice}/Options.cpp +187 -258
- data/dist/ice/cpp/src/Ice/Options.h +119 -0
- data/dist/ice/cpp/src/Ice/OutgoingAsync.cpp +516 -732
- data/dist/ice/cpp/src/Ice/OutgoingResponse.cpp +276 -0
- data/dist/ice/cpp/src/Ice/OutputStream.cpp +610 -543
- data/dist/ice/cpp/src/Ice/OutputUtil.cpp +344 -0
- data/dist/ice/cpp/src/Ice/OutputUtil.h +173 -0
- data/dist/ice/cpp/src/Ice/PluginManagerI.cpp +118 -277
- data/dist/ice/cpp/src/Ice/PluginManagerI.h +41 -48
- data/dist/ice/cpp/src/Ice/Properties.cpp +931 -0
- data/dist/ice/cpp/src/Ice/PropertyNames.cpp +519 -1341
- data/dist/ice/cpp/src/Ice/PropertyNames.h +49 -64
- data/dist/ice/cpp/src/Ice/PropertyUtil.cpp +103 -0
- data/dist/ice/cpp/src/Ice/PropertyUtil.h +31 -0
- data/dist/ice/cpp/src/Ice/Protocol.cpp +129 -94
- data/dist/ice/cpp/src/Ice/Protocol.h +116 -0
- data/dist/ice/cpp/src/Ice/ProtocolInstance.cpp +117 -62
- data/dist/ice/cpp/src/Ice/ProtocolInstance.h +63 -82
- data/dist/ice/cpp/src/Ice/ProtocolInstanceF.h +4 -11
- data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +10 -32
- data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.h +25 -54
- data/dist/ice/cpp/src/Ice/Proxy.cpp +294 -1357
- data/dist/ice/cpp/src/Ice/ProxyAsync.cpp +684 -0
- data/dist/ice/cpp/src/Ice/ProxyFunctions.cpp +90 -0
- data/dist/ice/cpp/src/Ice/PushDisableDeprecatedWarnings.h +15 -0
- data/dist/ice/cpp/src/Ice/Random.cpp +29 -0
- data/dist/ice/cpp/src/Ice/Random.h +23 -0
- data/dist/ice/cpp/src/Ice/Reference.cpp +635 -1097
- data/dist/ice/cpp/src/Ice/Reference.h +314 -298
- data/dist/ice/cpp/src/Ice/ReferenceFactory.cpp +320 -378
- data/dist/ice/cpp/src/Ice/ReferenceFactory.h +48 -66
- data/dist/ice/cpp/src/Ice/ReferenceFactoryF.h +4 -9
- data/dist/ice/cpp/src/Ice/RequestHandler.cpp +15 -24
- data/dist/ice/cpp/src/Ice/RequestHandler.h +43 -68
- data/dist/ice/cpp/src/Ice/RequestHandlerCache.cpp +76 -0
- data/dist/ice/cpp/src/Ice/RequestHandlerCache.h +33 -0
- data/dist/ice/cpp/src/Ice/ResourceConfig.h +27 -0
- data/dist/ice/cpp/src/Ice/RetryQueue.cpp +51 -57
- data/dist/ice/cpp/src/Ice/RetryQueue.h +39 -46
- data/dist/ice/cpp/src/Ice/RetryQueueF.h +4 -9
- data/dist/ice/cpp/src/Ice/RouterInfo.cpp +97 -201
- data/dist/ice/cpp/src/Ice/RouterInfo.h +61 -118
- data/dist/ice/cpp/src/Ice/RouterInfoF.h +6 -14
- data/dist/ice/cpp/src/Ice/SHA1.cpp +86 -60
- data/dist/ice/cpp/src/Ice/SHA1.h +35 -0
- data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.cpp +89 -0
- data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.h +87 -0
- data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.cpp +521 -0
- data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.h +40 -0
- data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngineF.h +13 -0
- data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp +646 -0
- data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.h +80 -0
- data/dist/ice/cpp/src/{IceSSL → Ice/SSL}/RFC2253.cpp +85 -88
- data/dist/ice/cpp/src/Ice/SSL/RFC2253.h +58 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.cpp +124 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.h +52 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.cpp +92 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.h +38 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.cpp +377 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.h +84 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLEngine.cpp +115 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLEngine.h +69 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLEngineF.h +14 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLException.cpp +18 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLInstance.cpp +27 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLInstance.h +26 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLInstanceF.h +19 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLUtil.cpp +673 -0
- data/dist/ice/cpp/src/Ice/SSL/SSLUtil.h +118 -0
- data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.cpp +1449 -0
- data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.h +58 -0
- data/dist/ice/cpp/src/Ice/SSL/SchannelEngineF.h +18 -0
- data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.cpp +1088 -0
- data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.h +118 -0
- data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.cpp +825 -0
- data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.h +44 -0
- data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngineF.h +18 -0
- data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp +621 -0
- data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.h +91 -0
- data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.cpp +1048 -0
- data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.h +40 -0
- data/dist/ice/cpp/src/Ice/SSL/TrustManager.cpp +233 -0
- data/dist/ice/cpp/src/Ice/SSL/TrustManager.h +42 -0
- data/dist/ice/cpp/src/Ice/SSL/TrustManagerF.h +14 -0
- data/dist/ice/cpp/src/Ice/ScannerConfig.h +35 -0
- data/dist/ice/cpp/src/Ice/Selector.cpp +341 -606
- data/dist/ice/cpp/src/Ice/Selector.h +167 -224
- data/dist/ice/cpp/src/Ice/ServantManager.cpp +195 -128
- data/dist/ice/cpp/src/Ice/ServantManager.h +52 -55
- data/dist/ice/cpp/src/Ice/ServantManagerF.h +14 -0
- data/dist/ice/cpp/src/Ice/Service.cpp +548 -641
- data/dist/ice/cpp/src/Ice/SharedContext.h +13 -26
- data/dist/ice/cpp/src/Ice/SliceLoader.cpp +53 -0
- data/dist/ice/cpp/src/Ice/SlicedData.cpp +17 -96
- data/dist/ice/cpp/src/Ice/StreamSocket.cpp +104 -151
- data/dist/ice/cpp/src/Ice/StreamSocket.h +48 -60
- data/dist/ice/cpp/src/Ice/StringConverter.cpp +586 -0
- data/dist/ice/cpp/src/Ice/StringUtil.cpp +1137 -0
- data/dist/ice/cpp/src/Ice/SysLoggerI.cpp +41 -47
- data/dist/ice/cpp/src/Ice/SysLoggerI.h +24 -27
- data/dist/ice/cpp/src/Ice/SystemdJournalI.cpp +16 -17
- data/dist/ice/cpp/src/Ice/SystemdJournalI.h +19 -25
- data/dist/ice/cpp/src/Ice/TargetCompare.h +96 -0
- data/dist/ice/cpp/src/Ice/TcpAcceptor.cpp +67 -88
- data/dist/ice/cpp/src/Ice/TcpAcceptor.h +34 -40
- data/dist/ice/cpp/src/Ice/TcpConnector.cpp +42 -41
- data/dist/ice/cpp/src/Ice/TcpConnector.h +26 -35
- data/dist/ice/cpp/src/Ice/TcpEndpointI.cpp +172 -146
- data/dist/ice/cpp/src/Ice/TcpEndpointI.h +76 -80
- data/dist/ice/cpp/src/Ice/TcpTransceiver.cpp +38 -26
- data/dist/ice/cpp/src/Ice/TcpTransceiver.h +40 -45
- data/dist/ice/cpp/src/Ice/ThreadPool.cpp +333 -515
- data/dist/ice/cpp/src/Ice/ThreadPool.h +202 -290
- data/dist/ice/cpp/src/Ice/ThreadPoolF.h +14 -0
- data/dist/ice/cpp/src/Ice/TimeUtil.cpp +47 -0
- data/dist/ice/cpp/src/Ice/TimeUtil.h +21 -0
- data/dist/ice/cpp/src/Ice/Timer.cpp +73 -167
- data/dist/ice/cpp/src/Ice/Timer.h +212 -0
- data/dist/ice/cpp/src/Ice/TraceLevels.cpp +11 -29
- data/dist/ice/cpp/src/Ice/TraceLevels.h +22 -28
- data/dist/ice/cpp/src/Ice/TraceLevelsF.h +4 -11
- data/dist/ice/cpp/src/Ice/TraceUtil.cpp +136 -215
- data/dist/ice/cpp/src/Ice/TraceUtil.h +27 -16
- data/dist/ice/cpp/src/Ice/Transceiver.cpp +3 -7
- data/dist/ice/cpp/src/Ice/Transceiver.h +35 -32
- data/dist/ice/cpp/src/Ice/TransceiverF.h +10 -20
- data/dist/ice/cpp/src/Ice/UUID.cpp +79 -0
- data/dist/ice/cpp/src/Ice/UdpConnector.cpp +39 -39
- data/dist/ice/cpp/src/Ice/UdpConnector.h +27 -36
- data/dist/ice/cpp/src/Ice/UdpEndpointI.cpp +178 -213
- data/dist/ice/cpp/src/Ice/UdpEndpointI.h +82 -85
- data/dist/ice/cpp/src/Ice/UdpTransceiver.cpp +201 -221
- data/dist/ice/cpp/src/Ice/UdpTransceiver.h +68 -74
- data/dist/ice/cpp/{include/IceUtil → src/Ice}/UndefSysMacros.h +12 -12
- data/dist/ice/cpp/src/Ice/UniqueRef.h +77 -0
- data/dist/ice/cpp/src/Ice/UserException.cpp +58 -0
- data/dist/ice/cpp/src/Ice/Value.cpp +107 -38
- data/dist/ice/cpp/src/Ice/WSAcceptor.cpp +10 -15
- data/dist/ice/cpp/src/Ice/WSAcceptor.h +31 -37
- data/dist/ice/cpp/src/Ice/WSConnector.cpp +25 -40
- data/dist/ice/cpp/src/Ice/WSConnector.h +26 -33
- data/dist/ice/cpp/src/Ice/WSEndpoint.cpp +164 -217
- data/dist/ice/cpp/src/Ice/WSEndpoint.h +72 -83
- data/dist/ice/cpp/src/Ice/WSTransceiver.cpp +469 -458
- data/dist/ice/cpp/src/Ice/WSTransceiver.h +117 -123
- data/dist/ice/cpp/src/Ice/generated/BuiltinSequences.cpp +20 -29
- data/dist/ice/cpp/src/Ice/generated/Context.cpp +40 -0
- data/dist/ice/cpp/src/Ice/generated/EndpointTypes.cpp +20 -31
- data/dist/ice/cpp/src/Ice/generated/Identity.cpp +24 -34
- data/dist/ice/cpp/src/Ice/generated/Locator.cpp +454 -1744
- data/dist/ice/cpp/src/Ice/generated/LocatorRegistry.cpp +577 -0
- data/dist/ice/cpp/src/Ice/generated/Metrics.cpp +824 -1971
- data/dist/ice/cpp/src/Ice/generated/OperationMode.cpp +56 -0
- data/dist/ice/cpp/src/Ice/generated/Process.cpp +190 -331
- data/dist/ice/cpp/src/Ice/generated/PropertiesAdmin.cpp +289 -449
- data/dist/ice/cpp/src/Ice/generated/PropertyDict.cpp +40 -0
- data/dist/ice/cpp/src/Ice/generated/RemoteLogger.cpp +547 -867
- data/dist/ice/cpp/src/Ice/generated/ReplyStatus.cpp +70 -0
- data/dist/ice/cpp/src/Ice/generated/Router.cpp +406 -723
- data/dist/ice/cpp/src/Ice/generated/SliceChecksumDict.cpp +19 -29
- data/dist/ice/cpp/src/Ice/generated/Version.cpp +28 -31
- data/dist/ice/cpp/src/IceDiscovery/LocatorI.cpp +76 -139
- data/dist/ice/cpp/src/IceDiscovery/LocatorI.h +55 -96
- data/dist/ice/cpp/src/IceDiscovery/LookupI.cpp +190 -303
- data/dist/ice/cpp/src/IceDiscovery/LookupI.h +126 -185
- data/dist/ice/cpp/src/IceDiscovery/PluginI.cpp +56 -77
- data/dist/ice/cpp/src/IceDiscovery/PluginI.h +20 -25
- data/dist/ice/cpp/src/IceDiscovery/generated/Lookup.cpp +638 -0
- data/dist/ice/cpp/src/IceLocatorDiscovery/Plugin.h +14 -37
- data/dist/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +411 -649
- data/dist/ice/cpp/src/IceLocatorDiscovery/generated/Lookup.cpp +468 -0
- data/dist/ice/cpp/src/Slice/DeprecationReporter.cpp +172 -0
- data/dist/ice/cpp/src/Slice/DeprecationReporter.h +14 -0
- data/dist/ice/cpp/src/Slice/DocCommentParser.cpp +736 -0
- data/dist/ice/cpp/src/Slice/DocCommentParser.h +61 -0
- data/dist/ice/cpp/src/Slice/FileTracker.cpp +25 -75
- data/dist/ice/cpp/src/Slice/FileTracker.h +35 -56
- data/dist/ice/cpp/src/Slice/Grammar.cpp +2711 -3382
- data/dist/ice/cpp/src/Slice/Grammar.h +95 -75
- data/dist/ice/cpp/src/Slice/GrammarUtil.h +117 -217
- data/dist/ice/cpp/src/Slice/MetadataValidation.cpp +486 -0
- data/dist/ice/cpp/src/Slice/MetadataValidation.h +106 -0
- data/dist/ice/cpp/src/Slice/Parser.cpp +3068 -5223
- data/dist/ice/cpp/src/Slice/Parser.h +1086 -1065
- data/dist/ice/cpp/src/Slice/Preprocessor.cpp +97 -599
- data/dist/ice/cpp/src/Slice/Preprocessor.h +26 -42
- data/dist/ice/cpp/src/Slice/Scanner.cpp +1562 -924
- data/dist/ice/cpp/src/Slice/SliceUtil.cpp +517 -113
- data/dist/ice/cpp/src/Slice/StringLiteralUtil.cpp +254 -269
- data/dist/ice/cpp/src/Slice/Util.h +126 -35
- data/dist/ice/cpp/src/slice2rb/Main.cpp +13 -15
- data/dist/ice/cpp/src/slice2rb/Ruby.cpp +250 -0
- data/dist/ice/cpp/src/slice2rb/RubyUtil.cpp +1197 -0
- data/dist/ice/cpp/src/slice2rb/RubyUtil.h +56 -0
- data/dist/ice/slice/Glacier2/Metrics.ice +34 -75
- data/dist/ice/slice/Glacier2/PermissionsVerifier.ice +42 -98
- data/dist/ice/slice/Glacier2/Router.ice +80 -173
- data/dist/ice/slice/Glacier2/SSLInfo.ice +23 -40
- data/dist/ice/slice/Glacier2/Session.ice +120 -261
- data/dist/ice/slice/Ice/BuiltinSequences.ice +33 -38
- data/dist/ice/slice/Ice/Context.ice +24 -0
- data/dist/ice/slice/Ice/EndpointTypes.ice +35 -33
- data/dist/ice/slice/Ice/Identity.ice +24 -63
- data/dist/ice/slice/Ice/Locator.ice +61 -226
- data/dist/ice/slice/Ice/LocatorRegistry.ice +77 -0
- data/dist/ice/slice/Ice/Metrics.ice +189 -424
- data/dist/ice/slice/Ice/OperationMode.ice +38 -0
- data/dist/ice/slice/Ice/Process.ice +16 -52
- data/dist/ice/slice/Ice/PropertiesAdmin.ice +25 -75
- data/dist/ice/slice/Ice/PropertyDict.ice +23 -0
- data/dist/ice/slice/Ice/RemoteLogger.ice +113 -213
- data/dist/ice/slice/Ice/ReplyStatus.ice +65 -0
- data/dist/ice/slice/Ice/Router.ice +42 -91
- data/dist/ice/slice/Ice/SliceChecksumDict.ice +7 -25
- data/dist/ice/slice/Ice/Version.ice +31 -39
- data/dist/ice/slice/IceBox/ServiceManager.ice +79 -0
- data/dist/ice/slice/IceGrid/Admin.ice +942 -1918
- data/dist/ice/slice/IceGrid/Descriptor.ice +476 -1051
- data/dist/ice/slice/IceGrid/Exception.ice +86 -384
- data/dist/ice/slice/IceGrid/FileParser.ice +23 -59
- data/dist/ice/slice/IceGrid/Registry.ice +117 -256
- data/dist/ice/slice/IceGrid/Session.ice +46 -110
- data/dist/ice/slice/IceGrid/UserAccountMapper.ice +22 -57
- data/dist/ice/slice/IceStorm/IceStorm.ice +173 -401
- data/dist/ice/slice/IceStorm/Metrics.ice +28 -70
- data/dist/lib/Glacier2/Metrics.rb +16 -31
- data/dist/lib/Glacier2/PermissionsVerifier.rb +18 -50
- data/dist/lib/Glacier2/Router.rb +20 -42
- data/dist/lib/Glacier2/SSLInfo.rb +14 -22
- data/dist/lib/Glacier2/Session.rb +53 -113
- data/dist/lib/Glacier2.rb +6 -6
- data/dist/lib/Ice/BuiltinSequences.rb +14 -26
- data/dist/lib/Ice/CompressBatch.rb +50 -0
- data/dist/lib/Ice/Context.rb +12 -0
- data/dist/lib/Ice/EndpointSelectionType.rb +49 -0
- data/dist/lib/Ice/EndpointTypes.rb +14 -55
- data/dist/lib/Ice/Exception.rb +20 -0
- data/dist/lib/Ice/Identity.rb +10 -26
- data/dist/lib/Ice/IdentitySpaceship.rb +16 -0
- data/dist/lib/Ice/InitializationData.rb +12 -0
- data/dist/lib/Ice/LocalExceptions.rb +168 -0
- data/dist/lib/Ice/Locator.rb +21 -134
- data/dist/lib/Ice/LocatorRegistry.rb +73 -0
- data/dist/lib/Ice/Metrics.rb +85 -132
- data/dist/lib/Ice/OperationMode.rb +58 -0
- data/dist/lib/Ice/Process.rb +12 -31
- data/dist/lib/Ice/PropertiesAdmin.rb +12 -36
- data/dist/lib/Ice/PropertyDict.rb +12 -0
- data/dist/lib/Ice/Proxy.rb +85 -0
- data/dist/lib/Ice/ProxyFunctions.rb +69 -0
- data/dist/lib/Ice/RemoteLogger.rb +29 -60
- data/dist/lib/Ice/ReplyStatus.rb +65 -0
- data/dist/lib/Ice/Router.rb +19 -47
- data/dist/lib/Ice/SliceChecksumDict.rb +5 -17
- data/dist/lib/Ice/SliceUtil.rb +41 -0
- data/dist/lib/Ice/Struct.rb +11 -0
- data/dist/lib/Ice/ToStringMode.rb +50 -0
- data/dist/lib/Ice/Value.rb +93 -0
- data/dist/lib/Ice/Version.rb +12 -24
- data/dist/lib/Ice.rb +29 -665
- data/dist/lib/IceBox/ServiceManager.rb +104 -0
- data/dist/lib/IceBox.rb +2 -4
- data/dist/lib/IceGrid/Admin.rb +303 -291
- data/dist/lib/IceGrid/Descriptor.rb +147 -192
- data/dist/lib/IceGrid/Exception.rb +26 -257
- data/dist/lib/IceGrid/FileParser.rb +12 -36
- data/dist/lib/IceGrid/Registry.rb +35 -76
- data/dist/lib/IceGrid/Session.rb +19 -34
- data/dist/lib/IceGrid/UserAccountMapper.rb +11 -34
- data/dist/lib/IceGrid.rb +3 -3
- data/dist/lib/IceStorm/IceStorm.rb +51 -132
- data/dist/lib/IceStorm/Metrics.rb +19 -37
- data/dist/lib/IceStorm.rb +3 -5
- data/extconf.rb +6 -8
- data/ice.gemspec +3 -3
- data/scripts/slice2rb +1 -3
- metadata +206 -386
- data/dist/IceRuby/ValueFactoryManager.cpp +0 -445
- data/dist/IceRuby/ValueFactoryManager.h +0 -95
- data/dist/ice/cpp/include/Ice/Application.h +0 -326
- data/dist/ice/cpp/include/Ice/AsyncResult.h +0 -155
- data/dist/ice/cpp/include/Ice/AsyncResultF.h +0 -23
- data/dist/ice/cpp/include/Ice/BatchRequestInterceptor.h +0 -75
- data/dist/ice/cpp/include/Ice/CommunicatorAsync.h +0 -154
- data/dist/ice/cpp/include/Ice/Comparable.h +0 -205
- data/dist/ice/cpp/include/Ice/ConnectionAsync.h +0 -302
- data/dist/ice/cpp/include/Ice/ConsoleUtil.h +0 -23
- data/dist/ice/cpp/include/Ice/DefaultValueFactory.h +0 -57
- data/dist/ice/cpp/include/Ice/DispatchInterceptor.h +0 -41
- data/dist/ice/cpp/include/Ice/Dispatcher.h +0 -67
- data/dist/ice/cpp/include/Ice/DynamicLibrary.h +0 -102
- data/dist/ice/cpp/include/Ice/DynamicLibraryF.h +0 -24
- data/dist/ice/cpp/include/Ice/ExceptionHelpers.h +0 -74
- data/dist/ice/cpp/include/Ice/FactoryTable.h +0 -73
- data/dist/ice/cpp/include/Ice/FactoryTableInit.h +0 -84
- data/dist/ice/cpp/include/Ice/Functional.h +0 -140
- data/dist/ice/cpp/include/Ice/GCObject.h +0 -76
- data/dist/ice/cpp/include/Ice/Handle.h +0 -182
- data/dist/ice/cpp/include/Ice/Incoming.h +0 -225
- data/dist/ice/cpp/include/Ice/IncomingAsync.h +0 -186
- data/dist/ice/cpp/include/Ice/IncomingAsyncF.h +0 -36
- data/dist/ice/cpp/include/Ice/InterfaceByValue.h +0 -57
- data/dist/ice/cpp/include/Ice/LocalObject.h +0 -35
- data/dist/ice/cpp/include/Ice/LocalObjectF.h +0 -21
- data/dist/ice/cpp/include/Ice/MetricsAdminI.h +0 -715
- data/dist/ice/cpp/include/Ice/MetricsFunctional.h +0 -159
- data/dist/ice/cpp/include/Ice/MetricsObserverI.h +0 -669
- data/dist/ice/cpp/include/Ice/Optional.h +0 -1114
- data/dist/ice/cpp/include/Ice/OutgoingAsyncF.h +0 -39
- data/dist/ice/cpp/include/Ice/Protocol.h +0 -274
- data/dist/ice/cpp/include/Ice/ProxyFactoryF.h +0 -21
- data/dist/ice/cpp/include/Ice/ProxyHandle.h +0 -318
- data/dist/ice/cpp/include/Ice/RegisterPlugins.h +0 -127
- data/dist/ice/cpp/include/Ice/ResponseHandlerF.h +0 -25
- data/dist/ice/cpp/include/Ice/SHA1.h +0 -40
- data/dist/ice/cpp/include/Ice/ServantManagerF.h +0 -21
- data/dist/ice/cpp/include/Ice/SliceChecksums.h +0 -33
- data/dist/ice/cpp/include/Ice/ThreadPoolF.h +0 -23
- data/dist/ice/cpp/include/Ice/UniquePtr.h +0 -95
- data/dist/ice/cpp/include/Ice/UniqueRef.h +0 -97
- data/dist/ice/cpp/include/IceSSL/Config.h +0 -21
- data/dist/ice/cpp/include/IceSSL/IceSSL.h +0 -24
- data/dist/ice/cpp/include/IceSSL/OpenSSL.h +0 -147
- data/dist/ice/cpp/include/IceSSL/Plugin.h +0 -712
- data/dist/ice/cpp/include/IceSSL/SChannel.h +0 -72
- data/dist/ice/cpp/include/IceSSL/SecureTransport.h +0 -72
- data/dist/ice/cpp/include/IceUtil/Atomic.h +0 -179
- data/dist/ice/cpp/include/IceUtil/Cond.h +0 -317
- data/dist/ice/cpp/include/IceUtil/Config.h +0 -392
- data/dist/ice/cpp/include/IceUtil/ConsoleUtil.h +0 -92
- data/dist/ice/cpp/include/IceUtil/CountDownLatch.h +0 -45
- data/dist/ice/cpp/include/IceUtil/CtrlCHandler.h +0 -96
- data/dist/ice/cpp/include/IceUtil/DisableWarnings.h +0 -44
- data/dist/ice/cpp/include/IceUtil/Exception.h +0 -394
- data/dist/ice/cpp/include/IceUtil/FileUtil.h +0 -140
- data/dist/ice/cpp/include/IceUtil/Functional.h +0 -389
- data/dist/ice/cpp/include/IceUtil/Handle.h +0 -261
- data/dist/ice/cpp/include/IceUtil/IceUtil.h +0 -40
- data/dist/ice/cpp/include/IceUtil/InputUtil.h +0 -42
- data/dist/ice/cpp/include/IceUtil/Iterator.h +0 -31
- data/dist/ice/cpp/include/IceUtil/Lock.h +0 -128
- data/dist/ice/cpp/include/IceUtil/Monitor.h +0 -243
- data/dist/ice/cpp/include/IceUtil/Mutex.h +0 -349
- data/dist/ice/cpp/include/IceUtil/MutexProtocol.h +0 -23
- data/dist/ice/cpp/include/IceUtil/MutexPtrLock.h +0 -78
- data/dist/ice/cpp/include/IceUtil/MutexPtrTryLock.h +0 -77
- data/dist/ice/cpp/include/IceUtil/Optional.h +0 -433
- data/dist/ice/cpp/include/IceUtil/Options.h +0 -135
- data/dist/ice/cpp/include/IceUtil/OutputUtil.h +0 -383
- data/dist/ice/cpp/include/IceUtil/PushDisableWarnings.h +0 -33
- data/dist/ice/cpp/include/IceUtil/Random.h +0 -55
- data/dist/ice/cpp/include/IceUtil/RecMutex.h +0 -107
- data/dist/ice/cpp/include/IceUtil/ResourceConfig.h +0 -37
- data/dist/ice/cpp/include/IceUtil/ScannerConfig.h +0 -40
- data/dist/ice/cpp/include/IceUtil/ScopedArray.h +0 -98
- data/dist/ice/cpp/include/IceUtil/Shared.h +0 -127
- data/dist/ice/cpp/include/IceUtil/StopWatch.h +0 -49
- data/dist/ice/cpp/include/IceUtil/StringConverter.h +0 -195
- data/dist/ice/cpp/include/IceUtil/StringUtil.h +0 -97
- data/dist/ice/cpp/include/IceUtil/Thread.h +0 -160
- data/dist/ice/cpp/include/IceUtil/ThreadException.h +0 -94
- data/dist/ice/cpp/include/IceUtil/Time.h +0 -205
- data/dist/ice/cpp/include/IceUtil/Timer.h +0 -153
- data/dist/ice/cpp/include/IceUtil/UUID.h +0 -21
- data/dist/ice/cpp/include/generated/Glacier2/Metrics.h +0 -475
- data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifier.h +0 -1430
- data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifierF.h +0 -147
- data/dist/ice/cpp/include/generated/Glacier2/Router.h +0 -3260
- data/dist/ice/cpp/include/generated/Glacier2/RouterF.h +0 -125
- data/dist/ice/cpp/include/generated/Glacier2/SSLInfo.h +0 -223
- data/dist/ice/cpp/include/generated/Glacier2/Session.h +0 -5894
- data/dist/ice/cpp/include/generated/Ice/Communicator.h +0 -1162
- data/dist/ice/cpp/include/generated/Ice/CommunicatorF.h +0 -101
- data/dist/ice/cpp/include/generated/Ice/Connection.h +0 -1703
- data/dist/ice/cpp/include/generated/Ice/ConnectionF.h +0 -119
- data/dist/ice/cpp/include/generated/Ice/Current.h +0 -322
- data/dist/ice/cpp/include/generated/Ice/Endpoint.h +0 -979
- data/dist/ice/cpp/include/generated/Ice/EndpointF.h +0 -166
- data/dist/ice/cpp/include/generated/Ice/FacetMap.h +0 -80
- data/dist/ice/cpp/include/generated/Ice/ImplicitContext.h +0 -284
- data/dist/ice/cpp/include/generated/Ice/ImplicitContextF.h +0 -101
- data/dist/ice/cpp/include/generated/Ice/Instrumentation.h +0 -1203
- data/dist/ice/cpp/include/generated/Ice/InstrumentationF.h +0 -128
- data/dist/ice/cpp/include/generated/Ice/LocalException.h +0 -7437
- data/dist/ice/cpp/include/generated/Ice/LocatorF.h +0 -147
- data/dist/ice/cpp/include/generated/Ice/Logger.h +0 -237
- data/dist/ice/cpp/include/generated/Ice/LoggerF.h +0 -101
- data/dist/ice/cpp/include/generated/Ice/ObjectAdapter.h +0 -1181
- data/dist/ice/cpp/include/generated/Ice/ObjectAdapterF.h +0 -101
- data/dist/ice/cpp/include/generated/Ice/ObjectFactory.h +0 -203
- data/dist/ice/cpp/include/generated/Ice/Plugin.h +0 -318
- data/dist/ice/cpp/include/generated/Ice/PluginF.h +0 -110
- data/dist/ice/cpp/include/generated/Ice/ProcessF.h +0 -125
- data/dist/ice/cpp/include/generated/Ice/Properties.h +0 -452
- data/dist/ice/cpp/include/generated/Ice/PropertiesF.h +0 -134
- data/dist/ice/cpp/include/generated/Ice/RouterF.h +0 -125
- data/dist/ice/cpp/include/generated/Ice/ServantLocator.h +0 -305
- data/dist/ice/cpp/include/generated/Ice/ServantLocatorF.h +0 -101
- data/dist/ice/cpp/include/generated/Ice/ValueFactory.h +0 -330
- data/dist/ice/cpp/include/generated/IceBox/IceBox.h +0 -3269
- data/dist/ice/cpp/include/generated/IceGrid/Admin.h +0 -33773
- data/dist/ice/cpp/include/generated/IceGrid/Descriptor.h +0 -5254
- data/dist/ice/cpp/include/generated/IceGrid/Exception.h +0 -2834
- data/dist/ice/cpp/include/generated/IceGrid/FileParser.h +0 -824
- data/dist/ice/cpp/include/generated/IceGrid/PluginFacade.h +0 -635
- data/dist/ice/cpp/include/generated/IceGrid/Registry.h +0 -5089
- data/dist/ice/cpp/include/generated/IceGrid/Session.h +0 -2240
- data/dist/ice/cpp/include/generated/IceGrid/UserAccountMapper.h +0 -800
- data/dist/ice/cpp/include/generated/IcePatch2/FileInfo.h +0 -325
- data/dist/ice/cpp/include/generated/IcePatch2/FileServer.h +0 -2891
- data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +0 -228
- data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +0 -101
- data/dist/ice/cpp/include/generated/IceSSL/EndpointInfo.h +0 -186
- data/dist/ice/cpp/include/generated/IceStorm/IceStorm.h +0 -6627
- data/dist/ice/cpp/include/generated/IceStorm/Metrics.h +0 -665
- data/dist/ice/cpp/src/Ice/ACM.cpp +0 -380
- data/dist/ice/cpp/src/Ice/ACM.h +0 -119
- data/dist/ice/cpp/src/Ice/ACMF.h +0 -30
- data/dist/ice/cpp/src/Ice/Acceptor.cpp +0 -16
- data/dist/ice/cpp/src/Ice/Application.cpp +0 -661
- data/dist/ice/cpp/src/Ice/AsyncResult.cpp +0 -70
- data/dist/ice/cpp/src/Ice/CommunicatorI.cpp +0 -586
- data/dist/ice/cpp/src/Ice/CommunicatorI.h +0 -167
- data/dist/ice/cpp/src/Ice/Cond.cpp +0 -381
- data/dist/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +0 -73
- data/dist/ice/cpp/src/Ice/ConnectionRequestHandler.h +0 -41
- data/dist/ice/cpp/src/Ice/Connector.cpp +0 -16
- data/dist/ice/cpp/src/Ice/CountDownLatch.cpp +0 -171
- data/dist/ice/cpp/src/Ice/DispatchInterceptor.cpp +0 -37
- data/dist/ice/cpp/src/Ice/FactoryTable.cpp +0 -162
- data/dist/ice/cpp/src/Ice/FactoryTableInit.cpp +0 -88
- data/dist/ice/cpp/src/Ice/GCObject.cpp +0 -442
- data/dist/ice/cpp/src/Ice/IconvStringConverter.cpp +0 -51
- data/dist/ice/cpp/src/Ice/ImplicitContextI.cpp +0 -655
- data/dist/ice/cpp/src/Ice/ImplicitContextI.h +0 -48
- data/dist/ice/cpp/src/Ice/Incoming.cpp +0 -795
- data/dist/ice/cpp/src/Ice/IncomingAsync.cpp +0 -230
- data/dist/ice/cpp/src/Ice/IncomingRequest.h +0 -33
- data/dist/ice/cpp/src/Ice/LocalObject.cpp +0 -23
- data/dist/ice/cpp/src/Ice/MetricsObserverI.cpp +0 -8
- data/dist/ice/cpp/src/Ice/PropertiesAdminI.cpp +0 -265
- data/dist/ice/cpp/src/Ice/PropertiesAdminI.h +0 -64
- data/dist/ice/cpp/src/Ice/PropertiesI.cpp +0 -739
- data/dist/ice/cpp/src/Ice/PropertiesI.h +0 -70
- data/dist/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +0 -21
- data/dist/ice/cpp/src/Ice/ProxyFactory.cpp +0 -300
- data/dist/ice/cpp/src/Ice/ProxyFactory.h +0 -57
- data/dist/ice/cpp/src/Ice/RegisterPluginsInit.cpp +0 -38
- data/dist/ice/cpp/src/Ice/RegisterPluginsInit.h +0 -20
- data/dist/ice/cpp/src/Ice/ReplyStatus.h +0 -24
- data/dist/ice/cpp/src/Ice/RequestHandlerFactory.cpp +0 -77
- data/dist/ice/cpp/src/Ice/RequestHandlerFactory.h +0 -37
- data/dist/ice/cpp/src/Ice/ResponseHandler.cpp +0 -12
- data/dist/ice/cpp/src/Ice/ResponseHandler.h +0 -43
- data/dist/ice/cpp/src/Ice/SliceChecksums.cpp +0 -75
- data/dist/ice/cpp/src/Ice/StringConverterPlugin.cpp +0 -192
- data/dist/ice/cpp/src/Ice/StringUtil.h +0 -30
- data/dist/ice/cpp/src/Ice/Thread.cpp +0 -569
- data/dist/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +0 -61
- data/dist/ice/cpp/src/Ice/ValueFactoryManagerI.h +0 -37
- data/dist/ice/cpp/src/Ice/VirtualShared.h +0 -38
- data/dist/ice/cpp/src/Ice/generated/Communicator.cpp +0 -79
- data/dist/ice/cpp/src/Ice/generated/CommunicatorF.cpp +0 -61
- data/dist/ice/cpp/src/Ice/generated/Connection.cpp +0 -155
- data/dist/ice/cpp/src/Ice/generated/ConnectionF.cpp +0 -61
- data/dist/ice/cpp/src/Ice/generated/Current.cpp +0 -62
- data/dist/ice/cpp/src/Ice/generated/Endpoint.cpp +0 -147
- data/dist/ice/cpp/src/Ice/generated/EndpointF.cpp +0 -61
- data/dist/ice/cpp/src/Ice/generated/FacetMap.cpp +0 -49
- data/dist/ice/cpp/src/Ice/generated/ImplicitContext.cpp +0 -75
- data/dist/ice/cpp/src/Ice/generated/ImplicitContextF.cpp +0 -61
- data/dist/ice/cpp/src/Ice/generated/Instrumentation.cpp +0 -188
- data/dist/ice/cpp/src/Ice/generated/InstrumentationF.cpp +0 -66
- data/dist/ice/cpp/src/Ice/generated/LocalException.cpp +0 -3262
- data/dist/ice/cpp/src/Ice/generated/LocatorF.cpp +0 -63
- data/dist/ice/cpp/src/Ice/generated/Logger.cpp +0 -73
- data/dist/ice/cpp/src/Ice/generated/LoggerF.cpp +0 -61
- data/dist/ice/cpp/src/Ice/generated/ObjectAdapter.cpp +0 -79
- data/dist/ice/cpp/src/Ice/generated/ObjectAdapterF.cpp +0 -61
- data/dist/ice/cpp/src/Ice/generated/ObjectFactory.cpp +0 -75
- data/dist/ice/cpp/src/Ice/generated/Plugin.cpp +0 -87
- data/dist/ice/cpp/src/Ice/generated/PluginF.cpp +0 -61
- data/dist/ice/cpp/src/Ice/generated/ProcessF.cpp +0 -63
- data/dist/ice/cpp/src/Ice/generated/Properties.cpp +0 -78
- data/dist/ice/cpp/src/Ice/generated/PropertiesF.cpp +0 -63
- data/dist/ice/cpp/src/Ice/generated/RouterF.cpp +0 -63
- data/dist/ice/cpp/src/Ice/generated/ServantLocator.cpp +0 -75
- data/dist/ice/cpp/src/Ice/generated/ServantLocatorF.cpp +0 -61
- data/dist/ice/cpp/src/Ice/generated/ValueFactory.cpp +0 -83
- data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.cpp +0 -154
- data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.h +0 -49
- data/dist/ice/cpp/src/Ice/ios/StreamConnector.cpp +0 -146
- data/dist/ice/cpp/src/Ice/ios/StreamConnector.h +0 -52
- data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.cpp +0 -477
- data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.h +0 -156
- data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.cpp +0 -570
- data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.h +0 -93
- data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery/IceDiscovery.h +0 -1889
- data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery.cpp +0 -915
- data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery/IceLocatorDiscovery.h +0 -1197
- data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery.cpp +0 -730
- data/dist/ice/cpp/src/IceSSL/AcceptorI.cpp +0 -105
- data/dist/ice/cpp/src/IceSSL/AcceptorI.h +0 -52
- data/dist/ice/cpp/src/IceSSL/CertificateI.cpp +0 -301
- data/dist/ice/cpp/src/IceSSL/CertificateI.h +0 -64
- data/dist/ice/cpp/src/IceSSL/ConnectorI.cpp +0 -102
- data/dist/ice/cpp/src/IceSSL/ConnectorI.h +0 -44
- data/dist/ice/cpp/src/IceSSL/EndpointI.cpp +0 -372
- data/dist/ice/cpp/src/IceSSL/EndpointI.h +0 -100
- data/dist/ice/cpp/src/IceSSL/Instance.cpp +0 -28
- data/dist/ice/cpp/src/IceSSL/Instance.h +0 -37
- data/dist/ice/cpp/src/IceSSL/InstanceF.h +0 -33
- data/dist/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +0 -688
- data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +0 -1147
- data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.h +0 -59
- data/dist/ice/cpp/src/IceSSL/OpenSSLEngineF.h +0 -27
- data/dist/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +0 -127
- data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +0 -1092
- data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +0 -90
- data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +0 -288
- data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.h +0 -58
- data/dist/ice/cpp/src/IceSSL/PluginI.cpp +0 -246
- data/dist/ice/cpp/src/IceSSL/PluginI.h +0 -67
- data/dist/ice/cpp/src/IceSSL/RFC2253.h +0 -62
- data/dist/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +0 -721
- data/dist/ice/cpp/src/IceSSL/SChannelEngine.cpp +0 -1283
- data/dist/ice/cpp/src/IceSSL/SChannelEngine.h +0 -123
- data/dist/ice/cpp/src/IceSSL/SChannelEngineF.h +0 -31
- data/dist/ice/cpp/src/IceSSL/SChannelPluginI.cpp +0 -73
- data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +0 -1174
- data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.h +0 -133
- data/dist/ice/cpp/src/IceSSL/SSLEngine.cpp +0 -313
- data/dist/ice/cpp/src/IceSSL/SSLEngine.h +0 -100
- data/dist/ice/cpp/src/IceSSL/SSLEngineF.h +0 -21
- data/dist/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +0 -999
- data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +0 -1308
- data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.h +0 -59
- data/dist/ice/cpp/src/IceSSL/SecureTransportEngineF.h +0 -29
- data/dist/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +0 -75
- data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +0 -719
- data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +0 -92
- data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +0 -868
- data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.h +0 -45
- data/dist/ice/cpp/src/IceSSL/TrustManager.cpp +0 -236
- data/dist/ice/cpp/src/IceSSL/TrustManager.h +0 -46
- data/dist/ice/cpp/src/IceSSL/TrustManagerF.h +0 -21
- data/dist/ice/cpp/src/IceSSL/Util.cpp +0 -192
- data/dist/ice/cpp/src/IceSSL/Util.h +0 -99
- data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfo.cpp +0 -75
- data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfoF.cpp +0 -61
- data/dist/ice/cpp/src/IceSSL/generated/EndpointInfo.cpp +0 -75
- data/dist/ice/cpp/src/IceUtil/ConvertUTF.cpp +0 -472
- data/dist/ice/cpp/src/IceUtil/ConvertUTF.h +0 -147
- data/dist/ice/cpp/src/IceUtil/CtrlCHandler.cpp +0 -259
- data/dist/ice/cpp/src/IceUtil/FileUtil.cpp +0 -471
- data/dist/ice/cpp/src/IceUtil/InputUtil.cpp +0 -36
- data/dist/ice/cpp/src/IceUtil/MutexProtocol.cpp +0 -19
- data/dist/ice/cpp/src/IceUtil/OutputUtil.cpp +0 -609
- data/dist/ice/cpp/src/IceUtil/Random.cpp +0 -180
- data/dist/ice/cpp/src/IceUtil/RecMutex.cpp +0 -238
- data/dist/ice/cpp/src/IceUtil/Shared.cpp +0 -71
- data/dist/ice/cpp/src/IceUtil/StringConverter.cpp +0 -690
- data/dist/ice/cpp/src/IceUtil/StringUtil.cpp +0 -1135
- data/dist/ice/cpp/src/IceUtil/ThreadException.cpp +0 -130
- data/dist/ice/cpp/src/IceUtil/Time.cpp +0 -307
- data/dist/ice/cpp/src/IceUtil/UUID.cpp +0 -165
- data/dist/ice/cpp/src/IceUtil/Unicode.cpp +0 -183
- data/dist/ice/cpp/src/IceUtil/Unicode.h +0 -43
- data/dist/ice/cpp/src/IceUtil/UtilException.cpp +0 -839
- data/dist/ice/cpp/src/Slice/CPlusPlusUtil.cpp +0 -1810
- data/dist/ice/cpp/src/Slice/CPlusPlusUtil.h +0 -72
- data/dist/ice/cpp/src/Slice/Checksum.cpp +0 -447
- data/dist/ice/cpp/src/Slice/Checksum.h +0 -21
- data/dist/ice/cpp/src/Slice/JavaUtil.cpp +0 -5183
- data/dist/ice/cpp/src/Slice/JavaUtil.h +0 -407
- data/dist/ice/cpp/src/Slice/MD5.cpp +0 -52
- data/dist/ice/cpp/src/Slice/MD5.h +0 -39
- data/dist/ice/cpp/src/Slice/MD5I.cpp +0 -393
- data/dist/ice/cpp/src/Slice/MD5I.h +0 -91
- data/dist/ice/cpp/src/Slice/PHPUtil.cpp +0 -157
- data/dist/ice/cpp/src/Slice/PHPUtil.h +0 -36
- data/dist/ice/cpp/src/Slice/Python.cpp +0 -830
- data/dist/ice/cpp/src/Slice/PythonUtil.cpp +0 -3439
- data/dist/ice/cpp/src/Slice/PythonUtil.h +0 -70
- data/dist/ice/cpp/src/Slice/Ruby.cpp +0 -350
- data/dist/ice/cpp/src/Slice/RubyUtil.cpp +0 -1571
- data/dist/ice/cpp/src/Slice/RubyUtil.h +0 -49
- data/dist/ice/slice/Glacier2/PermissionsVerifierF.ice +0 -30
- data/dist/ice/slice/Glacier2/RouterF.ice +0 -29
- data/dist/ice/slice/Ice/Communicator.ice +0 -676
- data/dist/ice/slice/Ice/CommunicatorF.ice +0 -31
- data/dist/ice/slice/Ice/Connection.ice +0 -516
- data/dist/ice/slice/Ice/ConnectionF.ice +0 -33
- data/dist/ice/slice/Ice/Current.ice +0 -170
- data/dist/ice/slice/Ice/Endpoint.ice +0 -291
- data/dist/ice/slice/Ice/EndpointF.ice +0 -43
- data/dist/ice/slice/Ice/FacetMap.ice +0 -36
- data/dist/ice/slice/Ice/ImplicitContext.ice +0 -119
- data/dist/ice/slice/Ice/ImplicitContextF.ice +0 -30
- data/dist/ice/slice/Ice/Instrumentation.ice +0 -509
- data/dist/ice/slice/Ice/InstrumentationF.ice +0 -38
- data/dist/ice/slice/Ice/LocalException.ice +0 -1040
- data/dist/ice/slice/Ice/LocatorF.ice +0 -32
- data/dist/ice/slice/Ice/Logger.ice +0 -99
- data/dist/ice/slice/Ice/LoggerF.ice +0 -31
- data/dist/ice/slice/Ice/ObjectAdapter.ice +0 -710
- data/dist/ice/slice/Ice/ObjectAdapterF.ice +0 -31
- data/dist/ice/slice/Ice/ObjectFactory.ice +0 -71
- data/dist/ice/slice/Ice/Plugin.ice +0 -131
- data/dist/ice/slice/Ice/PluginF.ice +0 -36
- data/dist/ice/slice/Ice/ProcessF.ice +0 -31
- data/dist/ice/slice/Ice/Properties.ice +0 -244
- data/dist/ice/slice/Ice/PropertiesF.ice +0 -32
- data/dist/ice/slice/Ice/RouterF.ice +0 -31
- data/dist/ice/slice/Ice/ServantLocator.ice +0 -136
- data/dist/ice/slice/Ice/ServantLocatorF.ice +0 -31
- data/dist/ice/slice/Ice/ValueFactory.ice +0 -133
- data/dist/ice/slice/IceBox/IceBox.ice +0 -216
- data/dist/ice/slice/IceGrid/PluginFacade.ice +0 -329
- data/dist/ice/slice/IcePatch2/FileInfo.ice +0 -85
- data/dist/ice/slice/IcePatch2/FileServer.ice +0 -191
- data/dist/lib/Glacier2/PermissionsVerifierF.rb +0 -30
- data/dist/lib/Glacier2/RouterF.rb +0 -25
- data/dist/lib/Ice/Communicator.rb +0 -87
- data/dist/lib/Ice/CommunicatorF.rb +0 -24
- data/dist/lib/Ice/Connection.rb +0 -413
- data/dist/lib/Ice/ConnectionF.rb +0 -32
- data/dist/lib/Ice/Current.rb +0 -141
- data/dist/lib/Ice/Endpoint.rb +0 -187
- data/dist/lib/Ice/EndpointF.rb +0 -48
- data/dist/lib/Ice/FacetMap.rb +0 -24
- data/dist/lib/Ice/ImplicitContext.rb +0 -26
- data/dist/lib/Ice/ImplicitContextF.rb +0 -24
- data/dist/lib/Ice/Instrumentation.rb +0 -169
- data/dist/lib/Ice/InstrumentationF.rb +0 -31
- data/dist/lib/Ice/LocalException.rb +0 -1031
- data/dist/lib/Ice/LocatorF.rb +0 -30
- data/dist/lib/Ice/Logger.rb +0 -24
- data/dist/lib/Ice/LoggerF.rb +0 -24
- data/dist/lib/Ice/ObjectAdapter.rb +0 -29
- data/dist/lib/Ice/ObjectAdapterF.rb +0 -24
- data/dist/lib/Ice/ObjectFactory.rb +0 -24
- data/dist/lib/Ice/Plugin.rb +0 -30
- data/dist/lib/Ice/PluginF.rb +0 -28
- data/dist/lib/Ice/ProcessF.rb +0 -25
- data/dist/lib/Ice/Properties.rb +0 -25
- data/dist/lib/Ice/PropertiesF.rb +0 -29
- data/dist/lib/Ice/RouterF.rb +0 -25
- data/dist/lib/Ice/ServantLocator.rb +0 -26
- data/dist/lib/Ice/ServantLocatorF.rb +0 -24
- data/dist/lib/Ice/ValueFactory.rb +0 -28
- data/dist/lib/IceBox/IceBox.rb +0 -164
- data/dist/lib/IceGrid/PluginFacade.rb +0 -35
- data/dist/lib/IcePatch2/FileInfo.rb +0 -115
- data/dist/lib/IcePatch2/FileServer.rb +0 -123
- data/dist/lib/IcePatch2.rb +0 -5
|
@@ -1,2707 +1,724 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// </auto-generated>
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
#ifndef __Ice_RemoteLogger_h__
|
|
17
|
-
#define __Ice_RemoteLogger_h__
|
|
18
|
-
|
|
19
|
-
#include <IceUtil/PushDisableWarnings.h>
|
|
20
|
-
#include <Ice/ProxyF.h>
|
|
21
|
-
#include <Ice/ObjectF.h>
|
|
22
|
-
#include <Ice/ValueF.h>
|
|
23
|
-
#include <Ice/Exception.h>
|
|
24
|
-
#include <Ice/LocalObject.h>
|
|
25
|
-
#include <Ice/StreamHelpers.h>
|
|
26
|
-
#include <Ice/Comparable.h>
|
|
27
|
-
#include <Ice/Proxy.h>
|
|
28
|
-
#include <Ice/Object.h>
|
|
29
|
-
#include <Ice/GCObject.h>
|
|
30
|
-
#include <Ice/Value.h>
|
|
31
|
-
#include <Ice/Incoming.h>
|
|
32
|
-
#include <Ice/FactoryTableInit.h>
|
|
33
|
-
#include <IceUtil/ScopedArray.h>
|
|
34
|
-
#include <Ice/Optional.h>
|
|
35
|
-
#include <Ice/ExceptionHelpers.h>
|
|
36
|
-
#include <Ice/BuiltinSequences.h>
|
|
37
|
-
#include <IceUtil/UndefSysMacros.h>
|
|
1
|
+
// Copyright (c) ZeroC, Inc.
|
|
2
|
+
|
|
3
|
+
// slice2cpp version 3.8.1
|
|
4
|
+
// <auto-generated>Generated from Slice file 'RemoteLogger.ice'.</auto-generated>
|
|
5
|
+
// clang-format off
|
|
6
|
+
|
|
7
|
+
#ifndef Ice_RemoteLogger_h_
|
|
8
|
+
#define Ice_RemoteLogger_h_
|
|
9
|
+
|
|
10
|
+
#include <Ice/PushDisableWarnings.h>
|
|
11
|
+
#include <Ice/Ice.h>
|
|
12
|
+
#include "BuiltinSequences.h"
|
|
38
13
|
#include <list>
|
|
39
14
|
|
|
40
|
-
#ifndef
|
|
41
|
-
# if ICE_INT_VERSION / 100 !=
|
|
15
|
+
#ifndef ICE_DISABLE_VERSION
|
|
16
|
+
# if ICE_INT_VERSION / 100 != 308
|
|
42
17
|
# error Ice version mismatch!
|
|
43
18
|
# endif
|
|
44
19
|
# if ICE_INT_VERSION % 100 >= 50
|
|
45
20
|
# error Beta header file detected
|
|
46
21
|
# endif
|
|
47
|
-
# if ICE_INT_VERSION % 100 <
|
|
22
|
+
# if ICE_INT_VERSION % 100 < 1
|
|
48
23
|
# error Ice patch level mismatch!
|
|
49
24
|
# endif
|
|
50
25
|
#endif
|
|
51
26
|
|
|
52
|
-
|
|
53
|
-
# if defined(ICE_STATIC_LIBS)
|
|
54
|
-
# define ICE_API /**/
|
|
55
|
-
# elif defined(ICE_API_EXPORTS)
|
|
56
|
-
# define ICE_API ICE_DECLSPEC_EXPORT
|
|
57
|
-
# else
|
|
58
|
-
# define ICE_API ICE_DECLSPEC_IMPORT
|
|
59
|
-
# endif
|
|
60
|
-
#endif
|
|
61
|
-
|
|
62
|
-
#ifdef ICE_CPP11_MAPPING // C++11 mapping
|
|
27
|
+
// NOLINTBEGIN(modernize-concat-nested-namespaces)
|
|
63
28
|
|
|
64
29
|
namespace Ice
|
|
65
30
|
{
|
|
66
|
-
|
|
67
|
-
class
|
|
68
|
-
class
|
|
69
|
-
class LoggerAdmin;
|
|
70
|
-
class LoggerAdminPrx;
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
namespace Ice
|
|
75
|
-
{
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* An enumeration representing the different types of log messages.
|
|
79
|
-
*/
|
|
80
|
-
enum class LogMessageType : unsigned char
|
|
81
|
-
{
|
|
82
|
-
/**
|
|
83
|
-
* The {@link Logger} received a print message.
|
|
84
|
-
*/
|
|
85
|
-
PrintMessage,
|
|
86
|
-
/**
|
|
87
|
-
* The {@link Logger} received a trace message.
|
|
88
|
-
*/
|
|
89
|
-
TraceMessage,
|
|
90
|
-
/**
|
|
91
|
-
* The {@link Logger} received a warning message.
|
|
92
|
-
*/
|
|
93
|
-
WarningMessage,
|
|
94
|
-
/**
|
|
95
|
-
* The {@link Logger} received an error message.
|
|
96
|
-
*/
|
|
97
|
-
ErrorMessage
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* A sequence of {@link LogMessageType}
|
|
102
|
-
*/
|
|
103
|
-
using LogMessageTypeSeq = ::std::vector<LogMessageType>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* A complete log message.
|
|
107
|
-
* \headerfile Ice/Ice.h
|
|
108
|
-
*/
|
|
109
|
-
struct LogMessage
|
|
110
|
-
{
|
|
111
|
-
/**
|
|
112
|
-
* The type of message sent to the {@link Logger}.
|
|
113
|
-
*/
|
|
114
|
-
::Ice::LogMessageType type;
|
|
115
|
-
/**
|
|
116
|
-
* The date and time when the {@link Logger} received this message, expressed
|
|
117
|
-
* as the number of microseconds since the Unix Epoch (00:00:00 UTC on 1 January 1970)
|
|
118
|
-
*/
|
|
119
|
-
long long int timestamp;
|
|
120
|
-
/**
|
|
121
|
-
* For a message of type trace, the trace category of this log message;
|
|
122
|
-
* otherwise, the empty string.
|
|
123
|
-
*/
|
|
124
|
-
::std::string traceCategory;
|
|
125
|
-
/**
|
|
126
|
-
* The log message itself.
|
|
127
|
-
*/
|
|
128
|
-
::std::string message;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Obtains a tuple containing all of the struct's data members.
|
|
132
|
-
* @return The data members in a tuple.
|
|
133
|
-
*/
|
|
134
|
-
std::tuple<const ::Ice::LogMessageType&, const long long int&, const ::std::string&, const ::std::string&> ice_tuple() const
|
|
31
|
+
/// Represents the different types of log messages.
|
|
32
|
+
/// @remarks The Slice compiler generated this enum class from Slice enumeration `::Ice::LogMessageType`.
|
|
33
|
+
enum class LogMessageType : std::uint8_t
|
|
135
34
|
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* A sequence of {@link LogMessage}.
|
|
142
|
-
*/
|
|
143
|
-
using LogMessageSeq = std::list<LogMessage>;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Thrown when the provided RemoteLogger was previously attached to a LoggerAdmin.
|
|
147
|
-
* \headerfile Ice/Ice.h
|
|
148
|
-
*/
|
|
149
|
-
class ICE_CLASS(ICE_API) RemoteLoggerAlreadyAttachedException : public UserExceptionHelper<RemoteLoggerAlreadyAttachedException, UserException>
|
|
150
|
-
{
|
|
151
|
-
public:
|
|
152
|
-
|
|
153
|
-
ICE_MEMBER(ICE_API) virtual ~RemoteLoggerAlreadyAttachedException();
|
|
35
|
+
/// The ::Ice::RemoteLoggerPrx received a print message.
|
|
36
|
+
PrintMessage,
|
|
154
37
|
|
|
155
|
-
|
|
38
|
+
/// The ::Ice::RemoteLoggerPrx received a trace message.
|
|
39
|
+
TraceMessage,
|
|
156
40
|
|
|
157
|
-
|
|
41
|
+
/// The ::Ice::RemoteLoggerPrx received a warning message.
|
|
42
|
+
WarningMessage,
|
|
158
43
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
* @return The data members in a tuple.
|
|
162
|
-
*/
|
|
163
|
-
std::tuple<> ice_tuple() const
|
|
164
|
-
{
|
|
165
|
-
return std::tie();
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Obtains the Slice type ID of this exception.
|
|
170
|
-
* @return The fully-scoped type ID.
|
|
171
|
-
*/
|
|
172
|
-
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
/// \cond INTERNAL
|
|
176
|
-
static RemoteLoggerAlreadyAttachedException _iceS_RemoteLoggerAlreadyAttachedException_init;
|
|
177
|
-
/// \endcond
|
|
178
|
-
|
|
179
|
-
using Ice::operator<;
|
|
180
|
-
using Ice::operator<=;
|
|
181
|
-
using Ice::operator>;
|
|
182
|
-
using Ice::operator>=;
|
|
183
|
-
using Ice::operator==;
|
|
184
|
-
using Ice::operator!=;
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
namespace Ice
|
|
189
|
-
{
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* The Ice remote logger interface. An application can implement a
|
|
193
|
-
* RemoteLogger to receive the log messages sent to the local {@link Logger}
|
|
194
|
-
* of another Ice application.
|
|
195
|
-
* \headerfile Ice/Ice.h
|
|
196
|
-
*/
|
|
197
|
-
class ICE_API RemoteLogger : public virtual Object
|
|
198
|
-
{
|
|
199
|
-
public:
|
|
200
|
-
|
|
201
|
-
using ProxyType = RemoteLoggerPrx;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Determines whether this object supports an interface with the given Slice type ID.
|
|
205
|
-
* @param id The fully-scoped Slice type ID.
|
|
206
|
-
* @param current The Current object for the invocation.
|
|
207
|
-
* @return True if this object supports the interface, false, otherwise.
|
|
208
|
-
*/
|
|
209
|
-
virtual bool ice_isA(::std::string id, const Current& current) const override;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
|
213
|
-
* @param current The Current object for the invocation.
|
|
214
|
-
* @return A list of fully-scoped type IDs.
|
|
215
|
-
*/
|
|
216
|
-
virtual ::std::vector<::std::string> ice_ids(const Current& current) const override;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
|
220
|
-
* @param current The Current object for the invocation.
|
|
221
|
-
* @return A fully-scoped type ID.
|
|
222
|
-
*/
|
|
223
|
-
virtual ::std::string ice_id(const Current& current) const override;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Obtains the Slice type ID corresponding to this class.
|
|
227
|
-
* @return A fully-scoped type ID.
|
|
228
|
-
*/
|
|
229
|
-
static const ::std::string& ice_staticId();
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
233
|
-
* @param prefix The prefix of the associated local Logger.
|
|
234
|
-
* @param logMessages Old log messages generated before "now".
|
|
235
|
-
* @param current The Current object for the invocation.
|
|
236
|
-
*/
|
|
237
|
-
virtual void init(::std::string prefix, LogMessageSeq logMessages, const Current& current) = 0;
|
|
238
|
-
/// \cond INTERNAL
|
|
239
|
-
bool _iceD_init(::IceInternal::Incoming&, const Current&);
|
|
240
|
-
/// \endcond
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
244
|
-
* @param message The message to log.
|
|
245
|
-
* @param current The Current object for the invocation.
|
|
246
|
-
*/
|
|
247
|
-
virtual void log(LogMessage message, const Current& current) = 0;
|
|
248
|
-
/// \cond INTERNAL
|
|
249
|
-
bool _iceD_log(::IceInternal::Incoming&, const Current&);
|
|
250
|
-
/// \endcond
|
|
251
|
-
|
|
252
|
-
/// \cond INTERNAL
|
|
253
|
-
virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&) override;
|
|
254
|
-
/// \endcond
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* The interface of the admin object that allows an Ice application the attach its
|
|
259
|
-
* {@link RemoteLogger} to the {@link Logger} of this admin object's Ice communicator.
|
|
260
|
-
* \headerfile Ice/Ice.h
|
|
261
|
-
*/
|
|
262
|
-
class ICE_API LoggerAdmin : public virtual Object
|
|
263
|
-
{
|
|
264
|
-
public:
|
|
265
|
-
|
|
266
|
-
using ProxyType = LoggerAdminPrx;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Determines whether this object supports an interface with the given Slice type ID.
|
|
270
|
-
* @param id The fully-scoped Slice type ID.
|
|
271
|
-
* @param current The Current object for the invocation.
|
|
272
|
-
* @return True if this object supports the interface, false, otherwise.
|
|
273
|
-
*/
|
|
274
|
-
virtual bool ice_isA(::std::string id, const Current& current) const override;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
|
278
|
-
* @param current The Current object for the invocation.
|
|
279
|
-
* @return A list of fully-scoped type IDs.
|
|
280
|
-
*/
|
|
281
|
-
virtual ::std::vector<::std::string> ice_ids(const Current& current) const override;
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
|
285
|
-
* @param current The Current object for the invocation.
|
|
286
|
-
* @return A fully-scoped type ID.
|
|
287
|
-
*/
|
|
288
|
-
virtual ::std::string ice_id(const Current& current) const override;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Obtains the Slice type ID corresponding to this class.
|
|
292
|
-
* @return A fully-scoped type ID.
|
|
293
|
-
*/
|
|
294
|
-
static const ::std::string& ice_staticId();
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
298
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
299
|
-
* @param prx A proxy to the remote logger.
|
|
300
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
301
|
-
* An empty list means no filtering (send all message types).
|
|
302
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
303
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
304
|
-
* An empty list means no filtering (send all trace categories).
|
|
305
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
306
|
-
* to init. A negative value requests all messages available.
|
|
307
|
-
* @param current The Current object for the invocation.
|
|
308
|
-
* @throws Ice::RemoteLoggerAlreadyAttachedException Raised if this remote logger is already
|
|
309
|
-
* attached to this admin object.
|
|
310
|
-
*/
|
|
311
|
-
virtual void attachRemoteLogger(::std::shared_ptr<RemoteLoggerPrx> prx, LogMessageTypeSeq messageTypes, StringSeq traceCategories, int messageMax, const Current& current) = 0;
|
|
312
|
-
/// \cond INTERNAL
|
|
313
|
-
bool _iceD_attachRemoteLogger(::IceInternal::Incoming&, const Current&);
|
|
314
|
-
/// \endcond
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
318
|
-
* @param prx A proxy to the remote logger.
|
|
319
|
-
* @param current The Current object for the invocation.
|
|
320
|
-
* @return True if the provided remote logger proxy was detached, and false otherwise.
|
|
321
|
-
*/
|
|
322
|
-
virtual bool detachRemoteLogger(::std::shared_ptr<RemoteLoggerPrx> prx, const Current& current) = 0;
|
|
323
|
-
/// \cond INTERNAL
|
|
324
|
-
bool _iceD_detachRemoteLogger(::IceInternal::Incoming&, const Current&);
|
|
325
|
-
/// \endcond
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Encapsulates the results of a call to getLog.
|
|
329
|
-
*/
|
|
330
|
-
struct GetLogResult
|
|
331
|
-
{
|
|
332
|
-
/** The Log messages. */
|
|
333
|
-
LogMessageSeq returnValue;
|
|
334
|
-
/** The prefix of the associated local logger. */
|
|
335
|
-
::std::string prefix;
|
|
44
|
+
/// The ::Ice::RemoteLoggerPrx received an error message.
|
|
45
|
+
ErrorMessage
|
|
336
46
|
};
|
|
337
47
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
344
|
-
* An empty list means no filtering (send all trace categories).
|
|
345
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
346
|
-
* A negative value requests all messages available.
|
|
347
|
-
* @param prefix The prefix of the associated local logger.
|
|
348
|
-
* @param current The Current object for the invocation.
|
|
349
|
-
* @return The Log messages.
|
|
350
|
-
*/
|
|
351
|
-
virtual LogMessageSeq getLog(LogMessageTypeSeq messageTypes, StringSeq traceCategories, int messageMax, ::std::string& prefix, const Current& current) = 0;
|
|
352
|
-
/// \cond INTERNAL
|
|
353
|
-
bool _iceD_getLog(::IceInternal::Incoming&, const Current&);
|
|
354
|
-
/// \endcond
|
|
355
|
-
|
|
356
|
-
/// \cond INTERNAL
|
|
357
|
-
virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&) override;
|
|
358
|
-
/// \endcond
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
namespace Ice
|
|
364
|
-
{
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* The Ice remote logger interface. An application can implement a
|
|
368
|
-
* RemoteLogger to receive the log messages sent to the local {@link Logger}
|
|
369
|
-
* of another Ice application.
|
|
370
|
-
* \headerfile Ice/Ice.h
|
|
371
|
-
*/
|
|
372
|
-
class ICE_CLASS(ICE_API) RemoteLoggerPrx : public virtual Proxy<RemoteLoggerPrx, ObjectPrx>
|
|
373
|
-
{
|
|
374
|
-
public:
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
378
|
-
* @param prefix The prefix of the associated local Logger.
|
|
379
|
-
* @param logMessages Old log messages generated before "now".
|
|
380
|
-
* @param context The Context map to send with the invocation.
|
|
381
|
-
*/
|
|
382
|
-
void init(const ::std::string& prefix, const LogMessageSeq& logMessages, const Context& context = noExplicitContext)
|
|
383
|
-
{
|
|
384
|
-
_makePromiseOutgoing<void>(true, this, &RemoteLoggerPrx::_iceI_init, prefix, logMessages, context).get();
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
389
|
-
* @param prefix The prefix of the associated local Logger.
|
|
390
|
-
* @param logMessages Old log messages generated before "now".
|
|
391
|
-
* @param context The Context map to send with the invocation.
|
|
392
|
-
* @return The future object for the invocation.
|
|
393
|
-
*/
|
|
394
|
-
template<template<typename> class P = ::std::promise>
|
|
395
|
-
auto initAsync(const ::std::string& prefix, const LogMessageSeq& logMessages, const Context& context = noExplicitContext)
|
|
396
|
-
-> decltype(::std::declval<P<void>>().get_future())
|
|
397
|
-
{
|
|
398
|
-
return _makePromiseOutgoing<void, P>(false, this, &RemoteLoggerPrx::_iceI_init, prefix, logMessages, context);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
403
|
-
* @param prefix The prefix of the associated local Logger.
|
|
404
|
-
* @param logMessages Old log messages generated before "now".
|
|
405
|
-
* @param response The response callback.
|
|
406
|
-
* @param ex The exception callback.
|
|
407
|
-
* @param sent The sent callback.
|
|
408
|
-
* @param context The Context map to send with the invocation.
|
|
409
|
-
* @return A function that can be called to cancel the invocation locally.
|
|
410
|
-
*/
|
|
411
|
-
::std::function<void()>
|
|
412
|
-
initAsync(const ::std::string& prefix, const LogMessageSeq& logMessages,
|
|
413
|
-
::std::function<void()> response,
|
|
414
|
-
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
|
415
|
-
::std::function<void(bool)> sent = nullptr,
|
|
416
|
-
const Context& context = noExplicitContext)
|
|
417
|
-
{
|
|
418
|
-
return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent), this, &Ice::RemoteLoggerPrx::_iceI_init, prefix, logMessages, context);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
/// \cond INTERNAL
|
|
422
|
-
ICE_MEMBER(ICE_API) void _iceI_init(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const LogMessageSeq&, const Context&);
|
|
423
|
-
/// \endcond
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
427
|
-
* @param message The message to log.
|
|
428
|
-
* @param context The Context map to send with the invocation.
|
|
429
|
-
*/
|
|
430
|
-
void log(const LogMessage& message, const Context& context = noExplicitContext)
|
|
431
|
-
{
|
|
432
|
-
_makePromiseOutgoing<void>(true, this, &RemoteLoggerPrx::_iceI_log, message, context).get();
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
437
|
-
* @param message The message to log.
|
|
438
|
-
* @param context The Context map to send with the invocation.
|
|
439
|
-
* @return The future object for the invocation.
|
|
440
|
-
*/
|
|
441
|
-
template<template<typename> class P = ::std::promise>
|
|
442
|
-
auto logAsync(const LogMessage& message, const Context& context = noExplicitContext)
|
|
443
|
-
-> decltype(::std::declval<P<void>>().get_future())
|
|
444
|
-
{
|
|
445
|
-
return _makePromiseOutgoing<void, P>(false, this, &RemoteLoggerPrx::_iceI_log, message, context);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
450
|
-
* @param message The message to log.
|
|
451
|
-
* @param response The response callback.
|
|
452
|
-
* @param ex The exception callback.
|
|
453
|
-
* @param sent The sent callback.
|
|
454
|
-
* @param context The Context map to send with the invocation.
|
|
455
|
-
* @return A function that can be called to cancel the invocation locally.
|
|
456
|
-
*/
|
|
457
|
-
::std::function<void()>
|
|
458
|
-
logAsync(const LogMessage& message,
|
|
459
|
-
::std::function<void()> response,
|
|
460
|
-
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
|
461
|
-
::std::function<void(bool)> sent = nullptr,
|
|
462
|
-
const Context& context = noExplicitContext)
|
|
463
|
-
{
|
|
464
|
-
return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent), this, &Ice::RemoteLoggerPrx::_iceI_log, message, context);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
/// \cond INTERNAL
|
|
468
|
-
ICE_MEMBER(ICE_API) void _iceI_log(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const LogMessage&, const Context&);
|
|
469
|
-
/// \endcond
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Obtains the Slice type ID of this interface.
|
|
473
|
-
* @return The fully-scoped type ID.
|
|
474
|
-
*/
|
|
475
|
-
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
|
476
|
-
|
|
477
|
-
protected:
|
|
478
|
-
|
|
479
|
-
/// \cond INTERNAL
|
|
480
|
-
RemoteLoggerPrx() = default;
|
|
481
|
-
friend ::std::shared_ptr<RemoteLoggerPrx> IceInternal::createProxy<RemoteLoggerPrx>();
|
|
482
|
-
|
|
483
|
-
ICE_MEMBER(ICE_API) virtual ::std::shared_ptr<ObjectPrx> _newInstance() const override;
|
|
484
|
-
/// \endcond
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* The interface of the admin object that allows an Ice application the attach its
|
|
489
|
-
* {@link RemoteLogger} to the {@link Logger} of this admin object's Ice communicator.
|
|
490
|
-
* \headerfile Ice/Ice.h
|
|
491
|
-
*/
|
|
492
|
-
class ICE_CLASS(ICE_API) LoggerAdminPrx : public virtual Proxy<LoggerAdminPrx, ObjectPrx>
|
|
493
|
-
{
|
|
494
|
-
public:
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
498
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
499
|
-
* @param prx A proxy to the remote logger.
|
|
500
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
501
|
-
* An empty list means no filtering (send all message types).
|
|
502
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
503
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
504
|
-
* An empty list means no filtering (send all trace categories).
|
|
505
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
506
|
-
* to init. A negative value requests all messages available.
|
|
507
|
-
* @param context The Context map to send with the invocation.
|
|
508
|
-
* @throws Ice::RemoteLoggerAlreadyAttachedException Raised if this remote logger is already
|
|
509
|
-
* attached to this admin object.
|
|
510
|
-
*/
|
|
511
|
-
void attachRemoteLogger(const ::std::shared_ptr<RemoteLoggerPrx>& prx, const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, int messageMax, const Context& context = noExplicitContext)
|
|
512
|
-
{
|
|
513
|
-
_makePromiseOutgoing<void>(true, this, &LoggerAdminPrx::_iceI_attachRemoteLogger, prx, messageTypes, traceCategories, messageMax, context).get();
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
518
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
519
|
-
* @param prx A proxy to the remote logger.
|
|
520
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
521
|
-
* An empty list means no filtering (send all message types).
|
|
522
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
523
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
524
|
-
* An empty list means no filtering (send all trace categories).
|
|
525
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
526
|
-
* to init. A negative value requests all messages available.
|
|
527
|
-
* @param context The Context map to send with the invocation.
|
|
528
|
-
* @return The future object for the invocation.
|
|
529
|
-
*/
|
|
530
|
-
template<template<typename> class P = ::std::promise>
|
|
531
|
-
auto attachRemoteLoggerAsync(const ::std::shared_ptr<RemoteLoggerPrx>& prx, const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, int messageMax, const Context& context = noExplicitContext)
|
|
532
|
-
-> decltype(::std::declval<P<void>>().get_future())
|
|
533
|
-
{
|
|
534
|
-
return _makePromiseOutgoing<void, P>(false, this, &LoggerAdminPrx::_iceI_attachRemoteLogger, prx, messageTypes, traceCategories, messageMax, context);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
539
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
540
|
-
* @param prx A proxy to the remote logger.
|
|
541
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
542
|
-
* An empty list means no filtering (send all message types).
|
|
543
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
544
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
545
|
-
* An empty list means no filtering (send all trace categories).
|
|
546
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
547
|
-
* to init. A negative value requests all messages available.
|
|
548
|
-
* @param response The response callback.
|
|
549
|
-
* @param ex The exception callback.
|
|
550
|
-
* @param sent The sent callback.
|
|
551
|
-
* @param context The Context map to send with the invocation.
|
|
552
|
-
* @return A function that can be called to cancel the invocation locally.
|
|
553
|
-
*/
|
|
554
|
-
::std::function<void()>
|
|
555
|
-
attachRemoteLoggerAsync(const ::std::shared_ptr<RemoteLoggerPrx>& prx, const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, int messageMax,
|
|
556
|
-
::std::function<void()> response,
|
|
557
|
-
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
|
558
|
-
::std::function<void(bool)> sent = nullptr,
|
|
559
|
-
const Context& context = noExplicitContext)
|
|
560
|
-
{
|
|
561
|
-
return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LoggerAdminPrx::_iceI_attachRemoteLogger, prx, messageTypes, traceCategories, messageMax, context);
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/// \cond INTERNAL
|
|
565
|
-
ICE_MEMBER(ICE_API) void _iceI_attachRemoteLogger(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::shared_ptr<RemoteLoggerPrx>&, const LogMessageTypeSeq&, const StringSeq&, int, const Context&);
|
|
566
|
-
/// \endcond
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
570
|
-
* @param prx A proxy to the remote logger.
|
|
571
|
-
* @param context The Context map to send with the invocation.
|
|
572
|
-
* @return True if the provided remote logger proxy was detached, and false otherwise.
|
|
573
|
-
*/
|
|
574
|
-
bool detachRemoteLogger(const ::std::shared_ptr<RemoteLoggerPrx>& prx, const Context& context = noExplicitContext)
|
|
575
|
-
{
|
|
576
|
-
return _makePromiseOutgoing<bool>(true, this, &LoggerAdminPrx::_iceI_detachRemoteLogger, prx, context).get();
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
581
|
-
* @param prx A proxy to the remote logger.
|
|
582
|
-
* @param context The Context map to send with the invocation.
|
|
583
|
-
* @return The future object for the invocation.
|
|
584
|
-
*/
|
|
585
|
-
template<template<typename> class P = ::std::promise>
|
|
586
|
-
auto detachRemoteLoggerAsync(const ::std::shared_ptr<RemoteLoggerPrx>& prx, const Context& context = noExplicitContext)
|
|
587
|
-
-> decltype(::std::declval<P<bool>>().get_future())
|
|
588
|
-
{
|
|
589
|
-
return _makePromiseOutgoing<bool, P>(false, this, &LoggerAdminPrx::_iceI_detachRemoteLogger, prx, context);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
594
|
-
* @param prx A proxy to the remote logger.
|
|
595
|
-
* @param response The response callback.
|
|
596
|
-
* @param ex The exception callback.
|
|
597
|
-
* @param sent The sent callback.
|
|
598
|
-
* @param context The Context map to send with the invocation.
|
|
599
|
-
* @return A function that can be called to cancel the invocation locally.
|
|
600
|
-
*/
|
|
601
|
-
::std::function<void()>
|
|
602
|
-
detachRemoteLoggerAsync(const ::std::shared_ptr<RemoteLoggerPrx>& prx,
|
|
603
|
-
::std::function<void(bool)> response,
|
|
604
|
-
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
|
605
|
-
::std::function<void(bool)> sent = nullptr,
|
|
606
|
-
const Context& context = noExplicitContext)
|
|
607
|
-
{
|
|
608
|
-
return _makeLambdaOutgoing<bool>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LoggerAdminPrx::_iceI_detachRemoteLogger, prx, context);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
/// \cond INTERNAL
|
|
612
|
-
ICE_MEMBER(ICE_API) void _iceI_detachRemoteLogger(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<bool>>&, const ::std::shared_ptr<RemoteLoggerPrx>&, const Context&);
|
|
613
|
-
/// \endcond
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* Retrieves log messages recently logged.
|
|
617
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
618
|
-
* An empty list means no filtering (send all message types).
|
|
619
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
620
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
621
|
-
* An empty list means no filtering (send all trace categories).
|
|
622
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
623
|
-
* A negative value requests all messages available.
|
|
624
|
-
* @param prefix The prefix of the associated local logger.
|
|
625
|
-
* @param context The Context map to send with the invocation.
|
|
626
|
-
* @return The Log messages.
|
|
627
|
-
*/
|
|
628
|
-
LogMessageSeq getLog(const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, int messageMax, ::std::string& prefix, const Context& context = noExplicitContext)
|
|
629
|
-
{
|
|
630
|
-
auto _result = _makePromiseOutgoing<LoggerAdmin::GetLogResult>(true, this, &LoggerAdminPrx::_iceI_getLog, messageTypes, traceCategories, messageMax, context).get();
|
|
631
|
-
prefix = ::std::move(_result.prefix);
|
|
632
|
-
return ::std::move(_result.returnValue);
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Retrieves log messages recently logged.
|
|
637
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
638
|
-
* An empty list means no filtering (send all message types).
|
|
639
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
640
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
641
|
-
* An empty list means no filtering (send all trace categories).
|
|
642
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
643
|
-
* A negative value requests all messages available.
|
|
644
|
-
* @param context The Context map to send with the invocation.
|
|
645
|
-
* @return The future object for the invocation.
|
|
646
|
-
*/
|
|
647
|
-
template<template<typename> class P = ::std::promise>
|
|
648
|
-
auto getLogAsync(const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, int messageMax, const Context& context = noExplicitContext)
|
|
649
|
-
-> decltype(::std::declval<P<LoggerAdmin::GetLogResult>>().get_future())
|
|
650
|
-
{
|
|
651
|
-
return _makePromiseOutgoing<LoggerAdmin::GetLogResult, P>(false, this, &LoggerAdminPrx::_iceI_getLog, messageTypes, traceCategories, messageMax, context);
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* Retrieves log messages recently logged.
|
|
656
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
657
|
-
* An empty list means no filtering (send all message types).
|
|
658
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
659
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
660
|
-
* An empty list means no filtering (send all trace categories).
|
|
661
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
662
|
-
* A negative value requests all messages available.
|
|
663
|
-
* @param response The response callback.
|
|
664
|
-
* @param ex The exception callback.
|
|
665
|
-
* @param sent The sent callback.
|
|
666
|
-
* @param context The Context map to send with the invocation.
|
|
667
|
-
* @return A function that can be called to cancel the invocation locally.
|
|
668
|
-
*/
|
|
669
|
-
::std::function<void()>
|
|
670
|
-
getLogAsync(const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, int messageMax,
|
|
671
|
-
::std::function<void(::Ice::LogMessageSeq, ::std::string)> response,
|
|
672
|
-
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
|
673
|
-
::std::function<void(bool)> sent = nullptr,
|
|
674
|
-
const Context& context = noExplicitContext)
|
|
675
|
-
{
|
|
676
|
-
auto _responseCb = [response](LoggerAdmin::GetLogResult&& _result)
|
|
677
|
-
{
|
|
678
|
-
response(::std::move(_result.returnValue), ::std::move(_result.prefix));
|
|
679
|
-
};
|
|
680
|
-
return _makeLambdaOutgoing<LoggerAdmin::GetLogResult>(std::move(_responseCb), std::move(ex), std::move(sent), this, &Ice::LoggerAdminPrx::_iceI_getLog, messageTypes, traceCategories, messageMax, context);
|
|
681
|
-
}
|
|
48
|
+
/// Outputs the enumerator name or underlying value of a LogMessageType to a stream.
|
|
49
|
+
/// @param os The output stream.
|
|
50
|
+
/// @param value The value to output.
|
|
51
|
+
/// @return The output stream.
|
|
52
|
+
ICE_API std::ostream& operator<<(std::ostream& os, LogMessageType value);
|
|
682
53
|
|
|
683
|
-
///
|
|
684
|
-
|
|
685
|
-
/// \endcond
|
|
54
|
+
/// A sequence of #LogMessageType.
|
|
55
|
+
using LogMessageTypeSeq = std::vector<LogMessageType>;
|
|
686
56
|
|
|
687
|
-
|
|
688
|
-
* Obtains the Slice type ID of this interface.
|
|
689
|
-
* @return The fully-scoped type ID.
|
|
690
|
-
*/
|
|
691
|
-
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
|
57
|
+
struct LogMessage;
|
|
692
58
|
|
|
693
|
-
|
|
59
|
+
/// A sequence of LogMessage.
|
|
60
|
+
using LogMessageSeq = std::list<LogMessage>;
|
|
694
61
|
|
|
695
|
-
|
|
696
|
-
LoggerAdminPrx() = default;
|
|
697
|
-
friend ::std::shared_ptr<LoggerAdminPrx> IceInternal::createProxy<LoggerAdminPrx>();
|
|
698
|
-
|
|
699
|
-
ICE_MEMBER(ICE_API) virtual ::std::shared_ptr<ObjectPrx> _newInstance() const override;
|
|
700
|
-
/// \endcond
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/// \cond STREAM
|
|
706
|
-
namespace Ice
|
|
707
|
-
{
|
|
708
|
-
|
|
709
|
-
template<>
|
|
710
|
-
struct StreamableTraits< ::Ice::LogMessageType>
|
|
711
|
-
{
|
|
712
|
-
static const StreamHelperCategory helper = StreamHelperCategoryEnum;
|
|
713
|
-
static const int minValue = 0;
|
|
714
|
-
static const int maxValue = 3;
|
|
715
|
-
static const int minWireSize = 1;
|
|
716
|
-
static const bool fixedLength = false;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
template<>
|
|
720
|
-
struct StreamableTraits<::Ice::LogMessage>
|
|
721
|
-
{
|
|
722
|
-
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
|
|
723
|
-
static const int minWireSize = 11;
|
|
724
|
-
static const bool fixedLength = false;
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
template<typename S>
|
|
728
|
-
struct StreamReader<::Ice::LogMessage, S>
|
|
729
|
-
{
|
|
730
|
-
static void read(S* istr, ::Ice::LogMessage& v)
|
|
731
|
-
{
|
|
732
|
-
istr->readAll(v.type, v.timestamp, v.traceCategory, v.message);
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
|
|
736
|
-
}
|
|
737
|
-
/// \endcond
|
|
738
|
-
|
|
739
|
-
/// \cond INTERNAL
|
|
740
|
-
namespace Ice
|
|
741
|
-
{
|
|
742
|
-
|
|
743
|
-
using RemoteLoggerPtr = ::std::shared_ptr<RemoteLogger>;
|
|
744
|
-
using RemoteLoggerPrxPtr = ::std::shared_ptr<RemoteLoggerPrx>;
|
|
745
|
-
|
|
746
|
-
using LoggerAdminPtr = ::std::shared_ptr<LoggerAdmin>;
|
|
747
|
-
using LoggerAdminPrxPtr = ::std::shared_ptr<LoggerAdminPrx>;
|
|
748
|
-
|
|
749
|
-
}
|
|
750
|
-
/// \endcond
|
|
751
|
-
|
|
752
|
-
#else // C++98 mapping
|
|
753
|
-
|
|
754
|
-
namespace IceProxy
|
|
755
|
-
{
|
|
756
|
-
|
|
757
|
-
namespace Ice
|
|
758
|
-
{
|
|
759
|
-
|
|
760
|
-
class RemoteLogger;
|
|
761
|
-
/// \cond INTERNAL
|
|
762
|
-
ICE_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< RemoteLogger>&);
|
|
763
|
-
ICE_API ::IceProxy::Ice::Object* upCast(RemoteLogger*);
|
|
764
|
-
/// \endcond
|
|
765
|
-
|
|
766
|
-
class LoggerAdmin;
|
|
767
|
-
/// \cond INTERNAL
|
|
768
|
-
ICE_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< LoggerAdmin>&);
|
|
769
|
-
ICE_API ::IceProxy::Ice::Object* upCast(LoggerAdmin*);
|
|
770
|
-
/// \endcond
|
|
771
|
-
|
|
772
|
-
}
|
|
62
|
+
class RemoteLoggerPrx;
|
|
773
63
|
|
|
64
|
+
class LoggerAdminPrx;
|
|
774
65
|
}
|
|
775
66
|
|
|
776
67
|
namespace Ice
|
|
777
68
|
{
|
|
778
|
-
|
|
779
|
-
class RemoteLogger
|
|
780
|
-
///
|
|
781
|
-
ICE_API
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
///
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
///
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
///
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
69
|
+
/// Represents an Ice object that accepts log messages. It's called by the implementation of LoggerAdminPrx.
|
|
70
|
+
/// @remarks The Slice compiler generated this proxy class from Slice interface `::Ice::RemoteLogger`.
|
|
71
|
+
/// @headerfile Ice/Ice.h
|
|
72
|
+
class ICE_API RemoteLoggerPrx : public Ice::Proxy<RemoteLoggerPrx, Ice::ObjectPrx>
|
|
73
|
+
{
|
|
74
|
+
public:
|
|
75
|
+
/// Constructs a proxy from a Communicator and a proxy string.
|
|
76
|
+
/// @param communicator The communicator of the new proxy.
|
|
77
|
+
/// @param proxyString The proxy string to parse.
|
|
78
|
+
RemoteLoggerPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
|
|
79
|
+
|
|
80
|
+
/// Copy constructor. Constructs with a copy of the contents of @p other.
|
|
81
|
+
/// @param other The proxy to copy from.
|
|
82
|
+
RemoteLoggerPrx(const RemoteLoggerPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
|
|
83
|
+
|
|
84
|
+
/// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
|
|
85
|
+
/// @param other The proxy to move from.
|
|
86
|
+
RemoteLoggerPrx(RemoteLoggerPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
|
|
87
|
+
|
|
88
|
+
~RemoteLoggerPrx() override;
|
|
89
|
+
|
|
90
|
+
/// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
|
|
91
|
+
/// @param rhs The proxy to copy from.
|
|
92
|
+
/// @return A reference to this proxy.
|
|
93
|
+
RemoteLoggerPrx& operator=(const RemoteLoggerPrx& rhs) noexcept
|
|
94
|
+
{
|
|
95
|
+
if (this != &rhs)
|
|
96
|
+
{
|
|
97
|
+
Ice::ObjectPrx::operator=(rhs);
|
|
98
|
+
}
|
|
99
|
+
return *this;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
|
|
103
|
+
/// @param rhs The proxy to move from.
|
|
104
|
+
RemoteLoggerPrx& operator=(RemoteLoggerPrx&& rhs) noexcept
|
|
105
|
+
{
|
|
106
|
+
if (this != &rhs)
|
|
107
|
+
{
|
|
108
|
+
Ice::ObjectPrx::operator=(std::move(rhs));
|
|
109
|
+
}
|
|
110
|
+
return *this;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/// Attaches a remote logger to the local logger.
|
|
114
|
+
/// @param prefix The prefix of the associated local Logger.
|
|
115
|
+
/// @param logMessages Old log messages generated before "now".
|
|
116
|
+
/// @param context The request context.
|
|
117
|
+
void init(std::string_view prefix, const LogMessageSeq& logMessages, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
118
|
+
|
|
119
|
+
/// Attaches a remote logger to the local logger.
|
|
120
|
+
/// @param prefix The prefix of the associated local Logger.
|
|
121
|
+
/// @param logMessages Old log messages generated before "now".
|
|
122
|
+
/// @param context The request context.
|
|
123
|
+
/// @return A future that becomes available when the invocation completes.
|
|
124
|
+
[[nodiscard]] std::future<void> initAsync(std::string_view prefix, const LogMessageSeq& logMessages, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
125
|
+
|
|
126
|
+
/// Attaches a remote logger to the local logger.
|
|
127
|
+
/// @param prefix The prefix of the associated local Logger.
|
|
128
|
+
/// @param logMessages Old log messages generated before "now".
|
|
129
|
+
/// @param response The response callback.
|
|
130
|
+
/// @param exception The exception callback.
|
|
131
|
+
/// @param sent The sent callback.
|
|
132
|
+
/// @param context The request context.
|
|
133
|
+
/// @return A function that can be called to cancel the invocation locally.
|
|
134
|
+
// NOLINTNEXTLINE(modernize-use-nodiscard)
|
|
135
|
+
std::function<void()> initAsync(std::string_view prefix, const LogMessageSeq& logMessages, std::function<void()> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
136
|
+
|
|
137
|
+
/// @private
|
|
138
|
+
void _iceI_init(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, const LogMessageSeq&, const Ice::Context&) const;
|
|
139
|
+
|
|
140
|
+
/// Logs a LogMessage.
|
|
141
|
+
/// @param message The message to log.
|
|
142
|
+
/// @param context The request context.
|
|
143
|
+
/// @remarks ::Ice::RemoteLoggerPrx::log may be called by ::Ice::LoggerAdminPrx before ::Ice::RemoteLoggerPrx::init.
|
|
144
|
+
void log(const LogMessage& message, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
145
|
+
|
|
146
|
+
/// Logs a LogMessage.
|
|
147
|
+
/// @param message The message to log.
|
|
148
|
+
/// @param context The request context.
|
|
149
|
+
/// @return A future that becomes available when the invocation completes.
|
|
150
|
+
/// @remarks ::Ice::RemoteLoggerPrx::log may be called by ::Ice::LoggerAdminPrx before ::Ice::RemoteLoggerPrx::init.
|
|
151
|
+
[[nodiscard]] std::future<void> logAsync(const LogMessage& message, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
152
|
+
|
|
153
|
+
/// Logs a LogMessage.
|
|
154
|
+
/// @param message The message to log.
|
|
155
|
+
/// @param response The response callback.
|
|
156
|
+
/// @param exception The exception callback.
|
|
157
|
+
/// @param sent The sent callback.
|
|
158
|
+
/// @param context The request context.
|
|
159
|
+
/// @return A function that can be called to cancel the invocation locally.
|
|
160
|
+
/// @remarks ::Ice::RemoteLoggerPrx::log may be called by ::Ice::LoggerAdminPrx before ::Ice::RemoteLoggerPrx::init.
|
|
161
|
+
// NOLINTNEXTLINE(modernize-use-nodiscard)
|
|
162
|
+
std::function<void()> logAsync(const LogMessage& message, std::function<void()> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
163
|
+
|
|
164
|
+
/// @private
|
|
165
|
+
void _iceI_log(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, const LogMessage&, const Ice::Context&) const;
|
|
166
|
+
|
|
167
|
+
/// Gets the type ID of the associated Slice interface.
|
|
168
|
+
/// @return The string `"::Ice::RemoteLogger"`.
|
|
169
|
+
static const char* ice_staticId() noexcept;
|
|
170
|
+
|
|
171
|
+
/// @private
|
|
172
|
+
static RemoteLoggerPrx _fromReference(IceInternal::ReferencePtr ref) { return RemoteLoggerPrx{std::move(ref)}; }
|
|
173
|
+
|
|
174
|
+
protected:
|
|
175
|
+
/// @private
|
|
176
|
+
RemoteLoggerPrx() = default;
|
|
177
|
+
|
|
178
|
+
/// @private
|
|
179
|
+
explicit RemoteLoggerPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
|
|
874
180
|
{
|
|
875
|
-
return false;
|
|
876
181
|
}
|
|
877
|
-
|
|
878
|
-
{
|
|
879
|
-
return false;
|
|
880
|
-
}
|
|
881
|
-
return true;
|
|
882
|
-
}
|
|
182
|
+
};
|
|
883
183
|
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
184
|
+
/// Represents the admin facet that allows an Ice application to attach its RemoteLoggerPrx to the local
|
|
185
|
+
/// logger of an Ice communicator.
|
|
186
|
+
/// @remarks The Slice compiler generated this proxy class from Slice interface `::Ice::LoggerAdmin`.
|
|
187
|
+
/// @headerfile Ice/Ice.h
|
|
188
|
+
class ICE_API LoggerAdminPrx : public Ice::Proxy<LoggerAdminPrx, Ice::ObjectPrx>
|
|
189
|
+
{
|
|
190
|
+
public:
|
|
191
|
+
/// Constructs a proxy from a Communicator and a proxy string.
|
|
192
|
+
/// @param communicator The communicator of the new proxy.
|
|
193
|
+
/// @param proxyString The proxy string to parse.
|
|
194
|
+
LoggerAdminPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
|
|
195
|
+
|
|
196
|
+
/// Copy constructor. Constructs with a copy of the contents of @p other.
|
|
197
|
+
/// @param other The proxy to copy from.
|
|
198
|
+
LoggerAdminPrx(const LoggerAdminPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
|
|
199
|
+
|
|
200
|
+
/// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
|
|
201
|
+
/// @param other The proxy to move from.
|
|
202
|
+
LoggerAdminPrx(LoggerAdminPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
|
|
203
|
+
|
|
204
|
+
~LoggerAdminPrx() override;
|
|
205
|
+
|
|
206
|
+
/// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
|
|
207
|
+
/// @param rhs The proxy to copy from.
|
|
208
|
+
/// @return A reference to this proxy.
|
|
209
|
+
LoggerAdminPrx& operator=(const LoggerAdminPrx& rhs) noexcept
|
|
210
|
+
{
|
|
211
|
+
if (this != &rhs)
|
|
212
|
+
{
|
|
213
|
+
Ice::ObjectPrx::operator=(rhs);
|
|
214
|
+
}
|
|
215
|
+
return *this;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
|
|
219
|
+
/// @param rhs The proxy to move from.
|
|
220
|
+
LoggerAdminPrx& operator=(LoggerAdminPrx&& rhs) noexcept
|
|
221
|
+
{
|
|
222
|
+
if (this != &rhs)
|
|
223
|
+
{
|
|
224
|
+
Ice::ObjectPrx::operator=(std::move(rhs));
|
|
225
|
+
}
|
|
226
|
+
return *this;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/// Attaches a ::Ice::RemoteLoggerPrx object to the local logger. This operation calls ::Ice::RemoteLoggerPrx::init
|
|
230
|
+
/// on @p prx.
|
|
231
|
+
/// @param prx A proxy to the remote logger.
|
|
232
|
+
/// @param messageTypes The list of message types that the remote logger wishes to receive. An empty list means
|
|
233
|
+
/// no filtering (send all message types).
|
|
234
|
+
/// @param traceCategories The categories of traces that the remote logger wishes to receive. This parameter is
|
|
235
|
+
/// ignored if @p messageTypes is not empty and does not include trace. An empty list means no filtering
|
|
236
|
+
/// (send all trace categories).
|
|
237
|
+
/// @param messageMax The maximum number of log messages (of all types) to be provided to
|
|
238
|
+
/// ::Ice::RemoteLoggerPrx::init. A negative value requests all messages available.
|
|
239
|
+
/// @param context The request context.
|
|
240
|
+
/// @throws Ice::RemoteLoggerAlreadyAttachedException Thrown if this remote logger is already attached to this admin
|
|
241
|
+
/// object.
|
|
242
|
+
void attachRemoteLogger(const std::optional<RemoteLoggerPrx>& prx, const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, std::int32_t messageMax, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
243
|
+
|
|
244
|
+
/// Attaches a ::Ice::RemoteLoggerPrx object to the local logger. This operation calls ::Ice::RemoteLoggerPrx::init
|
|
245
|
+
/// on @p prx.
|
|
246
|
+
/// @param prx A proxy to the remote logger.
|
|
247
|
+
/// @param messageTypes The list of message types that the remote logger wishes to receive. An empty list means
|
|
248
|
+
/// no filtering (send all message types).
|
|
249
|
+
/// @param traceCategories The categories of traces that the remote logger wishes to receive. This parameter is
|
|
250
|
+
/// ignored if @p messageTypes is not empty and does not include trace. An empty list means no filtering
|
|
251
|
+
/// (send all trace categories).
|
|
252
|
+
/// @param messageMax The maximum number of log messages (of all types) to be provided to
|
|
253
|
+
/// ::Ice::RemoteLoggerPrx::init. A negative value requests all messages available.
|
|
254
|
+
/// @param context The request context.
|
|
255
|
+
/// @return A future that becomes available when the invocation completes.
|
|
256
|
+
[[nodiscard]] std::future<void> attachRemoteLoggerAsync(const std::optional<RemoteLoggerPrx>& prx, const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, std::int32_t messageMax, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
257
|
+
|
|
258
|
+
/// Attaches a ::Ice::RemoteLoggerPrx object to the local logger. This operation calls ::Ice::RemoteLoggerPrx::init
|
|
259
|
+
/// on @p prx.
|
|
260
|
+
/// @param prx A proxy to the remote logger.
|
|
261
|
+
/// @param messageTypes The list of message types that the remote logger wishes to receive. An empty list means
|
|
262
|
+
/// no filtering (send all message types).
|
|
263
|
+
/// @param traceCategories The categories of traces that the remote logger wishes to receive. This parameter is
|
|
264
|
+
/// ignored if @p messageTypes is not empty and does not include trace. An empty list means no filtering
|
|
265
|
+
/// (send all trace categories).
|
|
266
|
+
/// @param messageMax The maximum number of log messages (of all types) to be provided to
|
|
267
|
+
/// ::Ice::RemoteLoggerPrx::init. A negative value requests all messages available.
|
|
268
|
+
/// @param response The response callback.
|
|
269
|
+
/// @param exception The exception callback.
|
|
270
|
+
/// @param sent The sent callback.
|
|
271
|
+
/// @param context The request context.
|
|
272
|
+
/// @return A function that can be called to cancel the invocation locally.
|
|
273
|
+
// NOLINTNEXTLINE(modernize-use-nodiscard)
|
|
274
|
+
std::function<void()> attachRemoteLoggerAsync(const std::optional<RemoteLoggerPrx>& prx, const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, std::int32_t messageMax, std::function<void()> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
275
|
+
|
|
276
|
+
/// @private
|
|
277
|
+
void _iceI_attachRemoteLogger(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, const std::optional<RemoteLoggerPrx>&, const LogMessageTypeSeq&, const StringSeq&, std::int32_t, const Ice::Context&) const;
|
|
278
|
+
|
|
279
|
+
/// Detaches a ::Ice::RemoteLoggerPrx object from the local logger.
|
|
280
|
+
/// @param prx A proxy to the remote logger.
|
|
281
|
+
/// @param context The request context.
|
|
282
|
+
/// @return `true` if the provided remote logger proxy was detached, and `false` otherwise.
|
|
283
|
+
bool detachRemoteLogger(const std::optional<RemoteLoggerPrx>& prx, const Ice::Context& context = Ice::noExplicitContext) const; // NOLINT(modernize-use-nodiscard)
|
|
284
|
+
|
|
285
|
+
/// Detaches a ::Ice::RemoteLoggerPrx object from the local logger.
|
|
286
|
+
/// @param prx A proxy to the remote logger.
|
|
287
|
+
/// @param context The request context.
|
|
288
|
+
/// @return A future that becomes available when the invocation completes. This future holds:
|
|
289
|
+
/// - `true` if the provided remote logger proxy was detached, and `false` otherwise.
|
|
290
|
+
[[nodiscard]] std::future<bool> detachRemoteLoggerAsync(const std::optional<RemoteLoggerPrx>& prx, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
291
|
+
|
|
292
|
+
/// Detaches a ::Ice::RemoteLoggerPrx object from the local logger.
|
|
293
|
+
/// @param prx A proxy to the remote logger.
|
|
294
|
+
/// @param response The response callback. It accepts:
|
|
295
|
+
/// - `true` if the provided remote logger proxy was detached, and `false` otherwise.
|
|
296
|
+
/// @param exception The exception callback.
|
|
297
|
+
/// @param sent The sent callback.
|
|
298
|
+
/// @param context The request context.
|
|
299
|
+
/// @return A function that can be called to cancel the invocation locally.
|
|
300
|
+
// NOLINTNEXTLINE(modernize-use-nodiscard)
|
|
301
|
+
std::function<void()> detachRemoteLoggerAsync(const std::optional<RemoteLoggerPrx>& prx, std::function<void(bool)> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
302
|
+
|
|
303
|
+
/// @private
|
|
304
|
+
void _iceI_detachRemoteLogger(const std::shared_ptr<IceInternal::OutgoingAsyncT<bool>>&, const std::optional<RemoteLoggerPrx>&, const Ice::Context&) const;
|
|
305
|
+
|
|
306
|
+
/// Retrieves recently logged log messages.
|
|
307
|
+
/// @param messageTypes The list of message types that the caller wishes to receive. An empty list means no
|
|
308
|
+
/// filtering (send all message types).
|
|
309
|
+
/// @param traceCategories The categories of traces that caller wish to receive. This parameter is ignored if
|
|
310
|
+
/// @p messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace
|
|
311
|
+
/// categories).
|
|
312
|
+
/// @param messageMax The maximum number of log messages (of all types) to be returned. A negative value
|
|
313
|
+
/// requests all messages available.
|
|
314
|
+
/// @param[out] prefix The prefix of the associated local logger.
|
|
315
|
+
/// @param context The request context.
|
|
316
|
+
/// @return The Log messages.
|
|
317
|
+
LogMessageSeq getLog(const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, std::int32_t messageMax, std::string& prefix, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
318
|
+
|
|
319
|
+
/// Retrieves recently logged log messages.
|
|
320
|
+
/// @param messageTypes The list of message types that the caller wishes to receive. An empty list means no
|
|
321
|
+
/// filtering (send all message types).
|
|
322
|
+
/// @param traceCategories The categories of traces that caller wish to receive. This parameter is ignored if
|
|
323
|
+
/// @p messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace
|
|
324
|
+
/// categories).
|
|
325
|
+
/// @param messageMax The maximum number of log messages (of all types) to be returned. A negative value
|
|
326
|
+
/// requests all messages available.
|
|
327
|
+
/// @param context The request context.
|
|
328
|
+
/// @return A future that becomes available when the invocation completes. This future holds:
|
|
329
|
+
/// - `returnValue` The Log messages.
|
|
330
|
+
/// - `prefix` The prefix of the associated local logger.
|
|
331
|
+
[[nodiscard]] std::future<std::tuple<LogMessageSeq, std::string>> getLogAsync(const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, std::int32_t messageMax, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
332
|
+
|
|
333
|
+
/// Retrieves recently logged log messages.
|
|
334
|
+
/// @param messageTypes The list of message types that the caller wishes to receive. An empty list means no
|
|
335
|
+
/// filtering (send all message types).
|
|
336
|
+
/// @param traceCategories The categories of traces that caller wish to receive. This parameter is ignored if
|
|
337
|
+
/// @p messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace
|
|
338
|
+
/// categories).
|
|
339
|
+
/// @param messageMax The maximum number of log messages (of all types) to be returned. A negative value
|
|
340
|
+
/// requests all messages available.
|
|
341
|
+
/// @param response The response callback. It accepts:
|
|
342
|
+
/// - `returnValue` The Log messages.
|
|
343
|
+
/// - `prefix` The prefix of the associated local logger.
|
|
344
|
+
/// @param exception The exception callback.
|
|
345
|
+
/// @param sent The sent callback.
|
|
346
|
+
/// @param context The request context.
|
|
347
|
+
/// @return A function that can be called to cancel the invocation locally.
|
|
348
|
+
// NOLINTNEXTLINE(modernize-use-nodiscard)
|
|
349
|
+
std::function<void()> getLogAsync(const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, std::int32_t messageMax, std::function<void(::Ice::LogMessageSeq, std::string)> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
|
|
350
|
+
|
|
351
|
+
/// @private
|
|
352
|
+
void _iceI_getLog(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::tuple<LogMessageSeq, std::string>>>&, const LogMessageTypeSeq&, const StringSeq&, std::int32_t, const Ice::Context&) const;
|
|
353
|
+
|
|
354
|
+
/// Gets the type ID of the associated Slice interface.
|
|
355
|
+
/// @return The string `"::Ice::LoggerAdmin"`.
|
|
356
|
+
static const char* ice_staticId() noexcept;
|
|
357
|
+
|
|
358
|
+
/// @private
|
|
359
|
+
static LoggerAdminPrx _fromReference(IceInternal::ReferencePtr ref) { return LoggerAdminPrx{std::move(ref)}; }
|
|
360
|
+
|
|
361
|
+
protected:
|
|
362
|
+
/// @private
|
|
363
|
+
LoggerAdminPrx() = default;
|
|
364
|
+
|
|
365
|
+
/// @private
|
|
366
|
+
explicit LoggerAdminPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
|
|
911
367
|
{
|
|
912
|
-
return false;
|
|
913
368
|
}
|
|
914
|
-
|
|
915
|
-
{
|
|
916
|
-
return true;
|
|
917
|
-
}
|
|
918
|
-
else if(rhs_.message < message)
|
|
919
|
-
{
|
|
920
|
-
return false;
|
|
921
|
-
}
|
|
922
|
-
return false;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
bool operator!=(const LogMessage& rhs_) const
|
|
926
|
-
{
|
|
927
|
-
return !operator==(rhs_);
|
|
928
|
-
}
|
|
929
|
-
bool operator<=(const LogMessage& rhs_) const
|
|
930
|
-
{
|
|
931
|
-
return operator<(rhs_) || operator==(rhs_);
|
|
932
|
-
}
|
|
933
|
-
bool operator>(const LogMessage& rhs_) const
|
|
934
|
-
{
|
|
935
|
-
return !operator<(rhs_) && !operator==(rhs_);
|
|
936
|
-
}
|
|
937
|
-
bool operator>=(const LogMessage& rhs_) const
|
|
938
|
-
{
|
|
939
|
-
return !operator<(rhs_);
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
|
-
|
|
943
|
-
/**
|
|
944
|
-
* A sequence of {@link LogMessage}.
|
|
945
|
-
*/
|
|
946
|
-
typedef std::list<LogMessage> LogMessageSeq;
|
|
947
|
-
|
|
948
|
-
/**
|
|
949
|
-
* Thrown when the provided RemoteLogger was previously attached to a LoggerAdmin.
|
|
950
|
-
* \headerfile Ice/Ice.h
|
|
951
|
-
*/
|
|
952
|
-
class ICE_API RemoteLoggerAlreadyAttachedException : public UserException
|
|
953
|
-
{
|
|
954
|
-
public:
|
|
955
|
-
|
|
956
|
-
RemoteLoggerAlreadyAttachedException() {}
|
|
957
|
-
|
|
958
|
-
#ifdef ICE_CPP11_COMPILER
|
|
959
|
-
RemoteLoggerAlreadyAttachedException(const RemoteLoggerAlreadyAttachedException&) = default;
|
|
960
|
-
virtual ~RemoteLoggerAlreadyAttachedException();
|
|
961
|
-
#else
|
|
962
|
-
virtual ~RemoteLoggerAlreadyAttachedException() throw();
|
|
963
|
-
#endif
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* Obtains the Slice type ID of this exception.
|
|
967
|
-
* @return The fully-scoped type ID.
|
|
968
|
-
*/
|
|
969
|
-
virtual ::std::string ice_id() const;
|
|
970
|
-
/**
|
|
971
|
-
* Polymorphically clones this exception.
|
|
972
|
-
* @return A shallow copy of this exception.
|
|
973
|
-
*/
|
|
974
|
-
virtual RemoteLoggerAlreadyAttachedException* ice_clone() const;
|
|
975
|
-
/**
|
|
976
|
-
* Throws this exception.
|
|
977
|
-
*/
|
|
978
|
-
virtual void ice_throw() const;
|
|
979
|
-
|
|
980
|
-
protected:
|
|
981
|
-
|
|
982
|
-
/// \cond STREAM
|
|
983
|
-
virtual void _writeImpl(OutputStream*) const;
|
|
984
|
-
virtual void _readImpl(InputStream*);
|
|
985
|
-
/// \endcond
|
|
986
|
-
};
|
|
987
|
-
|
|
988
|
-
/// \cond INTERNAL
|
|
989
|
-
static RemoteLoggerAlreadyAttachedException _iceS_RemoteLoggerAlreadyAttachedException_init;
|
|
990
|
-
/// \endcond
|
|
991
|
-
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
namespace Ice
|
|
995
|
-
{
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* Base class for asynchronous callback wrapper classes used for calls to
|
|
999
|
-
* IceProxy::Ice::RemoteLogger::begin_init.
|
|
1000
|
-
* Create a wrapper instance by calling ::Ice::newCallback_RemoteLogger_init.
|
|
1001
|
-
*/
|
|
1002
|
-
class Callback_RemoteLogger_init_Base : public virtual ::IceInternal::CallbackBase { };
|
|
1003
|
-
typedef ::IceUtil::Handle< Callback_RemoteLogger_init_Base> Callback_RemoteLogger_initPtr;
|
|
1004
|
-
|
|
1005
|
-
/**
|
|
1006
|
-
* Base class for asynchronous callback wrapper classes used for calls to
|
|
1007
|
-
* IceProxy::Ice::RemoteLogger::begin_log.
|
|
1008
|
-
* Create a wrapper instance by calling ::Ice::newCallback_RemoteLogger_log.
|
|
1009
|
-
*/
|
|
1010
|
-
class Callback_RemoteLogger_log_Base : public virtual ::IceInternal::CallbackBase { };
|
|
1011
|
-
typedef ::IceUtil::Handle< Callback_RemoteLogger_log_Base> Callback_RemoteLogger_logPtr;
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* Base class for asynchronous callback wrapper classes used for calls to
|
|
1015
|
-
* IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
1016
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_attachRemoteLogger.
|
|
1017
|
-
*/
|
|
1018
|
-
class Callback_LoggerAdmin_attachRemoteLogger_Base : public virtual ::IceInternal::CallbackBase { };
|
|
1019
|
-
typedef ::IceUtil::Handle< Callback_LoggerAdmin_attachRemoteLogger_Base> Callback_LoggerAdmin_attachRemoteLoggerPtr;
|
|
1020
|
-
|
|
1021
|
-
/**
|
|
1022
|
-
* Base class for asynchronous callback wrapper classes used for calls to
|
|
1023
|
-
* IceProxy::Ice::LoggerAdmin::begin_detachRemoteLogger.
|
|
1024
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_detachRemoteLogger.
|
|
1025
|
-
*/
|
|
1026
|
-
class Callback_LoggerAdmin_detachRemoteLogger_Base : public virtual ::IceInternal::CallbackBase { };
|
|
1027
|
-
typedef ::IceUtil::Handle< Callback_LoggerAdmin_detachRemoteLogger_Base> Callback_LoggerAdmin_detachRemoteLoggerPtr;
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* Base class for asynchronous callback wrapper classes used for calls to
|
|
1031
|
-
* IceProxy::Ice::LoggerAdmin::begin_getLog.
|
|
1032
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_getLog.
|
|
1033
|
-
*/
|
|
1034
|
-
class Callback_LoggerAdmin_getLog_Base : public virtual ::IceInternal::CallbackBase { };
|
|
1035
|
-
typedef ::IceUtil::Handle< Callback_LoggerAdmin_getLog_Base> Callback_LoggerAdmin_getLogPtr;
|
|
1036
|
-
|
|
369
|
+
};
|
|
1037
370
|
}
|
|
1038
371
|
|
|
1039
|
-
namespace IceProxy
|
|
1040
|
-
{
|
|
1041
|
-
|
|
1042
372
|
namespace Ice
|
|
1043
373
|
{
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
1051
|
-
* @param prefix The prefix of the associated local Logger.
|
|
1052
|
-
* @param logMessages Old log messages generated before "now".
|
|
1053
|
-
* @param context The Context map to send with the invocation.
|
|
1054
|
-
*/
|
|
1055
|
-
ICE_MEMBER(ICE_API) void init(const ::std::string& prefix, const ::Ice::LogMessageSeq& logMessages, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
374
|
+
/// Represents a full log message.
|
|
375
|
+
/// @remarks The Slice compiler generated this struct from Slice struct `::Ice::LogMessage`.
|
|
376
|
+
/// @headerfile Ice/Ice.h
|
|
377
|
+
struct LogMessage
|
|
1056
378
|
{
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
/**
|
|
1061
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
1062
|
-
* @param prefix The prefix of the associated local Logger.
|
|
1063
|
-
* @param logMessages Old log messages generated before "now".
|
|
1064
|
-
* @param context The Context map to send with the invocation.
|
|
1065
|
-
* @return The asynchronous result object for the invocation.
|
|
1066
|
-
*/
|
|
1067
|
-
::Ice::AsyncResultPtr begin_init(const ::std::string& prefix, const ::Ice::LogMessageSeq& logMessages, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
1068
|
-
{
|
|
1069
|
-
return _iceI_begin_init(prefix, logMessages, context, ::IceInternal::dummyCallback, 0);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
1074
|
-
* @param prefix The prefix of the associated local Logger.
|
|
1075
|
-
* @param logMessages Old log messages generated before "now".
|
|
1076
|
-
* @param cb Asynchronous callback object.
|
|
1077
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1078
|
-
* @return The asynchronous result object for the invocation.
|
|
1079
|
-
*/
|
|
1080
|
-
::Ice::AsyncResultPtr begin_init(const ::std::string& prefix, const ::Ice::LogMessageSeq& logMessages, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1081
|
-
{
|
|
1082
|
-
return _iceI_begin_init(prefix, logMessages, ::Ice::noExplicitContext, cb, cookie);
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
/**
|
|
1086
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
1087
|
-
* @param prefix The prefix of the associated local Logger.
|
|
1088
|
-
* @param logMessages Old log messages generated before "now".
|
|
1089
|
-
* @param context The Context map to send with the invocation.
|
|
1090
|
-
* @param cb Asynchronous callback object.
|
|
1091
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1092
|
-
* @return The asynchronous result object for the invocation.
|
|
1093
|
-
*/
|
|
1094
|
-
::Ice::AsyncResultPtr begin_init(const ::std::string& prefix, const ::Ice::LogMessageSeq& logMessages, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1095
|
-
{
|
|
1096
|
-
return _iceI_begin_init(prefix, logMessages, context, cb, cookie);
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
/**
|
|
1100
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
1101
|
-
* @param prefix The prefix of the associated local Logger.
|
|
1102
|
-
* @param logMessages Old log messages generated before "now".
|
|
1103
|
-
* @param cb Asynchronous callback object.
|
|
1104
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1105
|
-
* @return The asynchronous result object for the invocation.
|
|
1106
|
-
*/
|
|
1107
|
-
::Ice::AsyncResultPtr begin_init(const ::std::string& prefix, const ::Ice::LogMessageSeq& logMessages, const ::Ice::Callback_RemoteLogger_initPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1108
|
-
{
|
|
1109
|
-
return _iceI_begin_init(prefix, logMessages, ::Ice::noExplicitContext, cb, cookie);
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
/**
|
|
1113
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
1114
|
-
* @param prefix The prefix of the associated local Logger.
|
|
1115
|
-
* @param logMessages Old log messages generated before "now".
|
|
1116
|
-
* @param context The Context map to send with the invocation.
|
|
1117
|
-
* @param cb Asynchronous callback object.
|
|
1118
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1119
|
-
* @return The asynchronous result object for the invocation.
|
|
1120
|
-
*/
|
|
1121
|
-
::Ice::AsyncResultPtr begin_init(const ::std::string& prefix, const ::Ice::LogMessageSeq& logMessages, const ::Ice::Context& context, const ::Ice::Callback_RemoteLogger_initPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1122
|
-
{
|
|
1123
|
-
return _iceI_begin_init(prefix, logMessages, context, cb, cookie);
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* Completes an invocation of begin_init.
|
|
1128
|
-
* @param result The asynchronous result object for the invocation.
|
|
1129
|
-
*/
|
|
1130
|
-
ICE_MEMBER(ICE_API) void end_init(const ::Ice::AsyncResultPtr& result);
|
|
379
|
+
/// The type of message sent to the ::Ice::RemoteLoggerPrx.
|
|
380
|
+
::Ice::LogMessageType type;
|
|
1131
381
|
|
|
1132
|
-
|
|
382
|
+
/// The date and time when the ::Ice::RemoteLoggerPrx received this message, expressed as the number of
|
|
383
|
+
/// microseconds since the Unix Epoch (00:00:00 UTC on 1 January 1970).
|
|
384
|
+
std::int64_t timestamp;
|
|
1133
385
|
|
|
1134
|
-
|
|
386
|
+
/// For a message of type 'trace', the trace category of this log message; otherwise, the empty string.
|
|
387
|
+
std::string traceCategory;
|
|
1135
388
|
|
|
1136
|
-
|
|
389
|
+
/// The log message itself.
|
|
390
|
+
std::string message;
|
|
1137
391
|
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
{
|
|
1145
|
-
end_log(_iceI_begin_log(message, context, ::IceInternal::dummyCallback, 0, true));
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
1150
|
-
* @param message The message to log.
|
|
1151
|
-
* @param context The Context map to send with the invocation.
|
|
1152
|
-
* @return The asynchronous result object for the invocation.
|
|
1153
|
-
*/
|
|
1154
|
-
::Ice::AsyncResultPtr begin_log(const ::Ice::LogMessage& message, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
1155
|
-
{
|
|
1156
|
-
return _iceI_begin_log(message, context, ::IceInternal::dummyCallback, 0);
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
1161
|
-
* @param message The message to log.
|
|
1162
|
-
* @param cb Asynchronous callback object.
|
|
1163
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1164
|
-
* @return The asynchronous result object for the invocation.
|
|
1165
|
-
*/
|
|
1166
|
-
::Ice::AsyncResultPtr begin_log(const ::Ice::LogMessage& message, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1167
|
-
{
|
|
1168
|
-
return _iceI_begin_log(message, ::Ice::noExplicitContext, cb, cookie);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
/**
|
|
1172
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
1173
|
-
* @param message The message to log.
|
|
1174
|
-
* @param context The Context map to send with the invocation.
|
|
1175
|
-
* @param cb Asynchronous callback object.
|
|
1176
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1177
|
-
* @return The asynchronous result object for the invocation.
|
|
1178
|
-
*/
|
|
1179
|
-
::Ice::AsyncResultPtr begin_log(const ::Ice::LogMessage& message, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1180
|
-
{
|
|
1181
|
-
return _iceI_begin_log(message, context, cb, cookie);
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
1186
|
-
* @param message The message to log.
|
|
1187
|
-
* @param cb Asynchronous callback object.
|
|
1188
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1189
|
-
* @return The asynchronous result object for the invocation.
|
|
1190
|
-
*/
|
|
1191
|
-
::Ice::AsyncResultPtr begin_log(const ::Ice::LogMessage& message, const ::Ice::Callback_RemoteLogger_logPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1192
|
-
{
|
|
1193
|
-
return _iceI_begin_log(message, ::Ice::noExplicitContext, cb, cookie);
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
/**
|
|
1197
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
1198
|
-
* @param message The message to log.
|
|
1199
|
-
* @param context The Context map to send with the invocation.
|
|
1200
|
-
* @param cb Asynchronous callback object.
|
|
1201
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1202
|
-
* @return The asynchronous result object for the invocation.
|
|
1203
|
-
*/
|
|
1204
|
-
::Ice::AsyncResultPtr begin_log(const ::Ice::LogMessage& message, const ::Ice::Context& context, const ::Ice::Callback_RemoteLogger_logPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1205
|
-
{
|
|
1206
|
-
return _iceI_begin_log(message, context, cb, cookie);
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
/**
|
|
1210
|
-
* Completes an invocation of begin_log.
|
|
1211
|
-
* @param result The asynchronous result object for the invocation.
|
|
1212
|
-
*/
|
|
1213
|
-
ICE_MEMBER(ICE_API) void end_log(const ::Ice::AsyncResultPtr& result);
|
|
1214
|
-
|
|
1215
|
-
private:
|
|
1216
|
-
|
|
1217
|
-
ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_log(const ::Ice::LogMessage&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
|
1218
|
-
|
|
1219
|
-
public:
|
|
1220
|
-
|
|
1221
|
-
/**
|
|
1222
|
-
* Obtains the Slice type ID corresponding to this interface.
|
|
1223
|
-
* @return A fully-scoped type ID.
|
|
1224
|
-
*/
|
|
1225
|
-
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
|
392
|
+
/// Creates a tuple with all the fields of this struct.
|
|
393
|
+
/// @return A tuple with all the fields of this struct.
|
|
394
|
+
[[nodiscard]] std::tuple<const ::Ice::LogMessageType&, const std::int64_t&, const std::string&, const std::string&> ice_tuple() const
|
|
395
|
+
{
|
|
396
|
+
return std::tie(type, timestamp, traceCategory, message);
|
|
397
|
+
}
|
|
1226
398
|
|
|
1227
|
-
|
|
1228
|
-
|
|
399
|
+
/// Outputs the name and value of each field of this instance to the stream.
|
|
400
|
+
/// @param os The output stream.
|
|
401
|
+
ICE_API void ice_printFields(std::ostream& os) const;
|
|
402
|
+
};
|
|
1229
403
|
|
|
1230
|
-
|
|
1231
|
-
///
|
|
1232
|
-
|
|
404
|
+
/// Outputs the description of a LogMessage to a stream, including all its fields.
|
|
405
|
+
/// @param os The output stream.
|
|
406
|
+
/// @param value The instance to output.
|
|
407
|
+
/// @return The output stream.
|
|
408
|
+
ICE_API std::ostream& operator<<(std::ostream& os, const LogMessage& value);
|
|
1233
409
|
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
/**
|
|
1239
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
1240
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
1241
|
-
* @param prx A proxy to the remote logger.
|
|
1242
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
1243
|
-
* An empty list means no filtering (send all message types).
|
|
1244
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
1245
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1246
|
-
* An empty list means no filtering (send all trace categories).
|
|
1247
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
1248
|
-
* to init. A negative value requests all messages available.
|
|
1249
|
-
* @param context The Context map to send with the invocation.
|
|
1250
|
-
* @throws Ice::RemoteLoggerAlreadyAttachedException Raised if this remote logger is already
|
|
1251
|
-
* attached to this admin object.
|
|
1252
|
-
*/
|
|
1253
|
-
ICE_MEMBER(ICE_API) void attachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
1254
|
-
{
|
|
1255
|
-
end_attachRemoteLogger(_iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, ::IceInternal::dummyCallback, 0, true));
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
/**
|
|
1259
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
1260
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
1261
|
-
* @param prx A proxy to the remote logger.
|
|
1262
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
1263
|
-
* An empty list means no filtering (send all message types).
|
|
1264
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
1265
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1266
|
-
* An empty list means no filtering (send all trace categories).
|
|
1267
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
1268
|
-
* to init. A negative value requests all messages available.
|
|
1269
|
-
* @param context The Context map to send with the invocation.
|
|
1270
|
-
* @return The asynchronous result object for the invocation.
|
|
1271
|
-
*/
|
|
1272
|
-
::Ice::AsyncResultPtr begin_attachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
1273
|
-
{
|
|
1274
|
-
return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, ::IceInternal::dummyCallback, 0);
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
/**
|
|
1278
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
1279
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
1280
|
-
* @param prx A proxy to the remote logger.
|
|
1281
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
1282
|
-
* An empty list means no filtering (send all message types).
|
|
1283
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
1284
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1285
|
-
* An empty list means no filtering (send all trace categories).
|
|
1286
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
1287
|
-
* to init. A negative value requests all messages available.
|
|
1288
|
-
* @param cb Asynchronous callback object.
|
|
1289
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1290
|
-
* @return The asynchronous result object for the invocation.
|
|
1291
|
-
*/
|
|
1292
|
-
::Ice::AsyncResultPtr begin_attachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1293
|
-
{
|
|
1294
|
-
return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, ::Ice::noExplicitContext, cb, cookie);
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
/**
|
|
1298
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
1299
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
1300
|
-
* @param prx A proxy to the remote logger.
|
|
1301
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
1302
|
-
* An empty list means no filtering (send all message types).
|
|
1303
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
1304
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1305
|
-
* An empty list means no filtering (send all trace categories).
|
|
1306
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
1307
|
-
* to init. A negative value requests all messages available.
|
|
1308
|
-
* @param context The Context map to send with the invocation.
|
|
1309
|
-
* @param cb Asynchronous callback object.
|
|
1310
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1311
|
-
* @return The asynchronous result object for the invocation.
|
|
1312
|
-
*/
|
|
1313
|
-
::Ice::AsyncResultPtr begin_attachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1314
|
-
{
|
|
1315
|
-
return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, cb, cookie);
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
/**
|
|
1319
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
1320
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
1321
|
-
* @param prx A proxy to the remote logger.
|
|
1322
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
1323
|
-
* An empty list means no filtering (send all message types).
|
|
1324
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
1325
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1326
|
-
* An empty list means no filtering (send all trace categories).
|
|
1327
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
1328
|
-
* to init. A negative value requests all messages available.
|
|
1329
|
-
* @param cb Asynchronous callback object.
|
|
1330
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1331
|
-
* @return The asynchronous result object for the invocation.
|
|
1332
|
-
*/
|
|
1333
|
-
::Ice::AsyncResultPtr begin_attachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Callback_LoggerAdmin_attachRemoteLoggerPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1334
|
-
{
|
|
1335
|
-
return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, ::Ice::noExplicitContext, cb, cookie);
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
1340
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
1341
|
-
* @param prx A proxy to the remote logger.
|
|
1342
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
1343
|
-
* An empty list means no filtering (send all message types).
|
|
1344
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
1345
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1346
|
-
* An empty list means no filtering (send all trace categories).
|
|
1347
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
1348
|
-
* to init. A negative value requests all messages available.
|
|
1349
|
-
* @param context The Context map to send with the invocation.
|
|
1350
|
-
* @param cb Asynchronous callback object.
|
|
1351
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1352
|
-
* @return The asynchronous result object for the invocation.
|
|
1353
|
-
*/
|
|
1354
|
-
::Ice::AsyncResultPtr begin_attachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Context& context, const ::Ice::Callback_LoggerAdmin_attachRemoteLoggerPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1355
|
-
{
|
|
1356
|
-
return _iceI_begin_attachRemoteLogger(prx, messageTypes, traceCategories, messageMax, context, cb, cookie);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
* Completes an invocation of begin_attachRemoteLogger.
|
|
1361
|
-
* @param result The asynchronous result object for the invocation.
|
|
1362
|
-
* @throws Ice::RemoteLoggerAlreadyAttachedException Raised if this remote logger is already
|
|
1363
|
-
* attached to this admin object.
|
|
1364
|
-
*/
|
|
1365
|
-
ICE_MEMBER(ICE_API) void end_attachRemoteLogger(const ::Ice::AsyncResultPtr& result);
|
|
1366
|
-
|
|
1367
|
-
private:
|
|
1368
|
-
|
|
1369
|
-
ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_attachRemoteLogger(const ::Ice::RemoteLoggerPrx&, const ::Ice::LogMessageTypeSeq&, const ::Ice::StringSeq&, ::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
|
1370
|
-
|
|
1371
|
-
public:
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
1375
|
-
* @param prx A proxy to the remote logger.
|
|
1376
|
-
* @param context The Context map to send with the invocation.
|
|
1377
|
-
* @return True if the provided remote logger proxy was detached, and false otherwise.
|
|
1378
|
-
*/
|
|
1379
|
-
ICE_MEMBER(ICE_API) bool detachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
1380
|
-
{
|
|
1381
|
-
return end_detachRemoteLogger(_iceI_begin_detachRemoteLogger(prx, context, ::IceInternal::dummyCallback, 0, true));
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
/**
|
|
1385
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
1386
|
-
* @param prx A proxy to the remote logger.
|
|
1387
|
-
* @param context The Context map to send with the invocation.
|
|
1388
|
-
* @return The asynchronous result object for the invocation.
|
|
1389
|
-
*/
|
|
1390
|
-
::Ice::AsyncResultPtr begin_detachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
1391
|
-
{
|
|
1392
|
-
return _iceI_begin_detachRemoteLogger(prx, context, ::IceInternal::dummyCallback, 0);
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
/**
|
|
1396
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
1397
|
-
* @param prx A proxy to the remote logger.
|
|
1398
|
-
* @param cb Asynchronous callback object.
|
|
1399
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1400
|
-
* @return The asynchronous result object for the invocation.
|
|
1401
|
-
*/
|
|
1402
|
-
::Ice::AsyncResultPtr begin_detachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1403
|
-
{
|
|
1404
|
-
return _iceI_begin_detachRemoteLogger(prx, ::Ice::noExplicitContext, cb, cookie);
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
/**
|
|
1408
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
1409
|
-
* @param prx A proxy to the remote logger.
|
|
1410
|
-
* @param context The Context map to send with the invocation.
|
|
1411
|
-
* @param cb Asynchronous callback object.
|
|
1412
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1413
|
-
* @return The asynchronous result object for the invocation.
|
|
1414
|
-
*/
|
|
1415
|
-
::Ice::AsyncResultPtr begin_detachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1416
|
-
{
|
|
1417
|
-
return _iceI_begin_detachRemoteLogger(prx, context, cb, cookie);
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
/**
|
|
1421
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
1422
|
-
* @param prx A proxy to the remote logger.
|
|
1423
|
-
* @param cb Asynchronous callback object.
|
|
1424
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1425
|
-
* @return The asynchronous result object for the invocation.
|
|
1426
|
-
*/
|
|
1427
|
-
::Ice::AsyncResultPtr begin_detachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::Callback_LoggerAdmin_detachRemoteLoggerPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1428
|
-
{
|
|
1429
|
-
return _iceI_begin_detachRemoteLogger(prx, ::Ice::noExplicitContext, cb, cookie);
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
/**
|
|
1433
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
1434
|
-
* @param prx A proxy to the remote logger.
|
|
1435
|
-
* @param context The Context map to send with the invocation.
|
|
1436
|
-
* @param cb Asynchronous callback object.
|
|
1437
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1438
|
-
* @return The asynchronous result object for the invocation.
|
|
1439
|
-
*/
|
|
1440
|
-
::Ice::AsyncResultPtr begin_detachRemoteLogger(const ::Ice::RemoteLoggerPrx& prx, const ::Ice::Context& context, const ::Ice::Callback_LoggerAdmin_detachRemoteLoggerPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1441
|
-
{
|
|
1442
|
-
return _iceI_begin_detachRemoteLogger(prx, context, cb, cookie);
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
/**
|
|
1446
|
-
* Completes an invocation of begin_detachRemoteLogger.
|
|
1447
|
-
* @param result The asynchronous result object for the invocation.
|
|
1448
|
-
* @return True if the provided remote logger proxy was detached, and false otherwise.
|
|
1449
|
-
*/
|
|
1450
|
-
ICE_MEMBER(ICE_API) bool end_detachRemoteLogger(const ::Ice::AsyncResultPtr& result);
|
|
1451
|
-
|
|
1452
|
-
private:
|
|
1453
|
-
|
|
1454
|
-
ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_detachRemoteLogger(const ::Ice::RemoteLoggerPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
|
1455
|
-
|
|
1456
|
-
public:
|
|
1457
|
-
|
|
1458
|
-
/**
|
|
1459
|
-
* Retrieves log messages recently logged.
|
|
1460
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
1461
|
-
* An empty list means no filtering (send all message types).
|
|
1462
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
1463
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1464
|
-
* An empty list means no filtering (send all trace categories).
|
|
1465
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
1466
|
-
* A negative value requests all messages available.
|
|
1467
|
-
* @param prefix The prefix of the associated local logger.
|
|
1468
|
-
* @param context The Context map to send with the invocation.
|
|
1469
|
-
* @return The Log messages.
|
|
1470
|
-
*/
|
|
1471
|
-
ICE_MEMBER(ICE_API) ::Ice::LogMessageSeq getLog(const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, ::std::string& prefix, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
1472
|
-
{
|
|
1473
|
-
return end_getLog(prefix, _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, ::IceInternal::dummyCallback, 0, true));
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
/**
|
|
1477
|
-
* Retrieves log messages recently logged.
|
|
1478
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
1479
|
-
* An empty list means no filtering (send all message types).
|
|
1480
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
1481
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1482
|
-
* An empty list means no filtering (send all trace categories).
|
|
1483
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
1484
|
-
* A negative value requests all messages available.
|
|
1485
|
-
* @param context The Context map to send with the invocation.
|
|
1486
|
-
* @return The asynchronous result object for the invocation.
|
|
1487
|
-
*/
|
|
1488
|
-
::Ice::AsyncResultPtr begin_getLog(const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
|
1489
|
-
{
|
|
1490
|
-
return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, ::IceInternal::dummyCallback, 0);
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* Retrieves log messages recently logged.
|
|
1495
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
1496
|
-
* An empty list means no filtering (send all message types).
|
|
1497
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
1498
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1499
|
-
* An empty list means no filtering (send all trace categories).
|
|
1500
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
1501
|
-
* A negative value requests all messages available.
|
|
1502
|
-
* @param cb Asynchronous callback object.
|
|
1503
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1504
|
-
* @return The asynchronous result object for the invocation.
|
|
1505
|
-
*/
|
|
1506
|
-
::Ice::AsyncResultPtr begin_getLog(const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1507
|
-
{
|
|
1508
|
-
return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, ::Ice::noExplicitContext, cb, cookie);
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
/**
|
|
1512
|
-
* Retrieves log messages recently logged.
|
|
1513
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
1514
|
-
* An empty list means no filtering (send all message types).
|
|
1515
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
1516
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1517
|
-
* An empty list means no filtering (send all trace categories).
|
|
1518
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
1519
|
-
* A negative value requests all messages available.
|
|
1520
|
-
* @param context The Context map to send with the invocation.
|
|
1521
|
-
* @param cb Asynchronous callback object.
|
|
1522
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1523
|
-
* @return The asynchronous result object for the invocation.
|
|
1524
|
-
*/
|
|
1525
|
-
::Ice::AsyncResultPtr begin_getLog(const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1526
|
-
{
|
|
1527
|
-
return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, cb, cookie);
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
/**
|
|
1531
|
-
* Retrieves log messages recently logged.
|
|
1532
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
1533
|
-
* An empty list means no filtering (send all message types).
|
|
1534
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
1535
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1536
|
-
* An empty list means no filtering (send all trace categories).
|
|
1537
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
1538
|
-
* A negative value requests all messages available.
|
|
1539
|
-
* @param cb Asynchronous callback object.
|
|
1540
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1541
|
-
* @return The asynchronous result object for the invocation.
|
|
1542
|
-
*/
|
|
1543
|
-
::Ice::AsyncResultPtr begin_getLog(const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Callback_LoggerAdmin_getLogPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
410
|
+
/// Thrown when the provided RemoteLoggerPrx was previously attached to a LoggerAdminPrx.
|
|
411
|
+
/// @remarks The Slice compiler generated this exception class from Slice exception `::Ice::RemoteLoggerAlreadyAttachedException`.
|
|
412
|
+
/// @headerfile Ice/Ice.h
|
|
413
|
+
class ICE_API RemoteLoggerAlreadyAttachedException : public Ice::UserException
|
|
1544
414
|
{
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
* Retrieves log messages recently logged.
|
|
1550
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
1551
|
-
* An empty list means no filtering (send all message types).
|
|
1552
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
1553
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1554
|
-
* An empty list means no filtering (send all trace categories).
|
|
1555
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
1556
|
-
* A negative value requests all messages available.
|
|
1557
|
-
* @param context The Context map to send with the invocation.
|
|
1558
|
-
* @param cb Asynchronous callback object.
|
|
1559
|
-
* @param cookie User-defined data to associate with the invocation.
|
|
1560
|
-
* @return The asynchronous result object for the invocation.
|
|
1561
|
-
*/
|
|
1562
|
-
::Ice::AsyncResultPtr begin_getLog(const ::Ice::LogMessageTypeSeq& messageTypes, const ::Ice::StringSeq& traceCategories, ::Ice::Int messageMax, const ::Ice::Context& context, const ::Ice::Callback_LoggerAdmin_getLogPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
|
1563
|
-
{
|
|
1564
|
-
return _iceI_begin_getLog(messageTypes, traceCategories, messageMax, context, cb, cookie);
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
/**
|
|
1568
|
-
* Completes an invocation of begin_getLog.
|
|
1569
|
-
* @param prefix The prefix of the associated local logger.
|
|
1570
|
-
* @param result The asynchronous result object for the invocation.
|
|
1571
|
-
* @return The Log messages.
|
|
1572
|
-
*/
|
|
1573
|
-
ICE_MEMBER(ICE_API) ::Ice::LogMessageSeq end_getLog(::std::string& prefix, const ::Ice::AsyncResultPtr& result);
|
|
1574
|
-
/// \cond INTERNAL
|
|
1575
|
-
|
|
1576
|
-
ICE_MEMBER(ICE_API) void _iceI_end_getLog(::std::string& iceP_prefix, ::Ice::LogMessageSeq& ret, const ::Ice::AsyncResultPtr&);
|
|
1577
|
-
/// \endcond
|
|
1578
|
-
|
|
1579
|
-
private:
|
|
415
|
+
public:
|
|
416
|
+
/// Gets the type ID of the associated Slice exception.
|
|
417
|
+
/// @return The string `"::Ice::RemoteLoggerAlreadyAttachedException"`.
|
|
418
|
+
static const char* ice_staticId() noexcept;
|
|
1580
419
|
|
|
1581
|
-
|
|
420
|
+
[[nodiscard]] const char* ice_id() const noexcept override;
|
|
1582
421
|
|
|
1583
|
-
|
|
422
|
+
void ice_throw() const override;
|
|
1584
423
|
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
*/
|
|
1589
|
-
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
|
424
|
+
protected:
|
|
425
|
+
/// @private
|
|
426
|
+
void _writeImpl(Ice::OutputStream*) const override;
|
|
1590
427
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
ICE_MEMBER(ICE_API) virtual ::IceProxy::Ice::Object* _newInstance() const;
|
|
1595
|
-
/// \endcond
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
}
|
|
428
|
+
/// @private
|
|
429
|
+
void _readImpl(Ice::InputStream*) override;
|
|
430
|
+
};
|
|
1599
431
|
|
|
432
|
+
/// @cond INTERNAL
|
|
433
|
+
using Ice::Tuple::operator<;
|
|
434
|
+
using Ice::Tuple::operator<=;
|
|
435
|
+
using Ice::Tuple::operator>;
|
|
436
|
+
using Ice::Tuple::operator>=;
|
|
437
|
+
using Ice::Tuple::operator==;
|
|
438
|
+
using Ice::Tuple::operator!=;
|
|
439
|
+
/// @endcond
|
|
1600
440
|
}
|
|
1601
441
|
|
|
1602
442
|
namespace Ice
|
|
1603
443
|
{
|
|
444
|
+
/// Represents an Ice object that accepts log messages. It's called by the implementation of LoggerAdminPrx.
|
|
445
|
+
/// @remarks The Slice compiler generated this skeleton class from Slice interface `::Ice::RemoteLogger`.
|
|
446
|
+
/// @headerfile Ice/Ice.h
|
|
447
|
+
class ICE_API RemoteLogger : public virtual Ice::Object
|
|
448
|
+
{
|
|
449
|
+
public:
|
|
450
|
+
/// The associated proxy type.
|
|
451
|
+
using ProxyType = RemoteLoggerPrx;
|
|
1604
452
|
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
* \headerfile Ice/Ice.h
|
|
1610
|
-
*/
|
|
1611
|
-
class ICE_API RemoteLogger : public virtual Object
|
|
1612
|
-
{
|
|
1613
|
-
public:
|
|
453
|
+
/// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
|
|
454
|
+
/// @param request The incoming request.
|
|
455
|
+
/// @param sendResponse The callback to send the response.
|
|
456
|
+
void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
|
|
1614
457
|
|
|
1615
|
-
|
|
1616
|
-
typedef RemoteLoggerPtr PointerType;
|
|
458
|
+
[[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
|
|
1617
459
|
|
|
1618
|
-
|
|
460
|
+
[[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
|
|
1619
461
|
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
462
|
+
/// Attaches a remote logger to the local logger.
|
|
463
|
+
/// @param prefix The prefix of the associated local Logger.
|
|
464
|
+
/// @param logMessages Old log messages generated before "now".
|
|
465
|
+
/// @param current The Current object of the incoming request.
|
|
466
|
+
virtual void init(std::string prefix, LogMessageSeq logMessages, const Ice::Current& current) = 0;
|
|
1625
467
|
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
* @param id The fully-scoped Slice type ID.
|
|
1629
|
-
* @param current The Current object for the invocation.
|
|
1630
|
-
* @return True if this object supports the interface, false, otherwise.
|
|
1631
|
-
*/
|
|
1632
|
-
virtual bool ice_isA(const ::std::string& id, const Current& current = emptyCurrent) const;
|
|
1633
|
-
|
|
1634
|
-
/**
|
|
1635
|
-
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
|
1636
|
-
* @param current The Current object for the invocation.
|
|
1637
|
-
* @return A list of fully-scoped type IDs.
|
|
1638
|
-
*/
|
|
1639
|
-
virtual ::std::vector< ::std::string> ice_ids(const Current& current = emptyCurrent) const;
|
|
1640
|
-
|
|
1641
|
-
/**
|
|
1642
|
-
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
|
1643
|
-
* @param current The Current object for the invocation.
|
|
1644
|
-
* @return A fully-scoped type ID.
|
|
1645
|
-
*/
|
|
1646
|
-
virtual const ::std::string& ice_id(const Current& current = emptyCurrent) const;
|
|
1647
|
-
|
|
1648
|
-
/**
|
|
1649
|
-
* Obtains the Slice type ID corresponding to this class.
|
|
1650
|
-
* @return A fully-scoped type ID.
|
|
1651
|
-
*/
|
|
1652
|
-
static const ::std::string& ice_staticId();
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* init is called by attachRemoteLogger when a RemoteLogger proxy is attached.
|
|
1656
|
-
* @param prefix The prefix of the associated local Logger.
|
|
1657
|
-
* @param logMessages Old log messages generated before "now".
|
|
1658
|
-
* @param current The Current object for the invocation.
|
|
1659
|
-
*/
|
|
1660
|
-
virtual void init(const ::std::string& prefix, const LogMessageSeq& logMessages, const Current& current = emptyCurrent) = 0;
|
|
1661
|
-
/// \cond INTERNAL
|
|
1662
|
-
bool _iceD_init(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
1663
|
-
/// \endcond
|
|
1664
|
-
|
|
1665
|
-
/**
|
|
1666
|
-
* Log a LogMessage. Note that log may be called by LoggerAdmin before init.
|
|
1667
|
-
* @param message The message to log.
|
|
1668
|
-
* @param current The Current object for the invocation.
|
|
1669
|
-
*/
|
|
1670
|
-
virtual void log(const LogMessage& message, const Current& current = emptyCurrent) = 0;
|
|
1671
|
-
/// \cond INTERNAL
|
|
1672
|
-
bool _iceD_log(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
1673
|
-
/// \endcond
|
|
1674
|
-
|
|
1675
|
-
/// \cond INTERNAL
|
|
1676
|
-
virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&);
|
|
1677
|
-
/// \endcond
|
|
1678
|
-
|
|
1679
|
-
protected:
|
|
1680
|
-
|
|
1681
|
-
/// \cond STREAM
|
|
1682
|
-
virtual void _iceWriteImpl(OutputStream*) const;
|
|
1683
|
-
virtual void _iceReadImpl(InputStream*);
|
|
1684
|
-
/// \endcond
|
|
1685
|
-
};
|
|
1686
|
-
|
|
1687
|
-
/// \cond INTERNAL
|
|
1688
|
-
inline bool operator==(const RemoteLogger& lhs, const RemoteLogger& rhs)
|
|
1689
|
-
{
|
|
1690
|
-
return static_cast<const Object&>(lhs) == static_cast<const Object&>(rhs);
|
|
1691
|
-
}
|
|
468
|
+
/// @private
|
|
469
|
+
void _iceD_init(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
1692
470
|
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
/**
|
|
1700
|
-
* The interface of the admin object that allows an Ice application the attach its
|
|
1701
|
-
* {@link RemoteLogger} to the {@link Logger} of this admin object's Ice communicator.
|
|
1702
|
-
* \headerfile Ice/Ice.h
|
|
1703
|
-
*/
|
|
1704
|
-
class ICE_API LoggerAdmin : public virtual Object
|
|
1705
|
-
{
|
|
1706
|
-
public:
|
|
471
|
+
/// Logs a LogMessage.
|
|
472
|
+
/// @param message The message to log.
|
|
473
|
+
/// @param current The Current object of the incoming request.
|
|
474
|
+
/// @remarks ::Ice::RemoteLoggerPrx::log may be called by ::Ice::LoggerAdminPrx before ::Ice::RemoteLoggerPrx::init.
|
|
475
|
+
virtual void log(LogMessage message, const Ice::Current& current) = 0;
|
|
1707
476
|
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
virtual ~LoggerAdmin();
|
|
1712
|
-
|
|
1713
|
-
#ifdef ICE_CPP11_COMPILER
|
|
1714
|
-
LoggerAdmin() = default;
|
|
1715
|
-
LoggerAdmin(const LoggerAdmin&) = default;
|
|
1716
|
-
LoggerAdmin& operator=(const LoggerAdmin&) = default;
|
|
1717
|
-
#endif
|
|
477
|
+
/// @private
|
|
478
|
+
void _iceD_log(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
1718
479
|
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
* @return True if this object supports the interface, false, otherwise.
|
|
1724
|
-
*/
|
|
1725
|
-
virtual bool ice_isA(const ::std::string& id, const Current& current = emptyCurrent) const;
|
|
1726
|
-
|
|
1727
|
-
/**
|
|
1728
|
-
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
|
1729
|
-
* @param current The Current object for the invocation.
|
|
1730
|
-
* @return A list of fully-scoped type IDs.
|
|
1731
|
-
*/
|
|
1732
|
-
virtual ::std::vector< ::std::string> ice_ids(const Current& current = emptyCurrent) const;
|
|
1733
|
-
|
|
1734
|
-
/**
|
|
1735
|
-
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
|
1736
|
-
* @param current The Current object for the invocation.
|
|
1737
|
-
* @return A fully-scoped type ID.
|
|
1738
|
-
*/
|
|
1739
|
-
virtual const ::std::string& ice_id(const Current& current = emptyCurrent) const;
|
|
1740
|
-
|
|
1741
|
-
/**
|
|
1742
|
-
* Obtains the Slice type ID corresponding to this class.
|
|
1743
|
-
* @return A fully-scoped type ID.
|
|
1744
|
-
*/
|
|
1745
|
-
static const ::std::string& ice_staticId();
|
|
1746
|
-
|
|
1747
|
-
/**
|
|
1748
|
-
* Attaches a RemoteLogger object to the local logger.
|
|
1749
|
-
* attachRemoteLogger calls init on the provided RemoteLogger proxy.
|
|
1750
|
-
* @param prx A proxy to the remote logger.
|
|
1751
|
-
* @param messageTypes The list of message types that the remote logger wishes to receive.
|
|
1752
|
-
* An empty list means no filtering (send all message types).
|
|
1753
|
-
* @param traceCategories The categories of traces that the remote logger wishes to receive.
|
|
1754
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1755
|
-
* An empty list means no filtering (send all trace categories).
|
|
1756
|
-
* @param messageMax The maximum number of log messages (of all types) to be provided
|
|
1757
|
-
* to init. A negative value requests all messages available.
|
|
1758
|
-
* @param current The Current object for the invocation.
|
|
1759
|
-
* @throws Ice::RemoteLoggerAlreadyAttachedException Raised if this remote logger is already
|
|
1760
|
-
* attached to this admin object.
|
|
1761
|
-
*/
|
|
1762
|
-
virtual void attachRemoteLogger(const RemoteLoggerPrx& prx, const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, Int messageMax, const Current& current = emptyCurrent) = 0;
|
|
1763
|
-
/// \cond INTERNAL
|
|
1764
|
-
bool _iceD_attachRemoteLogger(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
1765
|
-
/// \endcond
|
|
1766
|
-
|
|
1767
|
-
/**
|
|
1768
|
-
* Detaches a RemoteLogger object from the local logger.
|
|
1769
|
-
* @param prx A proxy to the remote logger.
|
|
1770
|
-
* @param current The Current object for the invocation.
|
|
1771
|
-
* @return True if the provided remote logger proxy was detached, and false otherwise.
|
|
1772
|
-
*/
|
|
1773
|
-
virtual bool detachRemoteLogger(const RemoteLoggerPrx& prx, const Current& current = emptyCurrent) = 0;
|
|
1774
|
-
/// \cond INTERNAL
|
|
1775
|
-
bool _iceD_detachRemoteLogger(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
1776
|
-
/// \endcond
|
|
1777
|
-
|
|
1778
|
-
/**
|
|
1779
|
-
* Retrieves log messages recently logged.
|
|
1780
|
-
* @param messageTypes The list of message types that the caller wishes to receive.
|
|
1781
|
-
* An empty list means no filtering (send all message types).
|
|
1782
|
-
* @param traceCategories The categories of traces that caller wish to receive.
|
|
1783
|
-
* This parameter is ignored if messageTypes is not empty and does not include trace.
|
|
1784
|
-
* An empty list means no filtering (send all trace categories).
|
|
1785
|
-
* @param messageMax The maximum number of log messages (of all types) to be returned.
|
|
1786
|
-
* A negative value requests all messages available.
|
|
1787
|
-
* @param prefix The prefix of the associated local logger.
|
|
1788
|
-
* @param current The Current object for the invocation.
|
|
1789
|
-
* @return The Log messages.
|
|
1790
|
-
*/
|
|
1791
|
-
virtual LogMessageSeq getLog(const LogMessageTypeSeq& messageTypes, const StringSeq& traceCategories, Int messageMax, ::std::string& prefix, const Current& current = emptyCurrent) = 0;
|
|
1792
|
-
/// \cond INTERNAL
|
|
1793
|
-
bool _iceD_getLog(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
1794
|
-
/// \endcond
|
|
1795
|
-
|
|
1796
|
-
/// \cond INTERNAL
|
|
1797
|
-
virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&);
|
|
1798
|
-
/// \endcond
|
|
1799
|
-
|
|
1800
|
-
protected:
|
|
1801
|
-
|
|
1802
|
-
/// \cond STREAM
|
|
1803
|
-
virtual void _iceWriteImpl(OutputStream*) const;
|
|
1804
|
-
virtual void _iceReadImpl(InputStream*);
|
|
1805
|
-
/// \endcond
|
|
1806
|
-
};
|
|
1807
|
-
|
|
1808
|
-
/// \cond INTERNAL
|
|
1809
|
-
inline bool operator==(const LoggerAdmin& lhs, const LoggerAdmin& rhs)
|
|
1810
|
-
{
|
|
1811
|
-
return static_cast<const Object&>(lhs) == static_cast<const Object&>(rhs);
|
|
1812
|
-
}
|
|
480
|
+
/// Gets the type ID of the associated Slice interface.
|
|
481
|
+
/// @return The string `"::Ice::RemoteLogger"`.
|
|
482
|
+
static const char* ice_staticId() noexcept;
|
|
483
|
+
};
|
|
1813
484
|
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
///
|
|
485
|
+
/// A shared pointer to a RemoteLogger.
|
|
486
|
+
using RemoteLoggerPtr = std::shared_ptr<RemoteLogger>;
|
|
487
|
+
|
|
488
|
+
/// Represents the admin facet that allows an Ice application to attach its RemoteLoggerPrx to the local
|
|
489
|
+
/// logger of an Ice communicator.
|
|
490
|
+
/// @remarks The Slice compiler generated this skeleton class from Slice interface `::Ice::LoggerAdmin`.
|
|
491
|
+
/// @headerfile Ice/Ice.h
|
|
492
|
+
class ICE_API LoggerAdmin : public virtual Ice::Object
|
|
493
|
+
{
|
|
494
|
+
public:
|
|
495
|
+
/// The associated proxy type.
|
|
496
|
+
using ProxyType = LoggerAdminPrx;
|
|
497
|
+
|
|
498
|
+
/// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
|
|
499
|
+
/// @param request The incoming request.
|
|
500
|
+
/// @param sendResponse The callback to send the response.
|
|
501
|
+
void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
|
|
502
|
+
|
|
503
|
+
[[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
|
|
504
|
+
|
|
505
|
+
[[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
|
|
506
|
+
|
|
507
|
+
/// Attaches a ::Ice::RemoteLoggerPrx object to the local logger. This operation calls ::Ice::RemoteLoggerPrx::init
|
|
508
|
+
/// on @p prx.
|
|
509
|
+
/// @param prx A proxy to the remote logger.
|
|
510
|
+
/// @param messageTypes The list of message types that the remote logger wishes to receive. An empty list means
|
|
511
|
+
/// no filtering (send all message types).
|
|
512
|
+
/// @param traceCategories The categories of traces that the remote logger wishes to receive. This parameter is
|
|
513
|
+
/// ignored if @p messageTypes is not empty and does not include trace. An empty list means no filtering
|
|
514
|
+
/// (send all trace categories).
|
|
515
|
+
/// @param messageMax The maximum number of log messages (of all types) to be provided to
|
|
516
|
+
/// ::Ice::RemoteLoggerPrx::init. A negative value requests all messages available.
|
|
517
|
+
/// @param current The Current object of the incoming request.
|
|
518
|
+
/// @throws Ice::RemoteLoggerAlreadyAttachedException Thrown if this remote logger is already attached to this admin
|
|
519
|
+
/// object.
|
|
520
|
+
virtual void attachRemoteLogger(std::optional<RemoteLoggerPrx> prx, LogMessageTypeSeq messageTypes, StringSeq traceCategories, std::int32_t messageMax, const Ice::Current& current) = 0;
|
|
521
|
+
|
|
522
|
+
/// @private
|
|
523
|
+
void _iceD_attachRemoteLogger(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
524
|
+
|
|
525
|
+
/// Detaches a ::Ice::RemoteLoggerPrx object from the local logger.
|
|
526
|
+
/// @param prx A proxy to the remote logger.
|
|
527
|
+
/// @param current The Current object of the incoming request.
|
|
528
|
+
/// @return `true` if the provided remote logger proxy was detached, and `false` otherwise.
|
|
529
|
+
virtual bool detachRemoteLogger(std::optional<RemoteLoggerPrx> prx, const Ice::Current& current) = 0;
|
|
530
|
+
|
|
531
|
+
/// @private
|
|
532
|
+
void _iceD_detachRemoteLogger(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
533
|
+
|
|
534
|
+
/// Retrieves recently logged log messages.
|
|
535
|
+
/// @param messageTypes The list of message types that the caller wishes to receive. An empty list means no
|
|
536
|
+
/// filtering (send all message types).
|
|
537
|
+
/// @param traceCategories The categories of traces that caller wish to receive. This parameter is ignored if
|
|
538
|
+
/// @p messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace
|
|
539
|
+
/// categories).
|
|
540
|
+
/// @param messageMax The maximum number of log messages (of all types) to be returned. A negative value
|
|
541
|
+
/// requests all messages available.
|
|
542
|
+
/// @param[out] prefix The prefix of the associated local logger.
|
|
543
|
+
/// @param current The Current object of the incoming request.
|
|
544
|
+
/// @return The Log messages.
|
|
545
|
+
virtual LogMessageSeq getLog(LogMessageTypeSeq messageTypes, StringSeq traceCategories, std::int32_t messageMax, std::string& prefix, const Ice::Current& current) = 0;
|
|
546
|
+
|
|
547
|
+
/// @private
|
|
548
|
+
void _iceD_getLog(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
549
|
+
|
|
550
|
+
/// Gets the type ID of the associated Slice interface.
|
|
551
|
+
/// @return The string `"::Ice::LoggerAdmin"`.
|
|
552
|
+
static const char* ice_staticId() noexcept;
|
|
553
|
+
};
|
|
1819
554
|
|
|
555
|
+
/// A shared pointer to a LoggerAdmin.
|
|
556
|
+
using LoggerAdminPtr = std::shared_ptr<LoggerAdmin>;
|
|
1820
557
|
}
|
|
1821
558
|
|
|
1822
|
-
/// \cond STREAM
|
|
1823
559
|
namespace Ice
|
|
1824
560
|
{
|
|
561
|
+
/// Represents an Ice object that accepts log messages. It's called by the implementation of LoggerAdminPrx.
|
|
562
|
+
/// @remarks The Slice compiler generated this skeleton class from Slice interface `::Ice::RemoteLogger`.
|
|
563
|
+
/// @headerfile Ice/Ice.h
|
|
564
|
+
class ICE_API AsyncRemoteLogger : public virtual Ice::Object
|
|
565
|
+
{
|
|
566
|
+
public:
|
|
567
|
+
/// The associated proxy type.
|
|
568
|
+
using ProxyType = RemoteLoggerPrx;
|
|
569
|
+
|
|
570
|
+
/// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
|
|
571
|
+
/// @param request The incoming request.
|
|
572
|
+
/// @param sendResponse The callback to send the response.
|
|
573
|
+
void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
|
|
574
|
+
|
|
575
|
+
[[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
|
|
576
|
+
|
|
577
|
+
[[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
|
|
578
|
+
|
|
579
|
+
/// Attaches a remote logger to the local logger.
|
|
580
|
+
/// @param prefix The prefix of the associated local Logger.
|
|
581
|
+
/// @param logMessages Old log messages generated before "now".
|
|
582
|
+
/// @param response The response callback.
|
|
583
|
+
/// @param exception The exception callback.
|
|
584
|
+
/// @param current The Current object of the incoming request.
|
|
585
|
+
virtual void initAsync(std::string prefix, LogMessageSeq logMessages, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
|
|
586
|
+
|
|
587
|
+
/// @private
|
|
588
|
+
void _iceD_init(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
589
|
+
|
|
590
|
+
/// Logs a LogMessage.
|
|
591
|
+
/// @param message The message to log.
|
|
592
|
+
/// @param response The response callback.
|
|
593
|
+
/// @param exception The exception callback.
|
|
594
|
+
/// @param current The Current object of the incoming request.
|
|
595
|
+
/// @remarks ::Ice::RemoteLoggerPrx::log may be called by ::Ice::LoggerAdminPrx before ::Ice::RemoteLoggerPrx::init.
|
|
596
|
+
virtual void logAsync(LogMessage message, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
|
|
597
|
+
|
|
598
|
+
/// @private
|
|
599
|
+
void _iceD_log(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
600
|
+
|
|
601
|
+
/// Gets the type ID of the associated Slice interface.
|
|
602
|
+
/// @return The string `"::Ice::RemoteLogger"`.
|
|
603
|
+
static const char* ice_staticId() noexcept;
|
|
604
|
+
};
|
|
1825
605
|
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
606
|
+
/// A shared pointer to an AsyncRemoteLogger.
|
|
607
|
+
using AsyncRemoteLoggerPtr = std::shared_ptr<AsyncRemoteLogger>;
|
|
608
|
+
|
|
609
|
+
/// Represents the admin facet that allows an Ice application to attach its RemoteLoggerPrx to the local
|
|
610
|
+
/// logger of an Ice communicator.
|
|
611
|
+
/// @remarks The Slice compiler generated this skeleton class from Slice interface `::Ice::LoggerAdmin`.
|
|
612
|
+
/// @headerfile Ice/Ice.h
|
|
613
|
+
class ICE_API AsyncLoggerAdmin : public virtual Ice::Object
|
|
614
|
+
{
|
|
615
|
+
public:
|
|
616
|
+
/// The associated proxy type.
|
|
617
|
+
using ProxyType = LoggerAdminPrx;
|
|
618
|
+
|
|
619
|
+
/// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
|
|
620
|
+
/// @param request The incoming request.
|
|
621
|
+
/// @param sendResponse The callback to send the response.
|
|
622
|
+
void dispatch(IncomingRequest& request, std::function<void(OutgoingResponse)> sendResponse) override;
|
|
623
|
+
|
|
624
|
+
[[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
|
|
625
|
+
|
|
626
|
+
[[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
|
|
627
|
+
|
|
628
|
+
/// Attaches a ::Ice::RemoteLoggerPrx object to the local logger. This operation calls ::Ice::RemoteLoggerPrx::init
|
|
629
|
+
/// on @p prx.
|
|
630
|
+
/// @param prx A proxy to the remote logger.
|
|
631
|
+
/// @param messageTypes The list of message types that the remote logger wishes to receive. An empty list means
|
|
632
|
+
/// no filtering (send all message types).
|
|
633
|
+
/// @param traceCategories The categories of traces that the remote logger wishes to receive. This parameter is
|
|
634
|
+
/// ignored if @p messageTypes is not empty and does not include trace. An empty list means no filtering
|
|
635
|
+
/// (send all trace categories).
|
|
636
|
+
/// @param messageMax The maximum number of log messages (of all types) to be provided to
|
|
637
|
+
/// ::Ice::RemoteLoggerPrx::init. A negative value requests all messages available.
|
|
638
|
+
/// @param response The response callback.
|
|
639
|
+
/// @param exception The exception callback.
|
|
640
|
+
/// @param current The Current object of the incoming request.
|
|
641
|
+
/// @throws Ice::RemoteLoggerAlreadyAttachedException Thrown if this remote logger is already attached to this admin
|
|
642
|
+
/// object.
|
|
643
|
+
virtual void attachRemoteLoggerAsync(std::optional<RemoteLoggerPrx> prx, LogMessageTypeSeq messageTypes, StringSeq traceCategories, std::int32_t messageMax, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
|
|
644
|
+
|
|
645
|
+
/// @private
|
|
646
|
+
void _iceD_attachRemoteLogger(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
647
|
+
|
|
648
|
+
/// Detaches a ::Ice::RemoteLoggerPrx object from the local logger.
|
|
649
|
+
/// @param prx A proxy to the remote logger.
|
|
650
|
+
/// @param response The response callback. It accepts:
|
|
651
|
+
/// - `true` if the provided remote logger proxy was detached, and `false` otherwise.
|
|
652
|
+
/// @param exception The exception callback.
|
|
653
|
+
/// @param current The Current object of the incoming request.
|
|
654
|
+
virtual void detachRemoteLoggerAsync(std::optional<RemoteLoggerPrx> prx, std::function<void(bool returnValue)> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
|
|
655
|
+
|
|
656
|
+
/// @private
|
|
657
|
+
void _iceD_detachRemoteLogger(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
658
|
+
|
|
659
|
+
/// Retrieves recently logged log messages.
|
|
660
|
+
/// @param messageTypes The list of message types that the caller wishes to receive. An empty list means no
|
|
661
|
+
/// filtering (send all message types).
|
|
662
|
+
/// @param traceCategories The categories of traces that caller wish to receive. This parameter is ignored if
|
|
663
|
+
/// @p messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace
|
|
664
|
+
/// categories).
|
|
665
|
+
/// @param messageMax The maximum number of log messages (of all types) to be returned. A negative value
|
|
666
|
+
/// requests all messages available.
|
|
667
|
+
/// @param response The response callback. It accepts:
|
|
668
|
+
/// - `returnValue` The Log messages.
|
|
669
|
+
/// - `prefix` The prefix of the associated local logger.
|
|
670
|
+
/// @param exception The exception callback.
|
|
671
|
+
/// @param current The Current object of the incoming request.
|
|
672
|
+
virtual void getLogAsync(LogMessageTypeSeq messageTypes, StringSeq traceCategories, std::int32_t messageMax, std::function<void(const LogMessageSeq& returnValue, std::string_view prefix)> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
|
|
673
|
+
|
|
674
|
+
/// @private
|
|
675
|
+
void _iceD_getLog(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
|
|
676
|
+
|
|
677
|
+
/// Gets the type ID of the associated Slice interface.
|
|
678
|
+
/// @return The string `"::Ice::LoggerAdmin"`.
|
|
679
|
+
static const char* ice_staticId() noexcept;
|
|
680
|
+
};
|
|
1873
681
|
|
|
682
|
+
/// A shared pointer to an AsyncLoggerAdmin.
|
|
683
|
+
using AsyncLoggerAdminPtr = std::shared_ptr<AsyncLoggerAdmin>;
|
|
1874
684
|
}
|
|
1875
|
-
/// \endcond
|
|
1876
685
|
|
|
1877
686
|
namespace Ice
|
|
1878
687
|
{
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
* IceProxy::Ice::RemoteLogger::begin_init.
|
|
1883
|
-
* Create a wrapper instance by calling ::Ice::newCallback_RemoteLogger_init.
|
|
1884
|
-
*/
|
|
1885
|
-
template<class T>
|
|
1886
|
-
class CallbackNC_RemoteLogger_init : public Callback_RemoteLogger_init_Base, public ::IceInternal::OnewayCallbackNC<T>
|
|
1887
|
-
{
|
|
1888
|
-
public:
|
|
1889
|
-
|
|
1890
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
1891
|
-
|
|
1892
|
-
typedef void (T::*Exception)(const ::Ice::Exception&);
|
|
1893
|
-
typedef void (T::*Sent)(bool);
|
|
1894
|
-
typedef void (T::*Response)();
|
|
1895
|
-
|
|
1896
|
-
CallbackNC_RemoteLogger_init(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
1897
|
-
: ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
|
|
1898
|
-
{
|
|
1899
|
-
}
|
|
1900
|
-
};
|
|
1901
|
-
|
|
1902
|
-
/**
|
|
1903
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
1904
|
-
* @param instance The callback object.
|
|
1905
|
-
* @param cb The success method of the callback object.
|
|
1906
|
-
* @param excb The exception method of the callback object.
|
|
1907
|
-
* @param sentcb The sent method of the callback object.
|
|
1908
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_init.
|
|
1909
|
-
*/
|
|
1910
|
-
template<class T> Callback_RemoteLogger_initPtr
|
|
1911
|
-
newCallback_RemoteLogger_init(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
1912
|
-
{
|
|
1913
|
-
return new CallbackNC_RemoteLogger_init<T>(instance, cb, excb, sentcb);
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
/**
|
|
1917
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
1918
|
-
* @param instance The callback object.
|
|
1919
|
-
* @param excb The exception method of the callback object.
|
|
1920
|
-
* @param sentcb The sent method of the callback object.
|
|
1921
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_init.
|
|
1922
|
-
*/
|
|
1923
|
-
template<class T> Callback_RemoteLogger_initPtr
|
|
1924
|
-
newCallback_RemoteLogger_init(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
1925
|
-
{
|
|
1926
|
-
return new CallbackNC_RemoteLogger_init<T>(instance, 0, excb, sentcb);
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
/**
|
|
1930
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
1931
|
-
* @param instance The callback object.
|
|
1932
|
-
* @param cb The success method of the callback object.
|
|
1933
|
-
* @param excb The exception method of the callback object.
|
|
1934
|
-
* @param sentcb The sent method of the callback object.
|
|
1935
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_init.
|
|
1936
|
-
*/
|
|
1937
|
-
template<class T> Callback_RemoteLogger_initPtr
|
|
1938
|
-
newCallback_RemoteLogger_init(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
1939
|
-
{
|
|
1940
|
-
return new CallbackNC_RemoteLogger_init<T>(instance, cb, excb, sentcb);
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
/**
|
|
1944
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
1945
|
-
* @param instance The callback object.
|
|
1946
|
-
* @param excb The exception method of the callback object.
|
|
1947
|
-
* @param sentcb The sent method of the callback object.
|
|
1948
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_init.
|
|
1949
|
-
*/
|
|
1950
|
-
template<class T> Callback_RemoteLogger_initPtr
|
|
1951
|
-
newCallback_RemoteLogger_init(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
1952
|
-
{
|
|
1953
|
-
return new CallbackNC_RemoteLogger_init<T>(instance, 0, excb, sentcb);
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
/**
|
|
1957
|
-
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
|
1958
|
-
* IceProxy::Ice::RemoteLogger::begin_init.
|
|
1959
|
-
* Create a wrapper instance by calling ::Ice::newCallback_RemoteLogger_init.
|
|
1960
|
-
*/
|
|
1961
|
-
template<class T, typename CT>
|
|
1962
|
-
class Callback_RemoteLogger_init : public Callback_RemoteLogger_init_Base, public ::IceInternal::OnewayCallback<T, CT>
|
|
1963
|
-
{
|
|
1964
|
-
public:
|
|
1965
|
-
|
|
1966
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
1967
|
-
|
|
1968
|
-
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
|
1969
|
-
typedef void (T::*Sent)(bool , const CT&);
|
|
1970
|
-
typedef void (T::*Response)(const CT&);
|
|
1971
|
-
|
|
1972
|
-
Callback_RemoteLogger_init(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
1973
|
-
: ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
|
|
1974
|
-
{
|
|
1975
|
-
}
|
|
1976
|
-
};
|
|
1977
|
-
|
|
1978
|
-
/**
|
|
1979
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
1980
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
1981
|
-
* @param instance The callback object.
|
|
1982
|
-
* @param cb The success method of the callback object.
|
|
1983
|
-
* @param excb The exception method of the callback object.
|
|
1984
|
-
* @param sentcb The sent method of the callback object.
|
|
1985
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_init.
|
|
1986
|
-
*/
|
|
1987
|
-
template<class T, typename CT> Callback_RemoteLogger_initPtr
|
|
1988
|
-
newCallback_RemoteLogger_init(const IceUtil::Handle<T>& instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
1989
|
-
{
|
|
1990
|
-
return new Callback_RemoteLogger_init<T, CT>(instance, cb, excb, sentcb);
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
/**
|
|
1994
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
1995
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
1996
|
-
* @param instance The callback object.
|
|
1997
|
-
* @param excb The exception method of the callback object.
|
|
1998
|
-
* @param sentcb The sent method of the callback object.
|
|
1999
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_init.
|
|
2000
|
-
*/
|
|
2001
|
-
template<class T, typename CT> Callback_RemoteLogger_initPtr
|
|
2002
|
-
newCallback_RemoteLogger_init(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2003
|
-
{
|
|
2004
|
-
return new Callback_RemoteLogger_init<T, CT>(instance, 0, excb, sentcb);
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
/**
|
|
2008
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2009
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2010
|
-
* @param instance The callback object.
|
|
2011
|
-
* @param cb The success method of the callback object.
|
|
2012
|
-
* @param excb The exception method of the callback object.
|
|
2013
|
-
* @param sentcb The sent method of the callback object.
|
|
2014
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_init.
|
|
2015
|
-
*/
|
|
2016
|
-
template<class T, typename CT> Callback_RemoteLogger_initPtr
|
|
2017
|
-
newCallback_RemoteLogger_init(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2018
|
-
{
|
|
2019
|
-
return new Callback_RemoteLogger_init<T, CT>(instance, cb, excb, sentcb);
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
/**
|
|
2023
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2024
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2025
|
-
* @param instance The callback object.
|
|
2026
|
-
* @param excb The exception method of the callback object.
|
|
2027
|
-
* @param sentcb The sent method of the callback object.
|
|
2028
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_init.
|
|
2029
|
-
*/
|
|
2030
|
-
template<class T, typename CT> Callback_RemoteLogger_initPtr
|
|
2031
|
-
newCallback_RemoteLogger_init(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2032
|
-
{
|
|
2033
|
-
return new Callback_RemoteLogger_init<T, CT>(instance, 0, excb, sentcb);
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
/**
|
|
2037
|
-
* Type-safe asynchronous callback wrapper class used for calls to
|
|
2038
|
-
* IceProxy::Ice::RemoteLogger::begin_log.
|
|
2039
|
-
* Create a wrapper instance by calling ::Ice::newCallback_RemoteLogger_log.
|
|
2040
|
-
*/
|
|
2041
|
-
template<class T>
|
|
2042
|
-
class CallbackNC_RemoteLogger_log : public Callback_RemoteLogger_log_Base, public ::IceInternal::OnewayCallbackNC<T>
|
|
2043
|
-
{
|
|
2044
|
-
public:
|
|
2045
|
-
|
|
2046
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
2047
|
-
|
|
2048
|
-
typedef void (T::*Exception)(const ::Ice::Exception&);
|
|
2049
|
-
typedef void (T::*Sent)(bool);
|
|
2050
|
-
typedef void (T::*Response)();
|
|
2051
|
-
|
|
2052
|
-
CallbackNC_RemoteLogger_log(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
2053
|
-
: ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
|
|
2054
|
-
{
|
|
2055
|
-
}
|
|
2056
|
-
};
|
|
2057
|
-
|
|
2058
|
-
/**
|
|
2059
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2060
|
-
* @param instance The callback object.
|
|
2061
|
-
* @param cb The success method of the callback object.
|
|
2062
|
-
* @param excb The exception method of the callback object.
|
|
2063
|
-
* @param sentcb The sent method of the callback object.
|
|
2064
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_log.
|
|
2065
|
-
*/
|
|
2066
|
-
template<class T> Callback_RemoteLogger_logPtr
|
|
2067
|
-
newCallback_RemoteLogger_log(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2068
|
-
{
|
|
2069
|
-
return new CallbackNC_RemoteLogger_log<T>(instance, cb, excb, sentcb);
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
/**
|
|
2073
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2074
|
-
* @param instance The callback object.
|
|
2075
|
-
* @param excb The exception method of the callback object.
|
|
2076
|
-
* @param sentcb The sent method of the callback object.
|
|
2077
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_log.
|
|
2078
|
-
*/
|
|
2079
|
-
template<class T> Callback_RemoteLogger_logPtr
|
|
2080
|
-
newCallback_RemoteLogger_log(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2081
|
-
{
|
|
2082
|
-
return new CallbackNC_RemoteLogger_log<T>(instance, 0, excb, sentcb);
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
/**
|
|
2086
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2087
|
-
* @param instance The callback object.
|
|
2088
|
-
* @param cb The success method of the callback object.
|
|
2089
|
-
* @param excb The exception method of the callback object.
|
|
2090
|
-
* @param sentcb The sent method of the callback object.
|
|
2091
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_log.
|
|
2092
|
-
*/
|
|
2093
|
-
template<class T> Callback_RemoteLogger_logPtr
|
|
2094
|
-
newCallback_RemoteLogger_log(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2095
|
-
{
|
|
2096
|
-
return new CallbackNC_RemoteLogger_log<T>(instance, cb, excb, sentcb);
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
/**
|
|
2100
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2101
|
-
* @param instance The callback object.
|
|
2102
|
-
* @param excb The exception method of the callback object.
|
|
2103
|
-
* @param sentcb The sent method of the callback object.
|
|
2104
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_log.
|
|
2105
|
-
*/
|
|
2106
|
-
template<class T> Callback_RemoteLogger_logPtr
|
|
2107
|
-
newCallback_RemoteLogger_log(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2108
|
-
{
|
|
2109
|
-
return new CallbackNC_RemoteLogger_log<T>(instance, 0, excb, sentcb);
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
/**
|
|
2113
|
-
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
|
2114
|
-
* IceProxy::Ice::RemoteLogger::begin_log.
|
|
2115
|
-
* Create a wrapper instance by calling ::Ice::newCallback_RemoteLogger_log.
|
|
2116
|
-
*/
|
|
2117
|
-
template<class T, typename CT>
|
|
2118
|
-
class Callback_RemoteLogger_log : public Callback_RemoteLogger_log_Base, public ::IceInternal::OnewayCallback<T, CT>
|
|
2119
|
-
{
|
|
2120
|
-
public:
|
|
2121
|
-
|
|
2122
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
2123
|
-
|
|
2124
|
-
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
|
2125
|
-
typedef void (T::*Sent)(bool , const CT&);
|
|
2126
|
-
typedef void (T::*Response)(const CT&);
|
|
2127
|
-
|
|
2128
|
-
Callback_RemoteLogger_log(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
2129
|
-
: ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
|
|
2130
|
-
{
|
|
2131
|
-
}
|
|
2132
|
-
};
|
|
2133
|
-
|
|
2134
|
-
/**
|
|
2135
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2136
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2137
|
-
* @param instance The callback object.
|
|
2138
|
-
* @param cb The success method of the callback object.
|
|
2139
|
-
* @param excb The exception method of the callback object.
|
|
2140
|
-
* @param sentcb The sent method of the callback object.
|
|
2141
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_log.
|
|
2142
|
-
*/
|
|
2143
|
-
template<class T, typename CT> Callback_RemoteLogger_logPtr
|
|
2144
|
-
newCallback_RemoteLogger_log(const IceUtil::Handle<T>& instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2145
|
-
{
|
|
2146
|
-
return new Callback_RemoteLogger_log<T, CT>(instance, cb, excb, sentcb);
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
/**
|
|
2150
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2151
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2152
|
-
* @param instance The callback object.
|
|
2153
|
-
* @param excb The exception method of the callback object.
|
|
2154
|
-
* @param sentcb The sent method of the callback object.
|
|
2155
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_log.
|
|
2156
|
-
*/
|
|
2157
|
-
template<class T, typename CT> Callback_RemoteLogger_logPtr
|
|
2158
|
-
newCallback_RemoteLogger_log(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2159
|
-
{
|
|
2160
|
-
return new Callback_RemoteLogger_log<T, CT>(instance, 0, excb, sentcb);
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
/**
|
|
2164
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2165
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2166
|
-
* @param instance The callback object.
|
|
2167
|
-
* @param cb The success method of the callback object.
|
|
2168
|
-
* @param excb The exception method of the callback object.
|
|
2169
|
-
* @param sentcb The sent method of the callback object.
|
|
2170
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_log.
|
|
2171
|
-
*/
|
|
2172
|
-
template<class T, typename CT> Callback_RemoteLogger_logPtr
|
|
2173
|
-
newCallback_RemoteLogger_log(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2174
|
-
{
|
|
2175
|
-
return new Callback_RemoteLogger_log<T, CT>(instance, cb, excb, sentcb);
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
/**
|
|
2179
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2180
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2181
|
-
* @param instance The callback object.
|
|
2182
|
-
* @param excb The exception method of the callback object.
|
|
2183
|
-
* @param sentcb The sent method of the callback object.
|
|
2184
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RemoteLogger::begin_log.
|
|
2185
|
-
*/
|
|
2186
|
-
template<class T, typename CT> Callback_RemoteLogger_logPtr
|
|
2187
|
-
newCallback_RemoteLogger_log(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2188
|
-
{
|
|
2189
|
-
return new Callback_RemoteLogger_log<T, CT>(instance, 0, excb, sentcb);
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
/**
|
|
2193
|
-
* Type-safe asynchronous callback wrapper class used for calls to
|
|
2194
|
-
* IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2195
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_attachRemoteLogger.
|
|
2196
|
-
*/
|
|
2197
|
-
template<class T>
|
|
2198
|
-
class CallbackNC_LoggerAdmin_attachRemoteLogger : public Callback_LoggerAdmin_attachRemoteLogger_Base, public ::IceInternal::TwowayCallbackNC<T>
|
|
2199
|
-
{
|
|
2200
|
-
public:
|
|
2201
|
-
|
|
2202
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
2203
|
-
|
|
2204
|
-
typedef void (T::*Exception)(const ::Ice::Exception&);
|
|
2205
|
-
typedef void (T::*Sent)(bool);
|
|
2206
|
-
typedef void (T::*Response)();
|
|
2207
|
-
|
|
2208
|
-
CallbackNC_LoggerAdmin_attachRemoteLogger(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
2209
|
-
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
|
2210
|
-
{
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
/// \cond INTERNAL
|
|
2214
|
-
virtual void completed(const AsyncResultPtr& result) const
|
|
2215
|
-
{
|
|
2216
|
-
LoggerAdminPrx proxy = LoggerAdminPrx::uncheckedCast(result->getProxy());
|
|
2217
|
-
try
|
|
2218
|
-
{
|
|
2219
|
-
proxy->end_attachRemoteLogger(result);
|
|
2220
|
-
}
|
|
2221
|
-
catch(const ::Ice::Exception& ex)
|
|
2222
|
-
{
|
|
2223
|
-
::IceInternal::CallbackNC<T>::exception(result, ex);
|
|
2224
|
-
return;
|
|
2225
|
-
}
|
|
2226
|
-
if(_response)
|
|
2227
|
-
{
|
|
2228
|
-
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
/// \endcond
|
|
2232
|
-
|
|
2233
|
-
private:
|
|
2234
|
-
|
|
2235
|
-
Response _response;
|
|
2236
|
-
};
|
|
2237
|
-
|
|
2238
|
-
/**
|
|
2239
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2240
|
-
* @param instance The callback object.
|
|
2241
|
-
* @param cb The success method of the callback object.
|
|
2242
|
-
* @param excb The exception method of the callback object.
|
|
2243
|
-
* @param sentcb The sent method of the callback object.
|
|
2244
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2245
|
-
*/
|
|
2246
|
-
template<class T> Callback_LoggerAdmin_attachRemoteLoggerPtr
|
|
2247
|
-
newCallback_LoggerAdmin_attachRemoteLogger(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2248
|
-
{
|
|
2249
|
-
return new CallbackNC_LoggerAdmin_attachRemoteLogger<T>(instance, cb, excb, sentcb);
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2254
|
-
* @param instance The callback object.
|
|
2255
|
-
* @param excb The exception method of the callback object.
|
|
2256
|
-
* @param sentcb The sent method of the callback object.
|
|
2257
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2258
|
-
*/
|
|
2259
|
-
template<class T> Callback_LoggerAdmin_attachRemoteLoggerPtr
|
|
2260
|
-
newCallback_LoggerAdmin_attachRemoteLogger(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2261
|
-
{
|
|
2262
|
-
return new CallbackNC_LoggerAdmin_attachRemoteLogger<T>(instance, 0, excb, sentcb);
|
|
2263
|
-
}
|
|
2264
|
-
|
|
2265
|
-
/**
|
|
2266
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2267
|
-
* @param instance The callback object.
|
|
2268
|
-
* @param cb The success method of the callback object.
|
|
2269
|
-
* @param excb The exception method of the callback object.
|
|
2270
|
-
* @param sentcb The sent method of the callback object.
|
|
2271
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2272
|
-
*/
|
|
2273
|
-
template<class T> Callback_LoggerAdmin_attachRemoteLoggerPtr
|
|
2274
|
-
newCallback_LoggerAdmin_attachRemoteLogger(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2275
|
-
{
|
|
2276
|
-
return new CallbackNC_LoggerAdmin_attachRemoteLogger<T>(instance, cb, excb, sentcb);
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
|
-
/**
|
|
2280
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2281
|
-
* @param instance The callback object.
|
|
2282
|
-
* @param excb The exception method of the callback object.
|
|
2283
|
-
* @param sentcb The sent method of the callback object.
|
|
2284
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2285
|
-
*/
|
|
2286
|
-
template<class T> Callback_LoggerAdmin_attachRemoteLoggerPtr
|
|
2287
|
-
newCallback_LoggerAdmin_attachRemoteLogger(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2288
|
-
{
|
|
2289
|
-
return new CallbackNC_LoggerAdmin_attachRemoteLogger<T>(instance, 0, excb, sentcb);
|
|
2290
|
-
}
|
|
2291
|
-
|
|
2292
|
-
/**
|
|
2293
|
-
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
|
2294
|
-
* IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2295
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_attachRemoteLogger.
|
|
2296
|
-
*/
|
|
2297
|
-
template<class T, typename CT>
|
|
2298
|
-
class Callback_LoggerAdmin_attachRemoteLogger : public Callback_LoggerAdmin_attachRemoteLogger_Base, public ::IceInternal::TwowayCallback<T, CT>
|
|
2299
|
-
{
|
|
2300
|
-
public:
|
|
2301
|
-
|
|
2302
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
2303
|
-
|
|
2304
|
-
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
|
2305
|
-
typedef void (T::*Sent)(bool , const CT&);
|
|
2306
|
-
typedef void (T::*Response)(const CT&);
|
|
2307
|
-
|
|
2308
|
-
Callback_LoggerAdmin_attachRemoteLogger(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
2309
|
-
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
|
2310
|
-
{
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
/// \cond INTERNAL
|
|
2314
|
-
virtual void completed(const AsyncResultPtr& result) const
|
|
2315
|
-
{
|
|
2316
|
-
LoggerAdminPrx proxy = LoggerAdminPrx::uncheckedCast(result->getProxy());
|
|
2317
|
-
try
|
|
2318
|
-
{
|
|
2319
|
-
proxy->end_attachRemoteLogger(result);
|
|
2320
|
-
}
|
|
2321
|
-
catch(const ::Ice::Exception& ex)
|
|
2322
|
-
{
|
|
2323
|
-
::IceInternal::Callback<T, CT>::exception(result, ex);
|
|
2324
|
-
return;
|
|
2325
|
-
}
|
|
2326
|
-
if(_response)
|
|
2327
|
-
{
|
|
2328
|
-
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
|
|
2329
|
-
}
|
|
2330
|
-
}
|
|
2331
|
-
/// \endcond
|
|
2332
|
-
|
|
2333
|
-
private:
|
|
2334
|
-
|
|
2335
|
-
Response _response;
|
|
2336
|
-
};
|
|
2337
|
-
|
|
2338
|
-
/**
|
|
2339
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2340
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2341
|
-
* @param instance The callback object.
|
|
2342
|
-
* @param cb The success method of the callback object.
|
|
2343
|
-
* @param excb The exception method of the callback object.
|
|
2344
|
-
* @param sentcb The sent method of the callback object.
|
|
2345
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2346
|
-
*/
|
|
2347
|
-
template<class T, typename CT> Callback_LoggerAdmin_attachRemoteLoggerPtr
|
|
2348
|
-
newCallback_LoggerAdmin_attachRemoteLogger(const IceUtil::Handle<T>& instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2349
|
-
{
|
|
2350
|
-
return new Callback_LoggerAdmin_attachRemoteLogger<T, CT>(instance, cb, excb, sentcb);
|
|
2351
|
-
}
|
|
2352
|
-
|
|
2353
|
-
/**
|
|
2354
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2355
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2356
|
-
* @param instance The callback object.
|
|
2357
|
-
* @param excb The exception method of the callback object.
|
|
2358
|
-
* @param sentcb The sent method of the callback object.
|
|
2359
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2360
|
-
*/
|
|
2361
|
-
template<class T, typename CT> Callback_LoggerAdmin_attachRemoteLoggerPtr
|
|
2362
|
-
newCallback_LoggerAdmin_attachRemoteLogger(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2363
|
-
{
|
|
2364
|
-
return new Callback_LoggerAdmin_attachRemoteLogger<T, CT>(instance, 0, excb, sentcb);
|
|
2365
|
-
}
|
|
2366
|
-
|
|
2367
|
-
/**
|
|
2368
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2369
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2370
|
-
* @param instance The callback object.
|
|
2371
|
-
* @param cb The success method of the callback object.
|
|
2372
|
-
* @param excb The exception method of the callback object.
|
|
2373
|
-
* @param sentcb The sent method of the callback object.
|
|
2374
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2375
|
-
*/
|
|
2376
|
-
template<class T, typename CT> Callback_LoggerAdmin_attachRemoteLoggerPtr
|
|
2377
|
-
newCallback_LoggerAdmin_attachRemoteLogger(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2378
|
-
{
|
|
2379
|
-
return new Callback_LoggerAdmin_attachRemoteLogger<T, CT>(instance, cb, excb, sentcb);
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
/**
|
|
2383
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2384
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2385
|
-
* @param instance The callback object.
|
|
2386
|
-
* @param excb The exception method of the callback object.
|
|
2387
|
-
* @param sentcb The sent method of the callback object.
|
|
2388
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_attachRemoteLogger.
|
|
2389
|
-
*/
|
|
2390
|
-
template<class T, typename CT> Callback_LoggerAdmin_attachRemoteLoggerPtr
|
|
2391
|
-
newCallback_LoggerAdmin_attachRemoteLogger(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2392
|
-
{
|
|
2393
|
-
return new Callback_LoggerAdmin_attachRemoteLogger<T, CT>(instance, 0, excb, sentcb);
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
/**
|
|
2397
|
-
* Type-safe asynchronous callback wrapper class used for calls to
|
|
2398
|
-
* IceProxy::Ice::LoggerAdmin::begin_detachRemoteLogger.
|
|
2399
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_detachRemoteLogger.
|
|
2400
|
-
*/
|
|
2401
|
-
template<class T>
|
|
2402
|
-
class CallbackNC_LoggerAdmin_detachRemoteLogger : public Callback_LoggerAdmin_detachRemoteLogger_Base, public ::IceInternal::TwowayCallbackNC<T>
|
|
2403
|
-
{
|
|
2404
|
-
public:
|
|
2405
|
-
|
|
2406
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
2407
|
-
|
|
2408
|
-
typedef void (T::*Exception)(const ::Ice::Exception&);
|
|
2409
|
-
typedef void (T::*Sent)(bool);
|
|
2410
|
-
typedef void (T::*Response)(bool);
|
|
2411
|
-
|
|
2412
|
-
CallbackNC_LoggerAdmin_detachRemoteLogger(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
2413
|
-
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
|
2414
|
-
{
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
-
/// \cond INTERNAL
|
|
2418
|
-
virtual void completed(const AsyncResultPtr& result) const
|
|
2419
|
-
{
|
|
2420
|
-
LoggerAdminPrx proxy = LoggerAdminPrx::uncheckedCast(result->getProxy());
|
|
2421
|
-
bool ret;
|
|
2422
|
-
try
|
|
2423
|
-
{
|
|
2424
|
-
ret = proxy->end_detachRemoteLogger(result);
|
|
2425
|
-
}
|
|
2426
|
-
catch(const ::Ice::Exception& ex)
|
|
2427
|
-
{
|
|
2428
|
-
::IceInternal::CallbackNC<T>::exception(result, ex);
|
|
2429
|
-
return;
|
|
2430
|
-
}
|
|
2431
|
-
if(_response)
|
|
2432
|
-
{
|
|
2433
|
-
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
/// \endcond
|
|
2437
|
-
|
|
2438
|
-
private:
|
|
2439
|
-
|
|
2440
|
-
Response _response;
|
|
2441
|
-
};
|
|
2442
|
-
|
|
2443
|
-
/**
|
|
2444
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2445
|
-
* @param instance The callback object.
|
|
2446
|
-
* @param cb The success method of the callback object.
|
|
2447
|
-
* @param excb The exception method of the callback object.
|
|
2448
|
-
* @param sentcb The sent method of the callback object.
|
|
2449
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_detachRemoteLogger.
|
|
2450
|
-
*/
|
|
2451
|
-
template<class T> Callback_LoggerAdmin_detachRemoteLoggerPtr
|
|
2452
|
-
newCallback_LoggerAdmin_detachRemoteLogger(const IceUtil::Handle<T>& instance, void (T::*cb)(bool), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2453
|
-
{
|
|
2454
|
-
return new CallbackNC_LoggerAdmin_detachRemoteLogger<T>(instance, cb, excb, sentcb);
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
/**
|
|
2458
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2459
|
-
* @param instance The callback object.
|
|
2460
|
-
* @param cb The success method of the callback object.
|
|
2461
|
-
* @param excb The exception method of the callback object.
|
|
2462
|
-
* @param sentcb The sent method of the callback object.
|
|
2463
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_detachRemoteLogger.
|
|
2464
|
-
*/
|
|
2465
|
-
template<class T> Callback_LoggerAdmin_detachRemoteLoggerPtr
|
|
2466
|
-
newCallback_LoggerAdmin_detachRemoteLogger(T* instance, void (T::*cb)(bool), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2467
|
-
{
|
|
2468
|
-
return new CallbackNC_LoggerAdmin_detachRemoteLogger<T>(instance, cb, excb, sentcb);
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
/**
|
|
2472
|
-
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
|
2473
|
-
* IceProxy::Ice::LoggerAdmin::begin_detachRemoteLogger.
|
|
2474
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_detachRemoteLogger.
|
|
2475
|
-
*/
|
|
2476
|
-
template<class T, typename CT>
|
|
2477
|
-
class Callback_LoggerAdmin_detachRemoteLogger : public Callback_LoggerAdmin_detachRemoteLogger_Base, public ::IceInternal::TwowayCallback<T, CT>
|
|
2478
|
-
{
|
|
2479
|
-
public:
|
|
2480
|
-
|
|
2481
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
2482
|
-
|
|
2483
|
-
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
|
2484
|
-
typedef void (T::*Sent)(bool , const CT&);
|
|
2485
|
-
typedef void (T::*Response)(bool, const CT&);
|
|
2486
|
-
|
|
2487
|
-
Callback_LoggerAdmin_detachRemoteLogger(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
2488
|
-
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
|
688
|
+
/// @cond INTERNAL
|
|
689
|
+
template<>
|
|
690
|
+
struct StreamableTraits<::Ice::LogMessageType>
|
|
2489
691
|
{
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
try
|
|
2498
|
-
{
|
|
2499
|
-
ret = proxy->end_detachRemoteLogger(result);
|
|
2500
|
-
}
|
|
2501
|
-
catch(const ::Ice::Exception& ex)
|
|
2502
|
-
{
|
|
2503
|
-
::IceInternal::Callback<T, CT>::exception(result, ex);
|
|
2504
|
-
return;
|
|
2505
|
-
}
|
|
2506
|
-
if(_response)
|
|
2507
|
-
{
|
|
2508
|
-
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
|
|
2509
|
-
}
|
|
2510
|
-
}
|
|
2511
|
-
/// \endcond
|
|
2512
|
-
|
|
2513
|
-
private:
|
|
2514
|
-
|
|
2515
|
-
Response _response;
|
|
2516
|
-
};
|
|
2517
|
-
|
|
2518
|
-
/**
|
|
2519
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2520
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2521
|
-
* @param instance The callback object.
|
|
2522
|
-
* @param cb The success method of the callback object.
|
|
2523
|
-
* @param excb The exception method of the callback object.
|
|
2524
|
-
* @param sentcb The sent method of the callback object.
|
|
2525
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_detachRemoteLogger.
|
|
2526
|
-
*/
|
|
2527
|
-
template<class T, typename CT> Callback_LoggerAdmin_detachRemoteLoggerPtr
|
|
2528
|
-
newCallback_LoggerAdmin_detachRemoteLogger(const IceUtil::Handle<T>& instance, void (T::*cb)(bool, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2529
|
-
{
|
|
2530
|
-
return new Callback_LoggerAdmin_detachRemoteLogger<T, CT>(instance, cb, excb, sentcb);
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
/**
|
|
2534
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2535
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2536
|
-
* @param instance The callback object.
|
|
2537
|
-
* @param cb The success method of the callback object.
|
|
2538
|
-
* @param excb The exception method of the callback object.
|
|
2539
|
-
* @param sentcb The sent method of the callback object.
|
|
2540
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_detachRemoteLogger.
|
|
2541
|
-
*/
|
|
2542
|
-
template<class T, typename CT> Callback_LoggerAdmin_detachRemoteLoggerPtr
|
|
2543
|
-
newCallback_LoggerAdmin_detachRemoteLogger(T* instance, void (T::*cb)(bool, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2544
|
-
{
|
|
2545
|
-
return new Callback_LoggerAdmin_detachRemoteLogger<T, CT>(instance, cb, excb, sentcb);
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
|
-
/**
|
|
2549
|
-
* Type-safe asynchronous callback wrapper class used for calls to
|
|
2550
|
-
* IceProxy::Ice::LoggerAdmin::begin_getLog.
|
|
2551
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_getLog.
|
|
2552
|
-
*/
|
|
2553
|
-
template<class T>
|
|
2554
|
-
class CallbackNC_LoggerAdmin_getLog : public Callback_LoggerAdmin_getLog_Base, public ::IceInternal::TwowayCallbackNC<T>
|
|
2555
|
-
{
|
|
2556
|
-
public:
|
|
2557
|
-
|
|
2558
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
2559
|
-
|
|
2560
|
-
typedef void (T::*Exception)(const ::Ice::Exception&);
|
|
2561
|
-
typedef void (T::*Sent)(bool);
|
|
2562
|
-
typedef void (T::*Response)(const LogMessageSeq&, const ::std::string&);
|
|
2563
|
-
|
|
2564
|
-
CallbackNC_LoggerAdmin_getLog(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
|
2565
|
-
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
|
2566
|
-
{
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
/// \cond INTERNAL
|
|
2570
|
-
virtual void completed(const AsyncResultPtr& result) const
|
|
2571
|
-
{
|
|
2572
|
-
LoggerAdminPrx proxy = LoggerAdminPrx::uncheckedCast(result->getProxy());
|
|
2573
|
-
::std::string iceP_prefix;
|
|
2574
|
-
LogMessageSeq ret;
|
|
2575
|
-
try
|
|
2576
|
-
{
|
|
2577
|
-
ret = proxy->end_getLog(iceP_prefix, result);
|
|
2578
|
-
}
|
|
2579
|
-
catch(const ::Ice::Exception& ex)
|
|
2580
|
-
{
|
|
2581
|
-
::IceInternal::CallbackNC<T>::exception(result, ex);
|
|
2582
|
-
return;
|
|
2583
|
-
}
|
|
2584
|
-
if(_response)
|
|
2585
|
-
{
|
|
2586
|
-
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret, iceP_prefix);
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2589
|
-
/// \endcond
|
|
2590
|
-
|
|
2591
|
-
private:
|
|
2592
|
-
|
|
2593
|
-
Response _response;
|
|
2594
|
-
};
|
|
2595
|
-
|
|
2596
|
-
/**
|
|
2597
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2598
|
-
* @param instance The callback object.
|
|
2599
|
-
* @param cb The success method of the callback object.
|
|
2600
|
-
* @param excb The exception method of the callback object.
|
|
2601
|
-
* @param sentcb The sent method of the callback object.
|
|
2602
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_getLog.
|
|
2603
|
-
*/
|
|
2604
|
-
template<class T> Callback_LoggerAdmin_getLogPtr
|
|
2605
|
-
newCallback_LoggerAdmin_getLog(const IceUtil::Handle<T>& instance, void (T::*cb)(const LogMessageSeq&, const ::std::string&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2606
|
-
{
|
|
2607
|
-
return new CallbackNC_LoggerAdmin_getLog<T>(instance, cb, excb, sentcb);
|
|
2608
|
-
}
|
|
2609
|
-
|
|
2610
|
-
/**
|
|
2611
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2612
|
-
* @param instance The callback object.
|
|
2613
|
-
* @param cb The success method of the callback object.
|
|
2614
|
-
* @param excb The exception method of the callback object.
|
|
2615
|
-
* @param sentcb The sent method of the callback object.
|
|
2616
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_getLog.
|
|
2617
|
-
*/
|
|
2618
|
-
template<class T> Callback_LoggerAdmin_getLogPtr
|
|
2619
|
-
newCallback_LoggerAdmin_getLog(T* instance, void (T::*cb)(const LogMessageSeq&, const ::std::string&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
|
2620
|
-
{
|
|
2621
|
-
return new CallbackNC_LoggerAdmin_getLog<T>(instance, cb, excb, sentcb);
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
/**
|
|
2625
|
-
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
|
2626
|
-
* IceProxy::Ice::LoggerAdmin::begin_getLog.
|
|
2627
|
-
* Create a wrapper instance by calling ::Ice::newCallback_LoggerAdmin_getLog.
|
|
2628
|
-
*/
|
|
2629
|
-
template<class T, typename CT>
|
|
2630
|
-
class Callback_LoggerAdmin_getLog : public Callback_LoggerAdmin_getLog_Base, public ::IceInternal::TwowayCallback<T, CT>
|
|
2631
|
-
{
|
|
2632
|
-
public:
|
|
2633
|
-
|
|
2634
|
-
typedef IceUtil::Handle<T> TPtr;
|
|
2635
|
-
|
|
2636
|
-
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
|
2637
|
-
typedef void (T::*Sent)(bool , const CT&);
|
|
2638
|
-
typedef void (T::*Response)(const LogMessageSeq&, const ::std::string&, const CT&);
|
|
692
|
+
static constexpr StreamHelperCategory helper = StreamHelperCategoryEnum;
|
|
693
|
+
static constexpr int minValue = 0;
|
|
694
|
+
static constexpr int maxValue = 3;
|
|
695
|
+
static constexpr int minWireSize = 1;
|
|
696
|
+
static constexpr bool fixedLength = false;
|
|
697
|
+
};
|
|
698
|
+
/// @endcond
|
|
2639
699
|
|
|
2640
|
-
|
|
2641
|
-
|
|
700
|
+
/// @cond INTERNAL
|
|
701
|
+
template<>
|
|
702
|
+
struct StreamableTraits<::Ice::LogMessage>
|
|
2642
703
|
{
|
|
2643
|
-
|
|
704
|
+
static constexpr StreamHelperCategory helper = StreamHelperCategoryStruct;
|
|
705
|
+
static constexpr int minWireSize = 11;
|
|
706
|
+
static constexpr bool fixedLength = false;
|
|
707
|
+
};
|
|
2644
708
|
|
|
2645
|
-
|
|
2646
|
-
|
|
709
|
+
template<>
|
|
710
|
+
struct StreamReader<::Ice::LogMessage>
|
|
2647
711
|
{
|
|
2648
|
-
|
|
2649
|
-
::
|
|
2650
|
-
LogMessageSeq ret;
|
|
2651
|
-
try
|
|
712
|
+
/// Unmarshals a ::Ice::LogMessage from the input stream.
|
|
713
|
+
static void read(InputStream* istr, ::Ice::LogMessage& v)
|
|
2652
714
|
{
|
|
2653
|
-
|
|
715
|
+
istr->readAll(v.type, v.timestamp, v.traceCategory, v.message);
|
|
2654
716
|
}
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
::IceInternal::Callback<T, CT>::exception(result, ex);
|
|
2658
|
-
return;
|
|
2659
|
-
}
|
|
2660
|
-
if(_response)
|
|
2661
|
-
{
|
|
2662
|
-
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, iceP_prefix, CT::dynamicCast(result->getCookie()));
|
|
2663
|
-
}
|
|
2664
|
-
}
|
|
2665
|
-
/// \endcond
|
|
2666
|
-
|
|
2667
|
-
private:
|
|
2668
|
-
|
|
2669
|
-
Response _response;
|
|
2670
|
-
};
|
|
2671
|
-
|
|
2672
|
-
/**
|
|
2673
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2674
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2675
|
-
* @param instance The callback object.
|
|
2676
|
-
* @param cb The success method of the callback object.
|
|
2677
|
-
* @param excb The exception method of the callback object.
|
|
2678
|
-
* @param sentcb The sent method of the callback object.
|
|
2679
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_getLog.
|
|
2680
|
-
*/
|
|
2681
|
-
template<class T, typename CT> Callback_LoggerAdmin_getLogPtr
|
|
2682
|
-
newCallback_LoggerAdmin_getLog(const IceUtil::Handle<T>& instance, void (T::*cb)(const LogMessageSeq&, const ::std::string&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2683
|
-
{
|
|
2684
|
-
return new Callback_LoggerAdmin_getLog<T, CT>(instance, cb, excb, sentcb);
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
-
/**
|
|
2688
|
-
* Creates a callback wrapper instance that delegates to your object.
|
|
2689
|
-
* Use this overload when your callback methods receive a cookie value.
|
|
2690
|
-
* @param instance The callback object.
|
|
2691
|
-
* @param cb The success method of the callback object.
|
|
2692
|
-
* @param excb The exception method of the callback object.
|
|
2693
|
-
* @param sentcb The sent method of the callback object.
|
|
2694
|
-
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::LoggerAdmin::begin_getLog.
|
|
2695
|
-
*/
|
|
2696
|
-
template<class T, typename CT> Callback_LoggerAdmin_getLogPtr
|
|
2697
|
-
newCallback_LoggerAdmin_getLog(T* instance, void (T::*cb)(const LogMessageSeq&, const ::std::string&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
|
2698
|
-
{
|
|
2699
|
-
return new Callback_LoggerAdmin_getLog<T, CT>(instance, cb, excb, sentcb);
|
|
2700
|
-
}
|
|
2701
|
-
|
|
717
|
+
};
|
|
718
|
+
/// @endcond
|
|
2702
719
|
}
|
|
2703
720
|
|
|
2704
|
-
|
|
721
|
+
// NOLINTEND(modernize-concat-nested-namespaces)
|
|
2705
722
|
|
|
2706
|
-
#include <
|
|
723
|
+
#include <Ice/PopDisableWarnings.h>
|
|
2707
724
|
#endif
|