r2corba 1.5.5-universal-java → 1.6.0-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/corba.rb +1 -1
- data/lib/corba/cbase/ORB.rb +19 -16
- data/lib/corba/cbase/Request.rb +3 -3
- data/lib/corba/cbase/Values.rb +4 -2
- data/lib/corba/cbase/exception.rb +4 -2
- data/lib/corba/cbase/poa.rb +1 -1
- data/lib/corba/cbase/policies.rb +1 -1
- data/lib/corba/cbase/require.rb +8 -1
- data/lib/corba/common/Any.rb +2 -1
- data/lib/corba/common/IDL.rb +1 -1
- data/lib/corba/common/ORB.rb +21 -21
- data/lib/corba/common/Object.rb +14 -13
- data/lib/corba/common/Servant.rb +4 -4
- data/lib/corba/common/Stub.rb +6 -6
- data/lib/corba/common/Typecode.rb +35 -8
- data/lib/corba/common/Union.rb +5 -0
- data/lib/corba/common/Values.rb +1 -0
- data/lib/corba/common/const.rb +1 -1
- data/lib/corba/common/exception.rb +2 -1
- data/lib/corba/common/version.rb +2 -2
- data/lib/corba/idl/IDL.rb +1 -1
- data/lib/corba/jbase/Any.rb +6 -4
- data/lib/corba/jbase/ORB.rb +2 -2
- data/lib/corba/jbase/Object.rb +13 -13
- data/lib/corba/jbase/Request.rb +3 -3
- data/lib/corba/jbase/Streams.rb +64 -0
- data/lib/corba/jbase/Typecode.rb +3 -2
- data/lib/corba/jbase/Values.rb +2 -0
- data/lib/corba/jbase/exception.rb +1 -0
- data/lib/corba/jbase/poa.rb +18 -18
- data/lib/corba/jbase/policies.rb +29 -29
- data/lib/corba/jbase/require.rb +4 -0
- data/lib/corba/svcs/ins/cos_naming.rb +10 -1
- data/lib/corba/svcs/ins/ins.rb +45 -45
- data/lib/corba/svcs/ins/naming_service.rb +6 -6
- data/lib/ridlbe/ruby/config.rb +27 -20
- data/lib/ridlbe/ruby/walker.rb +276 -253
- data/mkrf_conf_bingem.rb +4 -4
- data/rakelib/build.rake +1 -1
- data/rakelib/config.rake +1 -1
- data/rakelib/config.rb +9 -9
- data/rakelib/gem.rake +20 -20
- data/rakelib/gem.rb +1 -1
- data/rakelib/package.rake +1 -1
- data/test/BiDirectional/client.rb +16 -16
- data/test/BiDirectional/run_test.rb +10 -10
- data/test/BiDirectional/server.rb +20 -20
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
- data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
- data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
- data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
- data/test/Collocation/run_test.rb +10 -10
- data/test/Collocation/test.rb +26 -19
- data/test/Connect_Timeout/client.rb +15 -15
- data/test/Connect_Timeout/run_test.rb +10 -10
- data/test/DII/client.rb +27 -27
- data/test/DII/run_test.rb +10 -10
- data/test/DII/server.rb +15 -15
- data/test/DSI/client.rb +15 -15
- data/test/DSI/run_test.rb +10 -10
- data/test/DSI/server.rb +16 -16
- data/test/Exceptions/client.rb +19 -19
- data/test/Exceptions/run_test.rb +10 -10
- data/test/Exceptions/server.rb +15 -15
- data/test/Hello/client.rb +15 -15
- data/test/Hello/run_test.rb +10 -10
- data/test/Hello/server.rb +16 -16
- data/test/IDL_Test/client.rb +20 -20
- data/test/IDL_Test/run_test.rb +10 -10
- data/test/IDL_Test/server.rb +18 -18
- data/test/IORMap/client.rb +14 -14
- data/test/IORMap/run_test.rb +10 -10
- data/test/IORMap/server.rb +22 -22
- data/test/IORTable/client.rb +14 -14
- data/test/IORTable/run_test.rb +10 -10
- data/test/IORTable/server.rb +22 -22
- data/test/Implicit_Conversion/client.rb +19 -16
- data/test/Implicit_Conversion/run_test.rb +10 -10
- data/test/Implicit_Conversion/server.rb +15 -15
- data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
- data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
- data/test/Multi_Threading/Simple/client.rb +15 -15
- data/test/Multi_Threading/Simple/run_test.rb +10 -10
- data/test/Multi_Threading/Simple/server.rb +15 -15
- data/test/Multi_Threading/Threads/client.rb +15 -15
- data/test/Multi_Threading/Threads/run_test.rb +10 -10
- data/test/Multi_Threading/Threads/server.rb +17 -17
- data/test/Multi_Threading/Threads/watchdog.rb +15 -15
- data/test/Multiple_Servant_Interfaces/client.rb +13 -13
- data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
- data/test/Multiple_Servant_Interfaces/server.rb +17 -17
- data/test/Nil/run_test.rb +10 -10
- data/test/Nil/test.rb +13 -13
- data/test/OBV/AbstractInterface/client.rb +13 -13
- data/test/OBV/AbstractInterface/run_test.rb +10 -10
- data/test/OBV/AbstractInterface/server.rb +19 -18
- data/test/OBV/Custom/OBV_impl.rb +2 -0
- data/test/OBV/Custom/client.rb +13 -13
- data/test/OBV/Custom/run_test.rb +10 -10
- data/test/OBV/Custom/server.rb +15 -15
- data/test/OBV/Simple/OBV_impl.rb +1 -0
- data/test/OBV/Simple/client.rb +13 -13
- data/test/OBV/Simple/run_test.rb +10 -10
- data/test/OBV/Simple/server.rb +15 -15
- data/test/OBV/Simple_Event/Event_impl.rb +1 -0
- data/test/OBV/Simple_Event/client.rb +13 -13
- data/test/OBV/Simple_Event/run_test.rb +10 -10
- data/test/OBV/Simple_Event/server.rb +15 -15
- data/test/OBV/Supports/client.rb +18 -18
- data/test/OBV/Supports/run_test.rb +10 -10
- data/test/OBV/Supports/server.rb +14 -14
- data/test/OBV/Supports/supports_impl.rb +3 -0
- data/test/OBV/Tree/client.rb +13 -13
- data/test/OBV/Tree/run_test.rb +10 -10
- data/test/OBV/Tree/server.rb +18 -18
- data/test/OBV/Truncatable/client.rb +56 -56
- data/test/OBV/Truncatable/run_test.rb +10 -10
- data/test/OBV/Truncatable/server.rb +14 -14
- data/test/OBV/ValueBox/client.rb +148 -147
- data/test/OBV/ValueBox/run_test.rb +10 -10
- data/test/OBV/ValueBox/server.rb +15 -15
- data/test/Object/client.rb +13 -13
- data/test/Object/run_test.rb +10 -10
- data/test/Object/server.rb +18 -18
- data/test/POA/run_test.rb +10 -10
- data/test/POA/test.rb +15 -15
- data/test/Param_Test/client.rb +47 -47
- data/test/Param_Test/run_test.rb +10 -10
- data/test/Param_Test/server.rb +55 -55
- data/test/Performance/Simple/client.rb +15 -15
- data/test/Performance/Simple/run_test.rb +10 -10
- data/test/Performance/Simple/server.rb +15 -15
- data/test/Policies/run_test.rb +10 -10
- data/test/Policies/test.rb +23 -23
- data/test/Timeout/client.rb +17 -17
- data/test/Timeout/run_test.rb +10 -10
- data/test/Timeout/server.rb +18 -18
- data/test/lib/test.rb +13 -7
- data/test/test_runner.rb +19 -19
- metadata +6 -6
@@ -22,25 +22,25 @@ ARGV.options do |opts|
|
|
22
22
|
script_name = File.basename($0)
|
23
23
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
24
24
|
|
25
|
-
opts.separator
|
25
|
+
opts.separator ''
|
26
26
|
|
27
|
-
opts.on(
|
28
|
-
|
27
|
+
opts.on('--o IORFILE',
|
28
|
+
'Set IOR filename.',
|
29
29
|
"Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
|
30
|
-
opts.on(
|
31
|
-
|
30
|
+
opts.on('--w IORFILE',
|
31
|
+
'Set Watchdog IOR filename.',
|
32
32
|
"Default: 'file://watchdog.ior'") { |v| OPTIONS[:watchdog_iorfile] = v }
|
33
|
-
opts.on(
|
34
|
-
|
35
|
-
|
36
|
-
opts.on(
|
37
|
-
|
38
|
-
|
33
|
+
opts.on('--d LVL',
|
34
|
+
'Set ORBDebugLevel value.',
|
35
|
+
'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
|
36
|
+
opts.on('--use-implement',
|
37
|
+
'Load IDL through CORBA.implement() instead of precompiled code.',
|
38
|
+
'Default: off') { |v| OPTIONS[:use_implement] = v }
|
39
39
|
|
40
|
-
opts.separator
|
40
|
+
opts.separator ''
|
41
41
|
|
42
|
-
opts.on(
|
43
|
-
|
42
|
+
opts.on('-h', '--help',
|
43
|
+
'Show this help message.') { puts opts; exit }
|
44
44
|
|
45
45
|
opts.parse!
|
46
46
|
end
|
@@ -78,9 +78,9 @@ class MyHello < POA::Test::Hello
|
|
78
78
|
puts %Q{Server - pinged watchdog #{@count} times.}
|
79
79
|
@orb.shutdown()
|
80
80
|
end
|
81
|
-
end #of servant MyHello
|
81
|
+
end # of servant MyHello
|
82
82
|
|
83
|
-
orb = CORBA.ORB_init([
|
83
|
+
orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
|
84
84
|
|
85
85
|
obj = orb.resolve_initial_references('RootPOA')
|
86
86
|
|
@@ -105,7 +105,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
|
|
105
105
|
}
|
106
106
|
|
107
107
|
Signal.trap('INT') do
|
108
|
-
puts
|
108
|
+
puts 'SIGINT - shutting down ORB...'
|
109
109
|
orb.shutdown()
|
110
110
|
end
|
111
111
|
|
@@ -12,22 +12,22 @@ ARGV.options do |opts|
|
|
12
12
|
script_name = File.basename($0)
|
13
13
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
14
14
|
|
15
|
-
opts.separator
|
15
|
+
opts.separator ''
|
16
16
|
|
17
|
-
opts.on(
|
18
|
-
|
17
|
+
opts.on('--o IORFILE',
|
18
|
+
'Set IOR filename.',
|
19
19
|
"Default: 'watchdog.ior'") { |v| OPTIONS[:iorfile] = v }
|
20
|
-
opts.on(
|
21
|
-
|
22
|
-
|
23
|
-
opts.on(
|
24
|
-
|
25
|
-
|
20
|
+
opts.on('--d LVL',
|
21
|
+
'Set ORBDebugLevel value.',
|
22
|
+
'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
|
23
|
+
opts.on('--use-implement',
|
24
|
+
'Load IDL through CORBA.implement() instead of precompiled code.',
|
25
|
+
'Default: off') { |v| OPTIONS[:use_implement] = v }
|
26
26
|
|
27
|
-
opts.separator
|
27
|
+
opts.separator ''
|
28
28
|
|
29
|
-
opts.on(
|
30
|
-
|
29
|
+
opts.on('-h', '--help',
|
30
|
+
'Show this help message.') { puts opts; exit }
|
31
31
|
|
32
32
|
opts.parse!
|
33
33
|
end
|
@@ -53,9 +53,9 @@ class MyWatchdog < POA::Test::Watchdog
|
|
53
53
|
puts %Q{Watchdog - received #{@count} pings}
|
54
54
|
@orb.shutdown()
|
55
55
|
end
|
56
|
-
end #of servant MyWatchdog
|
56
|
+
end # of servant MyWatchdog
|
57
57
|
|
58
|
-
orb = CORBA.ORB_init([
|
58
|
+
orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
|
59
59
|
|
60
60
|
obj = orb.resolve_initial_references('RootPOA')
|
61
61
|
|
@@ -76,7 +76,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
|
|
76
76
|
}
|
77
77
|
|
78
78
|
Signal.trap('INT') do
|
79
|
-
puts
|
79
|
+
puts 'SIGINT - shutting down ORB...'
|
80
80
|
orb.shutdown()
|
81
81
|
end
|
82
82
|
|
@@ -21,22 +21,22 @@ ARGV.options do |opts|
|
|
21
21
|
script_name = File.basename($0)
|
22
22
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
23
23
|
|
24
|
-
opts.separator
|
24
|
+
opts.separator ''
|
25
25
|
|
26
|
-
opts.on(
|
27
|
-
|
26
|
+
opts.on('--k IORFILE',
|
27
|
+
'Set IOR.',
|
28
28
|
"Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
|
29
|
-
opts.on(
|
30
|
-
|
31
|
-
|
32
|
-
opts.on(
|
33
|
-
|
34
|
-
|
29
|
+
opts.on('--d LVL',
|
30
|
+
'Set ORBDebugLevel value.',
|
31
|
+
'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
|
32
|
+
opts.on('--use-implement',
|
33
|
+
'Load IDL through CORBA.implement() instead of precompiled code.',
|
34
|
+
'Default: off') { |v| OPTIONS[:use_implement] = v }
|
35
35
|
|
36
|
-
opts.separator
|
36
|
+
opts.separator ''
|
37
37
|
|
38
|
-
opts.on(
|
39
|
-
|
38
|
+
opts.on('-h', '--help',
|
39
|
+
'Show this help message.') { puts opts; exit }
|
40
40
|
|
41
41
|
opts.parse!
|
42
42
|
end
|
@@ -48,7 +48,7 @@ else
|
|
48
48
|
require 'TestC.rb'
|
49
49
|
end
|
50
50
|
|
51
|
-
orb = CORBA.ORB_init([
|
51
|
+
orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
|
52
52
|
|
53
53
|
obj = orb.string_to_object(OPTIONS[:iorfile])
|
54
54
|
|
@@ -20,19 +20,19 @@ ARGV.options do |opts|
|
|
20
20
|
script_name = File.basename($0)
|
21
21
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
22
22
|
|
23
|
-
opts.separator
|
23
|
+
opts.separator ''
|
24
24
|
|
25
|
-
opts.on(
|
26
|
-
|
27
|
-
|
28
|
-
opts.on(
|
29
|
-
|
30
|
-
|
25
|
+
opts.on('-d',
|
26
|
+
'Run with debugging output.',
|
27
|
+
'Default: false') { OPTIONS[:debug_opt] = '--d 10' }
|
28
|
+
opts.on('--use-stubs',
|
29
|
+
'Use stubs generated by RIDL.',
|
30
|
+
'Default: false (uses embedded IDL)') { OPTIONS[:use_implement] = '' }
|
31
31
|
|
32
|
-
opts.separator
|
32
|
+
opts.separator ''
|
33
33
|
|
34
|
-
opts.on(
|
35
|
-
|
34
|
+
opts.on('-h', '--help',
|
35
|
+
'Show this help message.') { puts opts; exit }
|
36
36
|
|
37
37
|
opts.parse!
|
38
38
|
end
|
@@ -21,22 +21,22 @@ ARGV.options do |opts|
|
|
21
21
|
script_name = File.basename($0)
|
22
22
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
23
23
|
|
24
|
-
opts.separator
|
24
|
+
opts.separator ''
|
25
25
|
|
26
|
-
opts.on(
|
27
|
-
|
26
|
+
opts.on('--o IORFILE',
|
27
|
+
'Set IOR filename.',
|
28
28
|
"Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
|
29
|
-
opts.on(
|
30
|
-
|
31
|
-
|
32
|
-
opts.on(
|
33
|
-
|
34
|
-
|
29
|
+
opts.on('--d LVL',
|
30
|
+
'Set ORBDebugLevel value.',
|
31
|
+
'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
|
32
|
+
opts.on('--use-implement',
|
33
|
+
'Load IDL through CORBA.implement() instead of precompiled code.',
|
34
|
+
'Default: off') { |v| OPTIONS[:use_implement] = v }
|
35
35
|
|
36
|
-
opts.separator
|
36
|
+
opts.separator ''
|
37
37
|
|
38
|
-
opts.on(
|
39
|
-
|
38
|
+
opts.on('-h', '--help',
|
39
|
+
'Show this help message.') { puts opts; exit }
|
40
40
|
|
41
41
|
opts.parse!
|
42
42
|
end
|
@@ -57,19 +57,19 @@ class MyHello < PortableServer::Servant
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def get_string()
|
60
|
-
|
60
|
+
'Hello there!'
|
61
61
|
end
|
62
62
|
|
63
63
|
def get_string_2()
|
64
|
-
|
64
|
+
'Hello there! (2nd edition)'
|
65
65
|
end
|
66
66
|
|
67
67
|
def shutdown()
|
68
68
|
@orb.shutdown()
|
69
69
|
end
|
70
|
-
end #of servant MyHello
|
70
|
+
end # of servant MyHello
|
71
71
|
|
72
|
-
orb = CORBA.ORB_init([
|
72
|
+
orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
|
73
73
|
|
74
74
|
obj = orb.resolve_initial_references('RootPOA')
|
75
75
|
|
@@ -90,7 +90,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
|
|
90
90
|
}
|
91
91
|
|
92
92
|
Signal.trap('INT') do
|
93
|
-
puts
|
93
|
+
puts 'SIGINT - shutting down ORB...'
|
94
94
|
orb.shutdown()
|
95
95
|
end
|
96
96
|
|
data/test/Nil/run_test.rb
CHANGED
@@ -20,19 +20,19 @@ ARGV.options do |opts|
|
|
20
20
|
script_name = File.basename($0)
|
21
21
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
22
22
|
|
23
|
-
opts.separator
|
23
|
+
opts.separator ''
|
24
24
|
|
25
|
-
opts.on(
|
26
|
-
|
27
|
-
|
28
|
-
opts.on(
|
29
|
-
|
30
|
-
|
25
|
+
opts.on('-d',
|
26
|
+
'Run with debugging output.',
|
27
|
+
'Default: false') { OPTIONS[:debug_opt] = '--d 10' }
|
28
|
+
opts.on('--use-stubs',
|
29
|
+
'Use stubs generated by RIDL.',
|
30
|
+
'Default: false (uses embedded IDL)') { OPTIONS[:use_implement] = '' }
|
31
31
|
|
32
|
-
opts.separator
|
32
|
+
opts.separator ''
|
33
33
|
|
34
|
-
opts.on(
|
35
|
-
|
34
|
+
opts.on('-h', '--help',
|
35
|
+
'Show this help message.') { puts opts; exit }
|
36
36
|
|
37
37
|
opts.parse!
|
38
38
|
end
|
data/test/Nil/test.rb
CHANGED
@@ -23,22 +23,22 @@ ARGV.options do |opts|
|
|
23
23
|
script_name = File.basename($0)
|
24
24
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
25
25
|
|
26
|
-
opts.separator
|
26
|
+
opts.separator ''
|
27
27
|
|
28
|
-
opts.on(
|
29
|
-
|
28
|
+
opts.on('--k IOR',
|
29
|
+
'Set IOR.',
|
30
30
|
"Default: 'corbaname::foo'") { |v| OPTIONS[:ior] = v }
|
31
|
-
opts.on(
|
32
|
-
|
33
|
-
|
34
|
-
opts.on(
|
35
|
-
|
36
|
-
|
31
|
+
opts.on('--d LVL',
|
32
|
+
'Set ORBDebugLevel value.',
|
33
|
+
'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
|
34
|
+
opts.on('--use-implement',
|
35
|
+
'Load IDL through CORBA.implement() instead of precompiled code.',
|
36
|
+
'Default: off') { |v| OPTIONS[:use_implement] = v }
|
37
37
|
|
38
|
-
opts.separator
|
38
|
+
opts.separator ''
|
39
39
|
|
40
|
-
opts.on(
|
41
|
-
|
40
|
+
opts.on('-h', '--help',
|
41
|
+
'Show this help message.') { puts opts; exit }
|
42
42
|
|
43
43
|
opts.parse!
|
44
44
|
end
|
@@ -50,7 +50,7 @@ else
|
|
50
50
|
require 'TestS.rb'
|
51
51
|
end
|
52
52
|
|
53
|
-
orb = CORBA.ORB_init([
|
53
|
+
orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
|
54
54
|
|
55
55
|
begin
|
56
56
|
begin
|
@@ -29,22 +29,22 @@ ARGV.options do |opts|
|
|
29
29
|
script_name = File.basename($0)
|
30
30
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
31
31
|
|
32
|
-
opts.separator
|
32
|
+
opts.separator ''
|
33
33
|
|
34
|
-
opts.on(
|
35
|
-
|
34
|
+
opts.on('--k IORFILE',
|
35
|
+
'Set IOR.',
|
36
36
|
"Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
|
37
|
-
opts.on(
|
38
|
-
|
39
|
-
|
40
|
-
opts.on(
|
41
|
-
|
42
|
-
|
37
|
+
opts.on('--d LVL',
|
38
|
+
'Set ORBDebugLevel value.',
|
39
|
+
'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
|
40
|
+
opts.on('--use-implement',
|
41
|
+
'Load IDL through CORBA.implement() instead of precompiled code.',
|
42
|
+
'Default: off') { |v| OPTIONS[:use_implement] = v }
|
43
43
|
|
44
|
-
opts.separator
|
44
|
+
opts.separator ''
|
45
45
|
|
46
|
-
opts.on(
|
47
|
-
|
46
|
+
opts.on('-h', '--help',
|
47
|
+
'Show this help message.') { puts opts; exit }
|
48
48
|
|
49
49
|
opts.parse!
|
50
50
|
end
|
@@ -122,7 +122,7 @@ def test_exception(abs)
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
-
orb = CORBA.ORB_init([
|
125
|
+
orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
|
126
126
|
|
127
127
|
begin
|
128
128
|
obj = orb.string_to_object(OPTIONS[:iorfile])
|
@@ -20,19 +20,19 @@ ARGV.options do |opts|
|
|
20
20
|
script_name = File.basename($0)
|
21
21
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
22
22
|
|
23
|
-
opts.separator
|
23
|
+
opts.separator ''
|
24
24
|
|
25
|
-
opts.on(
|
26
|
-
|
27
|
-
|
28
|
-
opts.on(
|
29
|
-
|
30
|
-
|
25
|
+
opts.on('-d',
|
26
|
+
'Run with debugging output.',
|
27
|
+
'Default: false') { OPTIONS[:debug_opt] = '--d 10' }
|
28
|
+
opts.on('--use-stubs',
|
29
|
+
'Use stubs generated by RIDL.',
|
30
|
+
'Default: false (uses embedded IDL)') { OPTIONS[:use_implement] = '' }
|
31
31
|
|
32
|
-
opts.separator
|
32
|
+
opts.separator ''
|
33
33
|
|
34
|
-
opts.on(
|
35
|
-
|
34
|
+
opts.on('-h', '--help',
|
35
|
+
'Show this help message.') { puts opts; exit }
|
36
36
|
|
37
37
|
opts.parse!
|
38
38
|
end
|
@@ -21,22 +21,22 @@ ARGV.options do |opts|
|
|
21
21
|
script_name = File.basename($0)
|
22
22
|
opts.banner = "Usage: ruby #{script_name} [options]"
|
23
23
|
|
24
|
-
opts.separator
|
24
|
+
opts.separator ''
|
25
25
|
|
26
|
-
opts.on(
|
27
|
-
|
26
|
+
opts.on('--o IORFILE',
|
27
|
+
'Set IOR filename.',
|
28
28
|
"Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
|
29
|
-
opts.on(
|
30
|
-
|
31
|
-
|
32
|
-
opts.on(
|
33
|
-
|
34
|
-
|
29
|
+
opts.on('--d LVL',
|
30
|
+
'Set ORBDebugLevel value.',
|
31
|
+
'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
|
32
|
+
opts.on('--use-implement',
|
33
|
+
'Load IDL through CORBA.implement() instead of precompiled code.',
|
34
|
+
'Default: off') { |v| OPTIONS[:use_implement] = v }
|
35
35
|
|
36
|
-
opts.separator
|
36
|
+
opts.separator ''
|
37
37
|
|
38
|
-
opts.on(
|
39
|
-
|
38
|
+
opts.on('-h', '--help',
|
39
|
+
'Show this help message.') { puts opts; exit }
|
40
40
|
|
41
41
|
opts.parse!
|
42
42
|
end
|
@@ -55,6 +55,7 @@ class Foo_i < POA::Foo
|
|
55
55
|
end
|
56
56
|
raise BadInput.new('expected "base_op"')
|
57
57
|
end
|
58
|
+
|
58
59
|
def foo_op (inarg)
|
59
60
|
if inarg == 'foo_op'
|
60
61
|
return 'good'
|
@@ -84,17 +85,17 @@ class Passer_i < POA::Passer
|
|
84
85
|
|
85
86
|
# Create the root node.
|
86
87
|
sn = StringNode.new
|
87
|
-
sn.name =
|
88
|
+
sn.name = 'RootNode'
|
88
89
|
tc.root = sn
|
89
90
|
|
90
91
|
# Create the left leaf.
|
91
92
|
l_dummy = StringNode.new
|
92
|
-
l_dummy.name =
|
93
|
+
l_dummy.name = 'LeftNode'
|
93
94
|
sn.left = l_dummy
|
94
95
|
|
95
96
|
# Create the right leaf.
|
96
97
|
r_dummy = StringNode.new
|
97
|
-
r_dummy.name =
|
98
|
+
r_dummy.name = 'RightNode'
|
98
99
|
sn.right = r_dummy
|
99
100
|
|
100
101
|
[tc]
|
@@ -107,9 +108,9 @@ class Passer_i < POA::Passer
|
|
107
108
|
def shutdown ()
|
108
109
|
@orb.shutdown()
|
109
110
|
end
|
110
|
-
end #of servant Passer_i
|
111
|
+
end # of servant Passer_i
|
111
112
|
|
112
|
-
orb = CORBA.ORB_init([
|
113
|
+
orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
|
113
114
|
|
114
115
|
# make sure valuetype factories are registered
|
115
116
|
BaseNodeFactory.get_factory(orb)
|
@@ -135,7 +136,7 @@ open(OPTIONS[:iorfile], 'w') { |io|
|
|
135
136
|
}
|
136
137
|
|
137
138
|
Signal.trap('INT') do
|
138
|
-
puts
|
139
|
+
puts 'SIGINT - shutting down ORB...'
|
139
140
|
orb.shutdown()
|
140
141
|
end
|
141
142
|
|