roma-client 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +22 -15
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +34 -18
  5. data/README.md +4 -0
  6. data/lib/roma/client/client_pool.rb +15 -25
  7. data/lib/roma/client/client_rttable.rb +1 -2
  8. data/lib/roma/client/tools/showbalance.rb +0 -1
  9. data/lib/roma/client/version.rb +1 -1
  10. data/spec/roma/client/client_pool_spec.rb +133 -173
  11. data/spec/spec_helper.rb +9 -0
  12. metadata +3 -79
  13. data/doc/CHANGELOG_md.html +0 -119
  14. data/doc/README_md.html +0 -161
  15. data/doc/Roma.html +0 -95
  16. data/doc/Roma/Client.html +0 -95
  17. data/doc/Roma/Client/ClientPool.html +0 -716
  18. data/doc/Roma/Client/ClientRoutingTable.html +0 -495
  19. data/doc/Roma/Client/ConPool.html +0 -484
  20. data/doc/Roma/Client/Plugin.html +0 -95
  21. data/doc/Roma/Client/Plugin/Alist.html +0 -1276
  22. data/doc/Roma/Client/Plugin/Map.html +0 -531
  23. data/doc/Roma/Client/Plugin/MapCount.html +0 -401
  24. data/doc/Roma/Client/Proxy.html +0 -95
  25. data/doc/Roma/Client/Proxy/ClientHandler.html +0 -273
  26. data/doc/Roma/Client/Proxy/Conpool.html +0 -394
  27. data/doc/Roma/Client/Proxy/Daemon.html +0 -305
  28. data/doc/Roma/Client/Proxy/RomaHandler.html +0 -217
  29. data/doc/Roma/Client/RomaClient.html +0 -1339
  30. data/doc/Roma/Client/Sender.html +0 -482
  31. data/doc/Roma/Client/Stats.html +0 -162
  32. data/doc/Roma/Client/VERSION.html +0 -141
  33. data/doc/Roma/Logging.html +0 -95
  34. data/doc/Roma/Logging/RLogger.html +0 -786
  35. data/doc/Roma/Logging/RLogger/ExtLogDev.html +0 -159
  36. data/doc/Roma/Logging/RLogger/ExtShiftAge.html +0 -95
  37. data/doc/Roma/Logging/RLogger/ExtTrace.html +0 -109
  38. data/doc/Roma/Logging/RLogger/Severity.html +0 -139
  39. data/doc/Roma/Routing.html +0 -95
  40. data/doc/Roma/Routing/RoutingData.html +0 -912
  41. data/doc/Roma/Routing/RoutingData/RandomNodeListMaker.html +0 -311
  42. data/doc/created.rid +0 -20
  43. data/doc/css/fonts.css +0 -167
  44. data/doc/css/rdoc.css +0 -590
  45. data/doc/fonts/Lato-Light.ttf +0 -0
  46. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  47. data/doc/fonts/Lato-Regular.ttf +0 -0
  48. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  49. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  50. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  51. data/doc/images/add.png +0 -0
  52. data/doc/images/arrow_up.png +0 -0
  53. data/doc/images/brick.png +0 -0
  54. data/doc/images/brick_link.png +0 -0
  55. data/doc/images/bug.png +0 -0
  56. data/doc/images/bullet_black.png +0 -0
  57. data/doc/images/bullet_toggle_minus.png +0 -0
  58. data/doc/images/bullet_toggle_plus.png +0 -0
  59. data/doc/images/date.png +0 -0
  60. data/doc/images/delete.png +0 -0
  61. data/doc/images/find.png +0 -0
  62. data/doc/images/loadingAnimation.gif +0 -0
  63. data/doc/images/macFFBgHack.png +0 -0
  64. data/doc/images/package.png +0 -0
  65. data/doc/images/page_green.png +0 -0
  66. data/doc/images/page_white_text.png +0 -0
  67. data/doc/images/page_white_width.png +0 -0
  68. data/doc/images/plugin.png +0 -0
  69. data/doc/images/ruby.png +0 -0
  70. data/doc/images/tag_blue.png +0 -0
  71. data/doc/images/tag_green.png +0 -0
  72. data/doc/images/transparent.png +0 -0
  73. data/doc/images/wrench.png +0 -0
  74. data/doc/images/wrench_orange.png +0 -0
  75. data/doc/images/zoom.png +0 -0
  76. data/doc/index.html +0 -210
  77. data/doc/js/darkfish.js +0 -161
  78. data/doc/js/jquery.js +0 -4
  79. data/doc/js/navigation.js +0 -142
  80. data/doc/js/navigation.js.gz +0 -0
  81. data/doc/js/search.js +0 -109
  82. data/doc/js/search_index.js +0 -1
  83. data/doc/js/search_index.js.gz +0 -0
  84. data/doc/js/searcher.js +0 -228
  85. data/doc/js/searcher.js.gz +0 -0
  86. data/doc/table_of_contents.html +0 -972
  87. data/lib/roma/client/routing/routing_data.rb +0 -241
@@ -1,305 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset=" UTF-8">
6
-
7
- <title>class Roma::Client::Proxy::Daemon - ROMA documents</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../../../";
11
- </script>
12
-
13
- <script src="../../../js/jquery.js"></script>
14
- <script src="../../../js/darkfish.js"></script>
15
-
16
- <link href="../../../css/fonts.css" rel="stylesheet">
17
- <link href="../../../css/rdoc.css" rel="stylesheet">
18
-
19
-
20
-
21
- <body id="top" role="document" class="class">
22
- <nav role="navigation">
23
- <div id="project-navigation">
24
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
- <h2>
26
- <a href="../../../index.html" rel="home">Home</a>
27
- </h2>
28
-
29
- <div id="table-of-contents-navigation">
30
- <a href="../../../table_of_contents.html#pages">Pages</a>
31
- <a href="../../../table_of_contents.html#classes">Classes</a>
32
- <a href="../../../table_of_contents.html#methods">Methods</a>
33
- </div>
34
- </div>
35
-
36
- <div id="search-section" role="search" class="project-section initially-hidden">
37
- <form action="#" method="get" accept-charset="utf-8">
38
- <div id="search-field-wrapper">
39
- <input id="search-field" role="combobox" aria-label="Search"
40
- aria-autocomplete="list" aria-controls="search-results"
41
- type="text" name="search" placeholder="Search" spellcheck="false"
42
- title="Type to search, Up and Down to navigate, Enter to load">
43
- </div>
44
-
45
- <ul id="search-results" aria-label="Search Results"
46
- aria-busy="false" aria-expanded="false"
47
- aria-atomic="false" class="initially-hidden"></ul>
48
- </form>
49
- </div>
50
-
51
- </div>
52
-
53
-
54
-
55
- <div id="class-metadata">
56
-
57
- <div id="parent-class-section" class="nav-section">
58
- <h3>Parent</h3>
59
-
60
-
61
- <p class="link">Object
62
-
63
- </div>
64
-
65
-
66
-
67
- <!-- Method Quickref -->
68
- <div id="method-list-section" class="nav-section">
69
- <h3>Methods</h3>
70
-
71
- <ul class="link-list" role="directory">
72
-
73
- <li ><a href="#method-c-new">::new</a>
74
-
75
- <li ><a href="#method-c-rttable">::rttable</a>
76
-
77
- <li ><a href="#method-i-initialize_logger">#initialize_logger</a>
78
-
79
- <li ><a href="#method-i-start">#start</a>
80
-
81
- </ul>
82
- </div>
83
-
84
- </div>
85
- </nav>
86
-
87
- <main role="main" aria-labelledby="class-Roma::Client::Proxy::Daemon">
88
- <h1 id="class-Roma::Client::Proxy::Daemon" class="class">
89
- class Roma::Client::Proxy::Daemon
90
- </h1>
91
-
92
- <section class="description">
93
-
94
- </section>
95
-
96
-
97
-
98
-
99
- <section id="5Buntitled-5D" class="documentation-section">
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- <section class="attribute-method-details" class="method-section">
108
- <header>
109
- <h3>Attributes</h3>
110
- </header>
111
-
112
-
113
- <div id="attribute-i-daemon" class="method-detail">
114
- <div class="method-heading attribute-method-heading">
115
- <span class="method-name">daemon</span><span
116
- class="attribute-access-type">[R]</span>
117
- </div>
118
-
119
- <div class="method-description">
120
-
121
-
122
-
123
- </div>
124
- </div>
125
-
126
- </section>
127
-
128
-
129
-
130
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
131
- <header>
132
- <h3>Public Class Methods</h3>
133
- </header>
134
-
135
-
136
- <div id="method-c-new" class="method-detail ">
137
-
138
- <div class="method-heading">
139
- <span class="method-name">new</span><span
140
- class="method-args">(argv = nil)</span>
141
-
142
- <span class="method-click-advice">click to toggle source</span>
143
-
144
- </div>
145
-
146
-
147
- <div class="method-description">
148
-
149
-
150
-
151
-
152
-
153
-
154
- <div class="method-source-code" id="new-source">
155
- <pre><span class="ruby-comment"># File lib/roma/client/proxy/daemon.rb, line 139</span>
156
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">argv</span> = <span class="ruby-keyword">nil</span>)
157
- <span class="ruby-identifier">options</span>(<span class="ruby-identifier">argv</span>)
158
- <span class="ruby-identifier">initialize_logger</span>
159
- <span class="ruby-ivar">@sender</span> = <span class="ruby-constant">Roma</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span><span class="ruby-operator">::</span><span class="ruby-constant">Sender</span>.<span class="ruby-identifier">new</span>
160
- <span class="ruby-identifier">update_rttable</span>(<span class="ruby-ivar">@init_nodes</span>)
161
- <span class="ruby-keyword">end</span></pre>
162
- </div>
163
-
164
- </div>
165
-
166
-
167
-
168
-
169
- </div>
170
-
171
-
172
- <div id="method-c-rttable" class="method-detail ">
173
-
174
- <div class="method-heading">
175
- <span class="method-name">rttable</span><span
176
- class="method-args">()</span>
177
-
178
- <span class="method-click-advice">click to toggle source</span>
179
-
180
- </div>
181
-
182
-
183
- <div class="method-description">
184
-
185
-
186
-
187
-
188
-
189
-
190
- <div class="method-source-code" id="rttable-source">
191
- <pre><span class="ruby-comment"># File lib/roma/client/proxy/daemon.rb, line 135</span>
192
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">rttable</span>
193
- <span class="ruby-identifier">@@rttable</span>
194
- <span class="ruby-keyword">end</span></pre>
195
- </div>
196
-
197
- </div>
198
-
199
-
200
-
201
-
202
- </div>
203
-
204
-
205
- </section>
206
-
207
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
208
- <header>
209
- <h3>Public Instance Methods</h3>
210
- </header>
211
-
212
-
213
- <div id="method-i-initialize_logger" class="method-detail ">
214
-
215
- <div class="method-heading">
216
- <span class="method-name">initialize_logger</span><span
217
- class="method-args">()</span>
218
-
219
- <span class="method-click-advice">click to toggle source</span>
220
-
221
- </div>
222
-
223
-
224
- <div class="method-description">
225
-
226
-
227
-
228
-
229
-
230
-
231
- <div class="method-source-code" id="initialize_logger-source">
232
- <pre><span class="ruby-comment"># File lib/roma/client/proxy/daemon.rb, line 146</span>
233
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize_logger</span>
234
- <span class="ruby-constant">Roma</span><span class="ruby-operator">::</span><span class="ruby-constant">Logging</span><span class="ruby-operator">::</span><span class="ruby-constant">RLogger</span>.<span class="ruby-identifier">create_singleton_instance</span>(<span class="ruby-ivar">@log_path</span>,
235
- <span class="ruby-ivar">@log_age</span>,
236
- <span class="ruby-ivar">@log_size</span>)
237
- <span class="ruby-keyword">end</span></pre>
238
- </div>
239
-
240
- </div>
241
-
242
-
243
-
244
-
245
- </div>
246
-
247
-
248
- <div id="method-i-start" class="method-detail ">
249
-
250
- <div class="method-heading">
251
- <span class="method-name">start</span><span
252
- class="method-args">()</span>
253
-
254
- <span class="method-click-advice">click to toggle source</span>
255
-
256
- </div>
257
-
258
-
259
- <div class="method-description">
260
-
261
-
262
-
263
-
264
-
265
-
266
- <div class="method-source-code" id="start-source">
267
- <pre><span class="ruby-comment"># File lib/roma/client/proxy/daemon.rb, line 152</span>
268
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">start</span>
269
-
270
- <span class="ruby-identifier">timer</span>
271
-
272
- <span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
273
- <span class="ruby-keyword">begin</span>
274
- <span class="ruby-constant">EventMachine</span><span class="ruby-operator">::</span><span class="ruby-identifier">run</span> <span class="ruby-keyword">do</span>
275
- <span class="ruby-constant">EventMachine</span>.<span class="ruby-identifier">start_server</span>(<span class="ruby-string">&#39;0.0.0.0&#39;</span>, <span class="ruby-ivar">@port</span>, <span class="ruby-constant">ClientHandler</span>)
276
- <span class="ruby-constant">EventMachine</span>.<span class="ruby-identifier">start_unix_domain_server</span>(<span class="ruby-node">&quot;/tmp/#{@uds_name}&quot;</span>, <span class="ruby-constant">ClientHandler</span>)
277
- <span class="ruby-keyword">end</span>
278
- <span class="ruby-keyword">rescue</span> =<span class="ruby-operator">&gt;</span><span class="ruby-identifier">e</span>
279
- <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">error</span>(<span class="ruby-node">&quot;#{e} #{$@}&quot;</span>)
280
- <span class="ruby-keyword">retry</span>
281
- <span class="ruby-keyword">end</span>
282
- <span class="ruby-keyword">end</span>
283
- <span class="ruby-keyword">end</span></pre>
284
- </div>
285
-
286
- </div>
287
-
288
-
289
-
290
-
291
- </div>
292
-
293
-
294
- </section>
295
-
296
- </section>
297
- </main>
298
-
299
-
300
- <footer id="validator-badges" role="contentinfo">
301
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
302
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
303
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
304
- </footer>
305
-
@@ -1,217 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset=" UTF-8">
6
-
7
- <title>module Roma::Client::Proxy::RomaHandler - ROMA documents</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../../../";
11
- </script>
12
-
13
- <script src="../../../js/jquery.js"></script>
14
- <script src="../../../js/darkfish.js"></script>
15
-
16
- <link href="../../../css/fonts.css" rel="stylesheet">
17
- <link href="../../../css/rdoc.css" rel="stylesheet">
18
-
19
-
20
-
21
- <body id="top" role="document" class="module">
22
- <nav role="navigation">
23
- <div id="project-navigation">
24
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
- <h2>
26
- <a href="../../../index.html" rel="home">Home</a>
27
- </h2>
28
-
29
- <div id="table-of-contents-navigation">
30
- <a href="../../../table_of_contents.html#pages">Pages</a>
31
- <a href="../../../table_of_contents.html#classes">Classes</a>
32
- <a href="../../../table_of_contents.html#methods">Methods</a>
33
- </div>
34
- </div>
35
-
36
- <div id="search-section" role="search" class="project-section initially-hidden">
37
- <form action="#" method="get" accept-charset="utf-8">
38
- <div id="search-field-wrapper">
39
- <input id="search-field" role="combobox" aria-label="Search"
40
- aria-autocomplete="list" aria-controls="search-results"
41
- type="text" name="search" placeholder="Search" spellcheck="false"
42
- title="Type to search, Up and Down to navigate, Enter to load">
43
- </div>
44
-
45
- <ul id="search-results" aria-label="Search Results"
46
- aria-busy="false" aria-expanded="false"
47
- aria-atomic="false" class="initially-hidden"></ul>
48
- </form>
49
- </div>
50
-
51
- </div>
52
-
53
-
54
-
55
- <div id="class-metadata">
56
-
57
-
58
-
59
-
60
- <!-- Method Quickref -->
61
- <div id="method-list-section" class="nav-section">
62
- <h3>Methods</h3>
63
-
64
- <ul class="link-list" role="directory">
65
-
66
- <li ><a href="#method-i-post_init">#post_init</a>
67
-
68
- <li ><a href="#method-i-unbind">#unbind</a>
69
-
70
- </ul>
71
- </div>
72
-
73
- </div>
74
- </nav>
75
-
76
- <main role="main" aria-labelledby="module-Roma::Client::Proxy::RomaHandler">
77
- <h1 id="module-Roma::Client::Proxy::RomaHandler" class="module">
78
- module Roma::Client::Proxy::RomaHandler
79
- </h1>
80
-
81
- <section class="description">
82
-
83
- </section>
84
-
85
-
86
-
87
-
88
- <section id="5Buntitled-5D" class="documentation-section">
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <section class="attribute-method-details" class="method-section">
97
- <header>
98
- <h3>Attributes</h3>
99
- </header>
100
-
101
-
102
- <div id="attribute-i-ap" class="method-detail">
103
- <div class="method-heading attribute-method-heading">
104
- <span class="method-name">ap</span><span
105
- class="attribute-access-type">[RW]</span>
106
- </div>
107
-
108
- <div class="method-description">
109
-
110
-
111
-
112
- </div>
113
- </div>
114
-
115
- <div id="attribute-i-connected" class="method-detail">
116
- <div class="method-heading attribute-method-heading">
117
- <span class="method-name">connected</span><span
118
- class="attribute-access-type">[R]</span>
119
- </div>
120
-
121
- <div class="method-description">
122
-
123
-
124
-
125
- </div>
126
- </div>
127
-
128
- </section>
129
-
130
-
131
-
132
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
133
- <header>
134
- <h3>Public Instance Methods</h3>
135
- </header>
136
-
137
-
138
- <div id="method-i-post_init" class="method-detail ">
139
-
140
- <div class="method-heading">
141
- <span class="method-name">post_init</span><span
142
- class="method-args">()</span>
143
-
144
- <span class="method-click-advice">click to toggle source</span>
145
-
146
- </div>
147
-
148
-
149
- <div class="method-description">
150
-
151
-
152
-
153
-
154
-
155
-
156
- <div class="method-source-code" id="post_init-source">
157
- <pre><span class="ruby-comment"># File lib/roma/client/proxy/daemon.rb, line 21</span>
158
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">post_init</span>
159
- <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">&quot;Connected to roma&quot;</span>)
160
- <span class="ruby-ivar">@connected</span> = <span class="ruby-keyword">true</span>
161
- <span class="ruby-keyword">end</span></pre>
162
- </div>
163
-
164
- </div>
165
-
166
-
167
-
168
-
169
- </div>
170
-
171
-
172
- <div id="method-i-unbind" class="method-detail ">
173
-
174
- <div class="method-heading">
175
- <span class="method-name">unbind</span><span
176
- class="method-args">()</span>
177
-
178
- <span class="method-click-advice">click to toggle source</span>
179
-
180
- </div>
181
-
182
-
183
- <div class="method-description">
184
-
185
-
186
-
187
-
188
-
189
-
190
- <div class="method-source-code" id="unbind-source">
191
- <pre><span class="ruby-comment"># File lib/roma/client/proxy/daemon.rb, line 26</span>
192
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">unbind</span>
193
- <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">&quot;Disconnected from roma&quot;</span>)
194
- <span class="ruby-ivar">@connected</span> = <span class="ruby-keyword">nil</span>
195
- <span class="ruby-keyword">end</span></pre>
196
- </div>
197
-
198
- </div>
199
-
200
-
201
-
202
-
203
- </div>
204
-
205
-
206
- </section>
207
-
208
- </section>
209
- </main>
210
-
211
-
212
- <footer id="validator-badges" role="contentinfo">
213
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
214
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
215
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
216
- </footer>
217
-