zeroc-ice-x86-mingw 3.6b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ICE_LICENSE +54 -0
- data/LICENSE +339 -0
- data/bin/slice2rb +17 -0
- data/ice-x86-mingw.gemspec +41 -0
- data/lib/Glacier2.rb +12 -0
- data/lib/Glacier2/Metrics.rb +99 -0
- data/lib/Glacier2/PermissionsVerifier.rb +168 -0
- data/lib/Glacier2/PermissionsVerifierF.rb +34 -0
- data/lib/Glacier2/Router.rb +141 -0
- data/lib/Glacier2/RouterF.rb +29 -0
- data/lib/Glacier2/SSLInfo.rb +79 -0
- data/lib/Glacier2/Session.rb +470 -0
- data/lib/Ice.rb +659 -0
- data/lib/Ice/BuiltinSequences.rb +64 -0
- data/lib/Ice/Communicator.rb +93 -0
- data/lib/Ice/CommunicatorF.rb +28 -0
- data/lib/Ice/Connection.rb +414 -0
- data/lib/Ice/ConnectionF.rb +36 -0
- data/lib/Ice/Current.rb +152 -0
- data/lib/Ice/Endpoint.rb +265 -0
- data/lib/Ice/EndpointF.rb +52 -0
- data/lib/Ice/EndpointTypes.rb +77 -0
- data/lib/Ice/FacetMap.rb +28 -0
- data/lib/Ice/Identity.rb +70 -0
- data/lib/Ice/ImplicitContext.rb +59 -0
- data/lib/Ice/ImplicitContextF.rb +28 -0
- data/lib/Ice/Instrumentation.rb +425 -0
- data/lib/Ice/InstrumentationF.rb +35 -0
- data/lib/Ice/LocalException.rb +1081 -0
- data/lib/Ice/Locator.rb +314 -0
- data/lib/Ice/LocatorF.rb +34 -0
- data/lib/Ice/Logger.rb +57 -0
- data/lib/Ice/LoggerF.rb +28 -0
- data/lib/Ice/Metrics.rb +696 -0
- data/lib/Ice/ObjectAdapterF.rb +28 -0
- data/lib/Ice/ObjectFactory.rb +53 -0
- data/lib/Ice/ObjectFactoryF.rb +28 -0
- data/lib/Ice/Plugin.rb +87 -0
- data/lib/Ice/PluginF.rb +32 -0
- data/lib/Ice/Process.rb +93 -0
- data/lib/Ice/ProcessF.rb +29 -0
- data/lib/Ice/Properties.rb +65 -0
- data/lib/Ice/PropertiesAdmin.rb +104 -0
- data/lib/Ice/PropertiesF.rb +33 -0
- data/lib/Ice/Router.rb +163 -0
- data/lib/Ice/RouterF.rb +29 -0
- data/lib/Ice/SliceChecksumDict.rb +28 -0
- data/lib/Ice/Version.rb +100 -0
- data/lib/IceBox.rb +10 -0
- data/lib/IceBox/IceBox.rb +272 -0
- data/lib/IceGrid.rb +17 -0
- data/lib/IceGrid/Admin.rb +1076 -0
- data/lib/IceGrid/Descriptor.rb +1505 -0
- data/lib/IceGrid/Exception.rb +401 -0
- data/lib/IceGrid/FileParser.rb +105 -0
- data/lib/IceGrid/Locator.rb +105 -0
- data/lib/IceGrid/Observer.rb +571 -0
- data/lib/IceGrid/Query.rb +168 -0
- data/lib/IceGrid/Registry.rb +120 -0
- data/lib/IceGrid/Session.rb +114 -0
- data/lib/IceGrid/UserAccountMapper.rb +101 -0
- data/lib/IcePatch2.rb +10 -0
- data/lib/IcePatch2/FileInfo.rb +75 -0
- data/lib/IcePatch2/FileServer.rb +141 -0
- data/lib/IceRuby.so +0 -0
- data/lib/IceStorm.rb +11 -0
- data/lib/IceStorm/IceStorm.rb +463 -0
- data/lib/IceStorm/Metrics.rb +155 -0
- data/slice/Freeze/BackgroundSaveEvictor.ice +111 -0
- data/slice/Freeze/CatalogData.ice +49 -0
- data/slice/Freeze/Connection.ice +111 -0
- data/slice/Freeze/ConnectionF.ice +20 -0
- data/slice/Freeze/DB.ice +37 -0
- data/slice/Freeze/Evictor.ice +339 -0
- data/slice/Freeze/EvictorF.ice +22 -0
- data/slice/Freeze/EvictorStorage.ice +72 -0
- data/slice/Freeze/Exception.ice +100 -0
- data/slice/Freeze/Transaction.ice +57 -0
- data/slice/Freeze/TransactionalEvictor.ice +50 -0
- data/slice/Glacier2/Metrics.ice +77 -0
- data/slice/Glacier2/PermissionsVerifier.ice +105 -0
- data/slice/Glacier2/PermissionsVerifierF.ice +21 -0
- data/slice/Glacier2/Router.ice +178 -0
- data/slice/Glacier2/RouterF.ice +20 -0
- data/slice/Glacier2/SSLInfo.ice +50 -0
- data/slice/Glacier2/Session.ice +273 -0
- data/slice/Ice/BuiltinSequences.ice +48 -0
- data/slice/Ice/Communicator.ice +567 -0
- data/slice/Ice/CommunicatorF.ice +20 -0
- data/slice/Ice/Connection.ice +323 -0
- data/slice/Ice/ConnectionF.ice +22 -0
- data/slice/Ice/Current.ice +160 -0
- data/slice/Ice/Endpoint.ice +227 -0
- data/slice/Ice/EndpointF.ice +32 -0
- data/slice/Ice/EndpointTypes.ice +38 -0
- data/slice/Ice/FacetMap.ice +25 -0
- data/slice/Ice/Identity.ice +59 -0
- data/slice/Ice/ImplicitContext.ice +109 -0
- data/slice/Ice/ImplicitContextF.ice +20 -0
- data/slice/Ice/Instrumentation.ice +499 -0
- data/slice/Ice/InstrumentationF.ice +26 -0
- data/slice/Ice/LocalException.ice +1015 -0
- data/slice/Ice/Locator.ice +227 -0
- data/slice/Ice/LocatorF.ice +21 -0
- data/slice/Ice/Logger.ice +86 -0
- data/slice/Ice/LoggerF.ice +20 -0
- data/slice/Ice/Metrics.ice +422 -0
- data/slice/Ice/ObjectAdapter.ice +673 -0
- data/slice/Ice/ObjectAdapterF.ice +20 -0
- data/slice/Ice/ObjectFactory.ice +60 -0
- data/slice/Ice/ObjectFactoryF.ice +20 -0
- data/slice/Ice/Plugin.ice +117 -0
- data/slice/Ice/PluginF.ice +21 -0
- data/slice/Ice/Process.ice +54 -0
- data/slice/Ice/ProcessF.ice +20 -0
- data/slice/Ice/Properties.ice +228 -0
- data/slice/Ice/PropertiesAdmin.ice +75 -0
- data/slice/Ice/PropertiesF.ice +21 -0
- data/slice/Ice/RemoteLogger.ice +232 -0
- data/slice/Ice/Router.ice +83 -0
- data/slice/Ice/RouterF.ice +20 -0
- data/slice/Ice/ServantLocator.ice +117 -0
- data/slice/Ice/ServantLocatorF.ice +20 -0
- data/slice/Ice/SliceChecksumDict.ice +25 -0
- data/slice/Ice/Version.ice +39 -0
- data/slice/IceBox/IceBox.ice +194 -0
- data/slice/IceDiscovery/IceDiscovery.ice +32 -0
- data/slice/IceGrid/Admin.ice +1578 -0
- data/slice/IceGrid/Descriptor.ice +1079 -0
- data/slice/IceGrid/Discovery.ice +73 -0
- data/slice/IceGrid/Exception.ice +383 -0
- data/slice/IceGrid/FileParser.ice +61 -0
- data/slice/IceGrid/Locator.ice +56 -0
- data/slice/IceGrid/Observer.ice +394 -0
- data/slice/IceGrid/PluginFacade.ice +316 -0
- data/slice/IceGrid/Query.ice +130 -0
- data/slice/IceGrid/Registry.ice +138 -0
- data/slice/IceGrid/Session.ice +124 -0
- data/slice/IceGrid/UserAccountMapper.ice +58 -0
- data/slice/IcePatch2/FileInfo.ice +49 -0
- data/slice/IcePatch2/FileServer.ice +129 -0
- data/slice/IceSSL/ConnectionInfo.ice +34 -0
- data/slice/IceSSL/EndpointInfo.ice +41 -0
- data/slice/IceStorm/IceStorm.ice +405 -0
- data/slice/IceStorm/Metrics.ice +71 -0
- metadata +207 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
# **********************************************************************
|
2
|
+
#
|
3
|
+
# Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
#
|
5
|
+
# This copy of Ice is licensed to you under the terms described in the
|
6
|
+
# ICE_LICENSE file included in this distribution.
|
7
|
+
#
|
8
|
+
# **********************************************************************
|
9
|
+
#
|
10
|
+
# Ice version 3.6b
|
11
|
+
#
|
12
|
+
# <auto-generated>
|
13
|
+
#
|
14
|
+
# Generated from file `BuiltinSequences.ice'
|
15
|
+
#
|
16
|
+
# Warning: do not edit this file.
|
17
|
+
#
|
18
|
+
# </auto-generated>
|
19
|
+
#
|
20
|
+
|
21
|
+
require 'Ice'
|
22
|
+
|
23
|
+
module Ice
|
24
|
+
|
25
|
+
if not defined?(::Ice::T_BoolSeq)
|
26
|
+
T_BoolSeq = ::Ice::__defineSequence('::Ice::BoolSeq', ::Ice::T_bool)
|
27
|
+
end
|
28
|
+
|
29
|
+
if not defined?(::Ice::T_ByteSeq)
|
30
|
+
T_ByteSeq = ::Ice::__defineSequence('::Ice::ByteSeq', ::Ice::T_byte)
|
31
|
+
end
|
32
|
+
|
33
|
+
if not defined?(::Ice::T_ShortSeq)
|
34
|
+
T_ShortSeq = ::Ice::__defineSequence('::Ice::ShortSeq', ::Ice::T_short)
|
35
|
+
end
|
36
|
+
|
37
|
+
if not defined?(::Ice::T_IntSeq)
|
38
|
+
T_IntSeq = ::Ice::__defineSequence('::Ice::IntSeq', ::Ice::T_int)
|
39
|
+
end
|
40
|
+
|
41
|
+
if not defined?(::Ice::T_LongSeq)
|
42
|
+
T_LongSeq = ::Ice::__defineSequence('::Ice::LongSeq', ::Ice::T_long)
|
43
|
+
end
|
44
|
+
|
45
|
+
if not defined?(::Ice::T_FloatSeq)
|
46
|
+
T_FloatSeq = ::Ice::__defineSequence('::Ice::FloatSeq', ::Ice::T_float)
|
47
|
+
end
|
48
|
+
|
49
|
+
if not defined?(::Ice::T_DoubleSeq)
|
50
|
+
T_DoubleSeq = ::Ice::__defineSequence('::Ice::DoubleSeq', ::Ice::T_double)
|
51
|
+
end
|
52
|
+
|
53
|
+
if not defined?(::Ice::T_StringSeq)
|
54
|
+
T_StringSeq = ::Ice::__defineSequence('::Ice::StringSeq', ::Ice::T_string)
|
55
|
+
end
|
56
|
+
|
57
|
+
if not defined?(::Ice::T_ObjectSeq)
|
58
|
+
T_ObjectSeq = ::Ice::__defineSequence('::Ice::ObjectSeq', ::Ice::T_Object)
|
59
|
+
end
|
60
|
+
|
61
|
+
if not defined?(::Ice::T_ObjectProxySeq)
|
62
|
+
T_ObjectProxySeq = ::Ice::__defineSequence('::Ice::ObjectProxySeq', ::Ice::T_ObjectPrx)
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# **********************************************************************
|
2
|
+
#
|
3
|
+
# Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
#
|
5
|
+
# This copy of Ice is licensed to you under the terms described in the
|
6
|
+
# ICE_LICENSE file included in this distribution.
|
7
|
+
#
|
8
|
+
# **********************************************************************
|
9
|
+
#
|
10
|
+
# Ice version 3.6b
|
11
|
+
#
|
12
|
+
# <auto-generated>
|
13
|
+
#
|
14
|
+
# Generated from file `Communicator.ice'
|
15
|
+
#
|
16
|
+
# Warning: do not edit this file.
|
17
|
+
#
|
18
|
+
# </auto-generated>
|
19
|
+
#
|
20
|
+
|
21
|
+
require 'Ice'
|
22
|
+
require 'Ice/LoggerF.rb'
|
23
|
+
require 'Ice/InstrumentationF.rb'
|
24
|
+
require 'Ice/ObjectAdapterF.rb'
|
25
|
+
require 'Ice/ObjectFactoryF.rb'
|
26
|
+
require 'Ice/RouterF.rb'
|
27
|
+
require 'Ice/LocatorF.rb'
|
28
|
+
require 'Ice/PluginF.rb'
|
29
|
+
require 'Ice/ImplicitContextF.rb'
|
30
|
+
require 'Ice/Current.rb'
|
31
|
+
require 'Ice/Properties.rb'
|
32
|
+
require 'Ice/FacetMap.rb'
|
33
|
+
|
34
|
+
module Ice
|
35
|
+
|
36
|
+
if not defined?(::Ice::Communicator_mixin)
|
37
|
+
module Communicator_mixin
|
38
|
+
|
39
|
+
#
|
40
|
+
# Operation signatures.
|
41
|
+
#
|
42
|
+
# def destroy()
|
43
|
+
# def shutdown()
|
44
|
+
# def waitForShutdown()
|
45
|
+
# def isShutdown()
|
46
|
+
# def stringToProxy(str)
|
47
|
+
# def proxyToString(obj)
|
48
|
+
# def propertyToProxy(property)
|
49
|
+
# def proxyToProperty(proxy, property)
|
50
|
+
# def stringToIdentity(str)
|
51
|
+
# def identityToString(ident)
|
52
|
+
# def createObjectAdapter(name)
|
53
|
+
# def createObjectAdapterWithEndpoints(name, endpoints)
|
54
|
+
# def createObjectAdapterWithRouter(name, rtr)
|
55
|
+
# def addObjectFactory(factory, id)
|
56
|
+
# def findObjectFactory(id)
|
57
|
+
# def getImplicitContext()
|
58
|
+
# def getProperties()
|
59
|
+
# def getLogger()
|
60
|
+
# def getObserver()
|
61
|
+
# def getDefaultRouter()
|
62
|
+
# def setDefaultRouter(rtr)
|
63
|
+
# def getDefaultLocator()
|
64
|
+
# def setDefaultLocator(loc)
|
65
|
+
# def getPluginManager()
|
66
|
+
# def flushBatchRequests()
|
67
|
+
# def createAdmin(adminAdapter, adminId)
|
68
|
+
# def getAdmin()
|
69
|
+
# def addAdminFacet(servant, facet)
|
70
|
+
# def removeAdminFacet(facet)
|
71
|
+
# def findAdminFacet(facet)
|
72
|
+
# def findAllAdminFacets()
|
73
|
+
|
74
|
+
def inspect
|
75
|
+
::Ice::__stringify(self, T_Communicator)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
class Communicator
|
79
|
+
include Communicator_mixin
|
80
|
+
|
81
|
+
def Communicator.ice_staticId()
|
82
|
+
'::Ice::Communicator'
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
if not defined?(::Ice::T_Communicator)
|
87
|
+
T_Communicator = ::Ice::__declareLocalClass('::Ice::Communicator')
|
88
|
+
end
|
89
|
+
|
90
|
+
T_Communicator.defineClass(Communicator, -1, true, false, nil, [], [])
|
91
|
+
Communicator_mixin::ICE_TYPE = T_Communicator
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# **********************************************************************
|
2
|
+
#
|
3
|
+
# Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
#
|
5
|
+
# This copy of Ice is licensed to you under the terms described in the
|
6
|
+
# ICE_LICENSE file included in this distribution.
|
7
|
+
#
|
8
|
+
# **********************************************************************
|
9
|
+
#
|
10
|
+
# Ice version 3.6b
|
11
|
+
#
|
12
|
+
# <auto-generated>
|
13
|
+
#
|
14
|
+
# Generated from file `CommunicatorF.ice'
|
15
|
+
#
|
16
|
+
# Warning: do not edit this file.
|
17
|
+
#
|
18
|
+
# </auto-generated>
|
19
|
+
#
|
20
|
+
|
21
|
+
require 'Ice'
|
22
|
+
|
23
|
+
module Ice
|
24
|
+
|
25
|
+
if not defined?(::Ice::T_Communicator)
|
26
|
+
T_Communicator = ::Ice::__declareLocalClass('::Ice::Communicator')
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,414 @@
|
|
1
|
+
# **********************************************************************
|
2
|
+
#
|
3
|
+
# Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
#
|
5
|
+
# This copy of Ice is licensed to you under the terms described in the
|
6
|
+
# ICE_LICENSE file included in this distribution.
|
7
|
+
#
|
8
|
+
# **********************************************************************
|
9
|
+
#
|
10
|
+
# Ice version 3.6b
|
11
|
+
#
|
12
|
+
# <auto-generated>
|
13
|
+
#
|
14
|
+
# Generated from file `Connection.ice'
|
15
|
+
#
|
16
|
+
# Warning: do not edit this file.
|
17
|
+
#
|
18
|
+
# </auto-generated>
|
19
|
+
#
|
20
|
+
|
21
|
+
require 'Ice'
|
22
|
+
require 'Ice/ObjectAdapterF.rb'
|
23
|
+
require 'Ice/Identity.rb'
|
24
|
+
require 'Ice/Endpoint.rb'
|
25
|
+
|
26
|
+
module Ice
|
27
|
+
|
28
|
+
if not defined?(::Ice::ConnectionInfo_mixin)
|
29
|
+
module ConnectionInfo_mixin
|
30
|
+
|
31
|
+
def inspect
|
32
|
+
::Ice::__stringify(self, T_ConnectionInfo)
|
33
|
+
end
|
34
|
+
|
35
|
+
attr_accessor :incoming, :adapterName, :connectionId
|
36
|
+
end
|
37
|
+
class ConnectionInfo
|
38
|
+
include ConnectionInfo_mixin
|
39
|
+
|
40
|
+
def ConnectionInfo.ice_staticId()
|
41
|
+
'::Ice::ConnectionInfo'
|
42
|
+
end
|
43
|
+
|
44
|
+
def initialize(incoming=false, adapterName='', connectionId='')
|
45
|
+
@incoming = incoming
|
46
|
+
@adapterName = adapterName
|
47
|
+
@connectionId = connectionId
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
if not defined?(::Ice::T_ConnectionInfo)
|
52
|
+
T_ConnectionInfo = ::Ice::__declareLocalClass('::Ice::ConnectionInfo')
|
53
|
+
end
|
54
|
+
|
55
|
+
T_ConnectionInfo.defineClass(ConnectionInfo, -1, false, false, nil, [], [
|
56
|
+
['incoming', ::Ice::T_bool, false, 0],
|
57
|
+
['adapterName', ::Ice::T_string, false, 0],
|
58
|
+
['connectionId', ::Ice::T_string, false, 0]
|
59
|
+
])
|
60
|
+
ConnectionInfo_mixin::ICE_TYPE = T_ConnectionInfo
|
61
|
+
end
|
62
|
+
|
63
|
+
if not defined?(::Ice::T_Connection)
|
64
|
+
T_Connection = ::Ice::__declareLocalClass('::Ice::Connection')
|
65
|
+
end
|
66
|
+
|
67
|
+
if not defined?(::Ice::ConnectionCallback_mixin)
|
68
|
+
module ConnectionCallback_mixin
|
69
|
+
|
70
|
+
#
|
71
|
+
# Operation signatures.
|
72
|
+
#
|
73
|
+
# def heartbeat(con)
|
74
|
+
# def closed(con)
|
75
|
+
|
76
|
+
def inspect
|
77
|
+
::Ice::__stringify(self, T_ConnectionCallback)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
class ConnectionCallback
|
81
|
+
include ConnectionCallback_mixin
|
82
|
+
|
83
|
+
def ConnectionCallback.ice_staticId()
|
84
|
+
'::Ice::ConnectionCallback'
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
if not defined?(::Ice::T_ConnectionCallback)
|
89
|
+
T_ConnectionCallback = ::Ice::__declareLocalClass('::Ice::ConnectionCallback')
|
90
|
+
end
|
91
|
+
|
92
|
+
T_ConnectionCallback.defineClass(ConnectionCallback, -1, true, false, nil, [], [])
|
93
|
+
ConnectionCallback_mixin::ICE_TYPE = T_ConnectionCallback
|
94
|
+
end
|
95
|
+
|
96
|
+
if not defined?(::Ice::ACMClose)
|
97
|
+
class ACMClose
|
98
|
+
include Comparable
|
99
|
+
|
100
|
+
def initialize(name, value)
|
101
|
+
@name = name
|
102
|
+
@value = value
|
103
|
+
end
|
104
|
+
|
105
|
+
def ACMClose.from_int(val)
|
106
|
+
@@_enumerators[val]
|
107
|
+
end
|
108
|
+
|
109
|
+
def to_s
|
110
|
+
@name
|
111
|
+
end
|
112
|
+
|
113
|
+
def to_i
|
114
|
+
@value
|
115
|
+
end
|
116
|
+
|
117
|
+
def <=>(other)
|
118
|
+
other.is_a?(ACMClose) or raise ArgumentError, "value must be a ACMClose"
|
119
|
+
@value <=> other.to_i
|
120
|
+
end
|
121
|
+
|
122
|
+
def hash
|
123
|
+
@value.hash
|
124
|
+
end
|
125
|
+
|
126
|
+
def inspect
|
127
|
+
@name + "(#{@value})"
|
128
|
+
end
|
129
|
+
|
130
|
+
def ACMClose.each(&block)
|
131
|
+
@@_enumerators.each_value(&block)
|
132
|
+
end
|
133
|
+
|
134
|
+
CloseOff = ACMClose.new("CloseOff", 0)
|
135
|
+
CloseOnIdle = ACMClose.new("CloseOnIdle", 1)
|
136
|
+
CloseOnInvocation = ACMClose.new("CloseOnInvocation", 2)
|
137
|
+
CloseOnInvocationAndIdle = ACMClose.new("CloseOnInvocationAndIdle", 3)
|
138
|
+
CloseOnIdleForceful = ACMClose.new("CloseOnIdleForceful", 4)
|
139
|
+
|
140
|
+
@@_enumerators = {0=>CloseOff, 1=>CloseOnIdle, 2=>CloseOnInvocation, 3=>CloseOnInvocationAndIdle, 4=>CloseOnIdleForceful}
|
141
|
+
|
142
|
+
def ACMClose._enumerators
|
143
|
+
@@_enumerators
|
144
|
+
end
|
145
|
+
|
146
|
+
private_class_method :new
|
147
|
+
end
|
148
|
+
|
149
|
+
T_ACMClose = ::Ice::__defineEnum('::Ice::ACMClose', ACMClose, ACMClose::_enumerators)
|
150
|
+
end
|
151
|
+
|
152
|
+
if not defined?(::Ice::ACMHeartbeat)
|
153
|
+
class ACMHeartbeat
|
154
|
+
include Comparable
|
155
|
+
|
156
|
+
def initialize(name, value)
|
157
|
+
@name = name
|
158
|
+
@value = value
|
159
|
+
end
|
160
|
+
|
161
|
+
def ACMHeartbeat.from_int(val)
|
162
|
+
@@_enumerators[val]
|
163
|
+
end
|
164
|
+
|
165
|
+
def to_s
|
166
|
+
@name
|
167
|
+
end
|
168
|
+
|
169
|
+
def to_i
|
170
|
+
@value
|
171
|
+
end
|
172
|
+
|
173
|
+
def <=>(other)
|
174
|
+
other.is_a?(ACMHeartbeat) or raise ArgumentError, "value must be a ACMHeartbeat"
|
175
|
+
@value <=> other.to_i
|
176
|
+
end
|
177
|
+
|
178
|
+
def hash
|
179
|
+
@value.hash
|
180
|
+
end
|
181
|
+
|
182
|
+
def inspect
|
183
|
+
@name + "(#{@value})"
|
184
|
+
end
|
185
|
+
|
186
|
+
def ACMHeartbeat.each(&block)
|
187
|
+
@@_enumerators.each_value(&block)
|
188
|
+
end
|
189
|
+
|
190
|
+
HeartbeatOff = ACMHeartbeat.new("HeartbeatOff", 0)
|
191
|
+
HeartbeatOnInvocation = ACMHeartbeat.new("HeartbeatOnInvocation", 1)
|
192
|
+
HeartbeatOnIdle = ACMHeartbeat.new("HeartbeatOnIdle", 2)
|
193
|
+
HeartbeatAlways = ACMHeartbeat.new("HeartbeatAlways", 3)
|
194
|
+
|
195
|
+
@@_enumerators = {0=>HeartbeatOff, 1=>HeartbeatOnInvocation, 2=>HeartbeatOnIdle, 3=>HeartbeatAlways}
|
196
|
+
|
197
|
+
def ACMHeartbeat._enumerators
|
198
|
+
@@_enumerators
|
199
|
+
end
|
200
|
+
|
201
|
+
private_class_method :new
|
202
|
+
end
|
203
|
+
|
204
|
+
T_ACMHeartbeat = ::Ice::__defineEnum('::Ice::ACMHeartbeat', ACMHeartbeat, ACMHeartbeat::_enumerators)
|
205
|
+
end
|
206
|
+
|
207
|
+
if not defined?(::Ice::ACM)
|
208
|
+
class ACM
|
209
|
+
def initialize(timeout=0, close=::Ice::ACMClose::CloseOff, heartbeat=::Ice::ACMHeartbeat::HeartbeatOff)
|
210
|
+
@timeout = timeout
|
211
|
+
@close = close
|
212
|
+
@heartbeat = heartbeat
|
213
|
+
end
|
214
|
+
|
215
|
+
def hash
|
216
|
+
_h = 0
|
217
|
+
_h = 5 * _h + @timeout.hash
|
218
|
+
_h = 5 * _h + @close.hash
|
219
|
+
_h = 5 * _h + @heartbeat.hash
|
220
|
+
_h % 0x7fffffff
|
221
|
+
end
|
222
|
+
|
223
|
+
def ==(other)
|
224
|
+
return false if
|
225
|
+
@timeout != other.timeout or
|
226
|
+
@close != other.close or
|
227
|
+
@heartbeat != other.heartbeat
|
228
|
+
true
|
229
|
+
end
|
230
|
+
|
231
|
+
def eql?(other)
|
232
|
+
return other.class == self.class && other == self
|
233
|
+
end
|
234
|
+
|
235
|
+
def inspect
|
236
|
+
::Ice::__stringify(self, T_ACM)
|
237
|
+
end
|
238
|
+
|
239
|
+
attr_accessor :timeout, :close, :heartbeat
|
240
|
+
end
|
241
|
+
|
242
|
+
T_ACM = ::Ice::__defineStruct('::Ice::ACM', ACM, [
|
243
|
+
["timeout", ::Ice::T_int],
|
244
|
+
["close", ::Ice::T_ACMClose],
|
245
|
+
["heartbeat", ::Ice::T_ACMHeartbeat]
|
246
|
+
])
|
247
|
+
end
|
248
|
+
|
249
|
+
if not defined?(::Ice::Connection_mixin)
|
250
|
+
module Connection_mixin
|
251
|
+
|
252
|
+
#
|
253
|
+
# Operation signatures.
|
254
|
+
#
|
255
|
+
# def close(force)
|
256
|
+
# def createProxy(id)
|
257
|
+
# def setAdapter(adapter)
|
258
|
+
# def getAdapter()
|
259
|
+
# def getEndpoint()
|
260
|
+
# def flushBatchRequests()
|
261
|
+
# def setCallback(callback)
|
262
|
+
# def setACM(timeout, close, heartbeat)
|
263
|
+
# def getACM()
|
264
|
+
# def type()
|
265
|
+
# def timeout()
|
266
|
+
# def toString()
|
267
|
+
# def getInfo()
|
268
|
+
|
269
|
+
def inspect
|
270
|
+
::Ice::__stringify(self, T_Connection)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
class Connection
|
274
|
+
include Connection_mixin
|
275
|
+
|
276
|
+
def Connection.ice_staticId()
|
277
|
+
'::Ice::Connection'
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
if not defined?(::Ice::T_Connection)
|
282
|
+
T_Connection = ::Ice::__declareLocalClass('::Ice::Connection')
|
283
|
+
end
|
284
|
+
|
285
|
+
T_Connection.defineClass(Connection, -1, true, false, nil, [], [])
|
286
|
+
Connection_mixin::ICE_TYPE = T_Connection
|
287
|
+
end
|
288
|
+
|
289
|
+
if not defined?(::Ice::IPConnectionInfo_mixin)
|
290
|
+
module IPConnectionInfo_mixin
|
291
|
+
|
292
|
+
def inspect
|
293
|
+
::Ice::__stringify(self, T_IPConnectionInfo)
|
294
|
+
end
|
295
|
+
|
296
|
+
attr_accessor :localAddress, :localPort, :remoteAddress, :remotePort
|
297
|
+
end
|
298
|
+
class IPConnectionInfo
|
299
|
+
include IPConnectionInfo_mixin
|
300
|
+
|
301
|
+
def IPConnectionInfo.ice_staticId()
|
302
|
+
'::Ice::IPConnectionInfo'
|
303
|
+
end
|
304
|
+
|
305
|
+
def initialize(incoming=false, adapterName='', connectionId='', localAddress="", localPort=-1, remoteAddress="", remotePort=-1)
|
306
|
+
super(incoming, adapterName, connectionId)
|
307
|
+
@localAddress = localAddress
|
308
|
+
@localPort = localPort
|
309
|
+
@remoteAddress = remoteAddress
|
310
|
+
@remotePort = remotePort
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
if not defined?(::Ice::T_IPConnectionInfo)
|
315
|
+
T_IPConnectionInfo = ::Ice::__declareLocalClass('::Ice::IPConnectionInfo')
|
316
|
+
end
|
317
|
+
|
318
|
+
T_IPConnectionInfo.defineClass(IPConnectionInfo, -1, false, false, nil, [], [
|
319
|
+
['localAddress', ::Ice::T_string, false, 0],
|
320
|
+
['localPort', ::Ice::T_int, false, 0],
|
321
|
+
['remoteAddress', ::Ice::T_string, false, 0],
|
322
|
+
['remotePort', ::Ice::T_int, false, 0]
|
323
|
+
])
|
324
|
+
IPConnectionInfo_mixin::ICE_TYPE = T_IPConnectionInfo
|
325
|
+
end
|
326
|
+
|
327
|
+
if not defined?(::Ice::TCPConnectionInfo_mixin)
|
328
|
+
module TCPConnectionInfo_mixin
|
329
|
+
|
330
|
+
def inspect
|
331
|
+
::Ice::__stringify(self, T_TCPConnectionInfo)
|
332
|
+
end
|
333
|
+
end
|
334
|
+
class TCPConnectionInfo
|
335
|
+
include TCPConnectionInfo_mixin
|
336
|
+
|
337
|
+
def TCPConnectionInfo.ice_staticId()
|
338
|
+
'::Ice::TCPConnectionInfo'
|
339
|
+
end
|
340
|
+
|
341
|
+
def initialize(incoming=false, adapterName='', connectionId='', localAddress="", localPort=-1, remoteAddress="", remotePort=-1)
|
342
|
+
super(incoming, adapterName, connectionId, localAddress, localPort, remoteAddress, remotePort)
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
if not defined?(::Ice::T_TCPConnectionInfo)
|
347
|
+
T_TCPConnectionInfo = ::Ice::__declareLocalClass('::Ice::TCPConnectionInfo')
|
348
|
+
end
|
349
|
+
|
350
|
+
T_TCPConnectionInfo.defineClass(TCPConnectionInfo, -1, false, false, nil, [], [])
|
351
|
+
TCPConnectionInfo_mixin::ICE_TYPE = T_TCPConnectionInfo
|
352
|
+
end
|
353
|
+
|
354
|
+
if not defined?(::Ice::UDPConnectionInfo_mixin)
|
355
|
+
module UDPConnectionInfo_mixin
|
356
|
+
|
357
|
+
def inspect
|
358
|
+
::Ice::__stringify(self, T_UDPConnectionInfo)
|
359
|
+
end
|
360
|
+
|
361
|
+
attr_accessor :mcastAddress, :mcastPort
|
362
|
+
end
|
363
|
+
class UDPConnectionInfo
|
364
|
+
include UDPConnectionInfo_mixin
|
365
|
+
|
366
|
+
def UDPConnectionInfo.ice_staticId()
|
367
|
+
'::Ice::UDPConnectionInfo'
|
368
|
+
end
|
369
|
+
|
370
|
+
def initialize(incoming=false, adapterName='', connectionId='', localAddress="", localPort=-1, remoteAddress="", remotePort=-1, mcastAddress='', mcastPort=-1)
|
371
|
+
super(incoming, adapterName, connectionId, localAddress, localPort, remoteAddress, remotePort)
|
372
|
+
@mcastAddress = mcastAddress
|
373
|
+
@mcastPort = mcastPort
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
377
|
+
if not defined?(::Ice::T_UDPConnectionInfo)
|
378
|
+
T_UDPConnectionInfo = ::Ice::__declareLocalClass('::Ice::UDPConnectionInfo')
|
379
|
+
end
|
380
|
+
|
381
|
+
T_UDPConnectionInfo.defineClass(UDPConnectionInfo, -1, false, false, nil, [], [
|
382
|
+
['mcastAddress', ::Ice::T_string, false, 0],
|
383
|
+
['mcastPort', ::Ice::T_int, false, 0]
|
384
|
+
])
|
385
|
+
UDPConnectionInfo_mixin::ICE_TYPE = T_UDPConnectionInfo
|
386
|
+
end
|
387
|
+
|
388
|
+
if not defined?(::Ice::WSConnectionInfo_mixin)
|
389
|
+
module WSConnectionInfo_mixin
|
390
|
+
|
391
|
+
def inspect
|
392
|
+
::Ice::__stringify(self, T_WSConnectionInfo)
|
393
|
+
end
|
394
|
+
end
|
395
|
+
class WSConnectionInfo
|
396
|
+
include WSConnectionInfo_mixin
|
397
|
+
|
398
|
+
def WSConnectionInfo.ice_staticId()
|
399
|
+
'::Ice::WSConnectionInfo'
|
400
|
+
end
|
401
|
+
|
402
|
+
def initialize(incoming=false, adapterName='', connectionId='', localAddress="", localPort=-1, remoteAddress="", remotePort=-1)
|
403
|
+
super(incoming, adapterName, connectionId, localAddress, localPort, remoteAddress, remotePort)
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
if not defined?(::Ice::T_WSConnectionInfo)
|
408
|
+
T_WSConnectionInfo = ::Ice::__declareLocalClass('::Ice::WSConnectionInfo')
|
409
|
+
end
|
410
|
+
|
411
|
+
T_WSConnectionInfo.defineClass(WSConnectionInfo, -1, false, false, nil, [], [])
|
412
|
+
WSConnectionInfo_mixin::ICE_TYPE = T_WSConnectionInfo
|
413
|
+
end
|
414
|
+
end
|