roma-client 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/{CHANGELOG → CHANGELOG.md} +8 -5
  3. data/Gemfile.lock +23 -15
  4. data/README.md +62 -0
  5. data/Rakefile +3 -3
  6. data/doc/CHANGELOG_md.html +119 -0
  7. data/doc/README_md.html +161 -0
  8. data/doc/Roma/Client/ClientPool.html +716 -0
  9. data/doc/Roma/Client/ClientRoutingTable.html +495 -0
  10. data/doc/Roma/Client/ConPool.html +484 -0
  11. data/doc/Roma/Client/Plugin/Alist.html +1276 -0
  12. data/doc/Roma/Client/Plugin/Map.html +531 -0
  13. data/doc/Roma/Client/Plugin/MapCount.html +401 -0
  14. data/doc/Roma/Client/Plugin.html +95 -0
  15. data/doc/Roma/Client/Proxy/ClientHandler.html +273 -0
  16. data/doc/Roma/Client/Proxy/Conpool.html +394 -0
  17. data/doc/Roma/Client/Proxy/Daemon.html +305 -0
  18. data/doc/Roma/Client/Proxy/RomaHandler.html +217 -0
  19. data/doc/Roma/Client/Proxy.html +95 -0
  20. data/doc/Roma/Client/RomaClient.html +1339 -0
  21. data/doc/Roma/Client/Sender.html +482 -0
  22. data/doc/Roma/Client/Stats.html +162 -0
  23. data/doc/Roma/Client/VERSION.html +141 -0
  24. data/doc/Roma/Client.html +95 -0
  25. data/doc/Roma/Logging/RLogger/ExtLogDev.html +159 -0
  26. data/doc/Roma/Logging/RLogger/ExtShiftAge.html +95 -0
  27. data/doc/Roma/Logging/RLogger/ExtTrace.html +109 -0
  28. data/doc/Roma/Logging/RLogger/Severity.html +139 -0
  29. data/doc/Roma/Logging/RLogger.html +786 -0
  30. data/doc/Roma/Logging.html +95 -0
  31. data/doc/Roma/Routing/RoutingData/RandomNodeListMaker.html +311 -0
  32. data/doc/Roma/Routing/RoutingData.html +912 -0
  33. data/doc/Roma/Routing.html +95 -0
  34. data/doc/Roma.html +95 -0
  35. data/doc/created.rid +20 -0
  36. data/doc/css/fonts.css +167 -0
  37. data/doc/css/rdoc.css +590 -0
  38. data/doc/fonts/Lato-Light.ttf +0 -0
  39. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  40. data/doc/fonts/Lato-Regular.ttf +0 -0
  41. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  42. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  43. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  44. data/doc/images/add.png +0 -0
  45. data/doc/images/arrow_up.png +0 -0
  46. data/doc/images/brick.png +0 -0
  47. data/doc/images/brick_link.png +0 -0
  48. data/doc/images/bug.png +0 -0
  49. data/doc/images/bullet_black.png +0 -0
  50. data/doc/images/bullet_toggle_minus.png +0 -0
  51. data/doc/images/bullet_toggle_plus.png +0 -0
  52. data/doc/images/date.png +0 -0
  53. data/doc/images/delete.png +0 -0
  54. data/doc/images/find.png +0 -0
  55. data/doc/images/loadingAnimation.gif +0 -0
  56. data/doc/images/macFFBgHack.png +0 -0
  57. data/doc/images/package.png +0 -0
  58. data/doc/images/page_green.png +0 -0
  59. data/doc/images/page_white_text.png +0 -0
  60. data/doc/images/page_white_width.png +0 -0
  61. data/doc/images/plugin.png +0 -0
  62. data/doc/images/ruby.png +0 -0
  63. data/doc/images/tag_blue.png +0 -0
  64. data/doc/images/tag_green.png +0 -0
  65. data/doc/images/transparent.png +0 -0
  66. data/doc/images/wrench.png +0 -0
  67. data/doc/images/wrench_orange.png +0 -0
  68. data/doc/images/zoom.png +0 -0
  69. data/doc/index.html +210 -0
  70. data/doc/js/darkfish.js +161 -0
  71. data/doc/js/jquery.js +4 -0
  72. data/doc/js/navigation.js +142 -0
  73. data/doc/js/navigation.js.gz +0 -0
  74. data/doc/js/search.js +109 -0
  75. data/doc/js/search_index.js +1 -0
  76. data/doc/js/search_index.js.gz +0 -0
  77. data/doc/js/searcher.js +228 -0
  78. data/doc/js/searcher.js.gz +0 -0
  79. data/doc/table_of_contents.html +972 -0
  80. data/lib/roma/client/rclient.rb +2 -1
  81. data/lib/roma/client/sender.rb +2 -2
  82. data/lib/roma/client/version.rb +1 -1
  83. data/lib/roma/client.rb +0 -21
  84. metadata +84 -10
  85. data/README +0 -17
@@ -0,0 +1,716 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset=" UTF-8">
6
+
7
+ <title>class Roma::Client::ClientPool - 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-client_pools">::client_pools</a>
74
+
75
+ <li ><a href="#method-c-instance">::instance</a>
76
+
77
+ <li ><a href="#method-c-new">::new</a>
78
+
79
+ <li ><a href="#method-c-release_all">::release_all</a>
80
+
81
+ <li ><a href="#method-i-add_plugin_module">#add_plugin_module</a>
82
+
83
+ <li ><a href="#method-i-client">#client</a>
84
+
85
+ <li ><a href="#method-i-clients">#clients</a>
86
+
87
+ <li ><a href="#method-i-max_pool_size">#max_pool_size</a>
88
+
89
+ <li ><a href="#method-i-max_pool_size-3D">#max_pool_size=</a>
90
+
91
+ <li ><a href="#method-i-plugin_modules">#plugin_modules</a>
92
+
93
+ <li ><a href="#method-i-plugin_modules-3D">#plugin_modules=</a>
94
+
95
+ <li ><a href="#method-i-pool_count">#pool_count</a>
96
+
97
+ <li ><a href="#method-i-push_client">#push_client</a>
98
+
99
+ <li ><a href="#method-i-release">#release</a>
100
+
101
+ </ul>
102
+ </div>
103
+
104
+ </div>
105
+ </nav>
106
+
107
+ <main role="main" aria-labelledby="class-Roma::Client::ClientPool">
108
+ <h1 id="class-Roma::Client::ClientPool" class="class">
109
+ class Roma::Client::ClientPool
110
+ </h1>
111
+
112
+ <section class="description">
113
+
114
+ <p><a href="RomaClient.html">RomaClient</a> Pool class</p>
115
+
116
+ <p>This class is implemented as Singleton. You can get <a
117
+ href="RomaClient.html">RomaClient</a> as follows.</p>
118
+
119
+ <pre class="ruby"><span class="ruby-identifier">client</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">ClientPool</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">client</span>
120
+ </pre>
121
+
122
+ <p>You can change pool size of <a href="RomaClient.html">RomaClient</a> to
123
+ call “max_pool_size=” method . Default max pool size is 1.</p>
124
+
125
+ </section>
126
+
127
+
128
+
129
+
130
+ <section id="5Buntitled-5D" class="documentation-section">
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <section class="attribute-method-details" class="method-section">
139
+ <header>
140
+ <h3>Attributes</h3>
141
+ </header>
142
+
143
+
144
+ <div id="attribute-i-default_hash_name" class="method-detail">
145
+ <div class="method-heading attribute-method-heading">
146
+ <span class="method-name">default_hash_name</span><span
147
+ class="attribute-access-type">[RW]</span>
148
+ </div>
149
+
150
+ <div class="method-description">
151
+
152
+
153
+
154
+ </div>
155
+ </div>
156
+
157
+ <div id="attribute-i-servers" class="method-detail">
158
+ <div class="method-heading attribute-method-heading">
159
+ <span class="method-name">servers</span><span
160
+ class="attribute-access-type">[RW]</span>
161
+ </div>
162
+
163
+ <div class="method-description">
164
+
165
+
166
+
167
+ </div>
168
+ </div>
169
+
170
+ <div id="attribute-i-start_sync_routing_proc" class="method-detail">
171
+ <div class="method-heading attribute-method-heading">
172
+ <span class="method-name">start_sync_routing_proc</span><span
173
+ class="attribute-access-type">[RW]</span>
174
+ </div>
175
+
176
+ <div class="method-description">
177
+
178
+
179
+
180
+ </div>
181
+ </div>
182
+
183
+ </section>
184
+
185
+
186
+
187
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
188
+ <header>
189
+ <h3>Public Class Methods</h3>
190
+ </header>
191
+
192
+
193
+ <div id="method-c-client_pools" class="method-detail ">
194
+
195
+ <div class="method-heading">
196
+ <span class="method-name">client_pools</span><span
197
+ class="method-args">()</span>
198
+
199
+ <span class="method-click-advice">click to toggle source</span>
200
+
201
+ </div>
202
+
203
+
204
+ <div class="method-description">
205
+
206
+ <p>get all pool</p>
207
+
208
+
209
+
210
+
211
+ <div class="method-source-code" id="client_pools-source">
212
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 31</span>
213
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">client_pools</span>
214
+ <span class="ruby-identifier">@@client_pools</span>
215
+ <span class="ruby-keyword">end</span></pre>
216
+ </div>
217
+
218
+ </div>
219
+
220
+
221
+
222
+
223
+ </div>
224
+
225
+
226
+ <div id="method-c-instance" class="method-detail ">
227
+
228
+ <div class="method-heading">
229
+ <span class="method-name">instance</span><span
230
+ class="method-args">(type = :default)</span>
231
+
232
+ <span class="method-click-advice">click to toggle source</span>
233
+
234
+ </div>
235
+
236
+
237
+ <div class="method-description">
238
+
239
+ <p>get <a href="ClientPool.html">ClientPool</a> instance</p>
240
+ <dl class="rdoc-list note-list"><dt>type
241
+ <dd>
242
+ <p>identifier for client groups.</p>
243
+ </dd></dl>
244
+
245
+
246
+
247
+
248
+ <div class="method-source-code" id="instance-source">
249
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 25</span>
250
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance</span>(<span class="ruby-identifier">type</span> = <span class="ruby-value">:default</span>)
251
+ <span class="ruby-identifier">@@client_pools</span>[<span class="ruby-identifier">type</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">new</span>
252
+ <span class="ruby-identifier">@@client_pools</span>[<span class="ruby-identifier">type</span>]
253
+ <span class="ruby-keyword">end</span></pre>
254
+ </div>
255
+
256
+ </div>
257
+
258
+
259
+
260
+
261
+ </div>
262
+
263
+
264
+ <div id="method-c-new" class="method-detail ">
265
+
266
+ <div class="method-heading">
267
+ <span class="method-name">new</span><span
268
+ class="method-args">()</span>
269
+
270
+ <span class="method-click-advice">click to toggle source</span>
271
+
272
+ </div>
273
+
274
+
275
+ <div class="method-description">
276
+
277
+
278
+
279
+
280
+
281
+
282
+ <div class="method-source-code" id="new-source">
283
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 120</span>
284
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
285
+ <span class="ruby-ivar">@max_pool_size</span> = <span class="ruby-value">1</span>
286
+ <span class="ruby-ivar">@clients</span> = []
287
+ <span class="ruby-ivar">@plugin_modules</span> = <span class="ruby-keyword">nil</span>
288
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">servers</span> = <span class="ruby-keyword">nil</span>
289
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">default_hash_name</span> = <span class="ruby-string">&#39;roma&#39;</span>
290
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">start_sync_routing_proc</span> = <span class="ruby-keyword">true</span>
291
+ <span class="ruby-keyword">end</span></pre>
292
+ </div>
293
+
294
+ </div>
295
+
296
+
297
+
298
+
299
+ </div>
300
+
301
+
302
+ <div id="method-c-release_all" class="method-detail ">
303
+
304
+ <div class="method-heading">
305
+ <span class="method-name">release_all</span><span
306
+ class="method-args">()</span>
307
+
308
+ <span class="method-click-advice">click to toggle source</span>
309
+
310
+ </div>
311
+
312
+
313
+ <div class="method-description">
314
+
315
+ <p>release all pool</p>
316
+
317
+
318
+
319
+
320
+ <div class="method-source-code" id="release_all-source">
321
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 36</span>
322
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">release_all</span>
323
+ <span class="ruby-identifier">@@client_pools</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
324
+ <span class="ruby-identifier">v</span>.<span class="ruby-identifier">release</span>
325
+ <span class="ruby-keyword">end</span>
326
+ <span class="ruby-keyword">end</span></pre>
327
+ </div>
328
+
329
+ </div>
330
+
331
+
332
+
333
+
334
+ </div>
335
+
336
+
337
+ </section>
338
+
339
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
340
+ <header>
341
+ <h3>Public Instance Methods</h3>
342
+ </header>
343
+
344
+
345
+ <div id="method-i-add_plugin_module" class="method-detail ">
346
+
347
+ <div class="method-heading">
348
+ <span class="method-name">add_plugin_module</span><span
349
+ class="method-args">(m)</span>
350
+
351
+ <span class="method-click-advice">click to toggle source</span>
352
+
353
+ </div>
354
+
355
+
356
+ <div class="method-description">
357
+
358
+ <p>add plugin module</p>
359
+
360
+
361
+
362
+
363
+ <div class="method-source-code" id="add_plugin_module-source">
364
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 106</span>
365
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">add_plugin_module</span>(<span class="ruby-identifier">m</span>)
366
+ <span class="ruby-ivar">@plugin_modules</span> <span class="ruby-operator">||=</span> []
367
+ <span class="ruby-ivar">@plugin_modules</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">m</span>)
368
+ <span class="ruby-keyword">end</span></pre>
369
+ </div>
370
+
371
+ </div>
372
+
373
+
374
+
375
+
376
+ </div>
377
+
378
+
379
+ <div id="method-i-client" class="method-detail ">
380
+
381
+ <div class="method-heading">
382
+ <span class="method-name">client</span><span
383
+ class="method-args">() { |c| ... }</span>
384
+
385
+ <span class="method-click-advice">click to toggle source</span>
386
+
387
+ </div>
388
+
389
+
390
+ <div class="method-description">
391
+
392
+ <p>get <a href="RomaClient.html">RomaClient</a> instance</p>
393
+ <dl class="rdoc-list note-list"><dt>type
394
+ <dd>
395
+ <p><a href="RomaClient.html">RomaClient</a> instance group.</p>
396
+ </dd><dt>return
397
+ <dd>
398
+ <p><a href="RomaClient.html">RomaClient</a> instance</p>
399
+ </dd></dl>
400
+
401
+
402
+
403
+
404
+ <div class="method-source-code" id="client-source">
405
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 46</span>
406
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">client</span>
407
+ <span class="ruby-identifier">c</span> = <span class="ruby-keyword">nil</span>
408
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@clients</span>.<span class="ruby-identifier">empty?</span>
409
+ <span class="ruby-identifier">client</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">RomaClient</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">servers</span>,
410
+ <span class="ruby-identifier">plugin_modules</span>,
411
+ <span class="ruby-identifier">start_sync_routing_proc</span>)
412
+ <span class="ruby-identifier">client</span>.<span class="ruby-identifier">default_hash_name</span> = <span class="ruby-identifier">default_hash_name</span>
413
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">client</span>
414
+ <span class="ruby-keyword">else</span>
415
+ <span class="ruby-identifier">c</span> = <span class="ruby-ivar">@clients</span>.<span class="ruby-identifier">pop</span>
416
+ <span class="ruby-keyword">end</span>
417
+
418
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">c</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">block_given?</span>
419
+
420
+ <span class="ruby-keyword">begin</span>
421
+ <span class="ruby-keyword">yield</span> <span class="ruby-identifier">c</span>
422
+ <span class="ruby-keyword">ensure</span>
423
+ <span class="ruby-identifier">push_client</span>(<span class="ruby-identifier">c</span>)
424
+ <span class="ruby-keyword">end</span>
425
+ <span class="ruby-keyword">end</span></pre>
426
+ </div>
427
+
428
+ </div>
429
+
430
+
431
+
432
+
433
+ </div>
434
+
435
+
436
+ <div id="method-i-clients" class="method-detail ">
437
+
438
+ <div class="method-heading">
439
+ <span class="method-name">clients</span><span
440
+ class="method-args">()</span>
441
+
442
+ <span class="method-click-advice">click to toggle source</span>
443
+
444
+ </div>
445
+
446
+
447
+ <div class="method-description">
448
+
449
+ <p>get all clients</p>
450
+
451
+
452
+
453
+
454
+ <div class="method-source-code" id="clients-source">
455
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 96</span>
456
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">clients</span>
457
+ <span class="ruby-ivar">@clients</span>
458
+ <span class="ruby-keyword">end</span></pre>
459
+ </div>
460
+
461
+ </div>
462
+
463
+
464
+
465
+
466
+ </div>
467
+
468
+
469
+ <div id="method-i-max_pool_size" class="method-detail ">
470
+
471
+ <div class="method-heading">
472
+ <span class="method-name">max_pool_size</span><span
473
+ class="method-args">()</span>
474
+
475
+ <span class="method-click-advice">click to toggle source</span>
476
+
477
+ </div>
478
+
479
+
480
+ <div class="method-description">
481
+
482
+ <p>get max pool size</p>
483
+
484
+
485
+
486
+
487
+ <div class="method-source-code" id="max_pool_size-source">
488
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 86</span>
489
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">max_pool_size</span>
490
+ <span class="ruby-ivar">@max_pool_size</span>
491
+ <span class="ruby-keyword">end</span></pre>
492
+ </div>
493
+
494
+ </div>
495
+
496
+
497
+
498
+
499
+ </div>
500
+
501
+
502
+ <div id="method-i-max_pool_size-3D" class="method-detail ">
503
+
504
+ <div class="method-heading">
505
+ <span class="method-name">max_pool_size=</span><span
506
+ class="method-args">(count)</span>
507
+
508
+ <span class="method-click-advice">click to toggle source</span>
509
+
510
+ </div>
511
+
512
+
513
+ <div class="method-description">
514
+
515
+ <p>set <a href="ClientPool.html#method-i-max_pool_size">#max_pool_size</a></p>
516
+
517
+
518
+
519
+
520
+ <div class="method-source-code" id="max_pool_size-3D-source">
521
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 91</span>
522
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">max_pool_size=</span>(<span class="ruby-identifier">count</span>)
523
+ <span class="ruby-ivar">@max_pool_size</span> = <span class="ruby-identifier">count</span>
524
+ <span class="ruby-keyword">end</span></pre>
525
+ </div>
526
+
527
+ </div>
528
+
529
+
530
+
531
+
532
+ </div>
533
+
534
+
535
+ <div id="method-i-plugin_modules" class="method-detail ">
536
+
537
+ <div class="method-heading">
538
+ <span class="method-name">plugin_modules</span><span
539
+ class="method-args">()</span>
540
+
541
+ <span class="method-click-advice">click to toggle source</span>
542
+
543
+ </div>
544
+
545
+
546
+ <div class="method-description">
547
+
548
+ <p>get <a href="ClientPool.html#method-i-plugin_modules">#plugin_modules</a></p>
549
+
550
+
551
+
552
+
553
+ <div class="method-source-code" id="plugin_modules-source">
554
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 101</span>
555
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">plugin_modules</span>
556
+ <span class="ruby-ivar">@plugin_modules</span>
557
+ <span class="ruby-keyword">end</span></pre>
558
+ </div>
559
+
560
+ </div>
561
+
562
+
563
+
564
+
565
+ </div>
566
+
567
+
568
+ <div id="method-i-plugin_modules-3D" class="method-detail ">
569
+
570
+ <div class="method-heading">
571
+ <span class="method-name">plugin_modules=</span><span
572
+ class="method-args">(modules)</span>
573
+
574
+ <span class="method-click-advice">click to toggle source</span>
575
+
576
+ </div>
577
+
578
+
579
+ <div class="method-description">
580
+
581
+ <p>set plugin modules</p>
582
+
583
+ <p>You can set class Array.</p>
584
+
585
+
586
+
587
+
588
+ <div class="method-source-code" id="plugin_modules-3D-source">
589
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 114</span>
590
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">plugin_modules=</span>(<span class="ruby-identifier">modules</span>)
591
+ <span class="ruby-ivar">@plugin_modules</span> = <span class="ruby-identifier">modules</span>
592
+ <span class="ruby-keyword">end</span></pre>
593
+ </div>
594
+
595
+ </div>
596
+
597
+
598
+
599
+
600
+ </div>
601
+
602
+
603
+ <div id="method-i-pool_count" class="method-detail ">
604
+
605
+ <div class="method-heading">
606
+ <span class="method-name">pool_count</span><span
607
+ class="method-args">()</span>
608
+
609
+ <span class="method-click-advice">click to toggle source</span>
610
+
611
+ </div>
612
+
613
+
614
+ <div class="method-description">
615
+
616
+ <p>get pool count of clients</p>
617
+
618
+
619
+
620
+
621
+ <div class="method-source-code" id="pool_count-source">
622
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 68</span>
623
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">pool_count</span>
624
+ <span class="ruby-ivar">@clients</span>.<span class="ruby-identifier">size</span>
625
+ <span class="ruby-keyword">end</span></pre>
626
+ </div>
627
+
628
+ </div>
629
+
630
+
631
+
632
+
633
+ </div>
634
+
635
+
636
+ <div id="method-i-push_client" class="method-detail ">
637
+
638
+ <div class="method-heading">
639
+ <span class="method-name">push_client</span><span
640
+ class="method-args">(client)</span>
641
+
642
+ <span class="method-click-advice">click to toggle source</span>
643
+
644
+ </div>
645
+
646
+
647
+ <div class="method-description">
648
+
649
+ <p>push <a href="RomaClient.html">RomaClient</a> instance</p>
650
+
651
+
652
+
653
+
654
+ <div class="method-source-code" id="push_client-source">
655
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 79</span>
656
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">push_client</span>(<span class="ruby-identifier">client</span>)
657
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@clients</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">max_pool_size</span>
658
+ <span class="ruby-ivar">@clients</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">client</span>)
659
+ <span class="ruby-keyword">end</span>
660
+ <span class="ruby-keyword">end</span></pre>
661
+ </div>
662
+
663
+ </div>
664
+
665
+
666
+
667
+
668
+ </div>
669
+
670
+
671
+ <div id="method-i-release" class="method-detail ">
672
+
673
+ <div class="method-heading">
674
+ <span class="method-name">release</span><span
675
+ class="method-args">()</span>
676
+
677
+ <span class="method-click-advice">click to toggle source</span>
678
+
679
+ </div>
680
+
681
+
682
+ <div class="method-description">
683
+
684
+ <p>release all pool clients</p>
685
+
686
+
687
+
688
+
689
+ <div class="method-source-code" id="release-source">
690
+ <pre><span class="ruby-comment"># File lib/roma/client/client_pool.rb, line 73</span>
691
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">release</span>
692
+ <span class="ruby-ivar">@clients</span>.<span class="ruby-identifier">clear</span>
693
+ <span class="ruby-keyword">true</span>
694
+ <span class="ruby-keyword">end</span></pre>
695
+ </div>
696
+
697
+ </div>
698
+
699
+
700
+
701
+
702
+ </div>
703
+
704
+
705
+ </section>
706
+
707
+ </section>
708
+ </main>
709
+
710
+
711
+ <footer id="validator-badges" role="contentinfo">
712
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
713
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
714
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
715
+ </footer>
716
+