triglav-agent 1.0.0.pre2 → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/docs/Triglav.html +1 -1
  4. data/docs/Triglav/Agent.html +2 -2
  5. data/docs/Triglav/Agent/ApiClient.html +82 -20
  6. data/docs/Triglav/Agent/ApiClient/AuthenticationError.html +1 -1
  7. data/docs/Triglav/Agent/ApiClient/ConnectionError.html +1 -1
  8. data/docs/Triglav/Agent/ApiClient/Error.html +1 -1
  9. data/docs/Triglav/Agent/Base.html +1 -1
  10. data/docs/Triglav/Agent/Base/CLI.html +21 -19
  11. data/docs/Triglav/Agent/Base/Connection.html +92 -6
  12. data/docs/Triglav/Agent/Base/Monitor.html +1 -1
  13. data/docs/Triglav/Agent/Base/Processor.html +22 -30
  14. data/docs/Triglav/Agent/Base/Setting.html +65 -63
  15. data/docs/Triglav/Agent/Base/Worker.html +1 -1
  16. data/docs/Triglav/Agent/Configuration.html +1 -1
  17. data/docs/Triglav/Agent/Error.html +1 -1
  18. data/docs/Triglav/Agent/HashUtil.html +1 -1
  19. data/docs/Triglav/Agent/LogFormatter.html +1 -1
  20. data/docs/Triglav/Agent/Logger.html +1 -1
  21. data/docs/Triglav/Agent/StorageFile.html +1 -1
  22. data/docs/Triglav/Agent/Timer.html +1 -1
  23. data/docs/Triglav/Agent/TooManyError.html +1 -1
  24. data/docs/_index.html +1 -1
  25. data/docs/file.LICENSE.html +2 -2
  26. data/docs/file.README.html +1 -1
  27. data/docs/index.html +1 -1
  28. data/docs/method_list.html +50 -34
  29. data/docs/top-level-namespace.html +1 -1
  30. data/lib/triglav/agent.rb +1 -0
  31. data/lib/triglav/agent/base/cli.rb +4 -2
  32. data/lib/triglav/agent/base/processor.rb +4 -1
  33. data/lib/triglav/agent/base/setting.rb +4 -2
  34. data/lib/triglav/agent/base/worker.rb +7 -0
  35. data/lib/triglav/agent/status.rb +68 -0
  36. data/lib/triglav/agent/storage_file.rb +20 -0
  37. data/lib/triglav/agent/version.rb +1 -1
  38. data/triglav-agent.gemspec +2 -2
  39. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9c8497478c30bab836963959fcf1421dd29636f
4
- data.tar.gz: bdeb425a24166e46ab9a5d3d3dc32f6bbc9f64b0
3
+ metadata.gz: b13088ed4e0e19144e7907f2c18d132e37ddef5b
4
+ data.tar.gz: 22a9df36a25ed72389165559c60cf394d876931d
5
5
  SHA512:
6
- metadata.gz: 44dde53afed7799a462955cb40447049eda0c729b9b667466f9cc9f80e7abee92e7db2920a43561a1e2fa24c021ca3c64d4a4d7b45143f730541067393c7b90a
7
- data.tar.gz: 77ac7e13d7325623f1f5c81761fd8f2a96cb67c0c4470f54418ced18c21f1f3b9e35580eb851f6ed61ef0f6b2fac64d79f7836b3e0e1326e0dd9a4c3ef24f311
6
+ metadata.gz: b1d23bc00f28fb902f7d5f15006cf3a5f8ebaca15a22422046c1416afefc139bab1eeb8b3bbc586e299f72cf5a261ecc11b7a4d7d11f055b32eeb4a30e84cb73
7
+ data.tar.gz: dadf99fb5f63cff7d2fec55d7b7d8e1f182065a6a48c5761addf93950bfbbc0f857d0a4ba9f3e4e18c8495346062c92ed6a1e300f278929622111846c32e4e46
data/README.md CHANGED
@@ -46,7 +46,7 @@ bundle exec rake release
46
46
  ### Generate yardoc
47
47
 
48
48
  ```
49
- bundle exec rake yard
49
+ bundle exec yard
50
50
  ```
51
51
 
52
52
  ## Contributing
data/docs/Triglav.html CHANGED
@@ -109,7 +109,7 @@
109
109
  </div>
110
110
 
111
111
  <div id="footer">
112
- Generated on Thu Feb 23 23:20:33 2017 by
112
+ Generated on Wed Mar 8 23:12:38 2017 by
113
113
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
114
114
  0.9.5 (ruby-2.3.2).
115
115
  </div>
@@ -106,7 +106,7 @@
106
106
  <dt id="VERSION-constant" class="">VERSION =
107
107
 
108
108
  </dt>
109
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
109
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.0.0.pre2</span><span class='tstring_end'>&quot;</span></span></pre></dd>
110
110
 
111
111
  </dl>
112
112
 
@@ -121,7 +121,7 @@
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Thu Feb 23 23:20:33 2017 by
124
+ Generated on Wed Mar 8 23:12:38 2017 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.9.5 (ruby-2.3.2).
127
127
  </div>
@@ -168,6 +168,28 @@ $setting.token_file.</p>
168
168
 
169
169
 
170
170
 
171
+ <span class="summary_desc"><div class='inline'></div></span>
172
+
173
+ </li>
174
+
175
+
176
+ <li class="public ">
177
+ <span class="summary_signature">
178
+
179
+ <a href="#close-instance_method" title="#close (instance method)">#<strong>close</strong> &#x21d2; Object </a>
180
+
181
+
182
+
183
+ </span>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
171
193
  <span class="summary_desc"><div class='inline'></div></span>
172
194
 
173
195
  </li>
@@ -291,7 +313,12 @@ $setting.token_file.</p>
291
313
  40
292
314
  41
293
315
  42
294
- 43</pre>
316
+ 43
317
+ 44
318
+ 45
319
+ 46
320
+ 47
321
+ 48</pre>
295
322
  </td>
296
323
  <td>
297
324
  <pre class="code"><span class="info file"># File 'lib/triglav/agent/api_client.rb', line 31</span>
@@ -302,8 +329,13 @@ $setting.token_file.</p>
302
329
  <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_triglav_url'>triglav_url</span><span class='rparen'>)</span>
303
330
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_scheme'>scheme</span> <span class='op'>=</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_scheme'>scheme</span>
304
331
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
305
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span> <span class='kw'>if</span> <span class='id identifier rubyid_timeout'>timeout</span>
306
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_debugging'>debugging</span> <span class='op'>=</span> <span class='id identifier rubyid_debugging'>debugging</span> <span class='kw'>if</span> <span class='id identifier rubyid_debugging'>debugging</span>
332
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span> <span class='kw'>unless</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
333
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_debugging'>debugging</span> <span class='op'>=</span> <span class='id identifier rubyid_debugging'>debugging</span> <span class='kw'>unless</span> <span class='id identifier rubyid_debugging'>debugging</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
334
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_verify_ssl'>verify_ssl</span> <span class='op'>=</span> <span class='id identifier rubyid_verify_ssl'>verify_ssl</span> <span class='kw'>unless</span> <span class='id identifier rubyid_verify_ssl'>verify_ssl</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
335
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_verify_ssl_host'>verify_ssl_host</span> <span class='op'>=</span> <span class='id identifier rubyid_verify_ssl_host'>verify_ssl_host</span> <span class='kw'>unless</span> <span class='id identifier rubyid_verify_ssl_host'>verify_ssl_host</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
336
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_ssl_ca_cert'>ssl_ca_cert</span> <span class='op'>=</span> <span class='id identifier rubyid_ssl_ca_cert'>ssl_ca_cert</span> <span class='kw'>unless</span> <span class='id identifier rubyid_ssl_ca_cert'>ssl_ca_cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
337
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_cert_file'>cert_file</span> <span class='op'>=</span> <span class='id identifier rubyid_cert_file'>cert_file</span> <span class='kw'>unless</span> <span class='id identifier rubyid_cert_file'>cert_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
338
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_key_file'>key_file</span> <span class='op'>=</span> <span class='id identifier rubyid_key_file'>key_file</span> <span class='kw'>unless</span> <span class='id identifier rubyid_key_file'>key_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
307
339
  <span class='kw'>end</span>
308
340
  <span class='ivar'>@api_client</span> <span class='op'>=</span> <span class='const'>TriglavClient</span><span class='op'>::</span><span class='const'>ApiClient</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='rparen'>)</span>
309
341
  <span class='id identifier rubyid_initialize_current_token'>initialize_current_token</span>
@@ -358,12 +390,12 @@ $setting.token_file.</p>
358
390
  <pre class="lines">
359
391
 
360
392
 
361
- 66
362
- 67
363
- 68</pre>
393
+ 75
394
+ 76
395
+ 77</pre>
364
396
  </td>
365
397
  <td>
366
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/api_client.rb', line 66</span>
398
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/api_client.rb', line 75</span>
367
399
 
368
400
  <span class='kw'>def</span> <span class='id identifier rubyid_authorized?'>authorized?</span>
369
401
  <span class='ivar'>@current_token</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:access_token</span><span class='rparen'>)</span>
@@ -371,6 +403,36 @@ $setting.token_file.</p>
371
403
  </td>
372
404
  </tr>
373
405
  </table>
406
+ </div>
407
+
408
+ <div class="method_details ">
409
+ <h3 class="signature " id="close-instance_method">
410
+
411
+ #<strong>close</strong> &#x21d2; <tt>Object</tt>
412
+
413
+
414
+
415
+
416
+
417
+ </h3><table class="source_code">
418
+ <tr>
419
+ <td>
420
+ <pre class="lines">
421
+
422
+
423
+ 50
424
+ 51
425
+ 52</pre>
426
+ </td>
427
+ <td>
428
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/api_client.rb', line 50</span>
429
+
430
+ <span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
431
+ <span class='comment'># typhoeus makes a new connection and disconnects it on each request
432
+ </span><span class='kw'>end</span></pre>
433
+ </td>
434
+ </tr>
435
+ </table>
374
436
  </div>
375
437
 
376
438
  <div class="method_details ">
@@ -439,14 +501,14 @@ $setting.token_file.</p>
439
501
  <pre class="lines">
440
502
 
441
503
 
442
- 50
443
- 51
444
- 52
445
- 53
446
- 54</pre>
504
+ 59
505
+ 60
506
+ 61
507
+ 62
508
+ 63</pre>
447
509
  </td>
448
510
  <td>
449
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/api_client.rb', line 50</span>
511
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/api_client.rb', line 59</span>
450
512
 
451
513
  <span class='kw'>def</span> <span class='id identifier rubyid_list_aggregated_resources'>list_aggregated_resources</span><span class='lparen'>(</span><span class='id identifier rubyid_uri_prefix'>uri_prefix</span><span class='rparen'>)</span>
452
514
  <span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ApiClient#list_aggregated_resources(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_uri_prefix'>uri_prefix</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
@@ -511,14 +573,14 @@ $setting.token_file.</p>
511
573
  <pre class="lines">
512
574
 
513
575
 
514
- 60
515
- 61
516
- 62
517
- 63
518
- 64</pre>
576
+ 69
577
+ 70
578
+ 71
579
+ 72
580
+ 73</pre>
519
581
  </td>
520
582
  <td>
521
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/api_client.rb', line 60</span>
583
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/api_client.rb', line 69</span>
522
584
 
523
585
  <span class='kw'>def</span> <span class='id identifier rubyid_send_messages'>send_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_events'>events</span><span class='rparen'>)</span>
524
586
  <span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ApiClient#send_messages(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_events'>events</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
@@ -535,7 +597,7 @@ $setting.token_file.</p>
535
597
  </div>
536
598
 
537
599
  <div id="footer">
538
- Generated on Thu Feb 23 23:20:33 2017 by
600
+ Generated on Wed Mar 8 23:12:39 2017 by
539
601
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
540
602
  0.9.5 (ruby-2.3.2).
541
603
  </div>
@@ -140,7 +140,7 @@
140
140
  </div>
141
141
 
142
142
  <div id="footer">
143
- Generated on Thu Feb 23 23:20:33 2017 by
143
+ Generated on Wed Mar 8 23:12:39 2017 by
144
144
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
145
145
  0.9.5 (ruby-2.3.2).
146
146
  </div>
@@ -140,7 +140,7 @@
140
140
  </div>
141
141
 
142
142
  <div id="footer">
143
- Generated on Thu Feb 23 23:20:33 2017 by
143
+ Generated on Wed Mar 8 23:12:39 2017 by
144
144
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
145
145
  0.9.5 (ruby-2.3.2).
146
146
  </div>
@@ -286,7 +286,7 @@
286
286
  </div>
287
287
 
288
288
  <div id="footer">
289
- Generated on Thu Feb 23 23:20:33 2017 by
289
+ Generated on Wed Mar 8 23:12:39 2017 by
290
290
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
291
291
  0.9.5 (ruby-2.3.2).
292
292
  </div>
@@ -111,7 +111,7 @@
111
111
  </div>
112
112
 
113
113
  <div id="footer">
114
- Generated on Thu Feb 23 23:20:33 2017 by
114
+ Generated on Wed Mar 8 23:12:38 2017 by
115
115
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
116
  0.9.5 (ruby-2.3.2).
117
117
  </div>
@@ -106,8 +106,10 @@
106
106
 
107
107
  <p>A base class for cli option parser</p>
108
108
 
109
- <p>This base class usually should be enough for agent plugins, but you can
110
- override this class and configure with Configuration#cli_classe=</p>
109
+ <p>You usually do not need to customize this class, but if you want to
110
+ implement your original, configure</p>
111
+
112
+ <pre class="code ruby"><code class="ruby">Triglav::Agent::Configuration.cli_class =</code></pre>
111
113
 
112
114
 
113
115
  </div>
@@ -242,16 +244,16 @@ override this class and configure with Configuration#cli_classe=</p>
242
244
  <pre class="lines">
243
245
 
244
246
 
245
- 23
246
- 24
247
247
  25
248
248
  26
249
249
  27
250
250
  28
251
- 29</pre>
251
+ 29
252
+ 30
253
+ 31</pre>
252
254
  </td>
253
255
  <td>
254
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/cli.rb', line 23</span>
256
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/cli.rb', line 25</span>
255
257
 
256
258
  <span class='kw'>def</span> <span class='id identifier rubyid_default_opts'>default_opts</span>
257
259
  <span class='lbrace'>{</span>
@@ -280,8 +282,6 @@ override this class and configure with Configuration#cli_classe=</p>
280
282
  <pre class="lines">
281
283
 
282
284
 
283
- 31
284
- 32
285
285
  33
286
286
  34
287
287
  35
@@ -320,10 +320,12 @@ override this class and configure with Configuration#cli_classe=</p>
320
320
  68
321
321
  69
322
322
  70
323
- 71</pre>
323
+ 71
324
+ 72
325
+ 73</pre>
324
326
  </td>
325
327
  <td>
326
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/cli.rb', line 31</span>
328
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/cli.rb', line 33</span>
327
329
 
328
330
  <span class='kw'>def</span> <span class='id identifier rubyid_option_parser'>option_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
329
331
  <span class='id identifier rubyid_op'>op</span> <span class='op'>=</span> <span class='const'>OptionParser</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
@@ -386,8 +388,6 @@ override this class and configure with Configuration#cli_classe=</p>
386
388
  <pre class="lines">
387
389
 
388
390
 
389
- 73
390
- 74
391
391
  75
392
392
  76
393
393
  77
@@ -408,10 +408,12 @@ override this class and configure with Configuration#cli_classe=</p>
408
408
  92
409
409
  93
410
410
  94
411
- 95</pre>
411
+ 95
412
+ 96
413
+ 97</pre>
412
414
  </td>
413
415
  <td>
414
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/cli.rb', line 73</span>
416
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/cli.rb', line 75</span>
415
417
 
416
418
  <span class='kw'>def</span> <span class='id identifier rubyid_parse_options'>parse_options</span><span class='lparen'>(</span><span class='id identifier rubyid_argv'>argv</span> <span class='op'>=</span> <span class='const'>ARGV</span><span class='rparen'>)</span>
417
419
  <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='id identifier rubyid_default_opts'>default_opts</span>
@@ -456,18 +458,18 @@ override this class and configure with Configuration#cli_classe=</p>
456
458
  <pre class="lines">
457
459
 
458
460
 
459
- 13
460
- 14
461
461
  15
462
462
  16
463
463
  17
464
464
  18
465
465
  19
466
466
  20
467
- 21</pre>
467
+ 21
468
+ 22
469
+ 23</pre>
468
470
  </td>
469
471
  <td>
470
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/cli.rb', line 13</span>
472
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/cli.rb', line 15</span>
471
473
 
472
474
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
473
475
  <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='id identifier rubyid__'>_</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_options'>parse_options</span><span class='lparen'>(</span><span class='const'>ARGV</span><span class='rparen'>)</span>
@@ -488,7 +490,7 @@ override this class and configure with Configuration#cli_classe=</p>
488
490
  </div>
489
491
 
490
492
  <div id="footer">
491
- Generated on Thu Feb 23 23:20:33 2017 by
493
+ Generated on Wed Mar 8 23:12:38 2017 by
492
494
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
493
495
  0.9.5 (ruby-2.3.2).
494
496
  </div>
@@ -112,13 +112,15 @@ want to use in your Monitor class.</p>
112
112
  <p>You have to implement following methods:</p>
113
113
  <ul><li>
114
114
  <p>initialize</p>
115
+ </li><li>
116
+ <p>close</p>
115
117
  </li></ul>
116
118
 
117
119
  <p>An instance is created for each `resource_uri_prefix`, that is, shared
118
120
  among resources with of same `resource_uri_prefix`.</p>
119
121
 
120
- <p>Note that multiple connections would be created, one connection for one
121
- parallel thread basically.</p>
122
+ <p>Note that multiple connection instances would be created when multiple
123
+ parallel threads are created in Processor class.</p>
122
124
 
123
125
 
124
126
  </div>
@@ -144,6 +146,30 @@ parallel thread basically.</p>
144
146
  <li class="public ">
145
147
  <span class="summary_signature">
146
148
 
149
+ <a href="#close-instance_method" title="#close (instance method)">#<strong>close</strong> &#x21d2; Object </a>
150
+
151
+
152
+
153
+ </span>
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'>
164
+ <p>close the connection.</p>
165
+ </div></span>
166
+
167
+ </li>
168
+
169
+
170
+ <li class="public ">
171
+ <span class="summary_signature">
172
+
147
173
  <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(connection_info) &#x21d2; Connection </a>
148
174
 
149
175
 
@@ -227,12 +253,12 @@ parallel thread basically.</p>
227
253
  <pre class="lines">
228
254
 
229
255
 
230
- 19
231
256
  20
232
- 21</pre>
257
+ 21
258
+ 22</pre>
233
259
  </td>
234
260
  <td>
235
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/connection.rb', line 19</span>
261
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/connection.rb', line 20</span>
236
262
 
237
263
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_connection_info'>connection_info</span><span class='rparen'>)</span>
238
264
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span>
@@ -245,10 +271,70 @@ parallel thread basically.</p>
245
271
  </div>
246
272
 
247
273
 
274
+ <div id="instance_method_details" class="method_details_list">
275
+ <h2>Instance Method Details</h2>
276
+
277
+
278
+ <div class="method_details first">
279
+ <h3 class="signature first" id="close-instance_method">
280
+
281
+ #<strong>close</strong> &#x21d2; <tt>Object</tt>
282
+
283
+
284
+
285
+
286
+
287
+ </h3><div class="docstring">
288
+ <div class="discussion">
289
+
290
+ <p>close the connection</p>
291
+
292
+
293
+ </div>
294
+ </div>
295
+ <div class="tags">
296
+
297
+ <p class="tag_title">Raises:</p>
298
+ <ul class="raise">
299
+
300
+ <li>
301
+
302
+
303
+ <span class='type'>(<tt>NotImplementedError</tt>)</span>
304
+
305
+
306
+
307
+ </li>
308
+
309
+ </ul>
310
+
311
+ </div><table class="source_code">
312
+ <tr>
313
+ <td>
314
+ <pre class="lines">
315
+
316
+
317
+ 25
318
+ 26
319
+ 27</pre>
320
+ </td>
321
+ <td>
322
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/base/connection.rb', line 25</span>
323
+
324
+ <span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
325
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span>
326
+ <span class='kw'>end</span></pre>
327
+ </td>
328
+ </tr>
329
+ </table>
330
+ </div>
331
+
332
+ </div>
333
+
248
334
  </div>
249
335
 
250
336
  <div id="footer">
251
- Generated on Thu Feb 23 23:20:34 2017 by
337
+ Generated on Wed Mar 8 23:12:39 2017 by
252
338
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
253
339
  0.9.5 (ruby-2.3.2).
254
340
  </div>