zeroc-ice 3.6.5 → 3.7.0
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/BZIP2_LICENSE +42 -0
- data/ICE_LICENSE +17 -17
- data/LICENSE +12 -12
- data/bin/slice2rb +1 -1
- data/ext/Communicator.cpp +150 -53
- data/ext/Communicator.h +1 -1
- data/ext/Config.h +2 -12
- data/ext/Connection.cpp +89 -68
- data/ext/Connection.h +1 -1
- data/ext/Endpoint.cpp +16 -45
- data/ext/Endpoint.h +1 -1
- data/ext/ImplicitContext.cpp +1 -5
- data/ext/ImplicitContext.h +1 -1
- data/ext/Init.cpp +4 -1
- data/ext/Logger.cpp +1 -1
- data/ext/Logger.h +1 -1
- data/ext/Operation.cpp +33 -44
- data/ext/Operation.h +1 -1
- data/ext/Properties.cpp +1 -1
- data/ext/Properties.h +1 -1
- data/ext/Proxy.cpp +22 -57
- data/ext/Proxy.h +1 -1
- data/ext/Slice.cpp +5 -5
- data/ext/Slice.h +1 -1
- data/ext/Types.cpp +244 -171
- data/ext/Types.h +118 -66
- data/ext/Util.cpp +13 -9
- data/ext/Util.h +10 -10
- data/ext/ValueFactoryManager.cpp +445 -0
- data/ext/ValueFactoryManager.h +100 -0
- data/ext/extconf.rb +47 -45
- data/ext/ice/bzip2/blocksort.c +1094 -0
- data/ext/ice/bzip2/bzlib.c +1572 -0
- data/ext/ice/bzip2/bzlib.h +282 -0
- data/ext/ice/bzip2/bzlib_private.h +509 -0
- data/ext/ice/bzip2/compress.c +672 -0
- data/ext/ice/bzip2/crctable.c +104 -0
- data/ext/ice/bzip2/decompress.c +646 -0
- data/ext/ice/bzip2/huffman.c +205 -0
- data/ext/ice/bzip2/randtable.c +84 -0
- data/ext/ice/cpp/include/Ice/Application.h +77 -60
- data/ext/ice/cpp/include/Ice/AsyncResult.h +34 -318
- data/ext/ice/cpp/include/Ice/AsyncResultF.h +4 -2
- data/ext/ice/cpp/include/Ice/BatchRequestInterceptor.h +5 -10
- data/ext/ice/cpp/include/Ice/BatchRequestQueueF.h +1 -1
- data/ext/ice/cpp/include/Ice/Buffer.h +10 -10
- data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +14 -12
- data/ext/ice/cpp/include/Ice/Comparable.h +130 -0
- data/ext/ice/cpp/include/Ice/Config.h +7 -36
- data/ext/ice/cpp/include/Ice/ConnectionAsync.h +107 -11
- data/ext/ice/cpp/include/Ice/ConnectionIF.h +5 -1
- data/ext/ice/cpp/include/Ice/ConsoleUtil.h +28 -0
- data/ext/ice/cpp/include/Ice/{DefaultObjectFactory.h → DefaultValueFactory.h} +28 -14
- data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +4 -6
- data/ext/ice/cpp/include/Ice/Dispatcher.h +14 -13
- data/ext/ice/cpp/include/Ice/DynamicLibrary.h +7 -5
- data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +1 -1
- data/ext/ice/cpp/include/Ice/Exception.h +66 -56
- data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +69 -0
- data/ext/ice/cpp/include/Ice/FactoryTable.h +11 -12
- data/ext/ice/cpp/include/Ice/FactoryTableInit.h +27 -25
- data/ext/ice/cpp/include/Ice/Format.h +6 -1
- data/ext/ice/cpp/include/Ice/Functional.h +33 -33
- data/ext/ice/cpp/include/Ice/GCObject.h +9 -5
- data/ext/ice/cpp/include/Ice/Handle.h +6 -11
- data/ext/ice/cpp/include/Ice/Ice.h +9 -5
- data/ext/ice/cpp/include/{IceUtil → Ice}/IconvStringConverter.h +108 -62
- data/ext/ice/cpp/include/Ice/Incoming.h +109 -33
- data/ext/ice/cpp/include/Ice/IncomingAsync.h +63 -23
- data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +7 -1
- data/ext/ice/cpp/include/Ice/Initialize.h +178 -38
- data/ext/ice/cpp/include/Ice/InputStream.h +994 -0
- data/ext/ice/cpp/include/Ice/InstanceF.h +1 -2
- data/ext/ice/cpp/include/Ice/InterfaceByValue.h +46 -0
- data/ext/ice/cpp/include/Ice/LocalObject.h +9 -9
- data/ext/ice/cpp/include/Ice/LocalObjectF.h +1 -1
- data/ext/ice/cpp/include/Ice/LoggerUtil.h +20 -14
- data/ext/ice/cpp/include/Ice/MetricsAdminI.h +114 -65
- data/ext/ice/cpp/include/Ice/MetricsFunctional.h +23 -5
- data/ext/ice/cpp/include/Ice/MetricsObserverI.h +99 -26
- data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +17 -4
- data/ext/ice/cpp/include/Ice/Object.h +105 -56
- data/ext/ice/cpp/include/Ice/ObjectF.h +8 -3
- data/ext/ice/cpp/include/Ice/ObserverHelper.h +18 -8
- data/ext/ice/cpp/include/Ice/Optional.h +1084 -0
- data/ext/ice/cpp/include/Ice/OutgoingAsync.h +655 -84
- data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +12 -6
- data/ext/ice/cpp/include/Ice/OutputStream.h +753 -0
- data/ext/ice/cpp/include/Ice/Protocol.h +19 -12
- data/ext/ice/cpp/include/Ice/Proxy.h +1329 -717
- data/ext/ice/cpp/include/Ice/ProxyF.h +11 -33
- data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +1 -1
- data/ext/ice/cpp/include/Ice/ProxyHandle.h +34 -50
- data/ext/ice/cpp/include/Ice/ReferenceF.h +1 -1
- data/ext/ice/cpp/include/Ice/RegisterPlugins.h +22 -3
- data/ext/ice/cpp/include/Ice/RequestHandlerF.h +10 -4
- data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +6 -1
- data/ext/ice/cpp/include/{IceUtil → Ice}/SHA1.h +16 -16
- data/ext/ice/cpp/include/Ice/ServantManagerF.h +1 -1
- data/ext/ice/cpp/include/Ice/Service.h +13 -18
- data/ext/ice/cpp/include/Ice/SliceChecksums.h +1 -1
- data/ext/ice/cpp/include/Ice/SlicedData.h +46 -20
- data/ext/ice/cpp/include/Ice/SlicedDataF.h +14 -6
- data/ext/ice/cpp/include/Ice/StreamHelpers.h +159 -49
- data/ext/ice/cpp/include/Ice/StringConverter.h +52 -0
- data/ext/ice/cpp/include/Ice/ThreadPoolF.h +1 -1
- data/{slice/Ice/ObjectFactoryF.ice → ext/ice/cpp/include/Ice/UUID.h} +9 -7
- data/ext/ice/cpp/include/{IceUtil → Ice}/UniquePtr.h +21 -22
- data/ext/ice/cpp/include/Ice/UniqueRef.h +98 -0
- data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +40 -8
- data/ext/ice/cpp/include/Ice/Value.h +104 -0
- data/{slice/Freeze/ConnectionF.ice → ext/ice/cpp/include/Ice/ValueF.h} +11 -7
- data/ext/ice/cpp/include/IceSSL/Config.h +8 -23
- data/ext/ice/cpp/include/IceSSL/IceSSL.h +17 -6
- data/ext/ice/cpp/include/IceSSL/OpenSSL.h +130 -0
- data/ext/ice/cpp/include/IceSSL/Plugin.h +172 -259
- data/ext/ice/cpp/include/IceSSL/SChannel.h +66 -0
- data/ext/ice/cpp/include/IceSSL/SecureTransport.h +66 -0
- data/ext/ice/cpp/include/IceSSL/UWP.h +58 -0
- data/ext/ice/cpp/include/IceUtil/Atomic.h +8 -10
- data/ext/ice/cpp/include/IceUtil/Cond.h +17 -18
- data/ext/ice/cpp/include/IceUtil/Config.h +138 -39
- data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +97 -0
- data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +5 -5
- data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +23 -17
- data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +1 -3
- data/ext/ice/cpp/include/IceUtil/Exception.h +157 -67
- data/ext/ice/cpp/include/IceUtil/FileUtil.h +148 -0
- data/ext/ice/cpp/include/IceUtil/Functional.h +1 -2
- data/ext/ice/cpp/include/IceUtil/Handle.h +11 -11
- data/ext/ice/cpp/include/IceUtil/IceUtil.h +4 -10
- data/ext/ice/cpp/include/IceUtil/InputUtil.h +3 -3
- data/ext/ice/cpp/include/IceUtil/Iterator.h +2 -2
- data/ext/ice/cpp/include/IceUtil/Lock.h +8 -10
- data/ext/ice/cpp/include/IceUtil/Monitor.h +1 -2
- data/ext/ice/cpp/include/IceUtil/Mutex.h +17 -11
- data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +2 -2
- data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +4 -4
- data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +4 -4
- data/ext/ice/cpp/include/IceUtil/Optional.h +32 -18
- data/ext/ice/cpp/include/IceUtil/Options.h +17 -18
- data/ext/ice/cpp/include/IceUtil/OutputUtil.h +55 -29
- data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +6 -6
- data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +11 -10
- data/ext/ice/cpp/include/IceUtil/Random.h +3 -3
- data/ext/ice/cpp/include/IceUtil/RecMutex.h +7 -8
- data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +58 -0
- data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +1 -9
- data/ext/ice/cpp/include/IceUtil/ScopedArray.h +8 -2
- data/ext/ice/cpp/include/IceUtil/Shared.h +5 -7
- data/ext/ice/cpp/{src → include}/IceUtil/StopWatch.h +2 -2
- data/ext/ice/cpp/include/IceUtil/StringConverter.h +77 -72
- data/ext/ice/cpp/include/IceUtil/StringUtil.h +32 -21
- data/ext/ice/cpp/include/IceUtil/Thread.h +10 -12
- data/ext/ice/cpp/include/IceUtil/ThreadException.h +33 -42
- data/ext/ice/cpp/include/IceUtil/Time.h +3 -3
- data/ext/ice/cpp/include/IceUtil/Timer.h +14 -13
- data/ext/ice/cpp/include/IceUtil/UUID.h +2 -2
- data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +1 -1
- data/ext/ice/cpp/include/{Ice → generated/Ice}/BuiltinSequences.h +41 -8
- data/ext/ice/cpp/include/generated/Ice/Communicator.h +364 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/CommunicatorF.h +40 -8
- data/ext/ice/cpp/include/generated/Ice/Connection.h +872 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ConnectionF.h +46 -8
- data/ext/ice/cpp/include/{Ice → generated/Ice}/Current.h +71 -8
- data/ext/ice/cpp/include/generated/Ice/Endpoint.h +582 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/EndpointF.h +62 -8
- data/ext/ice/cpp/include/{Ice → generated/Ice}/EndpointTypes.h +31 -16
- data/ext/ice/cpp/include/{Ice → generated/Ice}/FacetMap.h +23 -8
- data/ext/ice/cpp/include/generated/Ice/Identity.h +221 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ImplicitContext.h +72 -13
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ImplicitContextF.h +40 -8
- data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +602 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/InstrumentationF.h +54 -8
- data/ext/ice/cpp/include/generated/Ice/LocalException.h +2802 -0
- data/ext/ice/cpp/include/generated/Ice/Locator.h +2036 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/LocatorF.h +53 -12
- data/ext/ice/cpp/include/{Ice → generated/Ice}/Logger.h +71 -13
- data/ext/ice/cpp/include/{Ice → generated/Ice}/LoggerF.h +40 -8
- data/ext/ice/cpp/include/generated/Ice/Metrics.h +2649 -0
- data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +302 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ObjectAdapterF.h +40 -8
- data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +142 -0
- data/ext/ice/cpp/include/generated/Ice/Plugin.h +197 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/PluginF.h +43 -8
- data/ext/ice/cpp/include/generated/Ice/Process.h +536 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ProcessF.h +45 -10
- data/ext/ice/cpp/include/{Ice → generated/Ice}/Properties.h +88 -21
- data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +749 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/PropertiesF.h +48 -10
- data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +1449 -0
- data/ext/ice/cpp/include/generated/Ice/Router.h +1032 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/RouterF.h +45 -10
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ServantLocator.h +65 -13
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ServantLocatorF.h +40 -8
- data/ext/ice/cpp/include/{Ice → generated/Ice}/SliceChecksumDict.h +23 -8
- data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +169 -0
- data/ext/ice/cpp/include/generated/Ice/Version.h +334 -0
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +172 -0
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +98 -0
- data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +156 -0
- data/ext/ice/cpp/src/Ice/ACM.cpp +18 -14
- data/ext/ice/cpp/src/Ice/ACM.h +9 -2
- data/ext/ice/cpp/{include → src}/Ice/ACMF.h +10 -5
- data/ext/ice/cpp/src/Ice/Acceptor.cpp +6 -1
- data/ext/ice/cpp/src/Ice/Acceptor.h +4 -3
- data/ext/ice/cpp/src/Ice/AcceptorF.h +1 -1
- data/ext/ice/cpp/src/{IceUtil → Ice}/ArgVector.cpp +9 -9
- data/ext/ice/cpp/src/{IceUtil → Ice}/ArgVector.h +7 -7
- data/ext/ice/cpp/src/Ice/AsyncResult.cpp +15 -538
- data/ext/ice/cpp/src/Ice/Base64.cpp +11 -11
- data/ext/ice/cpp/src/Ice/Base64.h +1 -1
- data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +40 -12
- data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +15 -10
- data/ext/ice/cpp/src/Ice/Buffer.cpp +74 -12
- data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +20 -6
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +85 -190
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +17 -18
- data/ext/ice/cpp/src/Ice/Communicator.cpp +39 -8
- data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +271 -104
- data/ext/ice/cpp/src/Ice/CommunicatorI.h +84 -28
- data/ext/ice/cpp/src/{IceUtil → Ice}/Cond.cpp +3 -3
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +58 -125
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +11 -22
- data/ext/ice/cpp/src/Ice/ConnectRequestHandlerF.h +6 -2
- data/ext/ice/cpp/src/Ice/Connection.cpp +88 -8
- data/ext/ice/cpp/src/Ice/ConnectionF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +158 -80
- data/ext/ice/cpp/src/Ice/ConnectionFactory.h +41 -23
- data/ext/ice/cpp/{include → src}/Ice/ConnectionFactoryF.h +8 -3
- data/ext/ice/cpp/src/Ice/ConnectionI.cpp +707 -653
- data/ext/ice/cpp/src/Ice/ConnectionI.h +97 -69
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +2 -15
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +4 -3
- data/ext/ice/cpp/src/Ice/Connector.cpp +6 -1
- data/ext/ice/cpp/src/Ice/Connector.h +4 -3
- data/ext/ice/cpp/src/Ice/ConnectorF.h +1 -1
- data/ext/ice/cpp/src/{IceUtil → Ice}/CountDownLatch.cpp +4 -4
- data/ext/ice/cpp/src/Ice/Current.cpp +29 -6
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +6 -5
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +1 -1
- data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +1 -1
- data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +5 -25
- data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +29 -19
- data/ext/ice/cpp/src/Ice/Endpoint.cpp +85 -6
- data/ext/ice/cpp/src/Ice/EndpointF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +152 -1
- data/ext/ice/cpp/src/Ice/EndpointFactory.h +72 -6
- data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +1 -1
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +35 -19
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +10 -4
- data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +1 -1
- data/ext/ice/cpp/src/Ice/EndpointI.cpp +17 -1
- data/ext/ice/cpp/src/Ice/EndpointI.h +35 -9
- data/ext/ice/cpp/src/Ice/EndpointIF.h +18 -5
- data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +18 -6
- data/ext/ice/cpp/src/Ice/EventHandler.cpp +6 -4
- data/ext/ice/cpp/src/Ice/EventHandler.h +13 -8
- data/ext/ice/cpp/src/Ice/EventHandlerF.h +5 -2
- data/ext/ice/cpp/src/Ice/Exception.cpp +95 -86
- data/ext/ice/cpp/src/Ice/FacetMap.cpp +20 -6
- data/ext/ice/cpp/src/Ice/FactoryTable.cpp +37 -28
- data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +2 -4
- data/ext/ice/cpp/src/Ice/GCObject.cpp +28 -25
- data/ext/ice/cpp/src/Ice/HashUtil.h +2 -3
- data/ext/ice/cpp/src/Ice/HttpParser.cpp +1 -2
- data/ext/ice/cpp/src/Ice/HttpParser.h +1 -1
- data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +92 -53
- data/ext/ice/cpp/src/Ice/IPEndpointI.h +19 -10
- data/ext/ice/cpp/src/Ice/IPEndpointIF.h +6 -2
- data/ext/ice/cpp/src/Ice/IconvStringConverter.cpp +56 -0
- data/ext/ice/cpp/src/Ice/Identity.cpp +24 -10
- data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +37 -6
- data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +14 -14
- data/ext/ice/cpp/src/Ice/ImplicitContextI.h +7 -5
- data/ext/ice/cpp/src/Ice/Incoming.cpp +276 -245
- data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +104 -209
- data/ext/ice/cpp/src/Ice/IncomingRequest.h +5 -4
- data/ext/ice/cpp/src/Ice/Initialize.cpp +299 -172
- data/ext/ice/cpp/src/Ice/InputStream.cpp +2773 -0
- data/ext/ice/cpp/src/Ice/Instance.cpp +191 -231
- data/ext/ice/cpp/src/Ice/Instance.h +30 -18
- data/ext/ice/cpp/src/Ice/Instrumentation.cpp +106 -7
- data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +117 -99
- data/ext/ice/cpp/src/Ice/InstrumentationI.h +30 -31
- data/ext/ice/cpp/src/Ice/LocalException.cpp +1190 -416
- data/ext/ice/cpp/src/Ice/LocalObject.cpp +1 -2
- data/ext/ice/cpp/src/Ice/Locator.cpp +1167 -1215
- data/ext/ice/cpp/src/Ice/LocatorF.cpp +29 -6
- data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +129 -163
- data/ext/ice/cpp/src/Ice/LocatorInfo.h +29 -29
- data/ext/ice/cpp/src/Ice/LocatorInfoF.h +1 -1
- data/ext/ice/cpp/src/Ice/Logger.cpp +35 -5
- data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +178 -73
- data/ext/ice/cpp/src/Ice/LoggerAdminI.h +4 -4
- data/ext/ice/cpp/src/Ice/LoggerF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/LoggerI.cpp +14 -44
- data/ext/ice/cpp/src/Ice/LoggerI.h +7 -13
- data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +10 -12
- data/ext/ice/cpp/src/Ice/Metrics.cpp +1059 -1069
- data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +49 -19
- data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +1 -2
- data/ext/ice/cpp/src/Ice/Network.cpp +534 -170
- data/ext/ice/cpp/src/Ice/Network.h +100 -23
- data/ext/ice/cpp/src/Ice/NetworkF.h +2 -2
- data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +21 -14
- data/ext/ice/cpp/src/Ice/NetworkProxy.h +5 -2
- data/ext/ice/cpp/src/Ice/NetworkProxyF.h +1 -1
- data/ext/ice/cpp/src/Ice/Object.cpp +217 -221
- data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +41 -6
- data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +35 -14
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +13 -7
- data/ext/ice/cpp/{include → src}/Ice/ObjectAdapterFactoryF.h +5 -1
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +184 -58
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +32 -26
- data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +37 -6
- data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +9 -32
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +40 -18
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +14 -5
- data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +803 -365
- data/ext/ice/cpp/src/Ice/OutputStream.cpp +1399 -0
- data/ext/ice/cpp/src/Ice/Plugin.cpp +45 -6
- data/ext/ice/cpp/src/Ice/PluginF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +13 -13
- data/ext/ice/cpp/src/Ice/PluginManagerI.h +5 -6
- data/ext/ice/cpp/src/Ice/Process.cpp +256 -114
- data/ext/ice/cpp/src/Ice/ProcessF.cpp +29 -6
- data/ext/ice/cpp/src/Ice/Properties.cpp +38 -8
- data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +340 -328
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +81 -17
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +29 -5
- data/ext/ice/cpp/src/Ice/PropertiesF.cpp +29 -6
- data/ext/ice/cpp/src/Ice/PropertiesI.cpp +25 -26
- data/ext/ice/cpp/src/Ice/PropertiesI.h +8 -11
- data/ext/ice/cpp/src/Ice/PropertyNames.cpp +107 -50
- data/ext/ice/cpp/src/Ice/PropertyNames.h +4 -2
- data/ext/ice/cpp/src/Ice/Protocol.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +37 -2
- data/ext/ice/cpp/src/Ice/ProtocolInstance.h +9 -20
- data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +1 -1
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +6 -1
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +3 -1
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +1 -1
- data/ext/ice/cpp/src/Ice/Proxy.cpp +690 -964
- data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +23 -32
- data/ext/ice/cpp/src/Ice/ProxyFactory.h +16 -11
- data/ext/ice/cpp/src/Ice/Reference.cpp +75 -69
- data/ext/ice/cpp/src/Ice/Reference.h +27 -22
- data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +18 -21
- data/ext/ice/cpp/src/Ice/ReferenceFactory.h +12 -12
- data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +1 -1
- data/ext/ice/cpp/src/Ice/RegisterPluginsInit.cpp +18 -4
- data/ext/ice/cpp/src/Ice/RegisterPluginsInit.h +1 -1
- data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +672 -552
- data/ext/ice/cpp/src/Ice/ReplyStatus.h +1 -1
- data/ext/ice/cpp/src/Ice/RequestHandler.cpp +5 -3
- data/ext/ice/cpp/src/Ice/RequestHandler.h +10 -13
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +10 -6
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +2 -2
- data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +3 -6
- data/ext/ice/cpp/src/Ice/ResponseHandler.h +16 -7
- data/ext/ice/cpp/src/Ice/RetryQueue.cpp +6 -12
- data/ext/ice/cpp/src/Ice/RetryQueue.h +7 -6
- data/ext/ice/cpp/src/Ice/RetryQueueF.h +1 -1
- data/ext/ice/cpp/src/Ice/Router.cpp +523 -474
- data/ext/ice/cpp/src/Ice/RouterF.cpp +29 -6
- data/ext/ice/cpp/src/Ice/RouterInfo.cpp +91 -70
- data/ext/ice/cpp/src/Ice/RouterInfo.h +43 -32
- data/ext/ice/cpp/src/Ice/RouterInfoF.h +1 -1
- data/ext/ice/cpp/src/{IceUtil → Ice}/SHA1.cpp +21 -21
- data/ext/ice/cpp/src/Ice/Selector.cpp +989 -923
- data/ext/ice/cpp/src/Ice/Selector.h +100 -147
- data/ext/ice/cpp/src/Ice/ServantLocator.cpp +37 -6
- data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/ServantManager.cpp +9 -9
- data/ext/ice/cpp/src/Ice/ServantManager.h +1 -1
- data/ext/ice/cpp/src/Ice/SharedContext.h +2 -2
- data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +20 -6
- data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +2 -2
- data/ext/ice/cpp/src/Ice/SlicedData.cpp +72 -20
- data/ext/ice/cpp/src/Ice/StreamSocket.cpp +173 -18
- data/ext/ice/cpp/src/Ice/StreamSocket.h +13 -4
- data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +48 -17
- data/ext/ice/cpp/src/Ice/StringUtil.h +35 -0
- data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +8 -4
- data/ext/ice/cpp/src/Ice/SysLoggerI.h +2 -3
- data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +158 -32
- data/ext/ice/cpp/src/Ice/TcpAcceptor.h +12 -5
- data/ext/ice/cpp/src/Ice/TcpConnector.cpp +1 -7
- data/ext/ice/cpp/src/Ice/TcpConnector.h +1 -2
- data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +40 -32
- data/ext/ice/cpp/src/Ice/TcpEndpointI.h +11 -8
- data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +12 -27
- data/ext/ice/cpp/src/Ice/TcpTransceiver.h +7 -10
- data/ext/ice/cpp/src/{IceUtil → Ice}/Thread.cpp +24 -41
- data/ext/ice/cpp/src/Ice/ThreadPool.cpp +175 -267
- data/ext/ice/cpp/src/Ice/ThreadPool.h +38 -43
- data/ext/ice/cpp/src/{IceUtil → Ice}/Timer.cpp +28 -21
- data/ext/ice/cpp/src/Ice/TraceLevels.cpp +2 -2
- data/ext/ice/cpp/src/Ice/TraceLevels.h +1 -1
- data/ext/ice/cpp/src/Ice/TraceLevelsF.h +2 -2
- data/ext/ice/cpp/src/Ice/TraceUtil.cpp +53 -31
- data/ext/ice/cpp/src/Ice/TraceUtil.h +13 -6
- data/ext/ice/cpp/src/Ice/Transceiver.cpp +1 -2
- data/ext/ice/cpp/src/Ice/Transceiver.h +8 -7
- data/ext/ice/cpp/src/Ice/TransceiverF.h +1 -1
- data/ext/ice/cpp/src/Ice/UdpConnector.cpp +2 -8
- data/ext/ice/cpp/src/Ice/UdpConnector.h +1 -2
- data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +92 -31
- data/ext/ice/cpp/src/Ice/UdpEndpointI.h +12 -4
- data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +150 -179
- data/ext/ice/cpp/src/Ice/UdpTransceiver.h +15 -17
- data/ext/ice/cpp/src/Ice/Value.cpp +81 -0
- data/ext/ice/cpp/src/Ice/ValueFactory.cpp +84 -0
- data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +70 -0
- data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.h +42 -0
- data/ext/ice/cpp/src/Ice/Version.cpp +24 -14
- data/ext/ice/cpp/src/Ice/VirtualShared.h +43 -0
- data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +3 -9
- data/ext/ice/cpp/src/Ice/WSAcceptor.h +3 -7
- data/ext/ice/cpp/src/Ice/WSConnector.cpp +5 -11
- data/ext/ice/cpp/src/Ice/WSConnector.h +3 -6
- data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +185 -80
- data/ext/ice/cpp/src/Ice/WSEndpoint.h +21 -31
- data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +41 -37
- data/ext/ice/cpp/src/Ice/WSTransceiver.h +7 -21
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +526 -264
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +341 -455
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +86 -26
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +59 -23
- data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +315 -61
- data/ext/ice/cpp/src/IceDiscovery/LookupI.h +83 -36
- data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +57 -59
- data/ext/ice/cpp/src/IceDiscovery/PluginI.h +3 -3
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +396 -159
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +251 -355
- data/ext/ice/cpp/src/IceLocatorDiscovery/Plugin.h +52 -0
- data/ext/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +526 -131
- data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +19 -165
- data/ext/ice/cpp/src/IceSSL/AcceptorI.h +8 -17
- data/ext/ice/cpp/src/IceSSL/CertificateI.cpp +284 -0
- data/ext/ice/cpp/src/IceSSL/CertificateI.h +69 -0
- data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +39 -11
- data/ext/ice/cpp/src/{Ice/ObjectFactoryF.cpp → IceSSL/ConnectionInfoF.cpp} +31 -9
- data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +14 -56
- data/ext/ice/cpp/src/IceSSL/ConnectorI.h +6 -13
- data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +205 -197
- data/ext/ice/cpp/src/IceSSL/EndpointI.h +41 -33
- data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +39 -10
- data/ext/ice/cpp/src/IceSSL/Instance.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/Instance.h +7 -7
- data/ext/ice/cpp/src/IceSSL/InstanceF.h +11 -7
- data/ext/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +588 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +117 -152
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.h +64 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngineF.h +32 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +132 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +400 -89
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +36 -21
- data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +291 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.h +63 -0
- data/ext/ice/cpp/src/IceSSL/PluginI.cpp +71 -41
- data/ext/ice/cpp/src/IceSSL/PluginI.h +13 -18
- data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +9 -54
- data/ext/ice/cpp/src/IceSSL/RFC2253.h +7 -7
- data/ext/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +585 -0
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +491 -75
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.h +126 -0
- data/ext/ice/cpp/src/IceSSL/SChannelEngineF.h +32 -0
- data/ext/ice/cpp/src/IceSSL/SChannelPluginI.cpp +78 -0
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +126 -169
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +19 -22
- data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +79 -74
- data/ext/ice/cpp/src/IceSSL/SSLEngine.h +24 -187
- data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +4 -19
- data/ext/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +862 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +56 -214
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +60 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngineF.h +31 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +80 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +137 -144
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +25 -28
- data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +857 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.h +46 -0
- data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +9 -13
- data/ext/ice/cpp/src/IceSSL/TrustManager.h +4 -4
- data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +3 -3
- data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +271 -0
- data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +343 -0
- data/ext/ice/cpp/src/IceSSL/UWPEngine.h +46 -0
- data/ext/ice/cpp/{include/Ice/ObjectFactoryManagerF.h → src/IceSSL/UWPEngineF.h} +13 -8
- data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +94 -0
- data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +388 -0
- data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +76 -0
- data/ext/ice/cpp/src/IceSSL/Util.cpp +66 -1256
- data/ext/ice/cpp/src/IceSSL/Util.h +48 -137
- data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +162 -0
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +22 -22
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +34 -26
- data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +20 -31
- data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +25 -116
- data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +1 -1
- data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +1 -1
- data/ext/ice/cpp/src/IceUtil/Options.cpp +23 -46
- data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +7 -6
- data/ext/ice/cpp/src/IceUtil/Random.cpp +13 -13
- data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +3 -9
- data/ext/ice/cpp/src/IceUtil/Shared.cpp +8 -3
- data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +501 -264
- data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +540 -235
- data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +37 -74
- data/ext/ice/cpp/src/IceUtil/Time.cpp +1 -1
- data/ext/ice/cpp/src/IceUtil/UUID.cpp +10 -10
- data/ext/ice/cpp/src/IceUtil/Unicode.cpp +98 -97
- data/ext/ice/cpp/src/IceUtil/Unicode.h +21 -35
- data/ext/ice/cpp/src/IceUtil/UtilException.cpp +838 -0
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +815 -163
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.h +76 -0
- data/ext/ice/cpp/src/Slice/Checksum.cpp +2 -2
- data/ext/ice/cpp/{include → src}/Slice/Checksum.h +2 -2
- data/ext/ice/cpp/src/Slice/FileTracker.cpp +25 -78
- data/ext/ice/cpp/{include → src}/Slice/FileTracker.h +9 -9
- data/ext/ice/cpp/src/Slice/Grammar.cpp +1994 -1943
- data/ext/ice/cpp/src/Slice/Grammar.h +44 -24
- data/ext/ice/cpp/src/Slice/GrammarUtil.h +14 -14
- data/ext/ice/cpp/src/Slice/JavaUtil.cpp +2658 -1927
- data/ext/ice/cpp/{include → src}/Slice/JavaUtil.h +178 -59
- data/ext/ice/cpp/src/Slice/MD5.cpp +1 -1
- data/ext/ice/cpp/src/Slice/MD5.h +1 -1
- data/ext/ice/cpp/src/Slice/MD5I.cpp +0 -1
- data/ext/ice/cpp/src/Slice/MD5I.h +1 -1
- data/ext/ice/cpp/src/Slice/PHPUtil.cpp +12 -15
- data/ext/ice/cpp/{include → src}/Slice/PHPUtil.h +6 -15
- data/ext/ice/cpp/src/Slice/Parser.cpp +802 -307
- data/ext/ice/cpp/{include → src}/Slice/Parser.h +76 -84
- data/ext/ice/cpp/src/Slice/Preprocessor.cpp +43 -21
- data/ext/ice/cpp/{include → src}/Slice/Preprocessor.h +7 -12
- data/ext/ice/cpp/src/Slice/Python.cpp +207 -86
- data/ext/ice/cpp/src/Slice/PythonUtil.cpp +683 -679
- data/ext/ice/cpp/{include → src}/Slice/PythonUtil.h +19 -8
- data/ext/ice/cpp/src/Slice/Ruby.cpp +38 -34
- data/ext/ice/cpp/src/Slice/RubyUtil.cpp +177 -445
- data/ext/ice/cpp/{include → src}/Slice/RubyUtil.h +6 -6
- data/ext/ice/cpp/src/Slice/Scanner.cpp +218 -306
- data/ext/ice/cpp/src/Slice/{Util.cpp → SliceUtil.cpp} +37 -64
- data/ext/ice/cpp/src/Slice/StringLiteralUtil.cpp +374 -0
- data/ext/ice/cpp/src/Slice/Util.h +54 -0
- data/ext/ice/mcpp/Makefile +5 -2
- data/ice.gemspec +2 -7
- data/lib/Glacier2.rb +1 -1
- data/lib/Glacier2/Metrics.rb +7 -46
- data/lib/Glacier2/PermissionsVerifier.rb +24 -95
- data/lib/Glacier2/PermissionsVerifierF.rb +3 -3
- data/lib/Glacier2/Router.rb +32 -74
- data/lib/Glacier2/RouterF.rb +3 -3
- data/lib/Glacier2/SSLInfo.rb +4 -7
- data/lib/Glacier2/Session.rb +88 -307
- data/lib/Ice.rb +83 -52
- data/lib/Ice/BuiltinSequences.rb +4 -4
- data/lib/Ice/Communicator.rb +56 -58
- data/lib/Ice/CommunicatorF.rb +3 -3
- data/lib/Ice/Connection.rb +153 -162
- data/lib/Ice/ConnectionF.rb +3 -3
- data/lib/Ice/Current.rb +4 -11
- data/lib/Ice/Endpoint.rb +57 -133
- data/lib/Ice/EndpointF.rb +3 -3
- data/lib/Ice/EndpointTypes.rb +3 -7
- data/lib/Ice/FacetMap.rb +4 -4
- data/lib/Ice/Identity.rb +5 -8
- data/lib/Ice/ImplicitContext.rb +5 -34
- data/lib/Ice/ImplicitContextF.rb +3 -3
- data/lib/Ice/Instrumentation.rb +23 -275
- data/lib/Ice/InstrumentationF.rb +3 -3
- data/lib/Ice/LocalException.rb +95 -141
- data/lib/Ice/Locator.rb +51 -165
- data/lib/Ice/LocatorF.rb +3 -3
- data/lib/Ice/Logger.rb +5 -34
- data/lib/Ice/LoggerF.rb +3 -3
- data/lib/Ice/Metrics.rb +61 -416
- data/lib/Ice/ObjectAdapter.rb +34 -0
- data/lib/Ice/ObjectAdapterF.rb +3 -3
- data/lib/Ice/ObjectFactory.rb +5 -30
- data/lib/Ice/Plugin.rb +7 -60
- data/lib/Ice/PluginF.rb +3 -3
- data/lib/Ice/Process.rb +16 -52
- data/lib/Ice/ProcessF.rb +3 -3
- data/lib/Ice/Properties.rb +5 -41
- data/lib/Ice/PropertiesAdmin.rb +19 -56
- data/lib/Ice/PropertiesF.rb +3 -3
- data/lib/Ice/RemoteLogger.rb +34 -115
- data/lib/Ice/Router.rb +29 -101
- data/lib/Ice/RouterF.rb +3 -3
- data/lib/Ice/ServantLocator.rb +31 -0
- data/lib/Ice/{ObjectFactoryF.rb → ServantLocatorF.rb} +6 -6
- data/lib/Ice/SliceChecksumDict.rb +3 -3
- data/lib/Ice/ValueFactory.rb +33 -0
- data/lib/Ice/Version.rb +5 -11
- data/lib/IceBox.rb +1 -1
- data/lib/IceBox/IceBox.rb +44 -148
- data/lib/IceGrid.rb +1 -4
- data/lib/IceGrid/Admin.rb +551 -427
- data/lib/IceGrid/Descriptor.rb +62 -529
- data/lib/IceGrid/Exception.rb +24 -45
- data/lib/IceGrid/FileParser.rb +14 -50
- data/lib/IceGrid/PluginFacade.rb +40 -0
- data/lib/IceGrid/Registry.rb +151 -58
- data/lib/IceGrid/Session.rb +25 -64
- data/lib/IceGrid/UserAccountMapper.rb +14 -50
- data/lib/IcePatch2.rb +1 -1
- data/lib/IcePatch2/FileInfo.rb +5 -11
- data/lib/IcePatch2/FileServer.rb +33 -76
- data/lib/IceStorm.rb +1 -1
- data/lib/IceStorm/IceStorm.rb +79 -206
- data/lib/IceStorm/Metrics.rb +11 -89
- data/slice/Glacier2/Metrics.ice +8 -4
- data/slice/Glacier2/PermissionsVerifier.ice +10 -7
- data/slice/Glacier2/PermissionsVerifierF.ice +7 -4
- data/slice/Glacier2/Router.ice +10 -8
- data/slice/Glacier2/RouterF.ice +7 -4
- data/slice/Glacier2/SSLInfo.ice +8 -5
- data/slice/Glacier2/Session.ice +15 -13
- data/slice/Ice/BuiltinSequences.ice +7 -4
- data/slice/Ice/Communicator.ice +141 -66
- data/slice/Ice/CommunicatorF.ice +7 -4
- data/slice/Ice/Connection.ice +183 -86
- data/slice/Ice/ConnectionF.ice +7 -4
- data/slice/Ice/Current.ice +13 -9
- data/slice/Ice/Endpoint.ice +63 -14
- data/slice/Ice/EndpointF.ice +7 -4
- data/slice/Ice/EndpointTypes.ice +8 -6
- data/slice/Ice/FacetMap.ice +7 -4
- data/slice/Ice/Identity.ice +13 -5
- data/slice/Ice/ImplicitContext.ice +20 -18
- data/slice/Ice/ImplicitContextF.ice +7 -4
- data/slice/Ice/Instrumentation.ice +20 -19
- data/slice/Ice/InstrumentationF.ice +8 -5
- data/slice/Ice/LocalException.ice +87 -87
- data/slice/Ice/Locator.ice +19 -18
- data/slice/Ice/LocatorF.ice +7 -4
- data/slice/Ice/Logger.ice +9 -7
- data/slice/Ice/LoggerF.ice +7 -4
- data/slice/Ice/Metrics.ice +18 -14
- data/slice/Ice/ObjectAdapter.ice +30 -13
- data/slice/Ice/ObjectAdapterF.ice +7 -4
- data/slice/Ice/ObjectFactory.ice +15 -12
- data/slice/Ice/Plugin.ice +9 -6
- data/slice/Ice/PluginF.ice +8 -5
- data/slice/Ice/Process.ice +9 -6
- data/slice/Ice/ProcessF.ice +7 -4
- data/slice/Ice/Properties.ice +15 -12
- data/slice/Ice/PropertiesAdmin.ice +9 -5
- data/slice/Ice/PropertiesF.ice +7 -4
- data/slice/Ice/RemoteLogger.ice +33 -24
- data/slice/Ice/Router.ice +16 -7
- data/slice/Ice/RouterF.ice +7 -4
- data/slice/Ice/ServantLocator.ice +13 -10
- data/slice/Ice/ServantLocatorF.ice +7 -4
- data/slice/Ice/SliceChecksumDict.ice +7 -4
- data/slice/Ice/ValueFactory.ice +127 -0
- data/slice/Ice/Version.ice +9 -5
- data/slice/IceBT/ConnectionInfo.ice +53 -0
- data/slice/IceBT/EndpointInfo.ice +51 -0
- data/slice/IceBT/Types.ice +39 -0
- data/slice/IceBox/IceBox.ice +20 -21
- data/slice/IceDiscovery/IceDiscovery.ice +9 -5
- data/slice/IceGrid/Admin.ice +390 -30
- data/slice/IceGrid/Descriptor.ice +37 -29
- data/slice/IceGrid/Exception.ice +33 -27
- data/slice/IceGrid/FileParser.ice +9 -6
- data/slice/IceGrid/PluginFacade.ice +11 -9
- data/slice/IceGrid/Registry.ice +139 -16
- data/slice/IceGrid/Session.ice +10 -8
- data/slice/IceGrid/UserAccountMapper.ice +9 -6
- data/slice/IceIAP/ConnectionInfo.ice +70 -0
- data/slice/IceIAP/EndpointInfo.ice +64 -0
- data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +9 -7
- data/slice/IcePatch2/FileInfo.ice +9 -8
- data/slice/IcePatch2/FileServer.ice +17 -13
- data/slice/IceSSL/ConnectionInfo.ice +14 -17
- data/slice/IceSSL/ConnectionInfoF.ice +24 -0
- data/slice/IceSSL/EndpointInfo.ice +9 -30
- data/slice/IceStorm/IceStorm.ice +22 -18
- data/slice/IceStorm/Metrics.ice +9 -5
- metadata +154 -120
- data/ext/ObjectFactory.cpp +0 -140
- data/ext/ObjectFactory.h +0 -50
- data/ext/ice/cpp/include/Ice/BasicStream.h +0 -1335
- data/ext/ice/cpp/include/Ice/Communicator.h +0 -200
- data/ext/ice/cpp/include/Ice/Connection.h +0 -497
- data/ext/ice/cpp/include/Ice/DeprecatedStringConverter.h +0 -62
- data/ext/ice/cpp/include/Ice/Endpoint.h +0 -341
- data/ext/ice/cpp/include/Ice/Identity.h +0 -168
- data/ext/ice/cpp/include/Ice/Instrumentation.h +0 -365
- data/ext/ice/cpp/include/Ice/LocalException.h +0 -1030
- data/ext/ice/cpp/include/Ice/Locator.h +0 -2193
- data/ext/ice/cpp/include/Ice/Metrics.h +0 -2974
- data/ext/ice/cpp/include/Ice/ObjectAdapter.h +0 -168
- data/ext/ice/cpp/include/Ice/ObjectFactory.h +0 -92
- data/ext/ice/cpp/include/Ice/ObjectFactoryF.h +0 -66
- data/ext/ice/cpp/include/Ice/Outgoing.h +0 -225
- data/ext/ice/cpp/include/Ice/Plugin.h +0 -125
- data/ext/ice/cpp/include/Ice/Process.h +0 -574
- data/ext/ice/cpp/include/Ice/PropertiesAdmin.h +0 -830
- data/ext/ice/cpp/include/Ice/RemoteLogger.h +0 -1500
- data/ext/ice/cpp/include/Ice/Router.h +0 -1159
- data/ext/ice/cpp/include/Ice/Stream.h +0 -447
- data/ext/ice/cpp/include/Ice/StreamF.h +0 -30
- data/ext/ice/cpp/include/Ice/Version.h +0 -262
- data/ext/ice/cpp/include/IceSSL/ConnectionInfo.h +0 -158
- data/ext/ice/cpp/include/IceSSL/EndpointInfo.h +0 -142
- data/ext/ice/cpp/include/IceUtil/AbstractMutex.h +0 -119
- data/ext/ice/cpp/include/IceUtil/Cache.h +0 -362
- data/ext/ice/cpp/include/Slice/CPlusPlusUtil.h +0 -65
- data/ext/ice/cpp/include/Slice/CsUtil.h +0 -92
- data/ext/ice/cpp/include/Slice/DotNetNames.h +0 -34
- data/ext/ice/cpp/include/Slice/ObjCUtil.h +0 -127
- data/ext/ice/cpp/include/Slice/Util.h +0 -56
- data/ext/ice/cpp/src/Ice/BasicStream.cpp +0 -3428
- data/ext/ice/cpp/src/Ice/DeprecatedStringConverter.cpp +0 -62
- data/ext/ice/cpp/src/Ice/ObjectFactoryManager.cpp +0 -139
- data/ext/ice/cpp/src/Ice/ObjectFactoryManager.h +0 -43
- data/ext/ice/cpp/src/Ice/Outgoing.cpp +0 -694
- data/ext/ice/cpp/src/Ice/Stream.cpp +0 -53
- data/ext/ice/cpp/src/Ice/StreamI.cpp +0 -832
- data/ext/ice/cpp/src/Ice/StreamI.h +0 -198
- data/ext/ice/cpp/src/IceSSL/Certificate.cpp +0 -1336
- data/ext/ice/cpp/src/IceUtil/Exception.cpp +0 -792
- data/ext/ice/cpp/src/IceUtil/FileUtil.h +0 -185
- data/ext/ice/cpp/src/Slice/CsUtil.cpp +0 -2660
- data/ext/ice/cpp/src/Slice/DotNetNames.cpp +0 -146
- data/ext/ice/cpp/src/Slice/ObjCUtil.cpp +0 -1310
- data/lib/IceGrid/Locator.rb +0 -106
- data/lib/IceGrid/Observer.rb +0 -572
- data/lib/IceGrid/Query.rb +0 -169
- data/slice/Freeze/BackgroundSaveEvictor.ice +0 -111
- data/slice/Freeze/CatalogData.ice +0 -49
- data/slice/Freeze/Connection.ice +0 -121
- data/slice/Freeze/DB.ice +0 -37
- data/slice/Freeze/Evictor.ice +0 -346
- data/slice/Freeze/EvictorF.ice +0 -22
- data/slice/Freeze/EvictorStorage.ice +0 -72
- data/slice/Freeze/Exception.ice +0 -100
- data/slice/Freeze/Transaction.ice +0 -58
- data/slice/Freeze/TransactionalEvictor.ice +0 -50
- data/slice/IceGrid/Locator.ice +0 -57
- data/slice/IceGrid/Observer.ice +0 -395
- data/slice/IceGrid/Query.ice +0 -131
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -27,23 +27,31 @@
|
|
|
27
27
|
#include <Ice/Protocol.h>
|
|
28
28
|
#include <Ice/Properties.h>
|
|
29
29
|
|
|
30
|
-
namespace
|
|
30
|
+
namespace Ice
|
|
31
31
|
{
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class OutputStream;
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
namespace IceInternal
|
|
38
|
+
{
|
|
34
39
|
|
|
35
40
|
class Reference : public IceUtil::Shared
|
|
36
41
|
{
|
|
37
42
|
public:
|
|
38
43
|
|
|
39
|
-
class GetConnectionCallback
|
|
44
|
+
class GetConnectionCallback
|
|
45
|
+
#ifndef ICE_CPP11_MAPPING
|
|
46
|
+
: public virtual IceUtil::Shared
|
|
47
|
+
#endif
|
|
40
48
|
{
|
|
41
49
|
public:
|
|
42
50
|
|
|
43
51
|
virtual void setConnection(const Ice::ConnectionIPtr&, bool) = 0;
|
|
44
52
|
virtual void setException(const Ice::LocalException&) = 0;
|
|
45
53
|
};
|
|
46
|
-
|
|
54
|
+
ICE_DEFINE_PTR(GetConnectionCallbackPtr, GetConnectionCallback);
|
|
47
55
|
|
|
48
56
|
enum Mode
|
|
49
57
|
{
|
|
@@ -67,7 +75,6 @@ public:
|
|
|
67
75
|
|
|
68
76
|
Ice::CommunicatorPtr getCommunicator() const;
|
|
69
77
|
|
|
70
|
-
|
|
71
78
|
virtual std::vector<EndpointIPtr> getEndpoints() const = 0;
|
|
72
79
|
virtual std::string getAdapterId() const = 0;
|
|
73
80
|
virtual LocatorInfoPtr getLocatorInfo() const { return 0; }
|
|
@@ -95,8 +102,8 @@ public:
|
|
|
95
102
|
|
|
96
103
|
virtual ReferencePtr changeEndpoints(const std::vector<EndpointIPtr>&) const = 0;
|
|
97
104
|
virtual ReferencePtr changeAdapterId(const std::string&) const = 0;
|
|
98
|
-
virtual ReferencePtr changeLocator(const Ice::
|
|
99
|
-
virtual ReferencePtr changeRouter(const Ice::
|
|
105
|
+
virtual ReferencePtr changeLocator(const Ice::LocatorPrxPtr&) const = 0;
|
|
106
|
+
virtual ReferencePtr changeRouter(const Ice::RouterPrxPtr&) const = 0;
|
|
100
107
|
virtual ReferencePtr changeCollocationOptimized(bool) const = 0;
|
|
101
108
|
virtual ReferencePtr changeLocatorCacheTimeout(int) const = 0;
|
|
102
109
|
virtual ReferencePtr changeCacheConnection(bool) const = 0;
|
|
@@ -108,6 +115,8 @@ public:
|
|
|
108
115
|
|
|
109
116
|
int hash() const; // Conceptually const.
|
|
110
117
|
|
|
118
|
+
bool getCompressOverride(bool&) const;
|
|
119
|
+
|
|
111
120
|
//
|
|
112
121
|
// Utility methods.
|
|
113
122
|
//
|
|
@@ -117,7 +126,7 @@ public:
|
|
|
117
126
|
//
|
|
118
127
|
// Marshal the reference.
|
|
119
128
|
//
|
|
120
|
-
virtual void streamWrite(
|
|
129
|
+
virtual void streamWrite(Ice::OutputStream*) const;
|
|
121
130
|
|
|
122
131
|
//
|
|
123
132
|
// Convert the reference to its string form.
|
|
@@ -132,11 +141,10 @@ public:
|
|
|
132
141
|
//
|
|
133
142
|
// Get a suitable connection for this reference.
|
|
134
143
|
//
|
|
135
|
-
virtual RequestHandlerPtr getRequestHandler(const Ice::
|
|
144
|
+
virtual RequestHandlerPtr getRequestHandler(const Ice::ObjectPrxPtr&) const = 0;
|
|
136
145
|
virtual BatchRequestQueuePtr getBatchRequestQueue() const = 0;
|
|
137
146
|
|
|
138
147
|
virtual bool operator==(const Reference&) const;
|
|
139
|
-
virtual bool operator!=(const Reference&) const;
|
|
140
148
|
virtual bool operator<(const Reference&) const;
|
|
141
149
|
|
|
142
150
|
virtual ReferencePtr clone() const = 0;
|
|
@@ -190,8 +198,8 @@ public:
|
|
|
190
198
|
|
|
191
199
|
virtual ReferencePtr changeEndpoints(const std::vector<EndpointIPtr>&) const;
|
|
192
200
|
virtual ReferencePtr changeAdapterId(const std::string&) const;
|
|
193
|
-
virtual ReferencePtr changeLocator(const Ice::
|
|
194
|
-
virtual ReferencePtr changeRouter(const Ice::
|
|
201
|
+
virtual ReferencePtr changeLocator(const Ice::LocatorPrxPtr&) const;
|
|
202
|
+
virtual ReferencePtr changeRouter(const Ice::RouterPrxPtr&) const;
|
|
195
203
|
virtual ReferencePtr changeCollocationOptimized(bool) const;
|
|
196
204
|
virtual ReferencePtr changeCacheConnection(bool) const;
|
|
197
205
|
virtual ReferencePtr changePreferSecure(bool) const;
|
|
@@ -204,15 +212,13 @@ public:
|
|
|
204
212
|
virtual bool isIndirect() const;
|
|
205
213
|
virtual bool isWellKnown() const;
|
|
206
214
|
|
|
207
|
-
virtual void streamWrite(
|
|
208
|
-
virtual std::string toString() const;
|
|
215
|
+
virtual void streamWrite(Ice::OutputStream*) const;
|
|
209
216
|
virtual Ice::PropertyDict toProperty(const std::string&) const;
|
|
210
217
|
|
|
211
|
-
virtual RequestHandlerPtr getRequestHandler(const Ice::
|
|
218
|
+
virtual RequestHandlerPtr getRequestHandler(const Ice::ObjectPrxPtr&) const;
|
|
212
219
|
virtual BatchRequestQueuePtr getBatchRequestQueue() const;
|
|
213
220
|
|
|
214
221
|
virtual bool operator==(const Reference&) const;
|
|
215
|
-
virtual bool operator!=(const Reference&) const;
|
|
216
222
|
virtual bool operator<(const Reference&) const;
|
|
217
223
|
|
|
218
224
|
virtual ReferencePtr clone() const;
|
|
@@ -248,8 +254,8 @@ public:
|
|
|
248
254
|
virtual ReferencePtr changeCompress(bool) const;
|
|
249
255
|
virtual ReferencePtr changeEndpoints(const std::vector<EndpointIPtr>&) const;
|
|
250
256
|
virtual ReferencePtr changeAdapterId(const std::string&) const;
|
|
251
|
-
virtual ReferencePtr changeLocator(const Ice::
|
|
252
|
-
virtual ReferencePtr changeRouter(const Ice::
|
|
257
|
+
virtual ReferencePtr changeLocator(const Ice::LocatorPrxPtr&) const;
|
|
258
|
+
virtual ReferencePtr changeRouter(const Ice::RouterPrxPtr&) const;
|
|
253
259
|
virtual ReferencePtr changeCollocationOptimized(bool) const;
|
|
254
260
|
virtual ReferencePtr changeCacheConnection(bool) const;
|
|
255
261
|
virtual ReferencePtr changePreferSecure(bool) const;
|
|
@@ -262,17 +268,16 @@ public:
|
|
|
262
268
|
virtual bool isIndirect() const;
|
|
263
269
|
virtual bool isWellKnown() const;
|
|
264
270
|
|
|
265
|
-
virtual void streamWrite(
|
|
271
|
+
virtual void streamWrite(Ice::OutputStream*) const;
|
|
266
272
|
virtual std::string toString() const;
|
|
267
273
|
virtual Ice::PropertyDict toProperty(const std::string&) const;
|
|
268
274
|
|
|
269
275
|
virtual bool operator==(const Reference&) const;
|
|
270
|
-
virtual bool operator!=(const Reference&) const;
|
|
271
276
|
virtual bool operator<(const Reference&) const;
|
|
272
277
|
|
|
273
278
|
virtual ReferencePtr clone() const;
|
|
274
279
|
|
|
275
|
-
virtual RequestHandlerPtr getRequestHandler(const Ice::
|
|
280
|
+
virtual RequestHandlerPtr getRequestHandler(const Ice::ObjectPrxPtr&) const;
|
|
276
281
|
virtual BatchRequestQueuePtr getBatchRequestQueue() const;
|
|
277
282
|
|
|
278
283
|
void getConnection(const GetConnectionCallbackPtr&) const;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
#include <Ice/LocatorInfo.h>
|
|
21
21
|
#include <Ice/Locator.h>
|
|
22
22
|
#include <Ice/LoggerUtil.h>
|
|
23
|
-
#include <Ice/
|
|
23
|
+
#include <Ice/InputStream.h>
|
|
24
24
|
#include <Ice/Properties.h>
|
|
25
25
|
#include <Ice/DefaultsAndOverrides.h>
|
|
26
26
|
#include <Ice/PropertyNames.h>
|
|
27
|
-
#include <
|
|
27
|
+
#include <Ice/StringUtil.h>
|
|
28
28
|
|
|
29
29
|
using namespace std;
|
|
30
30
|
using namespace Ice;
|
|
@@ -155,7 +155,8 @@ IceInternal::ReferenceFactory::create(const string& str, const string& propertyP
|
|
|
155
155
|
//
|
|
156
156
|
// Parsing the identity may raise IdentityParseException.
|
|
157
157
|
//
|
|
158
|
-
Identity ident =
|
|
158
|
+
Identity ident = Ice::stringToIdentity(idstr);
|
|
159
|
+
|
|
159
160
|
if(ident.name.empty())
|
|
160
161
|
{
|
|
161
162
|
//
|
|
@@ -279,7 +280,7 @@ IceInternal::ReferenceFactory::create(const string& str, const string& propertyP
|
|
|
279
280
|
|
|
280
281
|
try
|
|
281
282
|
{
|
|
282
|
-
facet =
|
|
283
|
+
facet = unescapeString(argument, 0, argument.size(), "");
|
|
283
284
|
}
|
|
284
285
|
catch(const IceUtil::IllegalArgumentException& e)
|
|
285
286
|
{
|
|
@@ -288,7 +289,6 @@ IceInternal::ReferenceFactory::create(const string& str, const string& propertyP
|
|
|
288
289
|
throw ex;
|
|
289
290
|
}
|
|
290
291
|
|
|
291
|
-
facet = UTF8ToNative(facet, _instance->getStringConverter());
|
|
292
292
|
break;
|
|
293
293
|
}
|
|
294
294
|
|
|
@@ -479,7 +479,7 @@ IceInternal::ReferenceFactory::create(const string& str, const string& propertyP
|
|
|
479
479
|
|
|
480
480
|
string es = s.substr(beg, end - beg);
|
|
481
481
|
EndpointIPtr endp = _instance->endpointFactoryManager()->create(es, false);
|
|
482
|
-
if(endp !=
|
|
482
|
+
if(endp != ICE_NULLPTR)
|
|
483
483
|
{
|
|
484
484
|
endpoints.push_back(endp);
|
|
485
485
|
}
|
|
@@ -554,7 +554,7 @@ IceInternal::ReferenceFactory::create(const string& str, const string& propertyP
|
|
|
554
554
|
|
|
555
555
|
try
|
|
556
556
|
{
|
|
557
|
-
adapter =
|
|
557
|
+
adapter = unescapeString(adapterstr, 0, adapterstr.size(), "");
|
|
558
558
|
}
|
|
559
559
|
catch(const IceUtil::IllegalArgumentException& e)
|
|
560
560
|
{
|
|
@@ -569,8 +569,6 @@ IceInternal::ReferenceFactory::create(const string& str, const string& propertyP
|
|
|
569
569
|
throw ex;
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
adapter = UTF8ToNative(adapter, _instance->getStringConverter());
|
|
573
|
-
|
|
574
572
|
return create(ident, facet, mode, secure, protocol, encoding, endpoints, adapter, propertyPrefix);
|
|
575
573
|
break;
|
|
576
574
|
}
|
|
@@ -586,7 +584,7 @@ IceInternal::ReferenceFactory::create(const string& str, const string& propertyP
|
|
|
586
584
|
}
|
|
587
585
|
|
|
588
586
|
ReferencePtr
|
|
589
|
-
IceInternal::ReferenceFactory::create(const Identity& ident,
|
|
587
|
+
IceInternal::ReferenceFactory::create(const Identity& ident, InputStream* s)
|
|
590
588
|
{
|
|
591
589
|
//
|
|
592
590
|
// Don't read the identity here. Operations calling this
|
|
@@ -626,7 +624,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident, BasicStream* s)
|
|
|
626
624
|
|
|
627
625
|
Ice::ProtocolVersion protocol;
|
|
628
626
|
Ice::EncodingVersion encoding;
|
|
629
|
-
if(s->
|
|
627
|
+
if(s->getEncoding() != Ice::Encoding_1_0)
|
|
630
628
|
{
|
|
631
629
|
s->read(protocol);
|
|
632
630
|
s->read(encoding);
|
|
@@ -660,7 +658,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident, BasicStream* s)
|
|
|
660
658
|
}
|
|
661
659
|
|
|
662
660
|
ReferenceFactoryPtr
|
|
663
|
-
IceInternal::ReferenceFactory::setDefaultRouter(const
|
|
661
|
+
IceInternal::ReferenceFactory::setDefaultRouter(const RouterPrxPtr& defaultRouter)
|
|
664
662
|
{
|
|
665
663
|
if(defaultRouter == _defaultRouter)
|
|
666
664
|
{
|
|
@@ -673,14 +671,14 @@ IceInternal::ReferenceFactory::setDefaultRouter(const RouterPrx& defaultRouter)
|
|
|
673
671
|
return factory;
|
|
674
672
|
}
|
|
675
673
|
|
|
676
|
-
|
|
674
|
+
RouterPrxPtr
|
|
677
675
|
IceInternal::ReferenceFactory::getDefaultRouter() const
|
|
678
676
|
{
|
|
679
677
|
return _defaultRouter;
|
|
680
678
|
}
|
|
681
679
|
|
|
682
680
|
ReferenceFactoryPtr
|
|
683
|
-
IceInternal::ReferenceFactory::setDefaultLocator(const
|
|
681
|
+
IceInternal::ReferenceFactory::setDefaultLocator(const LocatorPrxPtr& defaultLocator)
|
|
684
682
|
{
|
|
685
683
|
if(defaultLocator == _defaultLocator)
|
|
686
684
|
{
|
|
@@ -693,7 +691,7 @@ IceInternal::ReferenceFactory::setDefaultLocator(const LocatorPrx& defaultLocato
|
|
|
693
691
|
return factory;
|
|
694
692
|
}
|
|
695
693
|
|
|
696
|
-
|
|
694
|
+
LocatorPrxPtr
|
|
697
695
|
IceInternal::ReferenceFactory::getDefaultLocator() const
|
|
698
696
|
{
|
|
699
697
|
return _defaultLocator;
|
|
@@ -815,7 +813,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
|
|
|
815
813
|
string property;
|
|
816
814
|
|
|
817
815
|
property = propertyPrefix + ".Locator";
|
|
818
|
-
|
|
816
|
+
LocatorPrxPtr locator = ICE_UNCHECKED_CAST(LocatorPrx, _communicator->propertyToProxy(property));
|
|
819
817
|
if(locator)
|
|
820
818
|
{
|
|
821
819
|
if(locator->ice_getEncodingVersion() != encoding)
|
|
@@ -829,7 +827,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
|
|
|
829
827
|
}
|
|
830
828
|
|
|
831
829
|
property = propertyPrefix + ".Router";
|
|
832
|
-
|
|
830
|
+
RouterPrxPtr router = ICE_UNCHECKED_CAST(RouterPrx, _communicator->propertyToProxy(property));
|
|
833
831
|
if(router)
|
|
834
832
|
{
|
|
835
833
|
if(propertyPrefix.size() > 7 && propertyPrefix.substr(propertyPrefix.size() - 7, 7) == ".Router")
|
|
@@ -859,11 +857,11 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
|
|
|
859
857
|
string type = properties->getProperty(property);
|
|
860
858
|
if(type == "Random")
|
|
861
859
|
{
|
|
862
|
-
endpointSelection = Random;
|
|
860
|
+
endpointSelection = ICE_ENUM(EndpointSelectionType, Random);
|
|
863
861
|
}
|
|
864
862
|
else if(type == "Ordered")
|
|
865
863
|
{
|
|
866
|
-
endpointSelection = Ordered;
|
|
864
|
+
endpointSelection = ICE_ENUM(EndpointSelectionType, Ordered);
|
|
867
865
|
}
|
|
868
866
|
else
|
|
869
867
|
{
|
|
@@ -934,4 +932,3 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
|
|
|
934
932
|
invocationTimeout,
|
|
935
933
|
ctx);
|
|
936
934
|
}
|
|
937
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -31,14 +31,14 @@ public:
|
|
|
31
31
|
//
|
|
32
32
|
// Create a direct reference.
|
|
33
33
|
//
|
|
34
|
-
ReferencePtr create(const ::Ice::Identity&, const ::std::string&, const ReferencePtr&,
|
|
34
|
+
ReferencePtr create(const ::Ice::Identity&, const ::std::string&, const ReferencePtr&,
|
|
35
35
|
const ::std::vector<EndpointIPtr>&);
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
//
|
|
38
38
|
// Create an indirect reference.
|
|
39
39
|
//
|
|
40
40
|
ReferencePtr create(const ::Ice::Identity&, const ::std::string&, const ReferencePtr&, const std::string&);
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
//
|
|
43
43
|
// Create a fixed reference.
|
|
44
44
|
//
|
|
@@ -52,13 +52,13 @@ public:
|
|
|
52
52
|
//
|
|
53
53
|
// Create a reference by unmarshaling it from a stream.
|
|
54
54
|
//
|
|
55
|
-
ReferencePtr create(const ::Ice::Identity&,
|
|
55
|
+
ReferencePtr create(const ::Ice::Identity&, Ice::InputStream*);
|
|
56
56
|
|
|
57
|
-
ReferenceFactoryPtr setDefaultRouter(const ::Ice::
|
|
58
|
-
::Ice::
|
|
57
|
+
ReferenceFactoryPtr setDefaultRouter(const ::Ice::RouterPrxPtr&);
|
|
58
|
+
::Ice::RouterPrxPtr getDefaultRouter() const;
|
|
59
59
|
|
|
60
|
-
ReferenceFactoryPtr setDefaultLocator(const ::Ice::
|
|
61
|
-
::Ice::
|
|
60
|
+
ReferenceFactoryPtr setDefaultLocator(const ::Ice::LocatorPrxPtr&);
|
|
61
|
+
::Ice::LocatorPrxPtr getDefaultLocator() const;
|
|
62
62
|
|
|
63
63
|
private:
|
|
64
64
|
|
|
@@ -66,14 +66,14 @@ private:
|
|
|
66
66
|
friend class Instance;
|
|
67
67
|
|
|
68
68
|
void checkForUnknownProperties(const std::string&);
|
|
69
|
-
RoutableReferencePtr create(const ::Ice::Identity&, const ::std::string&, Reference::Mode, bool,
|
|
69
|
+
RoutableReferencePtr create(const ::Ice::Identity&, const ::std::string&, Reference::Mode, bool,
|
|
70
70
|
const Ice::ProtocolVersion&, const Ice::EncodingVersion&,
|
|
71
71
|
const std::vector<EndpointIPtr>&, const std::string&, const std::string&);
|
|
72
72
|
|
|
73
73
|
const InstancePtr _instance;
|
|
74
74
|
const ::Ice::CommunicatorPtr _communicator;
|
|
75
|
-
::Ice::
|
|
76
|
-
::Ice::
|
|
75
|
+
::Ice::RouterPrxPtr _defaultRouter;
|
|
76
|
+
::Ice::LocatorPrxPtr _defaultLocator;
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -14,15 +14,29 @@
|
|
|
14
14
|
extern "C"
|
|
15
15
|
{
|
|
16
16
|
|
|
17
|
+
Ice::Plugin* createStringConverter(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&);
|
|
17
18
|
Ice::Plugin* createIceUDP(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&);
|
|
18
19
|
Ice::Plugin* createIceTCP(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&);
|
|
19
|
-
Ice::Plugin*
|
|
20
|
+
Ice::Plugin* createIceWS(const Ice::CommunicatorPtr&, const std::string&, const Ice::StringSeq&);
|
|
20
21
|
|
|
21
|
-
}
|
|
22
|
+
}
|
|
22
23
|
|
|
23
24
|
IceInternal::RegisterPluginsInit::RegisterPluginsInit()
|
|
24
25
|
{
|
|
25
|
-
Ice::registerPluginFactory("IceUDP", createIceUDP, true);
|
|
26
26
|
Ice::registerPluginFactory("IceTCP", createIceTCP, true);
|
|
27
|
+
|
|
28
|
+
//
|
|
29
|
+
// Only include the UDP and WS transport plugins with non-static builds or Gem/PyPI builds.
|
|
30
|
+
//
|
|
31
|
+
#if !defined(ICE_STATIC_LIBS) || defined(ICE_GEM) || defined(ICE_PYPI)
|
|
32
|
+
Ice::registerPluginFactory("IceUDP", createIceUDP, true);
|
|
33
|
+
Ice::registerPluginFactory("IceWS", createIceWS, true);
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
//
|
|
37
|
+
// Also include IceStringConverter in Gem/PyPI builds.
|
|
38
|
+
//
|
|
39
|
+
#if defined(ICE_GEM) || defined(ICE_PYPI)
|
|
27
40
|
Ice::registerPluginFactory("IceStringConverter", createStringConverter, false);
|
|
41
|
+
#endif
|
|
28
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
7
7
|
//
|
|
8
8
|
// **********************************************************************
|
|
9
9
|
//
|
|
10
|
-
// Ice version 3.
|
|
10
|
+
// Ice version 3.7.0
|
|
11
11
|
//
|
|
12
12
|
// <auto-generated>
|
|
13
13
|
//
|
|
@@ -24,595 +24,705 @@
|
|
|
24
24
|
#include <Ice/RemoteLogger.h>
|
|
25
25
|
#include <IceUtil/PushDisableWarnings.h>
|
|
26
26
|
#include <Ice/LocalException.h>
|
|
27
|
-
#include <Ice/
|
|
28
|
-
#include <Ice/Outgoing.h>
|
|
27
|
+
#include <Ice/ValueFactory.h>
|
|
29
28
|
#include <Ice/OutgoingAsync.h>
|
|
30
|
-
#include <Ice/
|
|
31
|
-
#include <
|
|
29
|
+
#include <Ice/InputStream.h>
|
|
30
|
+
#include <Ice/OutputStream.h>
|
|
31
|
+
#include <Ice/LocalException.h>
|
|
32
32
|
#include <IceUtil/PopDisableWarnings.h>
|
|
33
33
|
|
|
34
|
+
#if defined(_MSC_VER)
|
|
35
|
+
# pragma warning(disable:4458) // declaration of ... hides class member
|
|
36
|
+
#elif defined(__clang__)
|
|
37
|
+
# pragma clang diagnostic ignored "-Wshadow"
|
|
38
|
+
#elif defined(__GNUC__)
|
|
39
|
+
# pragma GCC diagnostic ignored "-Wshadow"
|
|
40
|
+
#endif
|
|
41
|
+
|
|
34
42
|
#ifndef ICE_IGNORE_VERSION
|
|
35
|
-
# if ICE_INT_VERSION / 100 !=
|
|
43
|
+
# if ICE_INT_VERSION / 100 != 307
|
|
36
44
|
# error Ice version mismatch!
|
|
37
45
|
# endif
|
|
38
46
|
# if ICE_INT_VERSION % 100 > 50
|
|
39
47
|
# error Beta header file detected
|
|
40
48
|
# endif
|
|
41
|
-
# if ICE_INT_VERSION % 100 <
|
|
49
|
+
# if ICE_INT_VERSION % 100 < 0
|
|
42
50
|
# error Ice patch level mismatch!
|
|
43
51
|
# endif
|
|
44
52
|
#endif
|
|
45
53
|
|
|
54
|
+
#ifdef ICE_CPP11_MAPPING // C++11 mapping
|
|
55
|
+
|
|
46
56
|
namespace
|
|
47
57
|
{
|
|
48
58
|
|
|
49
|
-
const ::std::string
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
const ::std::string iceC_Ice_RemoteLogger_ids[2] =
|
|
60
|
+
{
|
|
61
|
+
"::Ice::Object",
|
|
62
|
+
"::Ice::RemoteLogger"
|
|
63
|
+
};
|
|
64
|
+
const ::std::string iceC_Ice_RemoteLogger_ops[] =
|
|
65
|
+
{
|
|
66
|
+
"ice_id",
|
|
67
|
+
"ice_ids",
|
|
68
|
+
"ice_isA",
|
|
69
|
+
"ice_ping",
|
|
70
|
+
"init",
|
|
71
|
+
"log"
|
|
72
|
+
};
|
|
73
|
+
const ::std::string iceC_Ice_RemoteLogger_init_name = "init";
|
|
74
|
+
const ::std::string iceC_Ice_RemoteLogger_log_name = "log";
|
|
58
75
|
|
|
59
|
-
|
|
76
|
+
const ::IceInternal::DefaultUserExceptionFactoryInit<::Ice::RemoteLoggerAlreadyAttachedException> iceC_Ice_RemoteLoggerAlreadyAttachedException_init("::Ice::RemoteLoggerAlreadyAttachedException");
|
|
60
77
|
|
|
61
|
-
|
|
78
|
+
const ::std::string iceC_Ice_LoggerAdmin_ids[2] =
|
|
62
79
|
{
|
|
63
|
-
|
|
64
|
-
|
|
80
|
+
"::Ice::LoggerAdmin",
|
|
81
|
+
"::Ice::Object"
|
|
82
|
+
};
|
|
83
|
+
const ::std::string iceC_Ice_LoggerAdmin_ops[] =
|
|
84
|
+
{
|
|
85
|
+
"attachRemoteLogger",
|
|
86
|
+
"detachRemoteLogger",
|
|
87
|
+
"getLog",
|
|
88
|
+
"ice_id",
|
|
89
|
+
"ice_ids",
|
|
90
|
+
"ice_isA",
|
|
91
|
+
"ice_ping"
|
|
92
|
+
};
|
|
93
|
+
const ::std::string iceC_Ice_LoggerAdmin_attachRemoteLogger_name = "attachRemoteLogger";
|
|
94
|
+
const ::std::string iceC_Ice_LoggerAdmin_detachRemoteLogger_name = "detachRemoteLogger";
|
|
95
|
+
const ::std::string iceC_Ice_LoggerAdmin_getLog_name = "getLog";
|
|
65
96
|
|
|
66
97
|
}
|
|
67
98
|
|
|
68
|
-
Ice::RemoteLoggerAlreadyAttachedException::~RemoteLoggerAlreadyAttachedException()
|
|
99
|
+
Ice::RemoteLoggerAlreadyAttachedException::~RemoteLoggerAlreadyAttachedException()
|
|
69
100
|
{
|
|
70
101
|
}
|
|
71
102
|
|
|
72
|
-
::std::string
|
|
73
|
-
Ice::RemoteLoggerAlreadyAttachedException::
|
|
103
|
+
const ::std::string&
|
|
104
|
+
Ice::RemoteLoggerAlreadyAttachedException::ice_staticId()
|
|
74
105
|
{
|
|
75
|
-
|
|
106
|
+
static const ::std::string typeId = "::Ice::RemoteLoggerAlreadyAttachedException";
|
|
107
|
+
return typeId;
|
|
76
108
|
}
|
|
77
109
|
|
|
78
|
-
|
|
79
|
-
Ice::
|
|
110
|
+
bool
|
|
111
|
+
Ice::RemoteLogger::ice_isA(::std::string s, const ::Ice::Current&) const
|
|
80
112
|
{
|
|
81
|
-
return
|
|
113
|
+
return ::std::binary_search(iceC_Ice_RemoteLogger_ids, iceC_Ice_RemoteLogger_ids + 2, s);
|
|
82
114
|
}
|
|
83
115
|
|
|
84
|
-
|
|
85
|
-
Ice::
|
|
116
|
+
::std::vector<::std::string>
|
|
117
|
+
Ice::RemoteLogger::ice_ids(const ::Ice::Current&) const
|
|
86
118
|
{
|
|
87
|
-
|
|
119
|
+
return ::std::vector<::std::string>(&iceC_Ice_RemoteLogger_ids[0], &iceC_Ice_RemoteLogger_ids[2]);
|
|
88
120
|
}
|
|
89
121
|
|
|
90
|
-
|
|
91
|
-
Ice::
|
|
122
|
+
::std::string
|
|
123
|
+
Ice::RemoteLogger::ice_id(const ::Ice::Current&) const
|
|
92
124
|
{
|
|
93
|
-
|
|
94
|
-
__os->endWriteSlice();
|
|
125
|
+
return ice_staticId();
|
|
95
126
|
}
|
|
96
127
|
|
|
97
|
-
|
|
98
|
-
Ice::
|
|
128
|
+
const ::std::string&
|
|
129
|
+
Ice::RemoteLogger::ice_staticId()
|
|
99
130
|
{
|
|
100
|
-
|
|
101
|
-
|
|
131
|
+
static const ::std::string typeId = "::Ice::RemoteLogger";
|
|
132
|
+
return typeId;
|
|
102
133
|
}
|
|
103
134
|
|
|
104
|
-
|
|
135
|
+
bool
|
|
136
|
+
Ice::RemoteLogger::_iceD_init(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
105
137
|
{
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
138
|
+
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
|
139
|
+
auto istr = inS.startReadParams();
|
|
140
|
+
::std::string iceP_prefix;
|
|
141
|
+
::Ice::LogMessageSeq iceP_logMessages;
|
|
142
|
+
istr->readAll(iceP_prefix, iceP_logMessages);
|
|
143
|
+
inS.endReadParams();
|
|
144
|
+
this->init(::std::move(iceP_prefix), ::std::move(iceP_logMessages), current);
|
|
145
|
+
inS.writeEmptyParams();
|
|
146
|
+
return true;
|
|
110
147
|
}
|
|
111
|
-
#ifdef __SUNPRO_CC
|
|
112
|
-
class ICE_API IceProxy::Ice::RemoteLogger;
|
|
113
|
-
#endif
|
|
114
|
-
ICE_API ::IceProxy::Ice::Object* ::IceProxy::Ice::upCast(::IceProxy::Ice::RemoteLogger* p) { return p; }
|
|
115
148
|
|
|
116
|
-
|
|
117
|
-
::
|
|
149
|
+
bool
|
|
150
|
+
Ice::RemoteLogger::_iceD_log(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
118
151
|
{
|
|
119
|
-
::Ice::
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
v = new ::IceProxy::Ice::RemoteLogger;
|
|
128
|
-
v->__copyFrom(proxy);
|
|
129
|
-
}
|
|
152
|
+
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
|
153
|
+
auto istr = inS.startReadParams();
|
|
154
|
+
::Ice::LogMessage iceP_message;
|
|
155
|
+
istr->readAll(iceP_message);
|
|
156
|
+
inS.endReadParams();
|
|
157
|
+
this->log(::std::move(iceP_message), current);
|
|
158
|
+
inS.writeEmptyParams();
|
|
159
|
+
return true;
|
|
130
160
|
}
|
|
131
161
|
|
|
132
|
-
|
|
133
|
-
|
|
162
|
+
bool
|
|
163
|
+
Ice::RemoteLogger::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
|
|
134
164
|
{
|
|
135
|
-
::
|
|
136
|
-
|
|
137
|
-
{
|
|
138
|
-
::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
|
|
139
|
-
__os->write(__p_prefix);
|
|
140
|
-
__os->write(__p_logMessages);
|
|
141
|
-
__og.endWriteParams();
|
|
142
|
-
}
|
|
143
|
-
catch(const ::Ice::LocalException& __ex)
|
|
165
|
+
::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_RemoteLogger_ops, iceC_Ice_RemoteLogger_ops + 6, current.operation);
|
|
166
|
+
if(r.first == r.second)
|
|
144
167
|
{
|
|
145
|
-
|
|
168
|
+
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
146
169
|
}
|
|
147
|
-
__invoke(__og);
|
|
148
|
-
}
|
|
149
170
|
|
|
150
|
-
|
|
151
|
-
IceProxy::Ice::RemoteLogger::begin_init(const ::std::string& __p_prefix, const ::Ice::LogMessageSeq& __p_logMessages, const ::Ice::Context* __ctx, const ::IceInternal::CallbackBasePtr& __del, const ::Ice::LocalObjectPtr& __cookie)
|
|
152
|
-
{
|
|
153
|
-
::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __Ice__RemoteLogger__init_name, __del, __cookie);
|
|
154
|
-
try
|
|
171
|
+
switch(r.first - iceC_Ice_RemoteLogger_ops)
|
|
155
172
|
{
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
173
|
+
case 0:
|
|
174
|
+
{
|
|
175
|
+
return _iceD_ice_id(in, current);
|
|
176
|
+
}
|
|
177
|
+
case 1:
|
|
178
|
+
{
|
|
179
|
+
return _iceD_ice_ids(in, current);
|
|
180
|
+
}
|
|
181
|
+
case 2:
|
|
182
|
+
{
|
|
183
|
+
return _iceD_ice_isA(in, current);
|
|
184
|
+
}
|
|
185
|
+
case 3:
|
|
186
|
+
{
|
|
187
|
+
return _iceD_ice_ping(in, current);
|
|
188
|
+
}
|
|
189
|
+
case 4:
|
|
190
|
+
{
|
|
191
|
+
return _iceD_init(in, current);
|
|
192
|
+
}
|
|
193
|
+
case 5:
|
|
194
|
+
{
|
|
195
|
+
return _iceD_log(in, current);
|
|
196
|
+
}
|
|
197
|
+
default:
|
|
198
|
+
{
|
|
199
|
+
assert(false);
|
|
200
|
+
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
201
|
+
}
|
|
166
202
|
}
|
|
167
|
-
return __result;
|
|
168
203
|
}
|
|
169
204
|
|
|
170
|
-
|
|
171
|
-
|
|
205
|
+
bool
|
|
206
|
+
Ice::LoggerAdmin::ice_isA(::std::string s, const ::Ice::Current&) const
|
|
172
207
|
{
|
|
173
|
-
|
|
208
|
+
return ::std::binary_search(iceC_Ice_LoggerAdmin_ids, iceC_Ice_LoggerAdmin_ids + 2, s);
|
|
174
209
|
}
|
|
175
210
|
|
|
176
|
-
|
|
177
|
-
|
|
211
|
+
::std::vector<::std::string>
|
|
212
|
+
Ice::LoggerAdmin::ice_ids(const ::Ice::Current&) const
|
|
178
213
|
{
|
|
179
|
-
::
|
|
180
|
-
try
|
|
181
|
-
{
|
|
182
|
-
::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
|
|
183
|
-
__os->write(__p_message);
|
|
184
|
-
__og.endWriteParams();
|
|
185
|
-
}
|
|
186
|
-
catch(const ::Ice::LocalException& __ex)
|
|
187
|
-
{
|
|
188
|
-
__og.abort(__ex);
|
|
189
|
-
}
|
|
190
|
-
__invoke(__og);
|
|
214
|
+
return ::std::vector<::std::string>(&iceC_Ice_LoggerAdmin_ids[0], &iceC_Ice_LoggerAdmin_ids[2]);
|
|
191
215
|
}
|
|
192
216
|
|
|
193
|
-
::
|
|
194
|
-
|
|
217
|
+
::std::string
|
|
218
|
+
Ice::LoggerAdmin::ice_id(const ::Ice::Current&) const
|
|
195
219
|
{
|
|
196
|
-
|
|
197
|
-
try
|
|
198
|
-
{
|
|
199
|
-
__result->prepare(__Ice__RemoteLogger__log_name, ::Ice::Normal, __ctx);
|
|
200
|
-
::IceInternal::BasicStream* __os = __result->startWriteParams(::Ice::DefaultFormat);
|
|
201
|
-
__os->write(__p_message);
|
|
202
|
-
__result->endWriteParams();
|
|
203
|
-
__result->invoke();
|
|
204
|
-
}
|
|
205
|
-
catch(const ::Ice::Exception& __ex)
|
|
206
|
-
{
|
|
207
|
-
__result->abort(__ex);
|
|
208
|
-
}
|
|
209
|
-
return __result;
|
|
220
|
+
return ice_staticId();
|
|
210
221
|
}
|
|
211
222
|
|
|
212
|
-
|
|
213
|
-
|
|
223
|
+
const ::std::string&
|
|
224
|
+
Ice::LoggerAdmin::ice_staticId()
|
|
214
225
|
{
|
|
215
|
-
|
|
226
|
+
static const ::std::string typeId = "::Ice::LoggerAdmin";
|
|
227
|
+
return typeId;
|
|
216
228
|
}
|
|
217
229
|
|
|
218
|
-
|
|
219
|
-
|
|
230
|
+
bool
|
|
231
|
+
Ice::LoggerAdmin::_iceD_attachRemoteLogger(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
220
232
|
{
|
|
221
|
-
|
|
233
|
+
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
|
234
|
+
auto istr = inS.startReadParams();
|
|
235
|
+
::std::shared_ptr<::Ice::RemoteLoggerPrx> iceP_prx;
|
|
236
|
+
::Ice::LogMessageTypeSeq iceP_messageTypes;
|
|
237
|
+
::Ice::StringSeq iceP_traceCategories;
|
|
238
|
+
int iceP_messageMax;
|
|
239
|
+
istr->readAll(iceP_prx, iceP_messageTypes, iceP_traceCategories, iceP_messageMax);
|
|
240
|
+
inS.endReadParams();
|
|
241
|
+
this->attachRemoteLogger(::std::move(iceP_prx), ::std::move(iceP_messageTypes), ::std::move(iceP_traceCategories), iceP_messageMax, current);
|
|
242
|
+
inS.writeEmptyParams();
|
|
243
|
+
return true;
|
|
222
244
|
}
|
|
223
245
|
|
|
224
|
-
|
|
225
|
-
|
|
246
|
+
bool
|
|
247
|
+
Ice::LoggerAdmin::_iceD_detachRemoteLogger(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
226
248
|
{
|
|
227
|
-
|
|
249
|
+
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
|
250
|
+
auto istr = inS.startReadParams();
|
|
251
|
+
::std::shared_ptr<::Ice::RemoteLoggerPrx> iceP_prx;
|
|
252
|
+
istr->readAll(iceP_prx);
|
|
253
|
+
inS.endReadParams();
|
|
254
|
+
bool ret = this->detachRemoteLogger(::std::move(iceP_prx), current);
|
|
255
|
+
auto ostr = inS.startWriteParams();
|
|
256
|
+
ostr->writeAll(ret);
|
|
257
|
+
inS.endWriteParams();
|
|
258
|
+
return true;
|
|
228
259
|
}
|
|
229
|
-
#ifdef __SUNPRO_CC
|
|
230
|
-
class ICE_API IceProxy::Ice::LoggerAdmin;
|
|
231
|
-
#endif
|
|
232
|
-
ICE_API ::IceProxy::Ice::Object* ::IceProxy::Ice::upCast(::IceProxy::Ice::LoggerAdmin* p) { return p; }
|
|
233
260
|
|
|
234
|
-
|
|
235
|
-
::
|
|
261
|
+
bool
|
|
262
|
+
Ice::LoggerAdmin::_iceD_getLog(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
236
263
|
{
|
|
237
|
-
::Ice::
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
264
|
+
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
|
265
|
+
auto istr = inS.startReadParams();
|
|
266
|
+
::Ice::LogMessageTypeSeq iceP_messageTypes;
|
|
267
|
+
::Ice::StringSeq iceP_traceCategories;
|
|
268
|
+
int iceP_messageMax;
|
|
269
|
+
istr->readAll(iceP_messageTypes, iceP_traceCategories, iceP_messageMax);
|
|
270
|
+
inS.endReadParams();
|
|
271
|
+
::std::string iceP_prefix;
|
|
272
|
+
::Ice::LogMessageSeq ret = this->getLog(::std::move(iceP_messageTypes), ::std::move(iceP_traceCategories), iceP_messageMax, iceP_prefix, current);
|
|
273
|
+
auto ostr = inS.startWriteParams();
|
|
274
|
+
ostr->writeAll(iceP_prefix, ret);
|
|
275
|
+
inS.endWriteParams();
|
|
276
|
+
return true;
|
|
248
277
|
}
|
|
249
278
|
|
|
250
|
-
|
|
251
|
-
|
|
279
|
+
bool
|
|
280
|
+
Ice::LoggerAdmin::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
|
|
252
281
|
{
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
try
|
|
256
|
-
{
|
|
257
|
-
::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
|
|
258
|
-
__os->write(__p_prx);
|
|
259
|
-
__os->write(__p_messageTypes);
|
|
260
|
-
__os->write(__p_traceCategories);
|
|
261
|
-
__os->write(__p_messageMax);
|
|
262
|
-
__og.endWriteParams();
|
|
263
|
-
}
|
|
264
|
-
catch(const ::Ice::LocalException& __ex)
|
|
282
|
+
::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_LoggerAdmin_ops, iceC_Ice_LoggerAdmin_ops + 7, current.operation);
|
|
283
|
+
if(r.first == r.second)
|
|
265
284
|
{
|
|
266
|
-
|
|
285
|
+
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
267
286
|
}
|
|
268
|
-
|
|
287
|
+
|
|
288
|
+
switch(r.first - iceC_Ice_LoggerAdmin_ops)
|
|
269
289
|
{
|
|
270
|
-
|
|
290
|
+
case 0:
|
|
271
291
|
{
|
|
272
|
-
|
|
292
|
+
return _iceD_attachRemoteLogger(in, current);
|
|
273
293
|
}
|
|
274
|
-
|
|
294
|
+
case 1:
|
|
275
295
|
{
|
|
276
|
-
|
|
296
|
+
return _iceD_detachRemoteLogger(in, current);
|
|
297
|
+
}
|
|
298
|
+
case 2:
|
|
299
|
+
{
|
|
300
|
+
return _iceD_getLog(in, current);
|
|
301
|
+
}
|
|
302
|
+
case 3:
|
|
303
|
+
{
|
|
304
|
+
return _iceD_ice_id(in, current);
|
|
305
|
+
}
|
|
306
|
+
case 4:
|
|
307
|
+
{
|
|
308
|
+
return _iceD_ice_ids(in, current);
|
|
309
|
+
}
|
|
310
|
+
case 5:
|
|
311
|
+
{
|
|
312
|
+
return _iceD_ice_isA(in, current);
|
|
313
|
+
}
|
|
314
|
+
case 6:
|
|
315
|
+
{
|
|
316
|
+
return _iceD_ice_ping(in, current);
|
|
277
317
|
}
|
|
278
|
-
|
|
318
|
+
default:
|
|
279
319
|
{
|
|
280
|
-
|
|
281
|
-
throw
|
|
320
|
+
assert(false);
|
|
321
|
+
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
282
322
|
}
|
|
283
323
|
}
|
|
284
324
|
}
|
|
285
325
|
|
|
286
|
-
|
|
287
|
-
|
|
326
|
+
void
|
|
327
|
+
Ice::RemoteLoggerPrx::_iceI_init(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::std::string& iceP_prefix, const ::Ice::LogMessageSeq& iceP_logMessages, const ::Ice::Context& context)
|
|
288
328
|
{
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
__os->write(__p_prx);
|
|
296
|
-
__os->write(__p_messageTypes);
|
|
297
|
-
__os->write(__p_traceCategories);
|
|
298
|
-
__os->write(__p_messageMax);
|
|
299
|
-
__result->endWriteParams();
|
|
300
|
-
__result->invoke();
|
|
301
|
-
}
|
|
302
|
-
catch(const ::Ice::Exception& __ex)
|
|
303
|
-
{
|
|
304
|
-
__result->abort(__ex);
|
|
305
|
-
}
|
|
306
|
-
return __result;
|
|
329
|
+
outAsync->invoke(iceC_Ice_RemoteLogger_init_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
|
330
|
+
[&](::Ice::OutputStream* ostr)
|
|
331
|
+
{
|
|
332
|
+
ostr->writeAll(iceP_prefix, iceP_logMessages);
|
|
333
|
+
},
|
|
334
|
+
nullptr);
|
|
307
335
|
}
|
|
308
336
|
|
|
309
|
-
|
|
337
|
+
void
|
|
338
|
+
Ice::RemoteLoggerPrx::_iceI_log(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::Ice::LogMessage& iceP_message, const ::Ice::Context& context)
|
|
339
|
+
{
|
|
340
|
+
outAsync->invoke(iceC_Ice_RemoteLogger_log_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
|
341
|
+
[&](::Ice::OutputStream* ostr)
|
|
342
|
+
{
|
|
343
|
+
ostr->writeAll(iceP_message);
|
|
344
|
+
},
|
|
345
|
+
nullptr);
|
|
346
|
+
}
|
|
310
347
|
|
|
311
|
-
::Ice::
|
|
312
|
-
|
|
348
|
+
::std::shared_ptr<::Ice::ObjectPrx>
|
|
349
|
+
Ice::RemoteLoggerPrx::_newInstance() const
|
|
313
350
|
{
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
public:
|
|
351
|
+
return ::IceInternal::createProxy<RemoteLoggerPrx>();
|
|
352
|
+
}
|
|
317
353
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
354
|
+
const ::std::string&
|
|
355
|
+
Ice::RemoteLoggerPrx::ice_staticId()
|
|
356
|
+
{
|
|
357
|
+
return Ice::RemoteLogger::ice_staticId();
|
|
358
|
+
}
|
|
324
359
|
|
|
325
|
-
|
|
360
|
+
void
|
|
361
|
+
Ice::LoggerAdminPrx::_iceI_attachRemoteLogger(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::std::shared_ptr<::Ice::RemoteLoggerPrx>& iceP_prx, const ::Ice::LogMessageTypeSeq& iceP_messageTypes, const ::Ice::StringSeq& iceP_traceCategories, int iceP_messageMax, const ::Ice::Context& context)
|
|
362
|
+
{
|
|
363
|
+
_checkTwowayOnly(iceC_Ice_LoggerAdmin_attachRemoteLogger_name);
|
|
364
|
+
outAsync->invoke(iceC_Ice_LoggerAdmin_attachRemoteLogger_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
|
365
|
+
[&](::Ice::OutputStream* ostr)
|
|
366
|
+
{
|
|
367
|
+
ostr->writeAll(iceP_prx, iceP_messageTypes, iceP_traceCategories, iceP_messageMax);
|
|
368
|
+
},
|
|
369
|
+
[](const ::Ice::UserException& ex)
|
|
326
370
|
{
|
|
327
|
-
::Ice::LoggerAdminPrx __proxy = ::Ice::LoggerAdminPrx::uncheckedCast(__result->getProxy());
|
|
328
371
|
try
|
|
329
372
|
{
|
|
330
|
-
|
|
373
|
+
ex.ice_throw();
|
|
331
374
|
}
|
|
332
|
-
catch(const ::Ice::
|
|
375
|
+
catch(const ::Ice::RemoteLoggerAlreadyAttachedException&)
|
|
333
376
|
{
|
|
334
|
-
|
|
335
|
-
return;
|
|
377
|
+
throw;
|
|
336
378
|
}
|
|
337
|
-
|
|
379
|
+
catch(const ::Ice::UserException&)
|
|
338
380
|
{
|
|
339
|
-
_response();
|
|
340
381
|
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
private:
|
|
344
|
-
|
|
345
|
-
::std::function<void ()> _response;
|
|
346
|
-
};
|
|
347
|
-
return begin_attachRemoteLogger(__p_prx, __p_messageTypes, __p_traceCategories, __p_messageMax, __ctx, new Cpp11CB(__response, __exception, __sent));
|
|
382
|
+
});
|
|
348
383
|
}
|
|
349
|
-
#endif
|
|
350
384
|
|
|
351
385
|
void
|
|
352
|
-
|
|
386
|
+
Ice::LoggerAdminPrx::_iceI_detachRemoteLogger(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<bool>>& outAsync, const ::std::shared_ptr<::Ice::RemoteLoggerPrx>& iceP_prx, const ::Ice::Context& context)
|
|
353
387
|
{
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
try
|
|
388
|
+
_checkTwowayOnly(iceC_Ice_LoggerAdmin_detachRemoteLogger_name);
|
|
389
|
+
outAsync->invoke(iceC_Ice_LoggerAdmin_detachRemoteLogger_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
|
390
|
+
[&](::Ice::OutputStream* ostr)
|
|
358
391
|
{
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
|
|
392
|
+
ostr->writeAll(iceP_prx);
|
|
393
|
+
},
|
|
394
|
+
nullptr);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
void
|
|
398
|
+
Ice::LoggerAdminPrx::_iceI_getLog(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::Ice::LoggerAdmin::GetLogResult>>& outAsync, const ::Ice::LogMessageTypeSeq& iceP_messageTypes, const ::Ice::StringSeq& iceP_traceCategories, int iceP_messageMax, const ::Ice::Context& context)
|
|
399
|
+
{
|
|
400
|
+
_checkTwowayOnly(iceC_Ice_LoggerAdmin_getLog_name);
|
|
401
|
+
outAsync->invoke(iceC_Ice_LoggerAdmin_getLog_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
|
402
|
+
[&](::Ice::OutputStream* ostr)
|
|
362
403
|
{
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
|
|
404
|
+
ostr->writeAll(iceP_messageTypes, iceP_traceCategories, iceP_messageMax);
|
|
405
|
+
},
|
|
406
|
+
nullptr,
|
|
407
|
+
[](::Ice::InputStream* istr)
|
|
366
408
|
{
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
409
|
+
::Ice::LoggerAdmin::GetLogResult v;
|
|
410
|
+
istr->readAll(v.prefix, v.returnValue);
|
|
411
|
+
return v;
|
|
412
|
+
});
|
|
371
413
|
}
|
|
372
414
|
|
|
373
|
-
|
|
374
|
-
|
|
415
|
+
::std::shared_ptr<::Ice::ObjectPrx>
|
|
416
|
+
Ice::LoggerAdminPrx::_newInstance() const
|
|
375
417
|
{
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
418
|
+
return ::IceInternal::createProxy<LoggerAdminPrx>();
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
const ::std::string&
|
|
422
|
+
Ice::LoggerAdminPrx::ice_staticId()
|
|
423
|
+
{
|
|
424
|
+
return Ice::LoggerAdmin::ice_staticId();
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
namespace Ice
|
|
428
|
+
{
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
#else // C++98 mapping
|
|
432
|
+
|
|
433
|
+
namespace
|
|
434
|
+
{
|
|
435
|
+
|
|
436
|
+
const ::std::string iceC_Ice_RemoteLogger_init_name = "init";
|
|
437
|
+
|
|
438
|
+
const ::std::string iceC_Ice_RemoteLogger_log_name = "log";
|
|
439
|
+
|
|
440
|
+
const ::std::string iceC_Ice_LoggerAdmin_attachRemoteLogger_name = "attachRemoteLogger";
|
|
441
|
+
|
|
442
|
+
const ::std::string iceC_Ice_LoggerAdmin_detachRemoteLogger_name = "detachRemoteLogger";
|
|
443
|
+
|
|
444
|
+
const ::std::string iceC_Ice_LoggerAdmin_getLog_name = "getLog";
|
|
445
|
+
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
namespace
|
|
449
|
+
{
|
|
450
|
+
|
|
451
|
+
const ::IceInternal::DefaultUserExceptionFactoryInit< ::Ice::RemoteLoggerAlreadyAttachedException> iceC_Ice_RemoteLoggerAlreadyAttachedException_init("::Ice::RemoteLoggerAlreadyAttachedException");
|
|
452
|
+
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
Ice::RemoteLoggerAlreadyAttachedException::~RemoteLoggerAlreadyAttachedException() throw()
|
|
456
|
+
{
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
::std::string
|
|
460
|
+
Ice::RemoteLoggerAlreadyAttachedException::ice_id() const
|
|
461
|
+
{
|
|
462
|
+
return "::Ice::RemoteLoggerAlreadyAttachedException";
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
Ice::RemoteLoggerAlreadyAttachedException*
|
|
466
|
+
Ice::RemoteLoggerAlreadyAttachedException::ice_clone() const
|
|
467
|
+
{
|
|
468
|
+
return new RemoteLoggerAlreadyAttachedException(*this);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
void
|
|
472
|
+
Ice::RemoteLoggerAlreadyAttachedException::ice_throw() const
|
|
473
|
+
{
|
|
474
|
+
throw *this;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
void
|
|
478
|
+
Ice::RemoteLoggerAlreadyAttachedException::_writeImpl(::Ice::OutputStream* ostr) const
|
|
479
|
+
{
|
|
480
|
+
ostr->startSlice("::Ice::RemoteLoggerAlreadyAttachedException", -1, true);
|
|
481
|
+
Ice::StreamWriter< ::Ice::RemoteLoggerAlreadyAttachedException, ::Ice::OutputStream>::write(ostr, *this);
|
|
482
|
+
ostr->endSlice();
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
void
|
|
486
|
+
Ice::RemoteLoggerAlreadyAttachedException::_readImpl(::Ice::InputStream* istr)
|
|
487
|
+
{
|
|
488
|
+
istr->startSlice();
|
|
489
|
+
Ice::StreamReader< ::Ice::RemoteLoggerAlreadyAttachedException, ::Ice::InputStream>::read(istr, *this);
|
|
490
|
+
istr->endSlice();
|
|
491
|
+
}
|
|
492
|
+
ICE_API ::IceProxy::Ice::Object* ::IceProxy::Ice::upCast(::IceProxy::Ice::RemoteLogger* p) { return p; }
|
|
493
|
+
|
|
494
|
+
void
|
|
495
|
+
::IceProxy::Ice::_readProxy(::Ice::InputStream* istr, ::IceInternal::ProxyHandle< ::IceProxy::Ice::RemoteLogger>& v)
|
|
496
|
+
{
|
|
497
|
+
::Ice::ObjectPrx proxy;
|
|
498
|
+
istr->read(proxy);
|
|
499
|
+
if(!proxy)
|
|
385
500
|
{
|
|
386
|
-
|
|
501
|
+
v = 0;
|
|
387
502
|
}
|
|
388
|
-
|
|
503
|
+
else
|
|
389
504
|
{
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
__og.throwUserException();
|
|
393
|
-
}
|
|
394
|
-
catch(const ::Ice::UserException& __ex)
|
|
395
|
-
{
|
|
396
|
-
::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
|
|
397
|
-
throw __uue;
|
|
398
|
-
}
|
|
505
|
+
v = new ::IceProxy::Ice::RemoteLogger;
|
|
506
|
+
v->_copyFrom(proxy);
|
|
399
507
|
}
|
|
400
|
-
bool __ret;
|
|
401
|
-
::IceInternal::BasicStream* __is = __og.startReadParams();
|
|
402
|
-
__is->read(__ret);
|
|
403
|
-
__og.endReadParams();
|
|
404
|
-
return __ret;
|
|
405
508
|
}
|
|
406
509
|
|
|
407
510
|
::Ice::AsyncResultPtr
|
|
408
|
-
IceProxy::Ice::
|
|
511
|
+
IceProxy::Ice::RemoteLogger::_iceI_begin_init(const ::std::string& iceP_prefix, const ::Ice::LogMessageSeq& iceP_logMessages, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
|
409
512
|
{
|
|
410
|
-
|
|
411
|
-
::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __Ice__LoggerAdmin__detachRemoteLogger_name, __del, __cookie);
|
|
513
|
+
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_RemoteLogger_init_name, del, cookie, sync);
|
|
412
514
|
try
|
|
413
515
|
{
|
|
414
|
-
|
|
415
|
-
::
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
516
|
+
result->prepare(iceC_Ice_RemoteLogger_init_name, ::Ice::Normal, context);
|
|
517
|
+
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
|
|
518
|
+
ostr->write(iceP_prefix);
|
|
519
|
+
ostr->write(iceP_logMessages);
|
|
520
|
+
result->endWriteParams();
|
|
521
|
+
result->invoke(iceC_Ice_RemoteLogger_init_name);
|
|
419
522
|
}
|
|
420
|
-
catch(const ::Ice::Exception&
|
|
523
|
+
catch(const ::Ice::Exception& ex)
|
|
421
524
|
{
|
|
422
|
-
|
|
525
|
+
result->abort(ex);
|
|
423
526
|
}
|
|
424
|
-
return
|
|
527
|
+
return result;
|
|
425
528
|
}
|
|
426
529
|
|
|
427
|
-
|
|
530
|
+
void
|
|
531
|
+
IceProxy::Ice::RemoteLogger::end_init(const ::Ice::AsyncResultPtr& result)
|
|
532
|
+
{
|
|
533
|
+
_end(result, iceC_Ice_RemoteLogger_init_name);
|
|
534
|
+
}
|
|
428
535
|
|
|
429
536
|
::Ice::AsyncResultPtr
|
|
430
|
-
IceProxy::Ice::
|
|
537
|
+
IceProxy::Ice::RemoteLogger::_iceI_begin_log(const ::Ice::LogMessage& iceP_message, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
|
431
538
|
{
|
|
432
|
-
|
|
539
|
+
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_RemoteLogger_log_name, del, cookie, sync);
|
|
540
|
+
try
|
|
541
|
+
{
|
|
542
|
+
result->prepare(iceC_Ice_RemoteLogger_log_name, ::Ice::Normal, context);
|
|
543
|
+
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
|
|
544
|
+
ostr->write(iceP_message);
|
|
545
|
+
result->endWriteParams();
|
|
546
|
+
result->invoke(iceC_Ice_RemoteLogger_log_name);
|
|
547
|
+
}
|
|
548
|
+
catch(const ::Ice::Exception& ex)
|
|
433
549
|
{
|
|
434
|
-
|
|
550
|
+
result->abort(ex);
|
|
551
|
+
}
|
|
552
|
+
return result;
|
|
553
|
+
}
|
|
435
554
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
555
|
+
void
|
|
556
|
+
IceProxy::Ice::RemoteLogger::end_log(const ::Ice::AsyncResultPtr& result)
|
|
557
|
+
{
|
|
558
|
+
_end(result, iceC_Ice_RemoteLogger_log_name);
|
|
559
|
+
}
|
|
442
560
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
try
|
|
448
|
-
{
|
|
449
|
-
__ret = __proxy->end_detachRemoteLogger(__result);
|
|
450
|
-
}
|
|
451
|
-
catch(const ::Ice::Exception& ex)
|
|
452
|
-
{
|
|
453
|
-
Cpp11FnCallbackNC::exception(__result, ex);
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
if(_response != nullptr)
|
|
457
|
-
{
|
|
458
|
-
_response(__ret);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
private:
|
|
463
|
-
|
|
464
|
-
::std::function<void (bool)> _response;
|
|
465
|
-
};
|
|
466
|
-
return begin_detachRemoteLogger(__p_prx, __ctx, new Cpp11CB(__response, __exception, __sent));
|
|
561
|
+
::IceProxy::Ice::Object*
|
|
562
|
+
IceProxy::Ice::RemoteLogger::_newInstance() const
|
|
563
|
+
{
|
|
564
|
+
return new RemoteLogger;
|
|
467
565
|
}
|
|
468
|
-
#endif
|
|
469
566
|
|
|
470
|
-
|
|
471
|
-
IceProxy::Ice::
|
|
567
|
+
const ::std::string&
|
|
568
|
+
IceProxy::Ice::RemoteLogger::ice_staticId()
|
|
472
569
|
{
|
|
473
|
-
::Ice::
|
|
474
|
-
|
|
475
|
-
|
|
570
|
+
return ::Ice::RemoteLogger::ice_staticId();
|
|
571
|
+
}
|
|
572
|
+
ICE_API ::IceProxy::Ice::Object* ::IceProxy::Ice::upCast(::IceProxy::Ice::LoggerAdmin* p) { return p; }
|
|
573
|
+
|
|
574
|
+
void
|
|
575
|
+
::IceProxy::Ice::_readProxy(::Ice::InputStream* istr, ::IceInternal::ProxyHandle< ::IceProxy::Ice::LoggerAdmin>& v)
|
|
576
|
+
{
|
|
577
|
+
::Ice::ObjectPrx proxy;
|
|
578
|
+
istr->read(proxy);
|
|
579
|
+
if(!proxy)
|
|
476
580
|
{
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
|
|
484
|
-
}
|
|
581
|
+
v = 0;
|
|
582
|
+
}
|
|
583
|
+
else
|
|
584
|
+
{
|
|
585
|
+
v = new ::IceProxy::Ice::LoggerAdmin;
|
|
586
|
+
v->_copyFrom(proxy);
|
|
485
587
|
}
|
|
486
|
-
::IceInternal::BasicStream* __is = __result->__startReadParams();
|
|
487
|
-
__is->read(__ret);
|
|
488
|
-
__result->__endReadParams();
|
|
489
|
-
return __ret;
|
|
490
588
|
}
|
|
491
589
|
|
|
492
|
-
::Ice::
|
|
493
|
-
IceProxy::Ice::LoggerAdmin::
|
|
590
|
+
::Ice::AsyncResultPtr
|
|
591
|
+
IceProxy::Ice::LoggerAdmin::_iceI_begin_attachRemoteLogger(const ::Ice::RemoteLoggerPrx& iceP_prx, const ::Ice::LogMessageTypeSeq& iceP_messageTypes, const ::Ice::StringSeq& iceP_traceCategories, ::Ice::Int iceP_messageMax, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
|
494
592
|
{
|
|
495
|
-
|
|
496
|
-
::IceInternal::
|
|
593
|
+
_checkTwowayOnly(iceC_Ice_LoggerAdmin_attachRemoteLogger_name, sync);
|
|
594
|
+
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_LoggerAdmin_attachRemoteLogger_name, del, cookie, sync);
|
|
497
595
|
try
|
|
498
596
|
{
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
597
|
+
result->prepare(iceC_Ice_LoggerAdmin_attachRemoteLogger_name, ::Ice::Normal, context);
|
|
598
|
+
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
|
|
599
|
+
ostr->write(iceP_prx);
|
|
600
|
+
ostr->write(iceP_messageTypes);
|
|
601
|
+
ostr->write(iceP_traceCategories);
|
|
602
|
+
ostr->write(iceP_messageMax);
|
|
603
|
+
result->endWriteParams();
|
|
604
|
+
result->invoke(iceC_Ice_LoggerAdmin_attachRemoteLogger_name);
|
|
504
605
|
}
|
|
505
|
-
catch(const ::Ice::
|
|
606
|
+
catch(const ::Ice::Exception& ex)
|
|
506
607
|
{
|
|
507
|
-
|
|
608
|
+
result->abort(ex);
|
|
508
609
|
}
|
|
509
|
-
|
|
610
|
+
return result;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
void
|
|
614
|
+
IceProxy::Ice::LoggerAdmin::end_attachRemoteLogger(const ::Ice::AsyncResultPtr& result)
|
|
615
|
+
{
|
|
616
|
+
::Ice::AsyncResult::_check(result, this, iceC_Ice_LoggerAdmin_attachRemoteLogger_name);
|
|
617
|
+
if(!result->_waitForResponse())
|
|
510
618
|
{
|
|
511
619
|
try
|
|
512
620
|
{
|
|
513
|
-
|
|
621
|
+
result->_throwUserException();
|
|
622
|
+
}
|
|
623
|
+
catch(const ::Ice::RemoteLoggerAlreadyAttachedException&)
|
|
624
|
+
{
|
|
625
|
+
throw;
|
|
514
626
|
}
|
|
515
|
-
catch(const ::Ice::UserException&
|
|
627
|
+
catch(const ::Ice::UserException& ex)
|
|
516
628
|
{
|
|
517
|
-
::Ice::UnknownUserException
|
|
518
|
-
throw __uue;
|
|
629
|
+
throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
|
|
519
630
|
}
|
|
520
631
|
}
|
|
521
|
-
|
|
522
|
-
::IceInternal::BasicStream* __is = __og.startReadParams();
|
|
523
|
-
__is->read(__p_prefix);
|
|
524
|
-
__is->read(__ret);
|
|
525
|
-
__og.endReadParams();
|
|
526
|
-
return __ret;
|
|
632
|
+
result->_readEmptyParams();
|
|
527
633
|
}
|
|
528
634
|
|
|
529
635
|
::Ice::AsyncResultPtr
|
|
530
|
-
IceProxy::Ice::LoggerAdmin::
|
|
636
|
+
IceProxy::Ice::LoggerAdmin::_iceI_begin_detachRemoteLogger(const ::Ice::RemoteLoggerPrx& iceP_prx, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
|
531
637
|
{
|
|
532
|
-
|
|
533
|
-
::IceInternal::OutgoingAsyncPtr
|
|
638
|
+
_checkTwowayOnly(iceC_Ice_LoggerAdmin_detachRemoteLogger_name, sync);
|
|
639
|
+
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_LoggerAdmin_detachRemoteLogger_name, del, cookie, sync);
|
|
534
640
|
try
|
|
535
641
|
{
|
|
536
|
-
|
|
537
|
-
::
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
__result->endWriteParams();
|
|
542
|
-
__result->invoke();
|
|
642
|
+
result->prepare(iceC_Ice_LoggerAdmin_detachRemoteLogger_name, ::Ice::Normal, context);
|
|
643
|
+
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
|
|
644
|
+
ostr->write(iceP_prx);
|
|
645
|
+
result->endWriteParams();
|
|
646
|
+
result->invoke(iceC_Ice_LoggerAdmin_detachRemoteLogger_name);
|
|
543
647
|
}
|
|
544
|
-
catch(const ::Ice::Exception&
|
|
648
|
+
catch(const ::Ice::Exception& ex)
|
|
545
649
|
{
|
|
546
|
-
|
|
650
|
+
result->abort(ex);
|
|
547
651
|
}
|
|
548
|
-
return
|
|
652
|
+
return result;
|
|
549
653
|
}
|
|
550
654
|
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
::Ice::AsyncResultPtr
|
|
554
|
-
IceProxy::Ice::LoggerAdmin::__begin_getLog(const ::Ice::LogMessageTypeSeq& __p_messageTypes, const ::Ice::StringSeq& __p_traceCategories, ::Ice::Int __p_messageMax, const ::Ice::Context* __ctx, const ::IceInternal::Function<void (const ::Ice::LogMessageSeq&, const ::std::string&)>& __response, const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, const ::IceInternal::Function<void (bool)>& __sent)
|
|
655
|
+
bool
|
|
656
|
+
IceProxy::Ice::LoggerAdmin::end_detachRemoteLogger(const ::Ice::AsyncResultPtr& result)
|
|
555
657
|
{
|
|
556
|
-
|
|
658
|
+
::Ice::AsyncResult::_check(result, this, iceC_Ice_LoggerAdmin_detachRemoteLogger_name);
|
|
659
|
+
bool ret;
|
|
660
|
+
if(!result->_waitForResponse())
|
|
557
661
|
{
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
Cpp11CB(const ::std::function<void (const ::Ice::LogMessageSeq&, const ::std::string&)>& responseFunc, const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc, const ::std::function<void (bool)>& sentFunc) :
|
|
561
|
-
::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
|
|
562
|
-
_response(responseFunc)
|
|
662
|
+
try
|
|
563
663
|
{
|
|
564
|
-
|
|
664
|
+
result->_throwUserException();
|
|
565
665
|
}
|
|
566
|
-
|
|
567
|
-
virtual void completed(const ::Ice::AsyncResultPtr& __result) const
|
|
666
|
+
catch(const ::Ice::UserException& ex)
|
|
568
667
|
{
|
|
569
|
-
::Ice::
|
|
570
|
-
::std::string __p_prefix;
|
|
571
|
-
::Ice::LogMessageSeq __ret;
|
|
572
|
-
try
|
|
573
|
-
{
|
|
574
|
-
__ret = __proxy->end_getLog(__p_prefix, __result);
|
|
575
|
-
}
|
|
576
|
-
catch(const ::Ice::Exception& ex)
|
|
577
|
-
{
|
|
578
|
-
Cpp11FnCallbackNC::exception(__result, ex);
|
|
579
|
-
return;
|
|
580
|
-
}
|
|
581
|
-
if(_response != nullptr)
|
|
582
|
-
{
|
|
583
|
-
_response(__ret, __p_prefix);
|
|
584
|
-
}
|
|
668
|
+
throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
|
|
585
669
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
670
|
+
}
|
|
671
|
+
::Ice::InputStream* istr = result->_startReadParams();
|
|
672
|
+
istr->read(ret);
|
|
673
|
+
result->_endReadParams();
|
|
674
|
+
return ret;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
::Ice::AsyncResultPtr
|
|
678
|
+
IceProxy::Ice::LoggerAdmin::_iceI_begin_getLog(const ::Ice::LogMessageTypeSeq& iceP_messageTypes, const ::Ice::StringSeq& iceP_traceCategories, ::Ice::Int iceP_messageMax, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
|
679
|
+
{
|
|
680
|
+
_checkTwowayOnly(iceC_Ice_LoggerAdmin_getLog_name, sync);
|
|
681
|
+
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_LoggerAdmin_getLog_name, del, cookie, sync);
|
|
682
|
+
try
|
|
683
|
+
{
|
|
684
|
+
result->prepare(iceC_Ice_LoggerAdmin_getLog_name, ::Ice::Normal, context);
|
|
685
|
+
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
|
|
686
|
+
ostr->write(iceP_messageTypes);
|
|
687
|
+
ostr->write(iceP_traceCategories);
|
|
688
|
+
ostr->write(iceP_messageMax);
|
|
689
|
+
result->endWriteParams();
|
|
690
|
+
result->invoke(iceC_Ice_LoggerAdmin_getLog_name);
|
|
691
|
+
}
|
|
692
|
+
catch(const ::Ice::Exception& ex)
|
|
693
|
+
{
|
|
694
|
+
result->abort(ex);
|
|
695
|
+
}
|
|
696
|
+
return result;
|
|
592
697
|
}
|
|
593
|
-
#endif
|
|
594
698
|
|
|
595
699
|
::Ice::LogMessageSeq
|
|
596
|
-
IceProxy::Ice::LoggerAdmin::end_getLog(::std::string&
|
|
700
|
+
IceProxy::Ice::LoggerAdmin::end_getLog(::std::string& iceP_prefix, const ::Ice::AsyncResultPtr& result)
|
|
597
701
|
{
|
|
598
|
-
::Ice::AsyncResult::
|
|
599
|
-
::Ice::LogMessageSeq
|
|
600
|
-
if(!
|
|
702
|
+
::Ice::AsyncResult::_check(result, this, iceC_Ice_LoggerAdmin_getLog_name);
|
|
703
|
+
::Ice::LogMessageSeq ret;
|
|
704
|
+
if(!result->_waitForResponse())
|
|
601
705
|
{
|
|
602
706
|
try
|
|
603
707
|
{
|
|
604
|
-
|
|
708
|
+
result->_throwUserException();
|
|
605
709
|
}
|
|
606
|
-
catch(const ::Ice::UserException&
|
|
710
|
+
catch(const ::Ice::UserException& ex)
|
|
607
711
|
{
|
|
608
|
-
throw ::Ice::UnknownUserException(__FILE__, __LINE__,
|
|
712
|
+
throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
|
|
609
713
|
}
|
|
610
714
|
}
|
|
611
|
-
::
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
return
|
|
715
|
+
::Ice::InputStream* istr = result->_startReadParams();
|
|
716
|
+
istr->read(iceP_prefix);
|
|
717
|
+
istr->read(ret);
|
|
718
|
+
result->_endReadParams();
|
|
719
|
+
return ret;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
::IceProxy::Ice::Object*
|
|
723
|
+
IceProxy::Ice::LoggerAdmin::_newInstance() const
|
|
724
|
+
{
|
|
725
|
+
return new LoggerAdmin;
|
|
616
726
|
}
|
|
617
727
|
|
|
618
728
|
const ::std::string&
|
|
@@ -621,17 +731,16 @@ IceProxy::Ice::LoggerAdmin::ice_staticId()
|
|
|
621
731
|
return ::Ice::LoggerAdmin::ice_staticId();
|
|
622
732
|
}
|
|
623
733
|
|
|
624
|
-
|
|
625
|
-
IceProxy::Ice::LoggerAdmin::__newInstance() const
|
|
734
|
+
Ice::RemoteLogger::~RemoteLogger()
|
|
626
735
|
{
|
|
627
|
-
return new LoggerAdmin;
|
|
628
736
|
}
|
|
629
737
|
|
|
630
738
|
ICE_API ::Ice::Object* Ice::upCast(::Ice::RemoteLogger* p) { return p; }
|
|
631
739
|
|
|
740
|
+
|
|
632
741
|
namespace
|
|
633
742
|
{
|
|
634
|
-
const ::std::string
|
|
743
|
+
const ::std::string iceC_Ice_RemoteLogger_ids[2] =
|
|
635
744
|
{
|
|
636
745
|
"::Ice::Object",
|
|
637
746
|
"::Ice::RemoteLogger"
|
|
@@ -640,21 +749,21 @@ const ::std::string __Ice__RemoteLogger_ids[2] =
|
|
|
640
749
|
}
|
|
641
750
|
|
|
642
751
|
bool
|
|
643
|
-
Ice::RemoteLogger::ice_isA(const ::std::string&
|
|
752
|
+
Ice::RemoteLogger::ice_isA(const ::std::string& s, const ::Ice::Current&) const
|
|
644
753
|
{
|
|
645
|
-
return ::std::binary_search(
|
|
754
|
+
return ::std::binary_search(iceC_Ice_RemoteLogger_ids, iceC_Ice_RemoteLogger_ids + 2, s);
|
|
646
755
|
}
|
|
647
756
|
|
|
648
757
|
::std::vector< ::std::string>
|
|
649
758
|
Ice::RemoteLogger::ice_ids(const ::Ice::Current&) const
|
|
650
759
|
{
|
|
651
|
-
return ::std::vector< ::std::string>(&
|
|
760
|
+
return ::std::vector< ::std::string>(&iceC_Ice_RemoteLogger_ids[0], &iceC_Ice_RemoteLogger_ids[2]);
|
|
652
761
|
}
|
|
653
762
|
|
|
654
763
|
const ::std::string&
|
|
655
764
|
Ice::RemoteLogger::ice_id(const ::Ice::Current&) const
|
|
656
765
|
{
|
|
657
|
-
return
|
|
766
|
+
return ice_staticId();
|
|
658
767
|
}
|
|
659
768
|
|
|
660
769
|
const ::std::string&
|
|
@@ -664,41 +773,41 @@ Ice::RemoteLogger::ice_staticId()
|
|
|
664
773
|
static const ::std::string typeId = "::Ice::RemoteLogger";
|
|
665
774
|
return typeId;
|
|
666
775
|
#else
|
|
667
|
-
return
|
|
776
|
+
return iceC_Ice_RemoteLogger_ids[1];
|
|
668
777
|
#endif
|
|
669
778
|
}
|
|
670
779
|
|
|
671
|
-
|
|
672
|
-
Ice::RemoteLogger::
|
|
780
|
+
bool
|
|
781
|
+
Ice::RemoteLogger::_iceD_init(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
673
782
|
{
|
|
674
|
-
|
|
675
|
-
::
|
|
676
|
-
::std::string
|
|
677
|
-
::Ice::LogMessageSeq
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
init(
|
|
682
|
-
|
|
683
|
-
return
|
|
783
|
+
_iceCheckMode(::Ice::Normal, current.mode);
|
|
784
|
+
::Ice::InputStream* istr = inS.startReadParams();
|
|
785
|
+
::std::string iceP_prefix;
|
|
786
|
+
::Ice::LogMessageSeq iceP_logMessages;
|
|
787
|
+
istr->read(iceP_prefix);
|
|
788
|
+
istr->read(iceP_logMessages);
|
|
789
|
+
inS.endReadParams();
|
|
790
|
+
this->init(iceP_prefix, iceP_logMessages, current);
|
|
791
|
+
inS.writeEmptyParams();
|
|
792
|
+
return true;
|
|
684
793
|
}
|
|
685
794
|
|
|
686
|
-
|
|
687
|
-
Ice::RemoteLogger::
|
|
795
|
+
bool
|
|
796
|
+
Ice::RemoteLogger::_iceD_log(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
688
797
|
{
|
|
689
|
-
|
|
690
|
-
::
|
|
691
|
-
::Ice::LogMessage
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
log(
|
|
695
|
-
|
|
696
|
-
return
|
|
798
|
+
_iceCheckMode(::Ice::Normal, current.mode);
|
|
799
|
+
::Ice::InputStream* istr = inS.startReadParams();
|
|
800
|
+
::Ice::LogMessage iceP_message;
|
|
801
|
+
istr->read(iceP_message);
|
|
802
|
+
inS.endReadParams();
|
|
803
|
+
this->log(iceP_message, current);
|
|
804
|
+
inS.writeEmptyParams();
|
|
805
|
+
return true;
|
|
697
806
|
}
|
|
698
807
|
|
|
699
808
|
namespace
|
|
700
809
|
{
|
|
701
|
-
const ::std::string
|
|
810
|
+
const ::std::string iceC_Ice_RemoteLogger_all[] =
|
|
702
811
|
{
|
|
703
812
|
"ice_id",
|
|
704
813
|
"ice_ids",
|
|
@@ -710,63 +819,67 @@ const ::std::string __Ice__RemoteLogger_all[] =
|
|
|
710
819
|
|
|
711
820
|
}
|
|
712
821
|
|
|
713
|
-
|
|
714
|
-
Ice::RemoteLogger::
|
|
822
|
+
bool
|
|
823
|
+
Ice::RemoteLogger::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
|
|
715
824
|
{
|
|
716
|
-
::std::pair<
|
|
825
|
+
::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_RemoteLogger_all, iceC_Ice_RemoteLogger_all + 6, current.operation);
|
|
717
826
|
if(r.first == r.second)
|
|
718
827
|
{
|
|
719
828
|
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
720
829
|
}
|
|
721
830
|
|
|
722
|
-
switch(r.first -
|
|
831
|
+
switch(r.first - iceC_Ice_RemoteLogger_all)
|
|
723
832
|
{
|
|
724
833
|
case 0:
|
|
725
834
|
{
|
|
726
|
-
return
|
|
835
|
+
return _iceD_ice_id(in, current);
|
|
727
836
|
}
|
|
728
837
|
case 1:
|
|
729
838
|
{
|
|
730
|
-
return
|
|
839
|
+
return _iceD_ice_ids(in, current);
|
|
731
840
|
}
|
|
732
841
|
case 2:
|
|
733
842
|
{
|
|
734
|
-
return
|
|
843
|
+
return _iceD_ice_isA(in, current);
|
|
735
844
|
}
|
|
736
845
|
case 3:
|
|
737
846
|
{
|
|
738
|
-
return
|
|
847
|
+
return _iceD_ice_ping(in, current);
|
|
739
848
|
}
|
|
740
849
|
case 4:
|
|
741
850
|
{
|
|
742
|
-
return
|
|
851
|
+
return _iceD_init(in, current);
|
|
743
852
|
}
|
|
744
853
|
case 5:
|
|
745
854
|
{
|
|
746
|
-
return
|
|
855
|
+
return _iceD_log(in, current);
|
|
856
|
+
}
|
|
857
|
+
default:
|
|
858
|
+
{
|
|
859
|
+
assert(false);
|
|
860
|
+
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
747
861
|
}
|
|
748
862
|
}
|
|
749
|
-
|
|
750
|
-
assert(false);
|
|
751
|
-
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
752
863
|
}
|
|
753
864
|
|
|
754
865
|
void
|
|
755
|
-
Ice::RemoteLogger::
|
|
866
|
+
Ice::RemoteLogger::_iceWriteImpl(::Ice::OutputStream* ostr) const
|
|
756
867
|
{
|
|
757
|
-
|
|
758
|
-
|
|
868
|
+
ostr->startSlice(ice_staticId(), -1, true);
|
|
869
|
+
Ice::StreamWriter< ::Ice::RemoteLogger, ::Ice::OutputStream>::write(ostr, *this);
|
|
870
|
+
ostr->endSlice();
|
|
759
871
|
}
|
|
760
872
|
|
|
761
873
|
void
|
|
762
|
-
Ice::RemoteLogger::
|
|
874
|
+
Ice::RemoteLogger::_iceReadImpl(::Ice::InputStream* istr)
|
|
763
875
|
{
|
|
764
|
-
|
|
765
|
-
|
|
876
|
+
istr->startSlice();
|
|
877
|
+
Ice::StreamReader< ::Ice::RemoteLogger, ::Ice::InputStream>::read(istr, *this);
|
|
878
|
+
istr->endSlice();
|
|
766
879
|
}
|
|
767
880
|
|
|
768
|
-
void
|
|
769
|
-
Ice::
|
|
881
|
+
void
|
|
882
|
+
Ice::_icePatchObjectPtr(RemoteLoggerPtr& handle, const ::Ice::ObjectPtr& v)
|
|
770
883
|
{
|
|
771
884
|
handle = ::Ice::RemoteLoggerPtr::dynamicCast(v);
|
|
772
885
|
if(v && !handle)
|
|
@@ -775,11 +888,16 @@ Ice::__patch(RemoteLoggerPtr& handle, const ::Ice::ObjectPtr& v)
|
|
|
775
888
|
}
|
|
776
889
|
}
|
|
777
890
|
|
|
891
|
+
Ice::LoggerAdmin::~LoggerAdmin()
|
|
892
|
+
{
|
|
893
|
+
}
|
|
894
|
+
|
|
778
895
|
ICE_API ::Ice::Object* Ice::upCast(::Ice::LoggerAdmin* p) { return p; }
|
|
779
896
|
|
|
897
|
+
|
|
780
898
|
namespace
|
|
781
899
|
{
|
|
782
|
-
const ::std::string
|
|
900
|
+
const ::std::string iceC_Ice_LoggerAdmin_ids[2] =
|
|
783
901
|
{
|
|
784
902
|
"::Ice::LoggerAdmin",
|
|
785
903
|
"::Ice::Object"
|
|
@@ -788,21 +906,21 @@ const ::std::string __Ice__LoggerAdmin_ids[2] =
|
|
|
788
906
|
}
|
|
789
907
|
|
|
790
908
|
bool
|
|
791
|
-
Ice::LoggerAdmin::ice_isA(const ::std::string&
|
|
909
|
+
Ice::LoggerAdmin::ice_isA(const ::std::string& s, const ::Ice::Current&) const
|
|
792
910
|
{
|
|
793
|
-
return ::std::binary_search(
|
|
911
|
+
return ::std::binary_search(iceC_Ice_LoggerAdmin_ids, iceC_Ice_LoggerAdmin_ids + 2, s);
|
|
794
912
|
}
|
|
795
913
|
|
|
796
914
|
::std::vector< ::std::string>
|
|
797
915
|
Ice::LoggerAdmin::ice_ids(const ::Ice::Current&) const
|
|
798
916
|
{
|
|
799
|
-
return ::std::vector< ::std::string>(&
|
|
917
|
+
return ::std::vector< ::std::string>(&iceC_Ice_LoggerAdmin_ids[0], &iceC_Ice_LoggerAdmin_ids[2]);
|
|
800
918
|
}
|
|
801
919
|
|
|
802
920
|
const ::std::string&
|
|
803
921
|
Ice::LoggerAdmin::ice_id(const ::Ice::Current&) const
|
|
804
922
|
{
|
|
805
|
-
return
|
|
923
|
+
return ice_staticId();
|
|
806
924
|
}
|
|
807
925
|
|
|
808
926
|
const ::std::string&
|
|
@@ -812,76 +930,68 @@ Ice::LoggerAdmin::ice_staticId()
|
|
|
812
930
|
static const ::std::string typeId = "::Ice::LoggerAdmin";
|
|
813
931
|
return typeId;
|
|
814
932
|
#else
|
|
815
|
-
return
|
|
933
|
+
return iceC_Ice_LoggerAdmin_ids[0];
|
|
816
934
|
#endif
|
|
817
935
|
}
|
|
818
936
|
|
|
819
|
-
|
|
820
|
-
Ice::LoggerAdmin::
|
|
821
|
-
{
|
|
822
|
-
|
|
823
|
-
::
|
|
824
|
-
::Ice::RemoteLoggerPrx
|
|
825
|
-
::Ice::LogMessageTypeSeq
|
|
826
|
-
::Ice::StringSeq
|
|
827
|
-
::Ice::Int
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
Ice::
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
::
|
|
866
|
-
::Ice::
|
|
867
|
-
::Ice::
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
__inS.endReadParams();
|
|
873
|
-
::std::string __p_prefix;
|
|
874
|
-
::Ice::LogMessageSeq __ret = getLog(__p_messageTypes, __p_traceCategories, __p_messageMax, __p_prefix, __current);
|
|
875
|
-
::IceInternal::BasicStream* __os = __inS.__startWriteParams(::Ice::DefaultFormat);
|
|
876
|
-
__os->write(__p_prefix);
|
|
877
|
-
__os->write(__ret);
|
|
878
|
-
__inS.__endWriteParams(true);
|
|
879
|
-
return ::Ice::DispatchOK;
|
|
937
|
+
bool
|
|
938
|
+
Ice::LoggerAdmin::_iceD_attachRemoteLogger(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
939
|
+
{
|
|
940
|
+
_iceCheckMode(::Ice::Normal, current.mode);
|
|
941
|
+
::Ice::InputStream* istr = inS.startReadParams();
|
|
942
|
+
::Ice::RemoteLoggerPrx iceP_prx;
|
|
943
|
+
::Ice::LogMessageTypeSeq iceP_messageTypes;
|
|
944
|
+
::Ice::StringSeq iceP_traceCategories;
|
|
945
|
+
::Ice::Int iceP_messageMax;
|
|
946
|
+
istr->read(iceP_prx);
|
|
947
|
+
istr->read(iceP_messageTypes);
|
|
948
|
+
istr->read(iceP_traceCategories);
|
|
949
|
+
istr->read(iceP_messageMax);
|
|
950
|
+
inS.endReadParams();
|
|
951
|
+
this->attachRemoteLogger(iceP_prx, iceP_messageTypes, iceP_traceCategories, iceP_messageMax, current);
|
|
952
|
+
inS.writeEmptyParams();
|
|
953
|
+
return true;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
bool
|
|
957
|
+
Ice::LoggerAdmin::_iceD_detachRemoteLogger(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
958
|
+
{
|
|
959
|
+
_iceCheckMode(::Ice::Normal, current.mode);
|
|
960
|
+
::Ice::InputStream* istr = inS.startReadParams();
|
|
961
|
+
::Ice::RemoteLoggerPrx iceP_prx;
|
|
962
|
+
istr->read(iceP_prx);
|
|
963
|
+
inS.endReadParams();
|
|
964
|
+
bool ret = this->detachRemoteLogger(iceP_prx, current);
|
|
965
|
+
::Ice::OutputStream* ostr = inS.startWriteParams();
|
|
966
|
+
ostr->write(ret);
|
|
967
|
+
inS.endWriteParams();
|
|
968
|
+
return true;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
bool
|
|
972
|
+
Ice::LoggerAdmin::_iceD_getLog(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
|
973
|
+
{
|
|
974
|
+
_iceCheckMode(::Ice::Normal, current.mode);
|
|
975
|
+
::Ice::InputStream* istr = inS.startReadParams();
|
|
976
|
+
::Ice::LogMessageTypeSeq iceP_messageTypes;
|
|
977
|
+
::Ice::StringSeq iceP_traceCategories;
|
|
978
|
+
::Ice::Int iceP_messageMax;
|
|
979
|
+
istr->read(iceP_messageTypes);
|
|
980
|
+
istr->read(iceP_traceCategories);
|
|
981
|
+
istr->read(iceP_messageMax);
|
|
982
|
+
inS.endReadParams();
|
|
983
|
+
::std::string iceP_prefix;
|
|
984
|
+
::Ice::LogMessageSeq ret = this->getLog(iceP_messageTypes, iceP_traceCategories, iceP_messageMax, iceP_prefix, current);
|
|
985
|
+
::Ice::OutputStream* ostr = inS.startWriteParams();
|
|
986
|
+
ostr->write(iceP_prefix);
|
|
987
|
+
ostr->write(ret);
|
|
988
|
+
inS.endWriteParams();
|
|
989
|
+
return true;
|
|
880
990
|
}
|
|
881
991
|
|
|
882
992
|
namespace
|
|
883
993
|
{
|
|
884
|
-
const ::std::string
|
|
994
|
+
const ::std::string iceC_Ice_LoggerAdmin_all[] =
|
|
885
995
|
{
|
|
886
996
|
"attachRemoteLogger",
|
|
887
997
|
"detachRemoteLogger",
|
|
@@ -894,67 +1004,71 @@ const ::std::string __Ice__LoggerAdmin_all[] =
|
|
|
894
1004
|
|
|
895
1005
|
}
|
|
896
1006
|
|
|
897
|
-
|
|
898
|
-
Ice::LoggerAdmin::
|
|
1007
|
+
bool
|
|
1008
|
+
Ice::LoggerAdmin::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
|
|
899
1009
|
{
|
|
900
|
-
::std::pair<
|
|
1010
|
+
::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_LoggerAdmin_all, iceC_Ice_LoggerAdmin_all + 7, current.operation);
|
|
901
1011
|
if(r.first == r.second)
|
|
902
1012
|
{
|
|
903
1013
|
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
904
1014
|
}
|
|
905
1015
|
|
|
906
|
-
switch(r.first -
|
|
1016
|
+
switch(r.first - iceC_Ice_LoggerAdmin_all)
|
|
907
1017
|
{
|
|
908
1018
|
case 0:
|
|
909
1019
|
{
|
|
910
|
-
return
|
|
1020
|
+
return _iceD_attachRemoteLogger(in, current);
|
|
911
1021
|
}
|
|
912
1022
|
case 1:
|
|
913
1023
|
{
|
|
914
|
-
return
|
|
1024
|
+
return _iceD_detachRemoteLogger(in, current);
|
|
915
1025
|
}
|
|
916
1026
|
case 2:
|
|
917
1027
|
{
|
|
918
|
-
return
|
|
1028
|
+
return _iceD_getLog(in, current);
|
|
919
1029
|
}
|
|
920
1030
|
case 3:
|
|
921
1031
|
{
|
|
922
|
-
return
|
|
1032
|
+
return _iceD_ice_id(in, current);
|
|
923
1033
|
}
|
|
924
1034
|
case 4:
|
|
925
1035
|
{
|
|
926
|
-
return
|
|
1036
|
+
return _iceD_ice_ids(in, current);
|
|
927
1037
|
}
|
|
928
1038
|
case 5:
|
|
929
1039
|
{
|
|
930
|
-
return
|
|
1040
|
+
return _iceD_ice_isA(in, current);
|
|
931
1041
|
}
|
|
932
1042
|
case 6:
|
|
933
1043
|
{
|
|
934
|
-
return
|
|
1044
|
+
return _iceD_ice_ping(in, current);
|
|
1045
|
+
}
|
|
1046
|
+
default:
|
|
1047
|
+
{
|
|
1048
|
+
assert(false);
|
|
1049
|
+
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
935
1050
|
}
|
|
936
1051
|
}
|
|
937
|
-
|
|
938
|
-
assert(false);
|
|
939
|
-
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
|
940
1052
|
}
|
|
941
1053
|
|
|
942
1054
|
void
|
|
943
|
-
Ice::LoggerAdmin::
|
|
1055
|
+
Ice::LoggerAdmin::_iceWriteImpl(::Ice::OutputStream* ostr) const
|
|
944
1056
|
{
|
|
945
|
-
|
|
946
|
-
|
|
1057
|
+
ostr->startSlice(ice_staticId(), -1, true);
|
|
1058
|
+
Ice::StreamWriter< ::Ice::LoggerAdmin, ::Ice::OutputStream>::write(ostr, *this);
|
|
1059
|
+
ostr->endSlice();
|
|
947
1060
|
}
|
|
948
1061
|
|
|
949
1062
|
void
|
|
950
|
-
Ice::LoggerAdmin::
|
|
1063
|
+
Ice::LoggerAdmin::_iceReadImpl(::Ice::InputStream* istr)
|
|
951
1064
|
{
|
|
952
|
-
|
|
953
|
-
|
|
1065
|
+
istr->startSlice();
|
|
1066
|
+
Ice::StreamReader< ::Ice::LoggerAdmin, ::Ice::InputStream>::read(istr, *this);
|
|
1067
|
+
istr->endSlice();
|
|
954
1068
|
}
|
|
955
1069
|
|
|
956
|
-
void
|
|
957
|
-
Ice::
|
|
1070
|
+
void
|
|
1071
|
+
Ice::_icePatchObjectPtr(LoggerAdminPtr& handle, const ::Ice::ObjectPtr& v)
|
|
958
1072
|
{
|
|
959
1073
|
handle = ::Ice::LoggerAdminPtr::dynamicCast(v);
|
|
960
1074
|
if(v && !handle)
|
|
@@ -962,3 +1076,9 @@ Ice::__patch(LoggerAdminPtr& handle, const ::Ice::ObjectPtr& v)
|
|
|
962
1076
|
IceInternal::Ex::throwUOE(::Ice::LoggerAdmin::ice_staticId(), v);
|
|
963
1077
|
}
|
|
964
1078
|
}
|
|
1079
|
+
|
|
1080
|
+
namespace Ice
|
|
1081
|
+
{
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
#endif
|