zeroc-ice 3.6.5 → 3.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ICE_LICENSE +17 -17
- data/LICENSE +12 -12
- data/bin/slice2rb +1 -6
- data/ext/Communicator.cpp +223 -61
- data/ext/Communicator.h +1 -6
- data/ext/Config.h +23 -7
- data/ext/Connection.cpp +108 -76
- data/ext/Connection.h +4 -6
- data/ext/Endpoint.cpp +16 -54
- data/ext/Endpoint.h +1 -6
- data/ext/ImplicitContext.cpp +1 -10
- data/ext/ImplicitContext.h +1 -6
- data/ext/Init.cpp +4 -6
- data/ext/Logger.cpp +1 -6
- data/ext/Logger.h +1 -6
- data/ext/Operation.cpp +38 -54
- data/ext/Operation.h +1 -6
- data/ext/Properties.cpp +3 -8
- data/ext/Properties.h +1 -6
- data/ext/Proxy.cpp +111 -70
- data/ext/Proxy.h +1 -6
- data/ext/Slice.cpp +5 -20
- data/ext/Slice.h +1 -6
- data/ext/Types.cpp +313 -224
- data/ext/Types.h +118 -71
- data/ext/Util.cpp +69 -36
- data/ext/Util.h +117 -42
- data/ext/ValueFactoryManager.cpp +440 -0
- data/ext/ValueFactoryManager.h +95 -0
- data/ext/extconf.rb +52 -48
- data/ext/ice/cpp/include/Ice/Application.h +275 -105
- data/ext/ice/cpp/include/Ice/AsyncResult.h +124 -337
- data/ext/ice/cpp/include/Ice/AsyncResultF.h +4 -7
- data/ext/ice/cpp/include/Ice/BatchRequestInterceptor.h +39 -16
- data/ext/ice/cpp/include/Ice/BatchRequestQueueF.h +1 -6
- data/ext/ice/cpp/include/Ice/Buffer.h +10 -15
- data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +56 -17
- data/ext/ice/cpp/include/Ice/Comparable.h +205 -0
- data/ext/ice/cpp/include/Ice/Config.h +16 -39
- data/ext/ice/cpp/include/Ice/ConnectionAsync.h +203 -16
- data/ext/ice/cpp/include/Ice/ConnectionIF.h +7 -6
- data/ext/ice/cpp/include/Ice/ConsoleUtil.h +23 -0
- data/ext/ice/cpp/include/Ice/DefaultValueFactory.h +57 -0
- data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +20 -12
- data/ext/ice/cpp/include/Ice/Dispatcher.h +35 -19
- data/ext/ice/cpp/include/Ice/DynamicLibrary.h +7 -10
- data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +1 -6
- data/ext/ice/cpp/include/Ice/Exception.h +110 -63
- data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +74 -0
- data/ext/ice/cpp/include/Ice/FactoryTable.h +22 -18
- data/ext/ice/cpp/include/Ice/FactoryTableInit.h +28 -31
- data/ext/ice/cpp/include/Ice/Format.h +17 -18
- data/ext/ice/cpp/include/Ice/Functional.h +38 -38
- data/ext/ice/cpp/include/Ice/GCObject.h +9 -10
- data/ext/ice/cpp/include/Ice/Handle.h +6 -16
- data/ext/ice/cpp/include/Ice/Ice.h +9 -10
- data/ext/ice/cpp/include/Ice/IconvStringConverter.h +377 -0
- data/ext/ice/cpp/include/Ice/Incoming.h +132 -38
- data/ext/ice/cpp/include/Ice/IncomingAsync.h +109 -31
- data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +7 -6
- data/ext/ice/cpp/include/Ice/Initialize.h +872 -60
- data/ext/ice/cpp/include/Ice/InputStream.h +1514 -0
- data/ext/ice/cpp/include/Ice/InstanceF.h +1 -7
- data/ext/ice/cpp/include/Ice/InterfaceByValue.h +57 -0
- data/ext/ice/cpp/include/Ice/LocalObject.h +13 -14
- data/ext/ice/cpp/include/Ice/LocalObjectF.h +1 -6
- data/ext/ice/cpp/include/Ice/LoggerUtil.h +56 -24
- data/ext/ice/cpp/include/Ice/MetricsAdminI.h +124 -71
- data/ext/ice/cpp/include/Ice/MetricsFunctional.h +25 -10
- data/ext/ice/cpp/include/Ice/MetricsObserverI.h +116 -32
- data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +61 -30
- data/ext/ice/cpp/include/Ice/Object.h +413 -78
- data/ext/ice/cpp/include/Ice/ObjectF.h +12 -8
- data/ext/ice/cpp/include/Ice/ObserverHelper.h +18 -13
- data/ext/ice/cpp/include/Ice/Optional.h +1114 -0
- data/ext/ice/cpp/include/Ice/OutgoingAsync.h +684 -89
- data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +12 -11
- data/ext/ice/cpp/include/Ice/OutputStream.h +1092 -0
- data/ext/ice/cpp/include/Ice/Protocol.h +49 -17
- data/ext/ice/cpp/include/Ice/Proxy.h +3438 -745
- data/ext/ice/cpp/include/Ice/ProxyF.h +13 -38
- data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +1 -6
- data/ext/ice/cpp/include/Ice/ProxyHandle.h +43 -55
- data/ext/ice/cpp/include/Ice/ReferenceF.h +1 -6
- data/ext/ice/cpp/include/Ice/RegisterPlugins.h +84 -12
- data/ext/ice/cpp/include/Ice/RequestHandlerF.h +10 -9
- data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +6 -6
- data/ext/ice/cpp/include/Ice/SHA1.h +42 -0
- data/ext/ice/cpp/include/Ice/ServantManagerF.h +1 -6
- data/ext/ice/cpp/include/Ice/Service.h +273 -154
- data/ext/ice/cpp/include/Ice/SliceChecksums.h +5 -6
- data/ext/ice/cpp/include/Ice/SlicedData.h +121 -53
- data/ext/ice/cpp/include/Ice/SlicedDataF.h +17 -11
- data/ext/ice/cpp/include/Ice/StreamHelpers.h +453 -140
- data/ext/ice/cpp/include/Ice/StringConverter.h +78 -0
- data/ext/ice/cpp/include/Ice/ThreadPoolF.h +1 -6
- data/ext/ice/cpp/include/Ice/UUID.h +19 -0
- data/ext/ice/cpp/include/{IceUtil → Ice}/UniquePtr.h +22 -28
- data/ext/ice/cpp/include/Ice/UniqueRef.h +97 -0
- data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +45 -13
- data/ext/ice/cpp/include/Ice/Value.h +139 -0
- data/ext/ice/cpp/include/Ice/ValueF.h +21 -0
- data/ext/ice/cpp/include/IceSSL/Config.h +8 -28
- data/ext/ice/cpp/include/IceSSL/IceSSL.h +17 -11
- data/ext/ice/cpp/include/IceSSL/OpenSSL.h +147 -0
- data/ext/ice/cpp/include/IceSSL/Plugin.h +461 -448
- data/ext/ice/cpp/include/IceSSL/SChannel.h +72 -0
- data/ext/ice/cpp/include/IceSSL/SecureTransport.h +72 -0
- data/ext/ice/cpp/include/IceSSL/UWP.h +62 -0
- data/ext/ice/cpp/include/IceUtil/Atomic.h +7 -14
- data/ext/ice/cpp/include/IceUtil/Cond.h +17 -23
- data/ext/ice/cpp/include/IceUtil/Config.h +166 -46
- data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +92 -0
- data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +5 -10
- data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +63 -41
- data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +5 -13
- data/ext/ice/cpp/include/IceUtil/Exception.h +284 -75
- data/ext/ice/cpp/include/IceUtil/FileUtil.h +143 -0
- data/ext/ice/cpp/include/IceUtil/Functional.h +4 -6
- data/ext/ice/cpp/include/IceUtil/Handle.h +11 -16
- data/ext/ice/cpp/include/IceUtil/IceUtil.h +4 -15
- data/ext/ice/cpp/include/IceUtil/InputUtil.h +3 -8
- data/ext/ice/cpp/include/IceUtil/Iterator.h +2 -7
- data/ext/ice/cpp/include/IceUtil/Lock.h +8 -15
- data/ext/ice/cpp/include/IceUtil/Monitor.h +1 -7
- data/ext/ice/cpp/include/IceUtil/Mutex.h +19 -23
- data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +2 -7
- data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +4 -9
- data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +4 -9
- data/ext/ice/cpp/include/IceUtil/Optional.h +134 -23
- data/ext/ice/cpp/include/IceUtil/Options.h +17 -23
- data/ext/ice/cpp/include/IceUtil/OutputUtil.h +61 -37
- data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +6 -11
- data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +18 -15
- data/ext/ice/cpp/include/IceUtil/Random.h +39 -8
- data/ext/ice/cpp/include/IceUtil/RecMutex.h +7 -13
- data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +53 -0
- data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +10 -15
- data/ext/ice/cpp/include/IceUtil/ScopedArray.h +8 -7
- data/ext/ice/cpp/include/IceUtil/Shared.h +5 -12
- data/ext/ice/cpp/{src → include}/IceUtil/StopWatch.h +2 -7
- data/ext/ice/cpp/include/IceUtil/StringConverter.h +146 -126
- data/ext/ice/cpp/include/IceUtil/StringUtil.h +32 -26
- data/ext/ice/cpp/include/IceUtil/Thread.h +10 -17
- data/ext/ice/cpp/include/IceUtil/ThreadException.h +33 -47
- data/ext/ice/cpp/include/IceUtil/Time.h +3 -8
- data/ext/ice/cpp/include/IceUtil/Timer.h +18 -18
- data/ext/ice/cpp/include/IceUtil/UUID.h +6 -7
- data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +1 -6
- data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +170 -0
- data/ext/ice/cpp/include/generated/Ice/Communicator.h +1156 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/CommunicatorF.h +51 -16
- data/ext/ice/cpp/include/generated/Ice/Connection.h +1660 -0
- data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +119 -0
- data/ext/ice/cpp/include/generated/Ice/Current.h +322 -0
- data/ext/ice/cpp/include/generated/Ice/Endpoint.h +943 -0
- data/ext/ice/cpp/include/generated/Ice/EndpointF.h +166 -0
- data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +118 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/FacetMap.h +31 -15
- data/ext/ice/cpp/include/generated/Ice/Identity.h +264 -0
- data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +278 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ImplicitContextF.h +51 -16
- data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +1143 -0
- data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +128 -0
- data/ext/ice/cpp/include/generated/Ice/LocalException.h +7041 -0
- data/ext/ice/cpp/include/generated/Ice/Locator.h +3850 -0
- data/ext/ice/cpp/include/generated/Ice/LocatorF.h +147 -0
- data/ext/ice/cpp/include/generated/Ice/Logger.h +231 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/LoggerF.h +51 -16
- data/ext/ice/cpp/include/generated/Ice/Metrics.h +4717 -0
- data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +1175 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ObjectAdapterF.h +51 -16
- data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +197 -0
- data/ext/ice/cpp/include/generated/Ice/Plugin.h +306 -0
- data/ext/ice/cpp/include/generated/Ice/PluginF.h +110 -0
- data/ext/ice/cpp/include/generated/Ice/Process.h +971 -0
- data/ext/ice/cpp/include/generated/Ice/ProcessF.h +125 -0
- data/ext/ice/cpp/include/generated/Ice/Properties.h +446 -0
- data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +1360 -0
- data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +134 -0
- data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +2689 -0
- data/ext/ice/cpp/include/generated/Ice/Router.h +1838 -0
- data/ext/ice/cpp/include/generated/Ice/RouterF.h +125 -0
- data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +299 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ServantLocatorF.h +51 -16
- data/ext/ice/cpp/include/{Ice → generated/Ice}/SliceChecksumDict.h +34 -14
- data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +318 -0
- data/ext/ice/cpp/include/generated/Ice/Version.h +357 -0
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +223 -0
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +101 -0
- data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +181 -0
- data/ext/ice/cpp/src/Ice/ACM.cpp +38 -27
- data/ext/ice/cpp/src/Ice/ACM.h +9 -7
- data/ext/ice/cpp/src/Ice/ACMF.h +30 -0
- data/ext/ice/cpp/src/Ice/Acceptor.cpp +6 -6
- data/ext/ice/cpp/src/Ice/Acceptor.h +4 -8
- data/ext/ice/cpp/src/Ice/AcceptorF.h +1 -6
- data/ext/ice/cpp/src/Ice/ArgVector.cpp +59 -0
- data/ext/ice/cpp/src/Ice/ArgVector.h +36 -0
- data/ext/ice/cpp/src/Ice/AsyncResult.cpp +15 -544
- data/ext/ice/cpp/src/Ice/Base64.cpp +22 -28
- data/ext/ice/cpp/src/Ice/Base64.h +1 -6
- data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +41 -18
- data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +15 -15
- data/ext/ice/cpp/src/Ice/Buffer.cpp +75 -18
- data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +21 -12
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +86 -197
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +17 -23
- data/ext/ice/cpp/src/Ice/Communicator.cpp +43 -15
- data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +318 -117
- data/ext/ice/cpp/src/Ice/CommunicatorI.h +95 -40
- data/ext/ice/cpp/src/{IceUtil → Ice}/Cond.cpp +3 -8
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +55 -122
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +15 -31
- data/ext/ice/cpp/src/Ice/ConnectRequestHandlerF.h +6 -7
- data/ext/ice/cpp/src/Ice/Connection.cpp +111 -20
- data/ext/ice/cpp/src/Ice/ConnectionF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +300 -107
- data/ext/ice/cpp/src/Ice/ConnectionFactory.h +44 -28
- data/ext/ice/cpp/src/Ice/ConnectionFactoryF.h +30 -0
- data/ext/ice/cpp/src/Ice/ConnectionI.cpp +785 -713
- data/ext/ice/cpp/src/Ice/ConnectionI.h +105 -80
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +2 -20
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +5 -9
- data/ext/ice/cpp/src/Ice/Connector.cpp +6 -6
- data/ext/ice/cpp/src/Ice/Connector.h +4 -8
- data/ext/ice/cpp/src/Ice/ConnectorF.h +1 -6
- data/ext/ice/cpp/src/{IceUtil → Ice}/CountDownLatch.cpp +4 -9
- data/ext/ice/cpp/src/Ice/Current.cpp +30 -12
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +10 -16
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +1 -6
- data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +1 -6
- data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +13 -25
- data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +34 -28
- data/ext/ice/cpp/src/Ice/Endpoint.cpp +107 -19
- data/ext/ice/cpp/src/Ice/EndpointF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +152 -6
- data/ext/ice/cpp/src/Ice/EndpointFactory.h +72 -11
- data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +1 -6
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +41 -36
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +10 -9
- data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +1 -6
- data/ext/ice/cpp/src/Ice/EndpointI.cpp +18 -7
- data/ext/ice/cpp/src/Ice/EndpointI.h +39 -18
- data/ext/ice/cpp/src/Ice/EndpointIF.h +18 -10
- data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +19 -12
- data/ext/ice/cpp/src/Ice/EventHandler.cpp +6 -9
- data/ext/ice/cpp/src/Ice/EventHandler.h +13 -13
- data/ext/ice/cpp/src/Ice/EventHandlerF.h +5 -7
- data/ext/ice/cpp/src/Ice/Exception.cpp +102 -98
- data/ext/ice/cpp/src/Ice/FacetMap.cpp +21 -12
- data/ext/ice/cpp/src/Ice/FactoryTable.cpp +37 -33
- data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +2 -9
- data/ext/ice/cpp/src/Ice/GCObject.cpp +29 -31
- data/ext/ice/cpp/src/Ice/HashUtil.h +3 -9
- data/ext/ice/cpp/src/Ice/HttpParser.cpp +1 -7
- data/ext/ice/cpp/src/Ice/HttpParser.h +1 -6
- data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +128 -111
- data/ext/ice/cpp/src/Ice/IPEndpointI.h +23 -19
- data/ext/ice/cpp/src/Ice/IPEndpointIF.h +6 -7
- data/ext/ice/cpp/src/Ice/IconvStringConverter.cpp +51 -0
- data/ext/ice/cpp/src/Ice/Identity.cpp +25 -16
- data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +41 -13
- data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +11 -28
- data/ext/ice/cpp/src/Ice/ImplicitContextI.h +7 -10
- data/ext/ice/cpp/src/Ice/Incoming.cpp +284 -255
- data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +104 -214
- data/ext/ice/cpp/src/Ice/IncomingRequest.h +5 -9
- data/ext/ice/cpp/src/Ice/Initialize.cpp +309 -193
- data/ext/ice/cpp/src/Ice/InputStream.cpp +2726 -0
- data/ext/ice/cpp/src/Ice/Instance.cpp +243 -262
- data/ext/ice/cpp/src/Ice/Instance.h +30 -23
- data/ext/ice/cpp/src/Ice/Instrumentation.cpp +137 -23
- data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +118 -105
- data/ext/ice/cpp/src/Ice/InstrumentationI.h +30 -36
- data/ext/ice/cpp/src/Ice/LocalException.cpp +1191 -422
- data/ext/ice/cpp/src/Ice/LocalObject.cpp +1 -7
- data/ext/ice/cpp/src/Ice/Locator.cpp +1282 -1222
- data/ext/ice/cpp/src/Ice/LocatorF.cpp +30 -12
- data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +150 -186
- data/ext/ice/cpp/src/Ice/LocatorInfo.h +31 -36
- data/ext/ice/cpp/src/Ice/LocatorInfoF.h +1 -6
- data/ext/ice/cpp/src/Ice/Logger.cpp +39 -12
- data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +182 -88
- data/ext/ice/cpp/src/Ice/LoggerAdminI.h +4 -9
- data/ext/ice/cpp/src/Ice/LoggerF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/LoggerI.cpp +26 -55
- data/ext/ice/cpp/src/Ice/LoggerI.h +7 -18
- data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +10 -17
- data/ext/ice/cpp/src/Ice/Metrics.cpp +1280 -1107
- data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +58 -33
- data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +1 -7
- data/ext/ice/cpp/src/Ice/Network.cpp +753 -408
- data/ext/ice/cpp/src/Ice/Network.h +99 -36
- data/ext/ice/cpp/src/Ice/NetworkF.h +2 -7
- data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +20 -19
- data/ext/ice/cpp/src/Ice/NetworkProxy.h +5 -7
- data/ext/ice/cpp/src/Ice/NetworkProxyF.h +1 -6
- data/ext/ice/cpp/src/Ice/OSLogLoggerI.cpp +57 -0
- data/ext/ice/cpp/src/Ice/OSLogLoggerI.h +40 -0
- data/ext/ice/cpp/src/Ice/Object.cpp +227 -232
- data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +45 -13
- data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +83 -33
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +13 -12
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +25 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +298 -191
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +44 -39
- data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +41 -13
- data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +9 -37
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +67 -67
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +15 -11
- data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +801 -366
- data/ext/ice/cpp/src/Ice/OutputStream.cpp +1367 -0
- data/ext/ice/cpp/src/Ice/Plugin.cpp +52 -14
- data/ext/ice/cpp/src/Ice/PluginF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +27 -51
- data/ext/ice/cpp/src/Ice/PluginManagerI.h +7 -13
- data/ext/ice/cpp/src/Ice/Process.cpp +294 -128
- data/ext/ice/cpp/src/Ice/ProcessF.cpp +30 -12
- data/ext/ice/cpp/src/Ice/Properties.cpp +42 -15
- data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +382 -340
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +83 -24
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +29 -10
- data/ext/ice/cpp/src/Ice/PropertiesF.cpp +30 -12
- data/ext/ice/cpp/src/Ice/PropertiesI.cpp +46 -57
- data/ext/ice/cpp/src/Ice/PropertiesI.h +18 -26
- data/ext/ice/cpp/src/Ice/PropertyNames.cpp +112 -19
- data/ext/ice/cpp/src/Ice/PropertyNames.h +4 -7
- data/ext/ice/cpp/src/Ice/Protocol.cpp +6 -19
- data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +37 -7
- data/ext/ice/cpp/src/Ice/ProtocolInstance.h +9 -25
- data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +1 -6
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +6 -6
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +3 -6
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +1 -6
- data/ext/ice/cpp/src/Ice/Proxy.cpp +729 -957
- data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +33 -38
- data/ext/ice/cpp/src/Ice/ProxyFactory.h +16 -16
- data/ext/ice/cpp/src/Ice/Reference.cpp +190 -106
- data/ext/ice/cpp/src/Ice/Reference.h +39 -28
- data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +69 -118
- data/ext/ice/cpp/src/Ice/ReferenceFactory.h +12 -17
- data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +1 -6
- data/ext/ice/cpp/src/Ice/RegisterPluginsInit.cpp +19 -9
- data/ext/ice/cpp/src/Ice/RegisterPluginsInit.h +1 -6
- data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +766 -565
- data/ext/ice/cpp/src/Ice/ReplyStatus.h +1 -6
- data/ext/ice/cpp/src/Ice/RequestHandler.cpp +5 -8
- data/ext/ice/cpp/src/Ice/RequestHandler.h +10 -18
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +10 -11
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +2 -7
- data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +3 -11
- data/ext/ice/cpp/src/Ice/ResponseHandler.h +16 -12
- data/ext/ice/cpp/src/Ice/RetryQueue.cpp +12 -20
- data/ext/ice/cpp/src/Ice/RetryQueue.h +7 -11
- data/ext/ice/cpp/src/Ice/RetryQueueF.h +1 -6
- data/ext/ice/cpp/src/Ice/Router.cpp +614 -492
- data/ext/ice/cpp/src/Ice/RouterF.cpp +30 -12
- data/ext/ice/cpp/src/Ice/RouterInfo.cpp +93 -99
- data/ext/ice/cpp/src/Ice/RouterInfo.h +42 -38
- data/ext/ice/cpp/src/Ice/RouterInfoF.h +1 -6
- data/ext/ice/cpp/src/{IceUtil → Ice}/SHA1.cpp +23 -28
- data/ext/ice/cpp/src/Ice/Selector.cpp +948 -855
- data/ext/ice/cpp/src/Ice/Selector.h +100 -152
- data/ext/ice/cpp/src/Ice/ServantLocator.cpp +41 -13
- data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +28 -11
- data/ext/ice/cpp/src/Ice/ServantManager.cpp +24 -45
- data/ext/ice/cpp/src/Ice/ServantManager.h +1 -6
- data/ext/ice/cpp/src/Ice/SharedContext.h +2 -7
- data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +21 -12
- data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +2 -7
- data/ext/ice/cpp/src/Ice/SlicedData.cpp +72 -25
- data/ext/ice/cpp/src/Ice/StreamSocket.cpp +208 -76
- data/ext/ice/cpp/src/Ice/StreamSocket.h +13 -9
- data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +57 -22
- data/ext/ice/cpp/src/Ice/StringUtil.h +30 -0
- data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +6 -7
- data/ext/ice/cpp/src/Ice/SysLoggerI.h +2 -8
- data/ext/ice/cpp/src/Ice/SystemdJournalI.cpp +66 -0
- data/ext/ice/cpp/src/Ice/SystemdJournalI.h +39 -0
- data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +169 -49
- data/ext/ice/cpp/src/Ice/TcpAcceptor.h +12 -10
- data/ext/ice/cpp/src/Ice/TcpConnector.cpp +6 -12
- data/ext/ice/cpp/src/Ice/TcpConnector.h +1 -7
- data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +51 -46
- data/ext/ice/cpp/src/Ice/TcpEndpointI.h +12 -14
- data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +17 -32
- data/ext/ice/cpp/src/Ice/TcpTransceiver.h +7 -15
- data/ext/ice/cpp/src/{IceUtil → Ice}/Thread.cpp +41 -54
- data/ext/ice/cpp/src/Ice/ThreadPool.cpp +242 -274
- data/ext/ice/cpp/src/Ice/ThreadPool.h +46 -48
- data/ext/ice/cpp/src/{IceUtil → Ice}/Timer.cpp +38 -26
- data/ext/ice/cpp/src/Ice/TraceLevels.cpp +2 -7
- data/ext/ice/cpp/src/Ice/TraceLevels.h +1 -6
- data/ext/ice/cpp/src/Ice/TraceLevelsF.h +2 -7
- data/ext/ice/cpp/src/Ice/TraceUtil.cpp +53 -36
- data/ext/ice/cpp/src/Ice/TraceUtil.h +13 -11
- data/ext/ice/cpp/src/Ice/Transceiver.cpp +1 -7
- data/ext/ice/cpp/src/Ice/Transceiver.h +8 -12
- data/ext/ice/cpp/src/Ice/TransceiverF.h +3 -8
- data/ext/ice/cpp/src/Ice/UdpConnector.cpp +5 -13
- data/ext/ice/cpp/src/Ice/UdpConnector.h +1 -7
- data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +118 -60
- data/ext/ice/cpp/src/Ice/UdpEndpointI.h +13 -10
- data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +177 -236
- data/ext/ice/cpp/src/Ice/UdpTransceiver.h +15 -22
- data/ext/ice/cpp/src/Ice/Value.cpp +76 -0
- data/ext/ice/cpp/src/Ice/ValueFactory.cpp +83 -0
- data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +61 -0
- data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.h +37 -0
- data/ext/ice/cpp/src/Ice/Version.cpp +25 -20
- data/ext/ice/cpp/src/Ice/VirtualShared.h +38 -0
- data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +3 -14
- data/ext/ice/cpp/src/Ice/WSAcceptor.h +3 -12
- data/ext/ice/cpp/src/Ice/WSConnector.cpp +5 -16
- data/ext/ice/cpp/src/Ice/WSConnector.h +3 -11
- data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +188 -89
- data/ext/ice/cpp/src/Ice/WSEndpoint.h +22 -37
- data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +65 -66
- data/ext/ice/cpp/src/Ice/WSTransceiver.h +7 -27
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +596 -281
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +1383 -543
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +89 -32
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +59 -28
- data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +315 -66
- data/ext/ice/cpp/src/IceDiscovery/LookupI.h +83 -41
- data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +57 -64
- data/ext/ice/cpp/src/IceDiscovery/PluginI.h +3 -8
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +450 -172
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +863 -406
- data/ext/ice/cpp/src/IceLocatorDiscovery/Plugin.h +47 -0
- data/ext/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +636 -144
- data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +20 -173
- data/ext/ice/cpp/src/IceSSL/AcceptorI.h +8 -22
- data/ext/ice/cpp/src/IceSSL/CertificateI.cpp +279 -0
- data/ext/ice/cpp/src/IceSSL/CertificateI.h +64 -0
- data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +42 -17
- data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +61 -0
- data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +15 -64
- data/ext/ice/cpp/src/IceSSL/ConnectorI.h +6 -18
- data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +207 -204
- data/ext/ice/cpp/src/IceSSL/EndpointI.h +43 -40
- data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +42 -16
- data/ext/ice/cpp/src/IceSSL/Instance.cpp +1 -11
- data/ext/ice/cpp/src/IceSSL/Instance.h +7 -12
- data/ext/ice/cpp/src/IceSSL/InstanceF.h +11 -12
- data/ext/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +583 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +134 -115
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.h +59 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngineF.h +27 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +127 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +477 -182
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +32 -26
- data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +286 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.h +58 -0
- data/ext/ice/cpp/src/IceSSL/PluginI.cpp +71 -46
- data/ext/ice/cpp/src/IceSSL/PluginI.h +13 -23
- data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +9 -60
- data/ext/ice/cpp/src/IceSSL/RFC2253.h +7 -12
- data/ext/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +580 -0
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +523 -74
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.h +123 -0
- data/ext/ice/cpp/src/IceSSL/SChannelEngineF.h +31 -0
- data/ext/ice/cpp/src/IceSSL/SChannelPluginI.cpp +73 -0
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +187 -221
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +24 -26
- data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +97 -94
- data/ext/ice/cpp/src/IceSSL/SSLEngine.h +26 -192
- data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +4 -24
- data/ext/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +868 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +69 -201
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +59 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngineF.h +29 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +75 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +174 -161
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +29 -33
- data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +864 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.h +45 -0
- data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +12 -22
- data/ext/ice/cpp/src/IceSSL/TrustManager.h +4 -9
- data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +3 -8
- data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +266 -0
- data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +338 -0
- data/ext/ice/cpp/src/IceSSL/UWPEngine.h +41 -0
- data/ext/ice/cpp/src/IceSSL/UWPEngineF.h +26 -0
- data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +89 -0
- data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +383 -0
- data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +71 -0
- data/ext/ice/cpp/src/IceSSL/Util.cpp +71 -1260
- data/ext/ice/cpp/src/IceSSL/Util.h +48 -142
- data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +157 -0
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +22 -27
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +34 -31
- data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +22 -36
- data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +30 -126
- data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +1 -6
- data/ext/ice/cpp/src/IceUtil/Options.cpp +20 -33
- data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +47 -21
- data/ext/ice/cpp/src/IceUtil/Random.cpp +15 -20
- data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +4 -19
- data/ext/ice/cpp/src/IceUtil/Shared.cpp +8 -8
- data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +501 -269
- data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +582 -244
- data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +37 -79
- data/ext/ice/cpp/src/IceUtil/Time.cpp +6 -11
- data/ext/ice/cpp/src/IceUtil/UUID.cpp +17 -22
- data/ext/ice/cpp/src/IceUtil/Unicode.cpp +97 -101
- data/ext/ice/cpp/src/IceUtil/Unicode.h +21 -40
- data/ext/ice/cpp/src/IceUtil/UtilException.cpp +839 -0
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +894 -234
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.h +72 -0
- data/ext/ice/cpp/src/Slice/Checksum.cpp +2 -7
- data/ext/ice/cpp/src/Slice/Checksum.h +21 -0
- data/ext/ice/cpp/src/Slice/FileTracker.cpp +25 -83
- data/ext/ice/cpp/{include → src}/Slice/FileTracker.h +9 -14
- data/ext/ice/cpp/src/Slice/Grammar.cpp +1981 -1944
- data/ext/ice/cpp/src/Slice/Grammar.h +39 -19
- data/ext/ice/cpp/src/Slice/GrammarUtil.h +14 -20
- data/ext/ice/cpp/src/Slice/JavaUtil.cpp +2752 -1948
- data/ext/ice/cpp/src/Slice/JavaUtil.h +398 -0
- data/ext/ice/cpp/src/Slice/MD5.cpp +1 -6
- data/ext/ice/cpp/src/Slice/MD5.h +1 -6
- data/ext/ice/cpp/src/Slice/MD5I.cpp +8 -1
- data/ext/ice/cpp/src/Slice/MD5I.h +1 -1
- data/ext/ice/cpp/src/Slice/PHPUtil.cpp +17 -20
- data/ext/ice/cpp/src/Slice/PHPUtil.h +36 -0
- data/ext/ice/cpp/src/Slice/Parser.cpp +1190 -426
- data/ext/ice/cpp/{include → src}/Slice/Parser.h +143 -91
- data/ext/ice/cpp/src/Slice/Preprocessor.cpp +67 -36
- data/ext/ice/cpp/{include → src}/Slice/Preprocessor.h +8 -18
- data/ext/ice/cpp/src/Slice/Python.cpp +218 -111
- data/ext/ice/cpp/src/Slice/PythonUtil.cpp +787 -699
- data/ext/ice/cpp/src/Slice/PythonUtil.h +70 -0
- data/ext/ice/cpp/src/Slice/Ruby.cpp +42 -43
- data/ext/ice/cpp/src/Slice/RubyUtil.cpp +175 -445
- data/ext/ice/cpp/{include → src}/Slice/RubyUtil.h +6 -11
- data/ext/ice/cpp/src/Slice/Scanner.cpp +390 -399
- data/ext/ice/cpp/src/Slice/{Util.cpp → SliceUtil.cpp} +36 -69
- data/ext/ice/cpp/src/Slice/StringLiteralUtil.cpp +456 -0
- data/ext/ice/cpp/src/Slice/Util.h +50 -0
- data/ice.gemspec +2 -9
- data/lib/Glacier2.rb +1 -6
- data/lib/Glacier2/Metrics.rb +6 -50
- data/lib/Glacier2/PermissionsVerifier.rb +23 -99
- data/lib/Glacier2/PermissionsVerifierF.rb +2 -7
- data/lib/Glacier2/Router.rb +31 -78
- data/lib/Glacier2/RouterF.rb +2 -7
- data/lib/Glacier2/SSLInfo.rb +3 -11
- data/lib/Glacier2/Session.rb +87 -311
- data/lib/Ice.rb +84 -58
- data/lib/Ice/BuiltinSequences.rb +3 -8
- data/lib/Ice/Communicator.rb +54 -61
- data/lib/Ice/CommunicatorF.rb +2 -7
- data/lib/Ice/Connection.rb +152 -166
- data/lib/Ice/ConnectionF.rb +2 -7
- data/lib/Ice/Current.rb +3 -15
- data/lib/Ice/Endpoint.rb +56 -137
- data/lib/Ice/EndpointF.rb +2 -7
- data/lib/Ice/EndpointTypes.rb +2 -11
- data/lib/Ice/FacetMap.rb +3 -8
- data/lib/Ice/Identity.rb +4 -12
- data/lib/Ice/ImplicitContext.rb +4 -38
- data/lib/Ice/ImplicitContextF.rb +2 -7
- data/lib/Ice/Instrumentation.rb +22 -279
- data/lib/Ice/InstrumentationF.rb +2 -7
- data/lib/Ice/LocalException.rb +94 -145
- data/lib/Ice/Locator.rb +50 -169
- data/lib/Ice/LocatorF.rb +2 -7
- data/lib/Ice/Logger.rb +4 -38
- data/lib/Ice/LoggerF.rb +2 -7
- data/lib/Ice/Metrics.rb +60 -420
- data/lib/Ice/ObjectAdapter.rb +29 -0
- data/lib/Ice/ObjectAdapterF.rb +2 -7
- data/lib/Ice/ObjectFactory.rb +4 -34
- data/lib/Ice/Plugin.rb +6 -64
- data/lib/Ice/PluginF.rb +2 -7
- data/lib/Ice/Process.rb +15 -56
- data/lib/Ice/ProcessF.rb +2 -7
- data/lib/Ice/Properties.rb +4 -45
- data/lib/Ice/PropertiesAdmin.rb +18 -60
- data/lib/Ice/PropertiesF.rb +2 -7
- data/lib/Ice/RemoteLogger.rb +33 -119
- data/lib/Ice/Router.rb +28 -105
- data/lib/Ice/RouterF.rb +2 -7
- data/lib/Ice/ServantLocator.rb +26 -0
- data/lib/Ice/ServantLocatorF.rb +24 -0
- data/lib/Ice/SliceChecksumDict.rb +2 -7
- data/lib/Ice/ValueFactory.rb +28 -0
- data/lib/Ice/Version.rb +4 -15
- data/lib/IceBox.rb +1 -6
- data/lib/IceBox/IceBox.rb +43 -152
- data/lib/IceGrid.rb +1 -9
- data/lib/IceGrid/Admin.rb +550 -431
- data/lib/IceGrid/Descriptor.rb +61 -533
- data/lib/IceGrid/Exception.rb +23 -49
- data/lib/IceGrid/FileParser.rb +13 -54
- data/lib/IceGrid/PluginFacade.rb +35 -0
- data/lib/IceGrid/Registry.rb +150 -62
- data/lib/IceGrid/Session.rb +24 -68
- data/lib/IceGrid/UserAccountMapper.rb +13 -54
- data/lib/IcePatch2.rb +1 -6
- data/lib/IcePatch2/FileInfo.rb +4 -15
- data/lib/IcePatch2/FileServer.rb +32 -80
- data/lib/IceStorm.rb +1 -6
- data/lib/IceStorm/IceStorm.rb +78 -210
- data/lib/IceStorm/Metrics.rb +10 -93
- data/slice/Glacier2/Metrics.ice +20 -10
- data/slice/Glacier2/PermissionsVerifier.ice +19 -12
- data/slice/Glacier2/PermissionsVerifierF.ice +16 -9
- data/slice/Glacier2/Router.ice +19 -13
- data/slice/Glacier2/RouterF.ice +16 -9
- data/slice/Glacier2/SSLInfo.ice +17 -10
- data/slice/Glacier2/Session.ice +24 -18
- data/slice/Ice/BuiltinSequences.ice +18 -9
- data/slice/Ice/Communicator.ice +180 -64
- data/slice/Ice/CommunicatorF.ice +18 -9
- data/slice/Ice/Connection.ice +208 -75
- data/slice/Ice/ConnectionF.ice +18 -9
- data/slice/Ice/Current.ice +37 -28
- data/slice/Ice/Endpoint.ice +73 -21
- data/slice/Ice/EndpointF.ice +19 -10
- data/slice/Ice/EndpointTypes.ice +21 -13
- data/slice/Ice/FacetMap.ice +19 -10
- data/slice/Ice/Identity.ice +24 -10
- data/slice/Ice/ImplicitContext.ice +41 -33
- data/slice/Ice/ImplicitContextF.ice +17 -9
- data/slice/Ice/Instrumentation.ice +37 -30
- data/slice/Ice/InstrumentationF.ice +19 -10
- data/slice/Ice/LocalException.ice +118 -112
- data/slice/Ice/Locator.ice +28 -21
- data/slice/Ice/LocatorF.ice +18 -9
- data/slice/Ice/Logger.ice +26 -18
- data/slice/Ice/LoggerF.ice +18 -9
- data/slice/Ice/Metrics.ice +42 -30
- data/slice/Ice/ObjectAdapter.ice +88 -53
- data/slice/Ice/ObjectAdapterF.ice +18 -9
- data/slice/Ice/ObjectFactory.ice +28 -17
- data/slice/Ice/Plugin.ice +25 -13
- data/slice/Ice/PluginF.ice +22 -9
- data/slice/Ice/Process.ice +20 -11
- data/slice/Ice/ProcessF.ice +18 -9
- data/slice/Ice/Properties.ice +42 -28
- data/slice/Ice/PropertiesAdmin.ice +20 -10
- data/slice/Ice/PropertiesF.ice +18 -9
- data/slice/Ice/RemoteLogger.ice +23 -19
- data/slice/Ice/Router.ice +28 -13
- data/slice/Ice/RouterF.ice +18 -9
- data/slice/Ice/ServantLocator.ice +40 -29
- data/slice/Ice/ServantLocatorF.ice +18 -9
- data/slice/Ice/SliceChecksumDict.ice +18 -9
- data/slice/Ice/ValueFactory.ice +132 -0
- data/slice/Ice/Version.ice +20 -10
- data/slice/IceBT/ConnectionInfo.ice +58 -0
- data/slice/IceBT/EndpointInfo.ice +56 -0
- data/slice/IceBT/Types.ice +44 -0
- data/slice/IceBox/IceBox.ice +45 -27
- data/slice/IceDiscovery/IceDiscovery.ice +75 -10
- data/slice/IceGrid/Admin.ice +410 -44
- data/slice/IceGrid/Descriptor.ice +47 -34
- data/slice/IceGrid/Exception.ice +43 -32
- data/slice/IceGrid/FileParser.ice +21 -12
- data/slice/IceGrid/PluginFacade.ice +26 -18
- data/slice/IceGrid/Registry.ice +150 -21
- data/slice/IceGrid/Session.ice +25 -17
- data/slice/IceGrid/UserAccountMapper.ice +23 -14
- data/slice/IceIAP/ConnectionInfo.ice +73 -0
- data/slice/IceIAP/EndpointInfo.ice +67 -0
- data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +19 -12
- data/slice/IcePatch2/FileInfo.ice +19 -13
- data/slice/IcePatch2/FileServer.ice +27 -18
- data/slice/IceSSL/ConnectionInfo.ice +27 -23
- data/slice/IceSSL/ConnectionInfoF.ice +30 -0
- data/slice/IceSSL/EndpointInfo.ice +21 -36
- data/slice/IceStorm/IceStorm.ice +33 -24
- data/slice/IceStorm/Metrics.ice +19 -11
- metadata +148 -120
- data/ext/ObjectFactory.cpp +0 -140
- data/ext/ObjectFactory.h +0 -50
- data/ext/ice/cpp/include/Ice/ACMF.h +0 -30
- data/ext/ice/cpp/include/Ice/BasicStream.h +0 -1335
- data/ext/ice/cpp/include/Ice/BuiltinSequences.h +0 -82
- 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/ConnectionF.h +0 -74
- data/ext/ice/cpp/include/Ice/ConnectionFactoryF.h +0 -30
- data/ext/ice/cpp/include/Ice/Current.h +0 -102
- data/ext/ice/cpp/include/Ice/DefaultObjectFactory.h +0 -48
- 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/EndpointF.h +0 -93
- data/ext/ice/cpp/include/Ice/EndpointTypes.h +0 -82
- data/ext/ice/cpp/include/Ice/Identity.h +0 -168
- data/ext/ice/cpp/include/Ice/ImplicitContext.h +0 -102
- data/ext/ice/cpp/include/Ice/Instrumentation.h +0 -365
- data/ext/ice/cpp/include/Ice/InstrumentationF.h +0 -75
- 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/LocatorF.h +0 -93
- data/ext/ice/cpp/include/Ice/Logger.h +0 -100
- 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/ObjectAdapterFactoryF.h +0 -26
- 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/ObjectFactoryManagerF.h +0 -26
- 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/PluginF.h +0 -70
- data/ext/ice/cpp/include/Ice/Process.h +0 -574
- data/ext/ice/cpp/include/Ice/ProcessF.h +0 -83
- data/ext/ice/cpp/include/Ice/Properties.h +0 -136
- data/ext/ice/cpp/include/Ice/PropertiesAdmin.h +0 -830
- data/ext/ice/cpp/include/Ice/PropertiesF.h +0 -87
- 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/RouterF.h +0 -83
- data/ext/ice/cpp/include/Ice/ServantLocator.h +0 -96
- 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/IceUtil/IconvStringConverter.h +0 -302
- data/ext/ice/cpp/include/IceUtil/SHA1.h +0 -47
- data/ext/ice/cpp/include/Slice/CPlusPlusUtil.h +0 -65
- data/ext/ice/cpp/include/Slice/Checksum.h +0 -26
- 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/JavaUtil.h +0 -279
- data/ext/ice/cpp/include/Slice/ObjCUtil.h +0 -127
- data/ext/ice/cpp/include/Slice/PHPUtil.h +0 -50
- data/ext/ice/cpp/include/Slice/PythonUtil.h +0 -64
- 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/ObjectFactoryF.cpp +0 -44
- 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/ArgVector.cpp +0 -64
- data/ext/ice/cpp/src/IceUtil/ArgVector.h +0 -41
- 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/Ice/ObjectFactoryF.rb +0 -29
- 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/ConnectionF.ice +0 -20
- 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/Ice/ObjectFactoryF.ice +0 -21
- data/slice/IceGrid/Locator.ice +0 -57
- data/slice/IceGrid/Observer.ice +0 -395
- data/slice/IceGrid/Query.ice +0 -131
@@ -0,0 +1,1838 @@
|
|
1
|
+
//
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
3
|
+
//
|
4
|
+
//
|
5
|
+
// Ice version 3.7.4
|
6
|
+
//
|
7
|
+
// <auto-generated>
|
8
|
+
//
|
9
|
+
// Generated from file `Router.ice'
|
10
|
+
//
|
11
|
+
// Warning: do not edit this file.
|
12
|
+
//
|
13
|
+
// </auto-generated>
|
14
|
+
//
|
15
|
+
|
16
|
+
#ifndef __Ice_Router_h__
|
17
|
+
#define __Ice_Router_h__
|
18
|
+
|
19
|
+
#include <IceUtil/PushDisableWarnings.h>
|
20
|
+
#include <Ice/ProxyF.h>
|
21
|
+
#include <Ice/ObjectF.h>
|
22
|
+
#include <Ice/ValueF.h>
|
23
|
+
#include <Ice/Exception.h>
|
24
|
+
#include <Ice/LocalObject.h>
|
25
|
+
#include <Ice/StreamHelpers.h>
|
26
|
+
#include <Ice/Comparable.h>
|
27
|
+
#include <Ice/Proxy.h>
|
28
|
+
#include <Ice/Object.h>
|
29
|
+
#include <Ice/GCObject.h>
|
30
|
+
#include <Ice/Value.h>
|
31
|
+
#include <Ice/Incoming.h>
|
32
|
+
#include <Ice/FactoryTableInit.h>
|
33
|
+
#include <IceUtil/ScopedArray.h>
|
34
|
+
#include <Ice/Optional.h>
|
35
|
+
#include <Ice/BuiltinSequences.h>
|
36
|
+
#include <IceUtil/UndefSysMacros.h>
|
37
|
+
|
38
|
+
#ifndef ICE_IGNORE_VERSION
|
39
|
+
# if ICE_INT_VERSION / 100 != 307
|
40
|
+
# error Ice version mismatch!
|
41
|
+
# endif
|
42
|
+
# if ICE_INT_VERSION % 100 >= 50
|
43
|
+
# error Beta header file detected
|
44
|
+
# endif
|
45
|
+
# if ICE_INT_VERSION % 100 < 4
|
46
|
+
# error Ice patch level mismatch!
|
47
|
+
# endif
|
48
|
+
#endif
|
49
|
+
|
50
|
+
#ifndef ICE_API
|
51
|
+
# if defined(ICE_STATIC_LIBS)
|
52
|
+
# define ICE_API /**/
|
53
|
+
# elif defined(ICE_API_EXPORTS)
|
54
|
+
# define ICE_API ICE_DECLSPEC_EXPORT
|
55
|
+
# else
|
56
|
+
# define ICE_API ICE_DECLSPEC_IMPORT
|
57
|
+
# endif
|
58
|
+
#endif
|
59
|
+
|
60
|
+
#ifdef ICE_CPP11_MAPPING // C++11 mapping
|
61
|
+
|
62
|
+
namespace Ice
|
63
|
+
{
|
64
|
+
|
65
|
+
class Router;
|
66
|
+
class RouterPrx;
|
67
|
+
class RouterFinder;
|
68
|
+
class RouterFinderPrx;
|
69
|
+
|
70
|
+
}
|
71
|
+
|
72
|
+
namespace Ice
|
73
|
+
{
|
74
|
+
|
75
|
+
/**
|
76
|
+
* The Ice router interface. Routers can be set either globally with
|
77
|
+
* {@link Communicator#setDefaultRouter}, or with <code>ice_router</code> on specific
|
78
|
+
* proxies.
|
79
|
+
* \headerfile Ice/Ice.h
|
80
|
+
*/
|
81
|
+
class ICE_API Router : public virtual Object
|
82
|
+
{
|
83
|
+
public:
|
84
|
+
|
85
|
+
using ProxyType = RouterPrx;
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Determines whether this object supports an interface with the given Slice type ID.
|
89
|
+
* @param id The fully-scoped Slice type ID.
|
90
|
+
* @param current The Current object for the invocation.
|
91
|
+
* @return True if this object supports the interface, false, otherwise.
|
92
|
+
*/
|
93
|
+
virtual bool ice_isA(::std::string id, const Current& current) const override;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
97
|
+
* @param current The Current object for the invocation.
|
98
|
+
* @return A list of fully-scoped type IDs.
|
99
|
+
*/
|
100
|
+
virtual ::std::vector<::std::string> ice_ids(const Current& current) const override;
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
104
|
+
* @param current The Current object for the invocation.
|
105
|
+
* @return A fully-scoped type ID.
|
106
|
+
*/
|
107
|
+
virtual ::std::string ice_id(const Current& current) const override;
|
108
|
+
|
109
|
+
/**
|
110
|
+
* Obtains the Slice type ID corresponding to this class.
|
111
|
+
* @return A fully-scoped type ID.
|
112
|
+
*/
|
113
|
+
static const ::std::string& ice_staticId();
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Encapsulates the results of a call to getClientProxy.
|
117
|
+
*/
|
118
|
+
struct GetClientProxyResult
|
119
|
+
{
|
120
|
+
/** The router's client proxy. */
|
121
|
+
::std::shared_ptr<ObjectPrx> returnValue;
|
122
|
+
/** Indicates whether or not the router supports a routing table. */
|
123
|
+
Ice::optional<bool> hasRoutingTable;
|
124
|
+
};
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
128
|
+
* forwarding requests from the client to the router.
|
129
|
+
*
|
130
|
+
* If a null proxy is returned, the client will forward requests
|
131
|
+
* to the router's endpoints.
|
132
|
+
* @param hasRoutingTable Indicates whether or not the router supports a routing
|
133
|
+
* table. If it is supported, the Ice runtime will call addProxies to populate the
|
134
|
+
* routing table. This out parameter is only supported starting with Ice 3.7.
|
135
|
+
* The Ice runtime assumes the router has a routing table if the optional is not
|
136
|
+
* set.
|
137
|
+
* @param current The Current object for the invocation.
|
138
|
+
* @return The router's client proxy.
|
139
|
+
*/
|
140
|
+
virtual ::std::shared_ptr<ObjectPrx> getClientProxy(Ice::optional<bool>& hasRoutingTable, const Current& current) const = 0;
|
141
|
+
/// \cond INTERNAL
|
142
|
+
bool _iceD_getClientProxy(::IceInternal::Incoming&, const Current&) const;
|
143
|
+
/// \endcond
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
147
|
+
* forwarding requests from the server to the router.
|
148
|
+
* @param current The Current object for the invocation.
|
149
|
+
* @return The router's server proxy.
|
150
|
+
*/
|
151
|
+
virtual ::std::shared_ptr<ObjectPrx> getServerProxy(const Current& current) const = 0;
|
152
|
+
/// \cond INTERNAL
|
153
|
+
bool _iceD_getServerProxy(::IceInternal::Incoming&, const Current&) const;
|
154
|
+
/// \endcond
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Add new proxy information to the router's routing table.
|
158
|
+
* @param proxies The proxies to add.
|
159
|
+
* @param current The Current object for the invocation.
|
160
|
+
* @return Proxies discarded by the router.
|
161
|
+
*/
|
162
|
+
virtual ObjectProxySeq addProxies(ObjectProxySeq proxies, const Current& current) = 0;
|
163
|
+
/// \cond INTERNAL
|
164
|
+
bool _iceD_addProxies(::IceInternal::Incoming&, const Current&);
|
165
|
+
/// \endcond
|
166
|
+
|
167
|
+
/// \cond INTERNAL
|
168
|
+
virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&) override;
|
169
|
+
/// \endcond
|
170
|
+
};
|
171
|
+
|
172
|
+
/**
|
173
|
+
* This inferface should be implemented by services implementing the
|
174
|
+
* Ice::Router interface. It should be advertised through an Ice
|
175
|
+
* object with the identity `Ice/RouterFinder'. This allows clients to
|
176
|
+
* retrieve the router proxy with just the endpoint information of the
|
177
|
+
* service.
|
178
|
+
* \headerfile Ice/Ice.h
|
179
|
+
*/
|
180
|
+
class ICE_API RouterFinder : public virtual Object
|
181
|
+
{
|
182
|
+
public:
|
183
|
+
|
184
|
+
using ProxyType = RouterFinderPrx;
|
185
|
+
|
186
|
+
/**
|
187
|
+
* Determines whether this object supports an interface with the given Slice type ID.
|
188
|
+
* @param id The fully-scoped Slice type ID.
|
189
|
+
* @param current The Current object for the invocation.
|
190
|
+
* @return True if this object supports the interface, false, otherwise.
|
191
|
+
*/
|
192
|
+
virtual bool ice_isA(::std::string id, const Current& current) const override;
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
196
|
+
* @param current The Current object for the invocation.
|
197
|
+
* @return A list of fully-scoped type IDs.
|
198
|
+
*/
|
199
|
+
virtual ::std::vector<::std::string> ice_ids(const Current& current) const override;
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
203
|
+
* @param current The Current object for the invocation.
|
204
|
+
* @return A fully-scoped type ID.
|
205
|
+
*/
|
206
|
+
virtual ::std::string ice_id(const Current& current) const override;
|
207
|
+
|
208
|
+
/**
|
209
|
+
* Obtains the Slice type ID corresponding to this class.
|
210
|
+
* @return A fully-scoped type ID.
|
211
|
+
*/
|
212
|
+
static const ::std::string& ice_staticId();
|
213
|
+
|
214
|
+
/**
|
215
|
+
* Get the router proxy implemented by the process hosting this
|
216
|
+
* finder object. The proxy might point to several replicas.
|
217
|
+
* @param current The Current object for the invocation.
|
218
|
+
* @return The router proxy.
|
219
|
+
*/
|
220
|
+
virtual ::std::shared_ptr<RouterPrx> getRouter(const Current& current) = 0;
|
221
|
+
/// \cond INTERNAL
|
222
|
+
bool _iceD_getRouter(::IceInternal::Incoming&, const Current&);
|
223
|
+
/// \endcond
|
224
|
+
|
225
|
+
/// \cond INTERNAL
|
226
|
+
virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&) override;
|
227
|
+
/// \endcond
|
228
|
+
};
|
229
|
+
|
230
|
+
}
|
231
|
+
|
232
|
+
namespace Ice
|
233
|
+
{
|
234
|
+
|
235
|
+
/**
|
236
|
+
* The Ice router interface. Routers can be set either globally with
|
237
|
+
* {@link Communicator#setDefaultRouter}, or with <code>ice_router</code> on specific
|
238
|
+
* proxies.
|
239
|
+
* \headerfile Ice/Ice.h
|
240
|
+
*/
|
241
|
+
class ICE_CLASS(ICE_API) RouterPrx : public virtual Proxy<RouterPrx, ObjectPrx>
|
242
|
+
{
|
243
|
+
public:
|
244
|
+
|
245
|
+
/**
|
246
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
247
|
+
* forwarding requests from the client to the router.
|
248
|
+
*
|
249
|
+
* If a null proxy is returned, the client will forward requests
|
250
|
+
* to the router's endpoints.
|
251
|
+
* @param hasRoutingTable Indicates whether or not the router supports a routing
|
252
|
+
* table. If it is supported, the Ice runtime will call addProxies to populate the
|
253
|
+
* routing table. This out parameter is only supported starting with Ice 3.7.
|
254
|
+
* The Ice runtime assumes the router has a routing table if the optional is not
|
255
|
+
* set.
|
256
|
+
* @param context The Context map to send with the invocation.
|
257
|
+
* @return The router's client proxy.
|
258
|
+
*/
|
259
|
+
::std::shared_ptr<ObjectPrx> getClientProxy(Ice::optional<bool>& hasRoutingTable, const Context& context = noExplicitContext)
|
260
|
+
{
|
261
|
+
auto _result = _makePromiseOutgoing<Router::GetClientProxyResult>(true, this, &RouterPrx::_iceI_getClientProxy, context).get();
|
262
|
+
hasRoutingTable = _result.hasRoutingTable;
|
263
|
+
return ::std::move(_result.returnValue);
|
264
|
+
}
|
265
|
+
|
266
|
+
/**
|
267
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
268
|
+
* forwarding requests from the client to the router.
|
269
|
+
*
|
270
|
+
* If a null proxy is returned, the client will forward requests
|
271
|
+
* to the router's endpoints.
|
272
|
+
* @param context The Context map to send with the invocation.
|
273
|
+
* @return The future object for the invocation.
|
274
|
+
*/
|
275
|
+
template<template<typename> class P = ::std::promise>
|
276
|
+
auto getClientProxyAsync(const Context& context = noExplicitContext)
|
277
|
+
-> decltype(::std::declval<P<Router::GetClientProxyResult>>().get_future())
|
278
|
+
{
|
279
|
+
return _makePromiseOutgoing<Router::GetClientProxyResult, P>(false, this, &RouterPrx::_iceI_getClientProxy, context);
|
280
|
+
}
|
281
|
+
|
282
|
+
/**
|
283
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
284
|
+
* forwarding requests from the client to the router.
|
285
|
+
*
|
286
|
+
* If a null proxy is returned, the client will forward requests
|
287
|
+
* to the router's endpoints.
|
288
|
+
* @param response The response callback.
|
289
|
+
* @param ex The exception callback.
|
290
|
+
* @param sent The sent callback.
|
291
|
+
* @param context The Context map to send with the invocation.
|
292
|
+
* @return A function that can be called to cancel the invocation locally.
|
293
|
+
*/
|
294
|
+
::std::function<void()>
|
295
|
+
getClientProxyAsync(::std::function<void(::std::shared_ptr<::Ice::ObjectPrx>, Ice::optional<bool>)> response,
|
296
|
+
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
297
|
+
::std::function<void(bool)> sent = nullptr,
|
298
|
+
const Context& context = noExplicitContext)
|
299
|
+
{
|
300
|
+
auto _responseCb = [response](Router::GetClientProxyResult&& _result)
|
301
|
+
{
|
302
|
+
response(::std::move(_result.returnValue), _result.hasRoutingTable);
|
303
|
+
};
|
304
|
+
return _makeLamdaOutgoing<Router::GetClientProxyResult>(std::move(_responseCb), std::move(ex), std::move(sent), this, &Ice::RouterPrx::_iceI_getClientProxy, context);
|
305
|
+
}
|
306
|
+
|
307
|
+
/// \cond INTERNAL
|
308
|
+
ICE_MEMBER(ICE_API) void _iceI_getClientProxy(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<Router::GetClientProxyResult>>&, const Context&);
|
309
|
+
/// \endcond
|
310
|
+
|
311
|
+
/**
|
312
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
313
|
+
* forwarding requests from the server to the router.
|
314
|
+
* @param context The Context map to send with the invocation.
|
315
|
+
* @return The router's server proxy.
|
316
|
+
*/
|
317
|
+
::std::shared_ptr<ObjectPrx> getServerProxy(const Context& context = noExplicitContext)
|
318
|
+
{
|
319
|
+
return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(true, this, &RouterPrx::_iceI_getServerProxy, context).get();
|
320
|
+
}
|
321
|
+
|
322
|
+
/**
|
323
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
324
|
+
* forwarding requests from the server to the router.
|
325
|
+
* @param context The Context map to send with the invocation.
|
326
|
+
* @return The future object for the invocation.
|
327
|
+
*/
|
328
|
+
template<template<typename> class P = ::std::promise>
|
329
|
+
auto getServerProxyAsync(const Context& context = noExplicitContext)
|
330
|
+
-> decltype(::std::declval<P<::std::shared_ptr<::Ice::ObjectPrx>>>().get_future())
|
331
|
+
{
|
332
|
+
return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>, P>(false, this, &RouterPrx::_iceI_getServerProxy, context);
|
333
|
+
}
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
337
|
+
* forwarding requests from the server to the router.
|
338
|
+
* @param response The response callback.
|
339
|
+
* @param ex The exception callback.
|
340
|
+
* @param sent The sent callback.
|
341
|
+
* @param context The Context map to send with the invocation.
|
342
|
+
* @return A function that can be called to cancel the invocation locally.
|
343
|
+
*/
|
344
|
+
::std::function<void()>
|
345
|
+
getServerProxyAsync(::std::function<void(::std::shared_ptr<::Ice::ObjectPrx>)> response,
|
346
|
+
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
347
|
+
::std::function<void(bool)> sent = nullptr,
|
348
|
+
const Context& context = noExplicitContext)
|
349
|
+
{
|
350
|
+
return _makeLamdaOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(std::move(response), std::move(ex), std::move(sent), this, &Ice::RouterPrx::_iceI_getServerProxy, context);
|
351
|
+
}
|
352
|
+
|
353
|
+
/// \cond INTERNAL
|
354
|
+
ICE_MEMBER(ICE_API) void _iceI_getServerProxy(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>&, const Context&);
|
355
|
+
/// \endcond
|
356
|
+
|
357
|
+
/**
|
358
|
+
* Add new proxy information to the router's routing table.
|
359
|
+
* @param proxies The proxies to add.
|
360
|
+
* @param context The Context map to send with the invocation.
|
361
|
+
* @return Proxies discarded by the router.
|
362
|
+
*/
|
363
|
+
ObjectProxySeq addProxies(const ObjectProxySeq& proxies, const Context& context = noExplicitContext)
|
364
|
+
{
|
365
|
+
return _makePromiseOutgoing<::Ice::ObjectProxySeq>(true, this, &RouterPrx::_iceI_addProxies, proxies, context).get();
|
366
|
+
}
|
367
|
+
|
368
|
+
/**
|
369
|
+
* Add new proxy information to the router's routing table.
|
370
|
+
* @param proxies The proxies to add.
|
371
|
+
* @param context The Context map to send with the invocation.
|
372
|
+
* @return The future object for the invocation.
|
373
|
+
*/
|
374
|
+
template<template<typename> class P = ::std::promise>
|
375
|
+
auto addProxiesAsync(const ObjectProxySeq& proxies, const Context& context = noExplicitContext)
|
376
|
+
-> decltype(::std::declval<P<::Ice::ObjectProxySeq>>().get_future())
|
377
|
+
{
|
378
|
+
return _makePromiseOutgoing<::Ice::ObjectProxySeq, P>(false, this, &RouterPrx::_iceI_addProxies, proxies, context);
|
379
|
+
}
|
380
|
+
|
381
|
+
/**
|
382
|
+
* Add new proxy information to the router's routing table.
|
383
|
+
* @param proxies The proxies to add.
|
384
|
+
* @param response The response callback.
|
385
|
+
* @param ex The exception callback.
|
386
|
+
* @param sent The sent callback.
|
387
|
+
* @param context The Context map to send with the invocation.
|
388
|
+
* @return A function that can be called to cancel the invocation locally.
|
389
|
+
*/
|
390
|
+
::std::function<void()>
|
391
|
+
addProxiesAsync(const ObjectProxySeq& proxies,
|
392
|
+
::std::function<void(::Ice::ObjectProxySeq)> response,
|
393
|
+
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
394
|
+
::std::function<void(bool)> sent = nullptr,
|
395
|
+
const Context& context = noExplicitContext)
|
396
|
+
{
|
397
|
+
return _makeLamdaOutgoing<::Ice::ObjectProxySeq>(std::move(response), std::move(ex), std::move(sent), this, &Ice::RouterPrx::_iceI_addProxies, proxies, context);
|
398
|
+
}
|
399
|
+
|
400
|
+
/// \cond INTERNAL
|
401
|
+
ICE_MEMBER(ICE_API) void _iceI_addProxies(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::Ice::ObjectProxySeq>>&, const ObjectProxySeq&, const Context&);
|
402
|
+
/// \endcond
|
403
|
+
|
404
|
+
/**
|
405
|
+
* Obtains the Slice type ID of this interface.
|
406
|
+
* @return The fully-scoped type ID.
|
407
|
+
*/
|
408
|
+
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
409
|
+
|
410
|
+
protected:
|
411
|
+
|
412
|
+
/// \cond INTERNAL
|
413
|
+
RouterPrx() = default;
|
414
|
+
friend ::std::shared_ptr<RouterPrx> IceInternal::createProxy<RouterPrx>();
|
415
|
+
|
416
|
+
ICE_MEMBER(ICE_API) virtual ::std::shared_ptr<ObjectPrx> _newInstance() const override;
|
417
|
+
/// \endcond
|
418
|
+
};
|
419
|
+
|
420
|
+
/**
|
421
|
+
* This inferface should be implemented by services implementing the
|
422
|
+
* Ice::Router interface. It should be advertised through an Ice
|
423
|
+
* object with the identity `Ice/RouterFinder'. This allows clients to
|
424
|
+
* retrieve the router proxy with just the endpoint information of the
|
425
|
+
* service.
|
426
|
+
* \headerfile Ice/Ice.h
|
427
|
+
*/
|
428
|
+
class ICE_CLASS(ICE_API) RouterFinderPrx : public virtual Proxy<RouterFinderPrx, ObjectPrx>
|
429
|
+
{
|
430
|
+
public:
|
431
|
+
|
432
|
+
/**
|
433
|
+
* Get the router proxy implemented by the process hosting this
|
434
|
+
* finder object. The proxy might point to several replicas.
|
435
|
+
* @param context The Context map to send with the invocation.
|
436
|
+
* @return The router proxy.
|
437
|
+
*/
|
438
|
+
::std::shared_ptr<RouterPrx> getRouter(const Context& context = noExplicitContext)
|
439
|
+
{
|
440
|
+
return _makePromiseOutgoing<::std::shared_ptr<::Ice::RouterPrx>>(true, this, &RouterFinderPrx::_iceI_getRouter, context).get();
|
441
|
+
}
|
442
|
+
|
443
|
+
/**
|
444
|
+
* Get the router proxy implemented by the process hosting this
|
445
|
+
* finder object. The proxy might point to several replicas.
|
446
|
+
* @param context The Context map to send with the invocation.
|
447
|
+
* @return The future object for the invocation.
|
448
|
+
*/
|
449
|
+
template<template<typename> class P = ::std::promise>
|
450
|
+
auto getRouterAsync(const Context& context = noExplicitContext)
|
451
|
+
-> decltype(::std::declval<P<::std::shared_ptr<::Ice::RouterPrx>>>().get_future())
|
452
|
+
{
|
453
|
+
return _makePromiseOutgoing<::std::shared_ptr<::Ice::RouterPrx>, P>(false, this, &RouterFinderPrx::_iceI_getRouter, context);
|
454
|
+
}
|
455
|
+
|
456
|
+
/**
|
457
|
+
* Get the router proxy implemented by the process hosting this
|
458
|
+
* finder object. The proxy might point to several replicas.
|
459
|
+
* @param response The response callback.
|
460
|
+
* @param ex The exception callback.
|
461
|
+
* @param sent The sent callback.
|
462
|
+
* @param context The Context map to send with the invocation.
|
463
|
+
* @return A function that can be called to cancel the invocation locally.
|
464
|
+
*/
|
465
|
+
::std::function<void()>
|
466
|
+
getRouterAsync(::std::function<void(::std::shared_ptr<::Ice::RouterPrx>)> response,
|
467
|
+
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
468
|
+
::std::function<void(bool)> sent = nullptr,
|
469
|
+
const Context& context = noExplicitContext)
|
470
|
+
{
|
471
|
+
return _makeLamdaOutgoing<::std::shared_ptr<::Ice::RouterPrx>>(std::move(response), std::move(ex), std::move(sent), this, &Ice::RouterFinderPrx::_iceI_getRouter, context);
|
472
|
+
}
|
473
|
+
|
474
|
+
/// \cond INTERNAL
|
475
|
+
ICE_MEMBER(ICE_API) void _iceI_getRouter(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::RouterPrx>>>&, const Context&);
|
476
|
+
/// \endcond
|
477
|
+
|
478
|
+
/**
|
479
|
+
* Obtains the Slice type ID of this interface.
|
480
|
+
* @return The fully-scoped type ID.
|
481
|
+
*/
|
482
|
+
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
483
|
+
|
484
|
+
protected:
|
485
|
+
|
486
|
+
/// \cond INTERNAL
|
487
|
+
RouterFinderPrx() = default;
|
488
|
+
friend ::std::shared_ptr<RouterFinderPrx> IceInternal::createProxy<RouterFinderPrx>();
|
489
|
+
|
490
|
+
ICE_MEMBER(ICE_API) virtual ::std::shared_ptr<ObjectPrx> _newInstance() const override;
|
491
|
+
/// \endcond
|
492
|
+
};
|
493
|
+
|
494
|
+
}
|
495
|
+
|
496
|
+
/// \cond STREAM
|
497
|
+
namespace Ice
|
498
|
+
{
|
499
|
+
|
500
|
+
}
|
501
|
+
/// \endcond
|
502
|
+
|
503
|
+
/// \cond INTERNAL
|
504
|
+
namespace Ice
|
505
|
+
{
|
506
|
+
|
507
|
+
using RouterPtr = ::std::shared_ptr<Router>;
|
508
|
+
using RouterPrxPtr = ::std::shared_ptr<RouterPrx>;
|
509
|
+
|
510
|
+
using RouterFinderPtr = ::std::shared_ptr<RouterFinder>;
|
511
|
+
using RouterFinderPrxPtr = ::std::shared_ptr<RouterFinderPrx>;
|
512
|
+
|
513
|
+
}
|
514
|
+
/// \endcond
|
515
|
+
|
516
|
+
#else // C++98 mapping
|
517
|
+
|
518
|
+
namespace IceProxy
|
519
|
+
{
|
520
|
+
|
521
|
+
namespace Ice
|
522
|
+
{
|
523
|
+
|
524
|
+
class Router;
|
525
|
+
/// \cond INTERNAL
|
526
|
+
ICE_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< Router>&);
|
527
|
+
ICE_API ::IceProxy::Ice::Object* upCast(Router*);
|
528
|
+
/// \endcond
|
529
|
+
|
530
|
+
class RouterFinder;
|
531
|
+
/// \cond INTERNAL
|
532
|
+
ICE_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< RouterFinder>&);
|
533
|
+
ICE_API ::IceProxy::Ice::Object* upCast(RouterFinder*);
|
534
|
+
/// \endcond
|
535
|
+
|
536
|
+
}
|
537
|
+
|
538
|
+
}
|
539
|
+
|
540
|
+
namespace Ice
|
541
|
+
{
|
542
|
+
|
543
|
+
class Router;
|
544
|
+
/// \cond INTERNAL
|
545
|
+
ICE_API Object* upCast(Router*);
|
546
|
+
/// \endcond
|
547
|
+
typedef ::IceInternal::Handle< Router> RouterPtr;
|
548
|
+
typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::Router> RouterPrx;
|
549
|
+
typedef RouterPrx RouterPrxPtr;
|
550
|
+
/// \cond INTERNAL
|
551
|
+
ICE_API void _icePatchObjectPtr(RouterPtr&, const ObjectPtr&);
|
552
|
+
/// \endcond
|
553
|
+
|
554
|
+
class RouterFinder;
|
555
|
+
/// \cond INTERNAL
|
556
|
+
ICE_API Object* upCast(RouterFinder*);
|
557
|
+
/// \endcond
|
558
|
+
typedef ::IceInternal::Handle< RouterFinder> RouterFinderPtr;
|
559
|
+
typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::RouterFinder> RouterFinderPrx;
|
560
|
+
typedef RouterFinderPrx RouterFinderPrxPtr;
|
561
|
+
/// \cond INTERNAL
|
562
|
+
ICE_API void _icePatchObjectPtr(RouterFinderPtr&, const ObjectPtr&);
|
563
|
+
/// \endcond
|
564
|
+
|
565
|
+
}
|
566
|
+
|
567
|
+
namespace Ice
|
568
|
+
{
|
569
|
+
|
570
|
+
/**
|
571
|
+
* Base class for asynchronous callback wrapper classes used for calls to
|
572
|
+
* IceProxy::Ice::Router::begin_getClientProxy.
|
573
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_getClientProxy.
|
574
|
+
*/
|
575
|
+
class Callback_Router_getClientProxy_Base : public virtual ::IceInternal::CallbackBase { };
|
576
|
+
typedef ::IceUtil::Handle< Callback_Router_getClientProxy_Base> Callback_Router_getClientProxyPtr;
|
577
|
+
|
578
|
+
/**
|
579
|
+
* Base class for asynchronous callback wrapper classes used for calls to
|
580
|
+
* IceProxy::Ice::Router::begin_getServerProxy.
|
581
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_getServerProxy.
|
582
|
+
*/
|
583
|
+
class Callback_Router_getServerProxy_Base : public virtual ::IceInternal::CallbackBase { };
|
584
|
+
typedef ::IceUtil::Handle< Callback_Router_getServerProxy_Base> Callback_Router_getServerProxyPtr;
|
585
|
+
|
586
|
+
/**
|
587
|
+
* Base class for asynchronous callback wrapper classes used for calls to
|
588
|
+
* IceProxy::Ice::Router::begin_addProxies.
|
589
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_addProxies.
|
590
|
+
*/
|
591
|
+
class Callback_Router_addProxies_Base : public virtual ::IceInternal::CallbackBase { };
|
592
|
+
typedef ::IceUtil::Handle< Callback_Router_addProxies_Base> Callback_Router_addProxiesPtr;
|
593
|
+
|
594
|
+
/**
|
595
|
+
* Base class for asynchronous callback wrapper classes used for calls to
|
596
|
+
* IceProxy::Ice::RouterFinder::begin_getRouter.
|
597
|
+
* Create a wrapper instance by calling ::Ice::newCallback_RouterFinder_getRouter.
|
598
|
+
*/
|
599
|
+
class Callback_RouterFinder_getRouter_Base : public virtual ::IceInternal::CallbackBase { };
|
600
|
+
typedef ::IceUtil::Handle< Callback_RouterFinder_getRouter_Base> Callback_RouterFinder_getRouterPtr;
|
601
|
+
|
602
|
+
}
|
603
|
+
|
604
|
+
namespace IceProxy
|
605
|
+
{
|
606
|
+
|
607
|
+
namespace Ice
|
608
|
+
{
|
609
|
+
|
610
|
+
class ICE_CLASS(ICE_API) Router : public virtual ::Ice::Proxy<Router, ::IceProxy::Ice::Object>
|
611
|
+
{
|
612
|
+
public:
|
613
|
+
|
614
|
+
/**
|
615
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
616
|
+
* forwarding requests from the client to the router.
|
617
|
+
*
|
618
|
+
* If a null proxy is returned, the client will forward requests
|
619
|
+
* to the router's endpoints.
|
620
|
+
* @param hasRoutingTable Indicates whether or not the router supports a routing
|
621
|
+
* table. If it is supported, the Ice runtime will call addProxies to populate the
|
622
|
+
* routing table. This out parameter is only supported starting with Ice 3.7.
|
623
|
+
* The Ice runtime assumes the router has a routing table if the optional is not
|
624
|
+
* set.
|
625
|
+
* @param context The Context map to send with the invocation.
|
626
|
+
* @return The router's client proxy.
|
627
|
+
*/
|
628
|
+
ICE_MEMBER(ICE_API) ::Ice::ObjectPrx getClientProxy(IceUtil::Optional<bool>& hasRoutingTable, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
629
|
+
{
|
630
|
+
return end_getClientProxy(hasRoutingTable, _iceI_begin_getClientProxy(context, ::IceInternal::dummyCallback, 0, true));
|
631
|
+
}
|
632
|
+
|
633
|
+
/**
|
634
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
635
|
+
* forwarding requests from the client to the router.
|
636
|
+
*
|
637
|
+
* If a null proxy is returned, the client will forward requests
|
638
|
+
* to the router's endpoints.
|
639
|
+
* @param context The Context map to send with the invocation.
|
640
|
+
* @return The asynchronous result object for the invocation.
|
641
|
+
*/
|
642
|
+
::Ice::AsyncResultPtr begin_getClientProxy(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
643
|
+
{
|
644
|
+
return _iceI_begin_getClientProxy(context, ::IceInternal::dummyCallback, 0);
|
645
|
+
}
|
646
|
+
|
647
|
+
/**
|
648
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
649
|
+
* forwarding requests from the client to the router.
|
650
|
+
*
|
651
|
+
* If a null proxy is returned, the client will forward requests
|
652
|
+
* to the router's endpoints.
|
653
|
+
* @param cb Asynchronous callback object.
|
654
|
+
* @param cookie User-defined data to associate with the invocation.
|
655
|
+
* @return The asynchronous result object for the invocation.
|
656
|
+
*/
|
657
|
+
::Ice::AsyncResultPtr begin_getClientProxy(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
658
|
+
{
|
659
|
+
return _iceI_begin_getClientProxy(::Ice::noExplicitContext, cb, cookie);
|
660
|
+
}
|
661
|
+
|
662
|
+
/**
|
663
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
664
|
+
* forwarding requests from the client to the router.
|
665
|
+
*
|
666
|
+
* If a null proxy is returned, the client will forward requests
|
667
|
+
* to the router's endpoints.
|
668
|
+
* @param context The Context map to send with the invocation.
|
669
|
+
* @param cb Asynchronous callback object.
|
670
|
+
* @param cookie User-defined data to associate with the invocation.
|
671
|
+
* @return The asynchronous result object for the invocation.
|
672
|
+
*/
|
673
|
+
::Ice::AsyncResultPtr begin_getClientProxy(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
674
|
+
{
|
675
|
+
return _iceI_begin_getClientProxy(context, cb, cookie);
|
676
|
+
}
|
677
|
+
|
678
|
+
/**
|
679
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
680
|
+
* forwarding requests from the client to the router.
|
681
|
+
*
|
682
|
+
* If a null proxy is returned, the client will forward requests
|
683
|
+
* to the router's endpoints.
|
684
|
+
* @param cb Asynchronous callback object.
|
685
|
+
* @param cookie User-defined data to associate with the invocation.
|
686
|
+
* @return The asynchronous result object for the invocation.
|
687
|
+
*/
|
688
|
+
::Ice::AsyncResultPtr begin_getClientProxy(const ::Ice::Callback_Router_getClientProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
689
|
+
{
|
690
|
+
return _iceI_begin_getClientProxy(::Ice::noExplicitContext, cb, cookie);
|
691
|
+
}
|
692
|
+
|
693
|
+
/**
|
694
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
695
|
+
* forwarding requests from the client to the router.
|
696
|
+
*
|
697
|
+
* If a null proxy is returned, the client will forward requests
|
698
|
+
* to the router's endpoints.
|
699
|
+
* @param context The Context map to send with the invocation.
|
700
|
+
* @param cb Asynchronous callback object.
|
701
|
+
* @param cookie User-defined data to associate with the invocation.
|
702
|
+
* @return The asynchronous result object for the invocation.
|
703
|
+
*/
|
704
|
+
::Ice::AsyncResultPtr begin_getClientProxy(const ::Ice::Context& context, const ::Ice::Callback_Router_getClientProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
705
|
+
{
|
706
|
+
return _iceI_begin_getClientProxy(context, cb, cookie);
|
707
|
+
}
|
708
|
+
|
709
|
+
/**
|
710
|
+
* Completes an invocation of begin_getClientProxy.
|
711
|
+
* @param hasRoutingTable Indicates whether or not the router supports a routing
|
712
|
+
* table. If it is supported, the Ice runtime will call addProxies to populate the
|
713
|
+
* routing table. This out parameter is only supported starting with Ice 3.7.
|
714
|
+
* The Ice runtime assumes the router has a routing table if the optional is not
|
715
|
+
* set.
|
716
|
+
* @param result The asynchronous result object for the invocation.
|
717
|
+
* @return The router's client proxy.
|
718
|
+
*/
|
719
|
+
ICE_MEMBER(ICE_API) ::Ice::ObjectPrx end_getClientProxy(IceUtil::Optional<bool>& hasRoutingTable, const ::Ice::AsyncResultPtr& result);
|
720
|
+
/// \cond INTERNAL
|
721
|
+
|
722
|
+
ICE_MEMBER(ICE_API) void _iceI_end_getClientProxy(IceUtil::Optional<bool>& iceP_hasRoutingTable, ::Ice::ObjectPrxPtr& ret, const ::Ice::AsyncResultPtr&);
|
723
|
+
/// \endcond
|
724
|
+
|
725
|
+
private:
|
726
|
+
|
727
|
+
ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_getClientProxy(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
728
|
+
|
729
|
+
public:
|
730
|
+
|
731
|
+
/**
|
732
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
733
|
+
* forwarding requests from the server to the router.
|
734
|
+
* @param context The Context map to send with the invocation.
|
735
|
+
* @return The router's server proxy.
|
736
|
+
*/
|
737
|
+
ICE_MEMBER(ICE_API) ::Ice::ObjectPrx getServerProxy(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
738
|
+
{
|
739
|
+
return end_getServerProxy(_iceI_begin_getServerProxy(context, ::IceInternal::dummyCallback, 0, true));
|
740
|
+
}
|
741
|
+
|
742
|
+
/**
|
743
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
744
|
+
* forwarding requests from the server to the router.
|
745
|
+
* @param context The Context map to send with the invocation.
|
746
|
+
* @return The asynchronous result object for the invocation.
|
747
|
+
*/
|
748
|
+
::Ice::AsyncResultPtr begin_getServerProxy(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
749
|
+
{
|
750
|
+
return _iceI_begin_getServerProxy(context, ::IceInternal::dummyCallback, 0);
|
751
|
+
}
|
752
|
+
|
753
|
+
/**
|
754
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
755
|
+
* forwarding requests from the server to the router.
|
756
|
+
* @param cb Asynchronous callback object.
|
757
|
+
* @param cookie User-defined data to associate with the invocation.
|
758
|
+
* @return The asynchronous result object for the invocation.
|
759
|
+
*/
|
760
|
+
::Ice::AsyncResultPtr begin_getServerProxy(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
761
|
+
{
|
762
|
+
return _iceI_begin_getServerProxy(::Ice::noExplicitContext, cb, cookie);
|
763
|
+
}
|
764
|
+
|
765
|
+
/**
|
766
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
767
|
+
* forwarding requests from the server to the router.
|
768
|
+
* @param context The Context map to send with the invocation.
|
769
|
+
* @param cb Asynchronous callback object.
|
770
|
+
* @param cookie User-defined data to associate with the invocation.
|
771
|
+
* @return The asynchronous result object for the invocation.
|
772
|
+
*/
|
773
|
+
::Ice::AsyncResultPtr begin_getServerProxy(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
774
|
+
{
|
775
|
+
return _iceI_begin_getServerProxy(context, cb, cookie);
|
776
|
+
}
|
777
|
+
|
778
|
+
/**
|
779
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
780
|
+
* forwarding requests from the server to the router.
|
781
|
+
* @param cb Asynchronous callback object.
|
782
|
+
* @param cookie User-defined data to associate with the invocation.
|
783
|
+
* @return The asynchronous result object for the invocation.
|
784
|
+
*/
|
785
|
+
::Ice::AsyncResultPtr begin_getServerProxy(const ::Ice::Callback_Router_getServerProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
786
|
+
{
|
787
|
+
return _iceI_begin_getServerProxy(::Ice::noExplicitContext, cb, cookie);
|
788
|
+
}
|
789
|
+
|
790
|
+
/**
|
791
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
792
|
+
* forwarding requests from the server to the router.
|
793
|
+
* @param context The Context map to send with the invocation.
|
794
|
+
* @param cb Asynchronous callback object.
|
795
|
+
* @param cookie User-defined data to associate with the invocation.
|
796
|
+
* @return The asynchronous result object for the invocation.
|
797
|
+
*/
|
798
|
+
::Ice::AsyncResultPtr begin_getServerProxy(const ::Ice::Context& context, const ::Ice::Callback_Router_getServerProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
799
|
+
{
|
800
|
+
return _iceI_begin_getServerProxy(context, cb, cookie);
|
801
|
+
}
|
802
|
+
|
803
|
+
/**
|
804
|
+
* Completes an invocation of begin_getServerProxy.
|
805
|
+
* @param result The asynchronous result object for the invocation.
|
806
|
+
* @return The router's server proxy.
|
807
|
+
*/
|
808
|
+
ICE_MEMBER(ICE_API) ::Ice::ObjectPrx end_getServerProxy(const ::Ice::AsyncResultPtr& result);
|
809
|
+
|
810
|
+
private:
|
811
|
+
|
812
|
+
ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_getServerProxy(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
813
|
+
|
814
|
+
public:
|
815
|
+
|
816
|
+
/**
|
817
|
+
* Add new proxy information to the router's routing table.
|
818
|
+
* @param proxies The proxies to add.
|
819
|
+
* @param context The Context map to send with the invocation.
|
820
|
+
* @return Proxies discarded by the router.
|
821
|
+
*/
|
822
|
+
ICE_MEMBER(ICE_API) ::Ice::ObjectProxySeq addProxies(const ::Ice::ObjectProxySeq& proxies, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
823
|
+
{
|
824
|
+
return end_addProxies(_iceI_begin_addProxies(proxies, context, ::IceInternal::dummyCallback, 0, true));
|
825
|
+
}
|
826
|
+
|
827
|
+
/**
|
828
|
+
* Add new proxy information to the router's routing table.
|
829
|
+
* @param proxies The proxies to add.
|
830
|
+
* @param context The Context map to send with the invocation.
|
831
|
+
* @return The asynchronous result object for the invocation.
|
832
|
+
*/
|
833
|
+
::Ice::AsyncResultPtr begin_addProxies(const ::Ice::ObjectProxySeq& proxies, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
834
|
+
{
|
835
|
+
return _iceI_begin_addProxies(proxies, context, ::IceInternal::dummyCallback, 0);
|
836
|
+
}
|
837
|
+
|
838
|
+
/**
|
839
|
+
* Add new proxy information to the router's routing table.
|
840
|
+
* @param proxies The proxies to add.
|
841
|
+
* @param cb Asynchronous callback object.
|
842
|
+
* @param cookie User-defined data to associate with the invocation.
|
843
|
+
* @return The asynchronous result object for the invocation.
|
844
|
+
*/
|
845
|
+
::Ice::AsyncResultPtr begin_addProxies(const ::Ice::ObjectProxySeq& proxies, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
846
|
+
{
|
847
|
+
return _iceI_begin_addProxies(proxies, ::Ice::noExplicitContext, cb, cookie);
|
848
|
+
}
|
849
|
+
|
850
|
+
/**
|
851
|
+
* Add new proxy information to the router's routing table.
|
852
|
+
* @param proxies The proxies to add.
|
853
|
+
* @param context The Context map to send with the invocation.
|
854
|
+
* @param cb Asynchronous callback object.
|
855
|
+
* @param cookie User-defined data to associate with the invocation.
|
856
|
+
* @return The asynchronous result object for the invocation.
|
857
|
+
*/
|
858
|
+
::Ice::AsyncResultPtr begin_addProxies(const ::Ice::ObjectProxySeq& proxies, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
859
|
+
{
|
860
|
+
return _iceI_begin_addProxies(proxies, context, cb, cookie);
|
861
|
+
}
|
862
|
+
|
863
|
+
/**
|
864
|
+
* Add new proxy information to the router's routing table.
|
865
|
+
* @param proxies The proxies to add.
|
866
|
+
* @param cb Asynchronous callback object.
|
867
|
+
* @param cookie User-defined data to associate with the invocation.
|
868
|
+
* @return The asynchronous result object for the invocation.
|
869
|
+
*/
|
870
|
+
::Ice::AsyncResultPtr begin_addProxies(const ::Ice::ObjectProxySeq& proxies, const ::Ice::Callback_Router_addProxiesPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
871
|
+
{
|
872
|
+
return _iceI_begin_addProxies(proxies, ::Ice::noExplicitContext, cb, cookie);
|
873
|
+
}
|
874
|
+
|
875
|
+
/**
|
876
|
+
* Add new proxy information to the router's routing table.
|
877
|
+
* @param proxies The proxies to add.
|
878
|
+
* @param context The Context map to send with the invocation.
|
879
|
+
* @param cb Asynchronous callback object.
|
880
|
+
* @param cookie User-defined data to associate with the invocation.
|
881
|
+
* @return The asynchronous result object for the invocation.
|
882
|
+
*/
|
883
|
+
::Ice::AsyncResultPtr begin_addProxies(const ::Ice::ObjectProxySeq& proxies, const ::Ice::Context& context, const ::Ice::Callback_Router_addProxiesPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
884
|
+
{
|
885
|
+
return _iceI_begin_addProxies(proxies, context, cb, cookie);
|
886
|
+
}
|
887
|
+
|
888
|
+
/**
|
889
|
+
* Completes an invocation of begin_addProxies.
|
890
|
+
* @param result The asynchronous result object for the invocation.
|
891
|
+
* @return Proxies discarded by the router.
|
892
|
+
*/
|
893
|
+
ICE_MEMBER(ICE_API) ::Ice::ObjectProxySeq end_addProxies(const ::Ice::AsyncResultPtr& result);
|
894
|
+
|
895
|
+
private:
|
896
|
+
|
897
|
+
ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_addProxies(const ::Ice::ObjectProxySeq&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
898
|
+
|
899
|
+
public:
|
900
|
+
|
901
|
+
/**
|
902
|
+
* Obtains the Slice type ID corresponding to this interface.
|
903
|
+
* @return A fully-scoped type ID.
|
904
|
+
*/
|
905
|
+
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
906
|
+
|
907
|
+
protected:
|
908
|
+
/// \cond INTERNAL
|
909
|
+
|
910
|
+
ICE_MEMBER(ICE_API) virtual ::IceProxy::Ice::Object* _newInstance() const;
|
911
|
+
/// \endcond
|
912
|
+
};
|
913
|
+
|
914
|
+
class ICE_CLASS(ICE_API) RouterFinder : public virtual ::Ice::Proxy<RouterFinder, ::IceProxy::Ice::Object>
|
915
|
+
{
|
916
|
+
public:
|
917
|
+
|
918
|
+
/**
|
919
|
+
* Get the router proxy implemented by the process hosting this
|
920
|
+
* finder object. The proxy might point to several replicas.
|
921
|
+
* @param context The Context map to send with the invocation.
|
922
|
+
* @return The router proxy.
|
923
|
+
*/
|
924
|
+
ICE_MEMBER(ICE_API) ::Ice::RouterPrx getRouter(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
925
|
+
{
|
926
|
+
return end_getRouter(_iceI_begin_getRouter(context, ::IceInternal::dummyCallback, 0, true));
|
927
|
+
}
|
928
|
+
|
929
|
+
/**
|
930
|
+
* Get the router proxy implemented by the process hosting this
|
931
|
+
* finder object. The proxy might point to several replicas.
|
932
|
+
* @param context The Context map to send with the invocation.
|
933
|
+
* @return The asynchronous result object for the invocation.
|
934
|
+
*/
|
935
|
+
::Ice::AsyncResultPtr begin_getRouter(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
936
|
+
{
|
937
|
+
return _iceI_begin_getRouter(context, ::IceInternal::dummyCallback, 0);
|
938
|
+
}
|
939
|
+
|
940
|
+
/**
|
941
|
+
* Get the router proxy implemented by the process hosting this
|
942
|
+
* finder object. The proxy might point to several replicas.
|
943
|
+
* @param cb Asynchronous callback object.
|
944
|
+
* @param cookie User-defined data to associate with the invocation.
|
945
|
+
* @return The asynchronous result object for the invocation.
|
946
|
+
*/
|
947
|
+
::Ice::AsyncResultPtr begin_getRouter(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
948
|
+
{
|
949
|
+
return _iceI_begin_getRouter(::Ice::noExplicitContext, cb, cookie);
|
950
|
+
}
|
951
|
+
|
952
|
+
/**
|
953
|
+
* Get the router proxy implemented by the process hosting this
|
954
|
+
* finder object. The proxy might point to several replicas.
|
955
|
+
* @param context The Context map to send with the invocation.
|
956
|
+
* @param cb Asynchronous callback object.
|
957
|
+
* @param cookie User-defined data to associate with the invocation.
|
958
|
+
* @return The asynchronous result object for the invocation.
|
959
|
+
*/
|
960
|
+
::Ice::AsyncResultPtr begin_getRouter(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
961
|
+
{
|
962
|
+
return _iceI_begin_getRouter(context, cb, cookie);
|
963
|
+
}
|
964
|
+
|
965
|
+
/**
|
966
|
+
* Get the router proxy implemented by the process hosting this
|
967
|
+
* finder object. The proxy might point to several replicas.
|
968
|
+
* @param cb Asynchronous callback object.
|
969
|
+
* @param cookie User-defined data to associate with the invocation.
|
970
|
+
* @return The asynchronous result object for the invocation.
|
971
|
+
*/
|
972
|
+
::Ice::AsyncResultPtr begin_getRouter(const ::Ice::Callback_RouterFinder_getRouterPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
973
|
+
{
|
974
|
+
return _iceI_begin_getRouter(::Ice::noExplicitContext, cb, cookie);
|
975
|
+
}
|
976
|
+
|
977
|
+
/**
|
978
|
+
* Get the router proxy implemented by the process hosting this
|
979
|
+
* finder object. The proxy might point to several replicas.
|
980
|
+
* @param context The Context map to send with the invocation.
|
981
|
+
* @param cb Asynchronous callback object.
|
982
|
+
* @param cookie User-defined data to associate with the invocation.
|
983
|
+
* @return The asynchronous result object for the invocation.
|
984
|
+
*/
|
985
|
+
::Ice::AsyncResultPtr begin_getRouter(const ::Ice::Context& context, const ::Ice::Callback_RouterFinder_getRouterPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
986
|
+
{
|
987
|
+
return _iceI_begin_getRouter(context, cb, cookie);
|
988
|
+
}
|
989
|
+
|
990
|
+
/**
|
991
|
+
* Completes an invocation of begin_getRouter.
|
992
|
+
* @param result The asynchronous result object for the invocation.
|
993
|
+
* @return The router proxy.
|
994
|
+
*/
|
995
|
+
ICE_MEMBER(ICE_API) ::Ice::RouterPrx end_getRouter(const ::Ice::AsyncResultPtr& result);
|
996
|
+
|
997
|
+
private:
|
998
|
+
|
999
|
+
ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_getRouter(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
1000
|
+
|
1001
|
+
public:
|
1002
|
+
|
1003
|
+
/**
|
1004
|
+
* Obtains the Slice type ID corresponding to this interface.
|
1005
|
+
* @return A fully-scoped type ID.
|
1006
|
+
*/
|
1007
|
+
ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
|
1008
|
+
|
1009
|
+
protected:
|
1010
|
+
/// \cond INTERNAL
|
1011
|
+
|
1012
|
+
ICE_MEMBER(ICE_API) virtual ::IceProxy::Ice::Object* _newInstance() const;
|
1013
|
+
/// \endcond
|
1014
|
+
};
|
1015
|
+
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
namespace Ice
|
1021
|
+
{
|
1022
|
+
|
1023
|
+
/**
|
1024
|
+
* The Ice router interface. Routers can be set either globally with
|
1025
|
+
* {@link Communicator#setDefaultRouter}, or with <code>ice_router</code> on specific
|
1026
|
+
* proxies.
|
1027
|
+
* \headerfile Ice/Ice.h
|
1028
|
+
*/
|
1029
|
+
class ICE_API Router : public virtual Object
|
1030
|
+
{
|
1031
|
+
public:
|
1032
|
+
|
1033
|
+
typedef RouterPrx ProxyType;
|
1034
|
+
typedef RouterPtr PointerType;
|
1035
|
+
|
1036
|
+
virtual ~Router();
|
1037
|
+
|
1038
|
+
/**
|
1039
|
+
* Determines whether this object supports an interface with the given Slice type ID.
|
1040
|
+
* @param id The fully-scoped Slice type ID.
|
1041
|
+
* @param current The Current object for the invocation.
|
1042
|
+
* @return True if this object supports the interface, false, otherwise.
|
1043
|
+
*/
|
1044
|
+
virtual bool ice_isA(const ::std::string& id, const Current& current = emptyCurrent) const;
|
1045
|
+
|
1046
|
+
/**
|
1047
|
+
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
1048
|
+
* @param current The Current object for the invocation.
|
1049
|
+
* @return A list of fully-scoped type IDs.
|
1050
|
+
*/
|
1051
|
+
virtual ::std::vector< ::std::string> ice_ids(const Current& current = emptyCurrent) const;
|
1052
|
+
|
1053
|
+
/**
|
1054
|
+
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
1055
|
+
* @param current The Current object for the invocation.
|
1056
|
+
* @return A fully-scoped type ID.
|
1057
|
+
*/
|
1058
|
+
virtual const ::std::string& ice_id(const Current& current = emptyCurrent) const;
|
1059
|
+
|
1060
|
+
/**
|
1061
|
+
* Obtains the Slice type ID corresponding to this class.
|
1062
|
+
* @return A fully-scoped type ID.
|
1063
|
+
*/
|
1064
|
+
static const ::std::string& ice_staticId();
|
1065
|
+
|
1066
|
+
/**
|
1067
|
+
* Get the router's client proxy, i.e., the proxy to use for
|
1068
|
+
* forwarding requests from the client to the router.
|
1069
|
+
*
|
1070
|
+
* If a null proxy is returned, the client will forward requests
|
1071
|
+
* to the router's endpoints.
|
1072
|
+
* @param hasRoutingTable Indicates whether or not the router supports a routing
|
1073
|
+
* table. If it is supported, the Ice runtime will call addProxies to populate the
|
1074
|
+
* routing table. This out parameter is only supported starting with Ice 3.7.
|
1075
|
+
* The Ice runtime assumes the router has a routing table if the optional is not
|
1076
|
+
* set.
|
1077
|
+
* @param current The Current object for the invocation.
|
1078
|
+
* @return The router's client proxy.
|
1079
|
+
*/
|
1080
|
+
virtual ObjectPrx getClientProxy(IceUtil::Optional<bool>& hasRoutingTable, const Current& current = emptyCurrent) const = 0;
|
1081
|
+
/// \cond INTERNAL
|
1082
|
+
bool _iceD_getClientProxy(::IceInternal::Incoming&, const ::Ice::Current&) const;
|
1083
|
+
/// \endcond
|
1084
|
+
|
1085
|
+
/**
|
1086
|
+
* Get the router's server proxy, i.e., the proxy to use for
|
1087
|
+
* forwarding requests from the server to the router.
|
1088
|
+
* @param current The Current object for the invocation.
|
1089
|
+
* @return The router's server proxy.
|
1090
|
+
*/
|
1091
|
+
virtual ObjectPrx getServerProxy(const Current& current = emptyCurrent) const = 0;
|
1092
|
+
/// \cond INTERNAL
|
1093
|
+
bool _iceD_getServerProxy(::IceInternal::Incoming&, const ::Ice::Current&) const;
|
1094
|
+
/// \endcond
|
1095
|
+
|
1096
|
+
/**
|
1097
|
+
* Add new proxy information to the router's routing table.
|
1098
|
+
* @param proxies The proxies to add.
|
1099
|
+
* @param current The Current object for the invocation.
|
1100
|
+
* @return Proxies discarded by the router.
|
1101
|
+
*/
|
1102
|
+
virtual ObjectProxySeq addProxies(const ObjectProxySeq& proxies, const Current& current = emptyCurrent) = 0;
|
1103
|
+
/// \cond INTERNAL
|
1104
|
+
bool _iceD_addProxies(::IceInternal::Incoming&, const ::Ice::Current&);
|
1105
|
+
/// \endcond
|
1106
|
+
|
1107
|
+
/// \cond INTERNAL
|
1108
|
+
virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&);
|
1109
|
+
/// \endcond
|
1110
|
+
|
1111
|
+
protected:
|
1112
|
+
|
1113
|
+
/// \cond STREAM
|
1114
|
+
virtual void _iceWriteImpl(OutputStream*) const;
|
1115
|
+
virtual void _iceReadImpl(InputStream*);
|
1116
|
+
/// \endcond
|
1117
|
+
};
|
1118
|
+
|
1119
|
+
/// \cond INTERNAL
|
1120
|
+
inline bool operator==(const Router& lhs, const Router& rhs)
|
1121
|
+
{
|
1122
|
+
return static_cast<const Object&>(lhs) == static_cast<const Object&>(rhs);
|
1123
|
+
}
|
1124
|
+
|
1125
|
+
inline bool operator<(const Router& lhs, const Router& rhs)
|
1126
|
+
{
|
1127
|
+
return static_cast<const Object&>(lhs) < static_cast<const Object&>(rhs);
|
1128
|
+
}
|
1129
|
+
/// \endcond
|
1130
|
+
|
1131
|
+
/**
|
1132
|
+
* This inferface should be implemented by services implementing the
|
1133
|
+
* Ice::Router interface. It should be advertised through an Ice
|
1134
|
+
* object with the identity `Ice/RouterFinder'. This allows clients to
|
1135
|
+
* retrieve the router proxy with just the endpoint information of the
|
1136
|
+
* service.
|
1137
|
+
* \headerfile Ice/Ice.h
|
1138
|
+
*/
|
1139
|
+
class ICE_API RouterFinder : public virtual Object
|
1140
|
+
{
|
1141
|
+
public:
|
1142
|
+
|
1143
|
+
typedef RouterFinderPrx ProxyType;
|
1144
|
+
typedef RouterFinderPtr PointerType;
|
1145
|
+
|
1146
|
+
virtual ~RouterFinder();
|
1147
|
+
|
1148
|
+
/**
|
1149
|
+
* Determines whether this object supports an interface with the given Slice type ID.
|
1150
|
+
* @param id The fully-scoped Slice type ID.
|
1151
|
+
* @param current The Current object for the invocation.
|
1152
|
+
* @return True if this object supports the interface, false, otherwise.
|
1153
|
+
*/
|
1154
|
+
virtual bool ice_isA(const ::std::string& id, const Current& current = emptyCurrent) const;
|
1155
|
+
|
1156
|
+
/**
|
1157
|
+
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
1158
|
+
* @param current The Current object for the invocation.
|
1159
|
+
* @return A list of fully-scoped type IDs.
|
1160
|
+
*/
|
1161
|
+
virtual ::std::vector< ::std::string> ice_ids(const Current& current = emptyCurrent) const;
|
1162
|
+
|
1163
|
+
/**
|
1164
|
+
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
1165
|
+
* @param current The Current object for the invocation.
|
1166
|
+
* @return A fully-scoped type ID.
|
1167
|
+
*/
|
1168
|
+
virtual const ::std::string& ice_id(const Current& current = emptyCurrent) const;
|
1169
|
+
|
1170
|
+
/**
|
1171
|
+
* Obtains the Slice type ID corresponding to this class.
|
1172
|
+
* @return A fully-scoped type ID.
|
1173
|
+
*/
|
1174
|
+
static const ::std::string& ice_staticId();
|
1175
|
+
|
1176
|
+
/**
|
1177
|
+
* Get the router proxy implemented by the process hosting this
|
1178
|
+
* finder object. The proxy might point to several replicas.
|
1179
|
+
* @param current The Current object for the invocation.
|
1180
|
+
* @return The router proxy.
|
1181
|
+
*/
|
1182
|
+
virtual RouterPrx getRouter(const Current& current = emptyCurrent) = 0;
|
1183
|
+
/// \cond INTERNAL
|
1184
|
+
bool _iceD_getRouter(::IceInternal::Incoming&, const ::Ice::Current&);
|
1185
|
+
/// \endcond
|
1186
|
+
|
1187
|
+
/// \cond INTERNAL
|
1188
|
+
virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&);
|
1189
|
+
/// \endcond
|
1190
|
+
|
1191
|
+
protected:
|
1192
|
+
|
1193
|
+
/// \cond STREAM
|
1194
|
+
virtual void _iceWriteImpl(OutputStream*) const;
|
1195
|
+
virtual void _iceReadImpl(InputStream*);
|
1196
|
+
/// \endcond
|
1197
|
+
};
|
1198
|
+
|
1199
|
+
/// \cond INTERNAL
|
1200
|
+
inline bool operator==(const RouterFinder& lhs, const RouterFinder& rhs)
|
1201
|
+
{
|
1202
|
+
return static_cast<const Object&>(lhs) == static_cast<const Object&>(rhs);
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
inline bool operator<(const RouterFinder& lhs, const RouterFinder& rhs)
|
1206
|
+
{
|
1207
|
+
return static_cast<const Object&>(lhs) < static_cast<const Object&>(rhs);
|
1208
|
+
}
|
1209
|
+
/// \endcond
|
1210
|
+
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
/// \cond STREAM
|
1214
|
+
namespace Ice
|
1215
|
+
{
|
1216
|
+
|
1217
|
+
}
|
1218
|
+
/// \endcond
|
1219
|
+
|
1220
|
+
namespace Ice
|
1221
|
+
{
|
1222
|
+
|
1223
|
+
/**
|
1224
|
+
* Type-safe asynchronous callback wrapper class used for calls to
|
1225
|
+
* IceProxy::Ice::Router::begin_getClientProxy.
|
1226
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_getClientProxy.
|
1227
|
+
*/
|
1228
|
+
template<class T>
|
1229
|
+
class CallbackNC_Router_getClientProxy : public Callback_Router_getClientProxy_Base, public ::IceInternal::TwowayCallbackNC<T>
|
1230
|
+
{
|
1231
|
+
public:
|
1232
|
+
|
1233
|
+
typedef IceUtil::Handle<T> TPtr;
|
1234
|
+
|
1235
|
+
typedef void (T::*Exception)(const ::Ice::Exception&);
|
1236
|
+
typedef void (T::*Sent)(bool);
|
1237
|
+
typedef void (T::*Response)(const ObjectPrx&, const IceUtil::Optional<bool>&);
|
1238
|
+
|
1239
|
+
CallbackNC_Router_getClientProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
1240
|
+
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
1241
|
+
{
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
/// \cond INTERNAL
|
1245
|
+
virtual void completed(const AsyncResultPtr& result) const
|
1246
|
+
{
|
1247
|
+
RouterPrx proxy = RouterPrx::uncheckedCast(result->getProxy());
|
1248
|
+
IceUtil::Optional<bool> iceP_hasRoutingTable;
|
1249
|
+
ObjectPrx ret;
|
1250
|
+
try
|
1251
|
+
{
|
1252
|
+
ret = proxy->end_getClientProxy(iceP_hasRoutingTable, result);
|
1253
|
+
}
|
1254
|
+
catch(const ::Ice::Exception& ex)
|
1255
|
+
{
|
1256
|
+
::IceInternal::CallbackNC<T>::exception(result, ex);
|
1257
|
+
return;
|
1258
|
+
}
|
1259
|
+
if(_response)
|
1260
|
+
{
|
1261
|
+
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret, iceP_hasRoutingTable);
|
1262
|
+
}
|
1263
|
+
}
|
1264
|
+
/// \endcond
|
1265
|
+
|
1266
|
+
private:
|
1267
|
+
|
1268
|
+
Response _response;
|
1269
|
+
};
|
1270
|
+
|
1271
|
+
/**
|
1272
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1273
|
+
* @param instance The callback object.
|
1274
|
+
* @param cb The success method of the callback object.
|
1275
|
+
* @param excb The exception method of the callback object.
|
1276
|
+
* @param sentcb The sent method of the callback object.
|
1277
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_getClientProxy.
|
1278
|
+
*/
|
1279
|
+
template<class T> Callback_Router_getClientProxyPtr
|
1280
|
+
newCallback_Router_getClientProxy(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectPrx&, const IceUtil::Optional<bool>&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
1281
|
+
{
|
1282
|
+
return new CallbackNC_Router_getClientProxy<T>(instance, cb, excb, sentcb);
|
1283
|
+
}
|
1284
|
+
|
1285
|
+
/**
|
1286
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1287
|
+
* @param instance The callback object.
|
1288
|
+
* @param cb The success method of the callback object.
|
1289
|
+
* @param excb The exception method of the callback object.
|
1290
|
+
* @param sentcb The sent method of the callback object.
|
1291
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_getClientProxy.
|
1292
|
+
*/
|
1293
|
+
template<class T> Callback_Router_getClientProxyPtr
|
1294
|
+
newCallback_Router_getClientProxy(T* instance, void (T::*cb)(const ObjectPrx&, const IceUtil::Optional<bool>&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
1295
|
+
{
|
1296
|
+
return new CallbackNC_Router_getClientProxy<T>(instance, cb, excb, sentcb);
|
1297
|
+
}
|
1298
|
+
|
1299
|
+
/**
|
1300
|
+
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
1301
|
+
* IceProxy::Ice::Router::begin_getClientProxy.
|
1302
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_getClientProxy.
|
1303
|
+
*/
|
1304
|
+
template<class T, typename CT>
|
1305
|
+
class Callback_Router_getClientProxy : public Callback_Router_getClientProxy_Base, public ::IceInternal::TwowayCallback<T, CT>
|
1306
|
+
{
|
1307
|
+
public:
|
1308
|
+
|
1309
|
+
typedef IceUtil::Handle<T> TPtr;
|
1310
|
+
|
1311
|
+
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
1312
|
+
typedef void (T::*Sent)(bool , const CT&);
|
1313
|
+
typedef void (T::*Response)(const ObjectPrx&, const IceUtil::Optional<bool>&, const CT&);
|
1314
|
+
|
1315
|
+
Callback_Router_getClientProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
1316
|
+
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
1317
|
+
{
|
1318
|
+
}
|
1319
|
+
|
1320
|
+
/// \cond INTERNAL
|
1321
|
+
virtual void completed(const AsyncResultPtr& result) const
|
1322
|
+
{
|
1323
|
+
RouterPrx proxy = RouterPrx::uncheckedCast(result->getProxy());
|
1324
|
+
IceUtil::Optional<bool> iceP_hasRoutingTable;
|
1325
|
+
ObjectPrx ret;
|
1326
|
+
try
|
1327
|
+
{
|
1328
|
+
ret = proxy->end_getClientProxy(iceP_hasRoutingTable, result);
|
1329
|
+
}
|
1330
|
+
catch(const ::Ice::Exception& ex)
|
1331
|
+
{
|
1332
|
+
::IceInternal::Callback<T, CT>::exception(result, ex);
|
1333
|
+
return;
|
1334
|
+
}
|
1335
|
+
if(_response)
|
1336
|
+
{
|
1337
|
+
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, iceP_hasRoutingTable, CT::dynamicCast(result->getCookie()));
|
1338
|
+
}
|
1339
|
+
}
|
1340
|
+
/// \endcond
|
1341
|
+
|
1342
|
+
private:
|
1343
|
+
|
1344
|
+
Response _response;
|
1345
|
+
};
|
1346
|
+
|
1347
|
+
/**
|
1348
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1349
|
+
* Use this overload when your callback methods receive a cookie value.
|
1350
|
+
* @param instance The callback object.
|
1351
|
+
* @param cb The success method of the callback object.
|
1352
|
+
* @param excb The exception method of the callback object.
|
1353
|
+
* @param sentcb The sent method of the callback object.
|
1354
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_getClientProxy.
|
1355
|
+
*/
|
1356
|
+
template<class T, typename CT> Callback_Router_getClientProxyPtr
|
1357
|
+
newCallback_Router_getClientProxy(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectPrx&, const IceUtil::Optional<bool>&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
1358
|
+
{
|
1359
|
+
return new Callback_Router_getClientProxy<T, CT>(instance, cb, excb, sentcb);
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
/**
|
1363
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1364
|
+
* Use this overload when your callback methods receive a cookie value.
|
1365
|
+
* @param instance The callback object.
|
1366
|
+
* @param cb The success method of the callback object.
|
1367
|
+
* @param excb The exception method of the callback object.
|
1368
|
+
* @param sentcb The sent method of the callback object.
|
1369
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_getClientProxy.
|
1370
|
+
*/
|
1371
|
+
template<class T, typename CT> Callback_Router_getClientProxyPtr
|
1372
|
+
newCallback_Router_getClientProxy(T* instance, void (T::*cb)(const ObjectPrx&, const IceUtil::Optional<bool>&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
1373
|
+
{
|
1374
|
+
return new Callback_Router_getClientProxy<T, CT>(instance, cb, excb, sentcb);
|
1375
|
+
}
|
1376
|
+
|
1377
|
+
/**
|
1378
|
+
* Type-safe asynchronous callback wrapper class used for calls to
|
1379
|
+
* IceProxy::Ice::Router::begin_getServerProxy.
|
1380
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_getServerProxy.
|
1381
|
+
*/
|
1382
|
+
template<class T>
|
1383
|
+
class CallbackNC_Router_getServerProxy : public Callback_Router_getServerProxy_Base, public ::IceInternal::TwowayCallbackNC<T>
|
1384
|
+
{
|
1385
|
+
public:
|
1386
|
+
|
1387
|
+
typedef IceUtil::Handle<T> TPtr;
|
1388
|
+
|
1389
|
+
typedef void (T::*Exception)(const ::Ice::Exception&);
|
1390
|
+
typedef void (T::*Sent)(bool);
|
1391
|
+
typedef void (T::*Response)(const ObjectPrx&);
|
1392
|
+
|
1393
|
+
CallbackNC_Router_getServerProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
1394
|
+
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
1395
|
+
{
|
1396
|
+
}
|
1397
|
+
|
1398
|
+
/// \cond INTERNAL
|
1399
|
+
virtual void completed(const AsyncResultPtr& result) const
|
1400
|
+
{
|
1401
|
+
RouterPrx proxy = RouterPrx::uncheckedCast(result->getProxy());
|
1402
|
+
ObjectPrx ret;
|
1403
|
+
try
|
1404
|
+
{
|
1405
|
+
ret = proxy->end_getServerProxy(result);
|
1406
|
+
}
|
1407
|
+
catch(const ::Ice::Exception& ex)
|
1408
|
+
{
|
1409
|
+
::IceInternal::CallbackNC<T>::exception(result, ex);
|
1410
|
+
return;
|
1411
|
+
}
|
1412
|
+
if(_response)
|
1413
|
+
{
|
1414
|
+
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
1415
|
+
}
|
1416
|
+
}
|
1417
|
+
/// \endcond
|
1418
|
+
|
1419
|
+
private:
|
1420
|
+
|
1421
|
+
Response _response;
|
1422
|
+
};
|
1423
|
+
|
1424
|
+
/**
|
1425
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1426
|
+
* @param instance The callback object.
|
1427
|
+
* @param cb The success method of the callback object.
|
1428
|
+
* @param excb The exception method of the callback object.
|
1429
|
+
* @param sentcb The sent method of the callback object.
|
1430
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_getServerProxy.
|
1431
|
+
*/
|
1432
|
+
template<class T> Callback_Router_getServerProxyPtr
|
1433
|
+
newCallback_Router_getServerProxy(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
1434
|
+
{
|
1435
|
+
return new CallbackNC_Router_getServerProxy<T>(instance, cb, excb, sentcb);
|
1436
|
+
}
|
1437
|
+
|
1438
|
+
/**
|
1439
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1440
|
+
* @param instance The callback object.
|
1441
|
+
* @param cb The success method of the callback object.
|
1442
|
+
* @param excb The exception method of the callback object.
|
1443
|
+
* @param sentcb The sent method of the callback object.
|
1444
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_getServerProxy.
|
1445
|
+
*/
|
1446
|
+
template<class T> Callback_Router_getServerProxyPtr
|
1447
|
+
newCallback_Router_getServerProxy(T* instance, void (T::*cb)(const ObjectPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
1448
|
+
{
|
1449
|
+
return new CallbackNC_Router_getServerProxy<T>(instance, cb, excb, sentcb);
|
1450
|
+
}
|
1451
|
+
|
1452
|
+
/**
|
1453
|
+
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
1454
|
+
* IceProxy::Ice::Router::begin_getServerProxy.
|
1455
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_getServerProxy.
|
1456
|
+
*/
|
1457
|
+
template<class T, typename CT>
|
1458
|
+
class Callback_Router_getServerProxy : public Callback_Router_getServerProxy_Base, public ::IceInternal::TwowayCallback<T, CT>
|
1459
|
+
{
|
1460
|
+
public:
|
1461
|
+
|
1462
|
+
typedef IceUtil::Handle<T> TPtr;
|
1463
|
+
|
1464
|
+
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
1465
|
+
typedef void (T::*Sent)(bool , const CT&);
|
1466
|
+
typedef void (T::*Response)(const ObjectPrx&, const CT&);
|
1467
|
+
|
1468
|
+
Callback_Router_getServerProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
1469
|
+
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
1470
|
+
{
|
1471
|
+
}
|
1472
|
+
|
1473
|
+
/// \cond INTERNAL
|
1474
|
+
virtual void completed(const AsyncResultPtr& result) const
|
1475
|
+
{
|
1476
|
+
RouterPrx proxy = RouterPrx::uncheckedCast(result->getProxy());
|
1477
|
+
ObjectPrx ret;
|
1478
|
+
try
|
1479
|
+
{
|
1480
|
+
ret = proxy->end_getServerProxy(result);
|
1481
|
+
}
|
1482
|
+
catch(const ::Ice::Exception& ex)
|
1483
|
+
{
|
1484
|
+
::IceInternal::Callback<T, CT>::exception(result, ex);
|
1485
|
+
return;
|
1486
|
+
}
|
1487
|
+
if(_response)
|
1488
|
+
{
|
1489
|
+
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
|
1490
|
+
}
|
1491
|
+
}
|
1492
|
+
/// \endcond
|
1493
|
+
|
1494
|
+
private:
|
1495
|
+
|
1496
|
+
Response _response;
|
1497
|
+
};
|
1498
|
+
|
1499
|
+
/**
|
1500
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1501
|
+
* Use this overload when your callback methods receive a cookie value.
|
1502
|
+
* @param instance The callback object.
|
1503
|
+
* @param cb The success method of the callback object.
|
1504
|
+
* @param excb The exception method of the callback object.
|
1505
|
+
* @param sentcb The sent method of the callback object.
|
1506
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_getServerProxy.
|
1507
|
+
*/
|
1508
|
+
template<class T, typename CT> Callback_Router_getServerProxyPtr
|
1509
|
+
newCallback_Router_getServerProxy(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
1510
|
+
{
|
1511
|
+
return new Callback_Router_getServerProxy<T, CT>(instance, cb, excb, sentcb);
|
1512
|
+
}
|
1513
|
+
|
1514
|
+
/**
|
1515
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1516
|
+
* Use this overload when your callback methods receive a cookie value.
|
1517
|
+
* @param instance The callback object.
|
1518
|
+
* @param cb The success method of the callback object.
|
1519
|
+
* @param excb The exception method of the callback object.
|
1520
|
+
* @param sentcb The sent method of the callback object.
|
1521
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_getServerProxy.
|
1522
|
+
*/
|
1523
|
+
template<class T, typename CT> Callback_Router_getServerProxyPtr
|
1524
|
+
newCallback_Router_getServerProxy(T* instance, void (T::*cb)(const ObjectPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
1525
|
+
{
|
1526
|
+
return new Callback_Router_getServerProxy<T, CT>(instance, cb, excb, sentcb);
|
1527
|
+
}
|
1528
|
+
|
1529
|
+
/**
|
1530
|
+
* Type-safe asynchronous callback wrapper class used for calls to
|
1531
|
+
* IceProxy::Ice::Router::begin_addProxies.
|
1532
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_addProxies.
|
1533
|
+
*/
|
1534
|
+
template<class T>
|
1535
|
+
class CallbackNC_Router_addProxies : public Callback_Router_addProxies_Base, public ::IceInternal::TwowayCallbackNC<T>
|
1536
|
+
{
|
1537
|
+
public:
|
1538
|
+
|
1539
|
+
typedef IceUtil::Handle<T> TPtr;
|
1540
|
+
|
1541
|
+
typedef void (T::*Exception)(const ::Ice::Exception&);
|
1542
|
+
typedef void (T::*Sent)(bool);
|
1543
|
+
typedef void (T::*Response)(const ObjectProxySeq&);
|
1544
|
+
|
1545
|
+
CallbackNC_Router_addProxies(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
1546
|
+
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
1547
|
+
{
|
1548
|
+
}
|
1549
|
+
|
1550
|
+
/// \cond INTERNAL
|
1551
|
+
virtual void completed(const AsyncResultPtr& result) const
|
1552
|
+
{
|
1553
|
+
RouterPrx proxy = RouterPrx::uncheckedCast(result->getProxy());
|
1554
|
+
ObjectProxySeq ret;
|
1555
|
+
try
|
1556
|
+
{
|
1557
|
+
ret = proxy->end_addProxies(result);
|
1558
|
+
}
|
1559
|
+
catch(const ::Ice::Exception& ex)
|
1560
|
+
{
|
1561
|
+
::IceInternal::CallbackNC<T>::exception(result, ex);
|
1562
|
+
return;
|
1563
|
+
}
|
1564
|
+
if(_response)
|
1565
|
+
{
|
1566
|
+
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
1567
|
+
}
|
1568
|
+
}
|
1569
|
+
/// \endcond
|
1570
|
+
|
1571
|
+
private:
|
1572
|
+
|
1573
|
+
Response _response;
|
1574
|
+
};
|
1575
|
+
|
1576
|
+
/**
|
1577
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1578
|
+
* @param instance The callback object.
|
1579
|
+
* @param cb The success method of the callback object.
|
1580
|
+
* @param excb The exception method of the callback object.
|
1581
|
+
* @param sentcb The sent method of the callback object.
|
1582
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_addProxies.
|
1583
|
+
*/
|
1584
|
+
template<class T> Callback_Router_addProxiesPtr
|
1585
|
+
newCallback_Router_addProxies(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectProxySeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
1586
|
+
{
|
1587
|
+
return new CallbackNC_Router_addProxies<T>(instance, cb, excb, sentcb);
|
1588
|
+
}
|
1589
|
+
|
1590
|
+
/**
|
1591
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1592
|
+
* @param instance The callback object.
|
1593
|
+
* @param cb The success method of the callback object.
|
1594
|
+
* @param excb The exception method of the callback object.
|
1595
|
+
* @param sentcb The sent method of the callback object.
|
1596
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_addProxies.
|
1597
|
+
*/
|
1598
|
+
template<class T> Callback_Router_addProxiesPtr
|
1599
|
+
newCallback_Router_addProxies(T* instance, void (T::*cb)(const ObjectProxySeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
1600
|
+
{
|
1601
|
+
return new CallbackNC_Router_addProxies<T>(instance, cb, excb, sentcb);
|
1602
|
+
}
|
1603
|
+
|
1604
|
+
/**
|
1605
|
+
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
1606
|
+
* IceProxy::Ice::Router::begin_addProxies.
|
1607
|
+
* Create a wrapper instance by calling ::Ice::newCallback_Router_addProxies.
|
1608
|
+
*/
|
1609
|
+
template<class T, typename CT>
|
1610
|
+
class Callback_Router_addProxies : public Callback_Router_addProxies_Base, public ::IceInternal::TwowayCallback<T, CT>
|
1611
|
+
{
|
1612
|
+
public:
|
1613
|
+
|
1614
|
+
typedef IceUtil::Handle<T> TPtr;
|
1615
|
+
|
1616
|
+
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
1617
|
+
typedef void (T::*Sent)(bool , const CT&);
|
1618
|
+
typedef void (T::*Response)(const ObjectProxySeq&, const CT&);
|
1619
|
+
|
1620
|
+
Callback_Router_addProxies(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
1621
|
+
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
1622
|
+
{
|
1623
|
+
}
|
1624
|
+
|
1625
|
+
/// \cond INTERNAL
|
1626
|
+
virtual void completed(const AsyncResultPtr& result) const
|
1627
|
+
{
|
1628
|
+
RouterPrx proxy = RouterPrx::uncheckedCast(result->getProxy());
|
1629
|
+
ObjectProxySeq ret;
|
1630
|
+
try
|
1631
|
+
{
|
1632
|
+
ret = proxy->end_addProxies(result);
|
1633
|
+
}
|
1634
|
+
catch(const ::Ice::Exception& ex)
|
1635
|
+
{
|
1636
|
+
::IceInternal::Callback<T, CT>::exception(result, ex);
|
1637
|
+
return;
|
1638
|
+
}
|
1639
|
+
if(_response)
|
1640
|
+
{
|
1641
|
+
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
|
1642
|
+
}
|
1643
|
+
}
|
1644
|
+
/// \endcond
|
1645
|
+
|
1646
|
+
private:
|
1647
|
+
|
1648
|
+
Response _response;
|
1649
|
+
};
|
1650
|
+
|
1651
|
+
/**
|
1652
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1653
|
+
* Use this overload when your callback methods receive a cookie value.
|
1654
|
+
* @param instance The callback object.
|
1655
|
+
* @param cb The success method of the callback object.
|
1656
|
+
* @param excb The exception method of the callback object.
|
1657
|
+
* @param sentcb The sent method of the callback object.
|
1658
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_addProxies.
|
1659
|
+
*/
|
1660
|
+
template<class T, typename CT> Callback_Router_addProxiesPtr
|
1661
|
+
newCallback_Router_addProxies(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectProxySeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
1662
|
+
{
|
1663
|
+
return new Callback_Router_addProxies<T, CT>(instance, cb, excb, sentcb);
|
1664
|
+
}
|
1665
|
+
|
1666
|
+
/**
|
1667
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1668
|
+
* Use this overload when your callback methods receive a cookie value.
|
1669
|
+
* @param instance The callback object.
|
1670
|
+
* @param cb The success method of the callback object.
|
1671
|
+
* @param excb The exception method of the callback object.
|
1672
|
+
* @param sentcb The sent method of the callback object.
|
1673
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::Router::begin_addProxies.
|
1674
|
+
*/
|
1675
|
+
template<class T, typename CT> Callback_Router_addProxiesPtr
|
1676
|
+
newCallback_Router_addProxies(T* instance, void (T::*cb)(const ObjectProxySeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
1677
|
+
{
|
1678
|
+
return new Callback_Router_addProxies<T, CT>(instance, cb, excb, sentcb);
|
1679
|
+
}
|
1680
|
+
|
1681
|
+
/**
|
1682
|
+
* Type-safe asynchronous callback wrapper class used for calls to
|
1683
|
+
* IceProxy::Ice::RouterFinder::begin_getRouter.
|
1684
|
+
* Create a wrapper instance by calling ::Ice::newCallback_RouterFinder_getRouter.
|
1685
|
+
*/
|
1686
|
+
template<class T>
|
1687
|
+
class CallbackNC_RouterFinder_getRouter : public Callback_RouterFinder_getRouter_Base, public ::IceInternal::TwowayCallbackNC<T>
|
1688
|
+
{
|
1689
|
+
public:
|
1690
|
+
|
1691
|
+
typedef IceUtil::Handle<T> TPtr;
|
1692
|
+
|
1693
|
+
typedef void (T::*Exception)(const ::Ice::Exception&);
|
1694
|
+
typedef void (T::*Sent)(bool);
|
1695
|
+
typedef void (T::*Response)(const RouterPrx&);
|
1696
|
+
|
1697
|
+
CallbackNC_RouterFinder_getRouter(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
1698
|
+
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
1699
|
+
{
|
1700
|
+
}
|
1701
|
+
|
1702
|
+
/// \cond INTERNAL
|
1703
|
+
virtual void completed(const AsyncResultPtr& result) const
|
1704
|
+
{
|
1705
|
+
RouterFinderPrx proxy = RouterFinderPrx::uncheckedCast(result->getProxy());
|
1706
|
+
RouterPrx ret;
|
1707
|
+
try
|
1708
|
+
{
|
1709
|
+
ret = proxy->end_getRouter(result);
|
1710
|
+
}
|
1711
|
+
catch(const ::Ice::Exception& ex)
|
1712
|
+
{
|
1713
|
+
::IceInternal::CallbackNC<T>::exception(result, ex);
|
1714
|
+
return;
|
1715
|
+
}
|
1716
|
+
if(_response)
|
1717
|
+
{
|
1718
|
+
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
1719
|
+
}
|
1720
|
+
}
|
1721
|
+
/// \endcond
|
1722
|
+
|
1723
|
+
private:
|
1724
|
+
|
1725
|
+
Response _response;
|
1726
|
+
};
|
1727
|
+
|
1728
|
+
/**
|
1729
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1730
|
+
* @param instance The callback object.
|
1731
|
+
* @param cb The success method of the callback object.
|
1732
|
+
* @param excb The exception method of the callback object.
|
1733
|
+
* @param sentcb The sent method of the callback object.
|
1734
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RouterFinder::begin_getRouter.
|
1735
|
+
*/
|
1736
|
+
template<class T> Callback_RouterFinder_getRouterPtr
|
1737
|
+
newCallback_RouterFinder_getRouter(const IceUtil::Handle<T>& instance, void (T::*cb)(const RouterPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
1738
|
+
{
|
1739
|
+
return new CallbackNC_RouterFinder_getRouter<T>(instance, cb, excb, sentcb);
|
1740
|
+
}
|
1741
|
+
|
1742
|
+
/**
|
1743
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1744
|
+
* @param instance The callback object.
|
1745
|
+
* @param cb The success method of the callback object.
|
1746
|
+
* @param excb The exception method of the callback object.
|
1747
|
+
* @param sentcb The sent method of the callback object.
|
1748
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RouterFinder::begin_getRouter.
|
1749
|
+
*/
|
1750
|
+
template<class T> Callback_RouterFinder_getRouterPtr
|
1751
|
+
newCallback_RouterFinder_getRouter(T* instance, void (T::*cb)(const RouterPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
1752
|
+
{
|
1753
|
+
return new CallbackNC_RouterFinder_getRouter<T>(instance, cb, excb, sentcb);
|
1754
|
+
}
|
1755
|
+
|
1756
|
+
/**
|
1757
|
+
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
1758
|
+
* IceProxy::Ice::RouterFinder::begin_getRouter.
|
1759
|
+
* Create a wrapper instance by calling ::Ice::newCallback_RouterFinder_getRouter.
|
1760
|
+
*/
|
1761
|
+
template<class T, typename CT>
|
1762
|
+
class Callback_RouterFinder_getRouter : public Callback_RouterFinder_getRouter_Base, public ::IceInternal::TwowayCallback<T, CT>
|
1763
|
+
{
|
1764
|
+
public:
|
1765
|
+
|
1766
|
+
typedef IceUtil::Handle<T> TPtr;
|
1767
|
+
|
1768
|
+
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
1769
|
+
typedef void (T::*Sent)(bool , const CT&);
|
1770
|
+
typedef void (T::*Response)(const RouterPrx&, const CT&);
|
1771
|
+
|
1772
|
+
Callback_RouterFinder_getRouter(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
1773
|
+
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
1774
|
+
{
|
1775
|
+
}
|
1776
|
+
|
1777
|
+
/// \cond INTERNAL
|
1778
|
+
virtual void completed(const AsyncResultPtr& result) const
|
1779
|
+
{
|
1780
|
+
RouterFinderPrx proxy = RouterFinderPrx::uncheckedCast(result->getProxy());
|
1781
|
+
RouterPrx ret;
|
1782
|
+
try
|
1783
|
+
{
|
1784
|
+
ret = proxy->end_getRouter(result);
|
1785
|
+
}
|
1786
|
+
catch(const ::Ice::Exception& ex)
|
1787
|
+
{
|
1788
|
+
::IceInternal::Callback<T, CT>::exception(result, ex);
|
1789
|
+
return;
|
1790
|
+
}
|
1791
|
+
if(_response)
|
1792
|
+
{
|
1793
|
+
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
|
1794
|
+
}
|
1795
|
+
}
|
1796
|
+
/// \endcond
|
1797
|
+
|
1798
|
+
private:
|
1799
|
+
|
1800
|
+
Response _response;
|
1801
|
+
};
|
1802
|
+
|
1803
|
+
/**
|
1804
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1805
|
+
* Use this overload when your callback methods receive a cookie value.
|
1806
|
+
* @param instance The callback object.
|
1807
|
+
* @param cb The success method of the callback object.
|
1808
|
+
* @param excb The exception method of the callback object.
|
1809
|
+
* @param sentcb The sent method of the callback object.
|
1810
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RouterFinder::begin_getRouter.
|
1811
|
+
*/
|
1812
|
+
template<class T, typename CT> Callback_RouterFinder_getRouterPtr
|
1813
|
+
newCallback_RouterFinder_getRouter(const IceUtil::Handle<T>& instance, void (T::*cb)(const RouterPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
1814
|
+
{
|
1815
|
+
return new Callback_RouterFinder_getRouter<T, CT>(instance, cb, excb, sentcb);
|
1816
|
+
}
|
1817
|
+
|
1818
|
+
/**
|
1819
|
+
* Creates a callback wrapper instance that delegates to your object.
|
1820
|
+
* Use this overload when your callback methods receive a cookie value.
|
1821
|
+
* @param instance The callback object.
|
1822
|
+
* @param cb The success method of the callback object.
|
1823
|
+
* @param excb The exception method of the callback object.
|
1824
|
+
* @param sentcb The sent method of the callback object.
|
1825
|
+
* @return An object that can be passed to an asynchronous invocation of IceProxy::Ice::RouterFinder::begin_getRouter.
|
1826
|
+
*/
|
1827
|
+
template<class T, typename CT> Callback_RouterFinder_getRouterPtr
|
1828
|
+
newCallback_RouterFinder_getRouter(T* instance, void (T::*cb)(const RouterPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
1829
|
+
{
|
1830
|
+
return new Callback_RouterFinder_getRouter<T, CT>(instance, cb, excb, sentcb);
|
1831
|
+
}
|
1832
|
+
|
1833
|
+
}
|
1834
|
+
|
1835
|
+
#endif
|
1836
|
+
|
1837
|
+
#include <IceUtil/PopDisableWarnings.h>
|
1838
|
+
#endif
|