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,162 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset=" UTF-8">
6
-
7
- <title>class Roma::Client::Stats - 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">Hash
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
- </ul>
76
- </div>
77
-
78
- </div>
79
- </nav>
80
-
81
- <main role="main" aria-labelledby="class-Roma::Client::Stats">
82
- <h1 id="class-Roma::Client::Stats" class="class">
83
- class Roma::Client::Stats
84
- </h1>
85
-
86
- <section class="description">
87
-
88
- <p>TODO: Implement accessors and return values with correct type Now: <a
89
- href=""routing.redundant"">client.stats</a> #=&gt; “2” Better:
90
- client.stats.routing.redundant #=&gt; 2</p>
91
-
92
- </section>
93
-
94
-
95
-
96
-
97
- <section id="5Buntitled-5D" class="documentation-section">
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
108
- <header>
109
- <h3>Public Class Methods</h3>
110
- </header>
111
-
112
-
113
- <div id="method-c-new" class="method-detail ">
114
-
115
- <div class="method-heading">
116
- <span class="method-name">new</span><span
117
- class="method-args">(stats_str)</span>
118
-
119
- <span class="method-click-advice">click to toggle source</span>
120
-
121
- </div>
122
-
123
-
124
- <div class="method-description">
125
-
126
-
127
-
128
-
129
-
130
-
131
- <div class="method-source-code" id="new-source">
132
- <pre><span class="ruby-comment"># File lib/roma/client/stats.rb, line 7</span>
133
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">stats_str</span>)
134
- <span class="ruby-identifier">stats_str</span>.<span class="ruby-identifier">each_line</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
135
- <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(.+?)\s(.+)/</span>
136
- <span class="ruby-identifier">key</span> = <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">last_match</span>(<span class="ruby-value">1</span>)
137
- <span class="ruby-identifier">value</span> = <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">last_match</span>(<span class="ruby-value">2</span>).<span class="ruby-identifier">chomp</span>
138
- <span class="ruby-keyword">self</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
139
- <span class="ruby-keyword">end</span>
140
- <span class="ruby-keyword">end</span></pre>
141
- </div>
142
-
143
- </div>
144
-
145
-
146
-
147
-
148
- </div>
149
-
150
-
151
- </section>
152
-
153
- </section>
154
- </main>
155
-
156
-
157
- <footer id="validator-badges" role="contentinfo">
158
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
159
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
160
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
161
- </footer>
162
-
@@ -1,141 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset=" UTF-8">
6
-
7
- <title>module Roma::Client::VERSION - 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
- <div class="nav-section">
55
- <h3>Table of Contents</h3>
56
-
57
- <ul class="link-list" role="directory">
58
- <li><a href="#module-Roma::Client::VERSION-label-What+Is+This+Library-3F">What Is This Library?</a>
59
- <li><a href="#module-Roma::Client::VERSION-label-What+Is+This+Library-3F">What Is This Library?</a>
60
- </ul>
61
- </div>
62
-
63
-
64
- <div id="class-metadata">
65
-
66
-
67
-
68
-
69
-
70
- </div>
71
- </nav>
72
-
73
- <main role="main" aria-labelledby="module-Roma::Client::VERSION">
74
- <h1 id="module-Roma::Client::VERSION" class="module">
75
- module Roma::Client::VERSION
76
- </h1>
77
-
78
- <section class="description">
79
-
80
- <h2 id="module-Roma::Client::VERSION-label-What+Is+This+Library-3F">What Is This Library?<span><a href="#module-Roma::Client::VERSION-label-What+Is+This+Library-3F">&para;</a> <a href="#top">&uarr;</a></span></h2>
81
-
82
- <p>ROMA client proxy daemon&#39;s version module</p>
83
-
84
- <h2 id="module-Roma::Client::VERSION-label-What+Is+This+Library-3F">What Is This Library?<span><a href="#module-Roma::Client::VERSION-label-What+Is+This+Library-3F">&para;</a> <a href="#top">&uarr;</a></span></h2>
85
-
86
- <p>ROMA client version info.</p>
87
-
88
- </section>
89
-
90
-
91
-
92
-
93
- <section id="5Buntitled-5D" class="documentation-section">
94
-
95
-
96
-
97
-
98
-
99
- <section class="constants-list">
100
- <header>
101
- <h3>Constants</h3>
102
- </header>
103
- <dl>
104
-
105
- <dt id="MAJOR">MAJOR
106
-
107
- <dd><p><a href="VERSION.html#MAJOR">MAJOR</a> version</p>
108
-
109
-
110
- <dt id="MINOR">MINOR
111
-
112
- <dd><p><a href="VERSION.html#MINOR">MINOR</a> version</p>
113
-
114
-
115
- <dt id="STRING">STRING
116
-
117
- <dd><p>Version string</p>
118
-
119
-
120
- <dt id="TINY">TINY
121
-
122
- <dd><p><a href="VERSION.html#TINY">TINY</a> version</p>
123
-
124
-
125
- </dl>
126
- </section>
127
-
128
-
129
-
130
-
131
-
132
- </section>
133
- </main>
134
-
135
-
136
- <footer id="validator-badges" role="contentinfo">
137
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
138
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
139
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
140
- </footer>
141
-
@@ -1,95 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset=" UTF-8">
6
-
7
- <title>module Roma::Logging - 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
-
61
- </div>
62
- </nav>
63
-
64
- <main role="main" aria-labelledby="module-Roma::Logging">
65
- <h1 id="module-Roma::Logging" class="module">
66
- module Roma::Logging
67
- </h1>
68
-
69
- <section class="description">
70
-
71
- </section>
72
-
73
-
74
-
75
-
76
- <section id="5Buntitled-5D" class="documentation-section">
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
- </section>
87
- </main>
88
-
89
-
90
- <footer id="validator-badges" role="contentinfo">
91
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
92
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
93
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
94
- </footer>
95
-
@@ -1,786 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset=" UTF-8">
6
-
7
- <title>class Roma::Logging::RLogger - 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
- <div id="includes-section" class="nav-section">
66
- <h3>Included Modules</h3>
67
-
68
- <ul class="link-list">
69
-
70
-
71
- <li><a class="include" href="RLogger/Severity.html">Roma::Logging::RLogger::Severity</a>
72
-
73
-
74
- </ul>
75
- </div>
76
-
77
- <div id="extends-section" class="nav-section">
78
- <h3>Extended With Modules</h3>
79
-
80
- <ul class="link-list">
81
-
82
-
83
- <li><a class="extend" href="RLogger/ExtTrace.html">Roma::Logging::RLogger::ExtTrace</a>
84
-
85
-
86
-
87
- <li><a class="extend" href="RLogger/ExtLogDev.html">Roma::Logging::RLogger::ExtLogDev</a>
88
-
89
-
90
- </ul>
91
- </div>
92
-
93
- <!-- Method Quickref -->
94
- <div id="method-list-section" class="nav-section">
95
- <h3>Methods</h3>
96
-
97
- <ul class="link-list" role="directory">
98
-
99
- <li ><a href="#method-c-create_singleton_instance">::create_singleton_instance</a>
100
-
101
- <li ><a href="#method-c-instance">::instance</a>
102
-
103
- <li ><a href="#method-c-new">::new</a>
104
-
105
- <li ><a href="#method-i-close">#close</a>
106
-
107
- <li ><a href="#method-i-debug">#debug</a>
108
-
109
- <li ><a href="#method-i-debug-3F">#debug?</a>
110
-
111
- <li ><a href="#method-i-error">#error</a>
112
-
113
- <li ><a href="#method-i-error-3F">#error?</a>
114
-
115
- <li ><a href="#method-i-fatal">#fatal</a>
116
-
117
- <li ><a href="#method-i-fatal-3F">#fatal?</a>
118
-
119
- <li ><a href="#method-i-info">#info</a>
120
-
121
- <li ><a href="#method-i-info-3F">#info?</a>
122
-
123
- <li ><a href="#method-i-level-3D">#level=</a>
124
-
125
- <li ><a href="#method-i-trace">#trace</a>
126
-
127
- <li ><a href="#method-i-trace-3F">#trace?</a>
128
-
129
- <li ><a href="#method-i-unknown">#unknown</a>
130
-
131
- <li ><a href="#method-i-warn">#warn</a>
132
-
133
- <li ><a href="#method-i-warn-3F">#warn?</a>
134
-
135
- </ul>
136
- </div>
137
-
138
- </div>
139
- </nav>
140
-
141
- <main role="main" aria-labelledby="class-Roma::Logging::RLogger">
142
- <h1 id="class-Roma::Logging::RLogger" class="class">
143
- class Roma::Logging::RLogger
144
- </h1>
145
-
146
- <section class="description">
147
-
148
- </section>
149
-
150
-
151
-
152
-
153
- <section id="5Buntitled-5D" class="documentation-section">
154
-
155
-
156
-
157
-
158
-
159
- <section class="constants-list">
160
- <header>
161
- <h3>Constants</h3>
162
- </header>
163
- <dl>
164
-
165
- <dt id="VERSION">VERSION
166
-
167
- <dd>
168
-
169
-
170
- </dl>
171
- </section>
172
-
173
-
174
-
175
-
176
-
177
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
178
- <header>
179
- <h3>Public Class Methods</h3>
180
- </header>
181
-
182
-
183
- <div id="method-c-create_singleton_instance" class="method-detail ">
184
-
185
- <div class="method-heading">
186
- <span class="method-name">create_singleton_instance</span><span
187
- class="method-args">(logdev, shift_age = 0, shift_size = 1048576)</span>
188
-
189
- <span class="method-click-advice">click to toggle source</span>
190
-
191
- </div>
192
-
193
-
194
- <div class="method-description">
195
-
196
-
197
-
198
-
199
-
200
-
201
- <div class="method-source-code" id="create_singleton_instance-source">
202
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 83</span>
203
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">create_singleton_instance</span>(<span class="ruby-identifier">logdev</span>, <span class="ruby-identifier">shift_age</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">shift_size</span> = <span class="ruby-value">1048576</span>)
204
- <span class="ruby-identifier">@@singleton_instance</span> = <span class="ruby-constant">RLogger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">logdev</span>, <span class="ruby-identifier">shift_age</span>, <span class="ruby-identifier">shift_size</span>)
205
- <span class="ruby-identifier">private_class_method</span> <span class="ruby-value">:new</span>, <span class="ruby-value">:allocate</span>
206
- <span class="ruby-keyword">end</span></pre>
207
- </div>
208
-
209
- </div>
210
-
211
-
212
-
213
-
214
- </div>
215
-
216
-
217
- <div id="method-c-instance" class="method-detail ">
218
-
219
- <div class="method-heading">
220
- <span class="method-name">instance</span><span
221
- class="method-args">()</span>
222
-
223
- <span class="method-click-advice">click to toggle source</span>
224
-
225
- </div>
226
-
227
-
228
- <div class="method-description">
229
-
230
-
231
-
232
-
233
-
234
-
235
- <div class="method-source-code" id="instance-source">
236
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 88</span>
237
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance</span>
238
- <span class="ruby-identifier">@@singleton_instance</span>
239
- <span class="ruby-keyword">end</span></pre>
240
- </div>
241
-
242
- </div>
243
-
244
-
245
-
246
-
247
- </div>
248
-
249
-
250
- <div id="method-c-new" class="method-detail ">
251
-
252
- <div class="method-heading">
253
- <span class="method-name">new</span><span
254
- class="method-args">(logdev, shift_age = 0, shift_size = 1048576)</span>
255
-
256
- <span class="method-click-advice">click to toggle source</span>
257
-
258
- </div>
259
-
260
-
261
- <div class="method-description">
262
-
263
-
264
-
265
-
266
-
267
-
268
- <div class="method-source-code" id="new-source">
269
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 92</span>
270
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">logdev</span>, <span class="ruby-identifier">shift_age</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">shift_size</span> = <span class="ruby-value">1048576</span>)
271
- <span class="ruby-ivar">@wrap_logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">logdev</span>, <span class="ruby-identifier">shift_age</span>, <span class="ruby-identifier">shift_size</span>)
272
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">extend</span>(<span class="ruby-constant">ExtTrace</span>)
273
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">extend</span>(<span class="ruby-constant">ExtLogDev</span>)
274
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">extendLogDev</span>()
275
- <span class="ruby-keyword">end</span></pre>
276
- </div>
277
-
278
- </div>
279
-
280
-
281
-
282
-
283
- </div>
284
-
285
-
286
- </section>
287
-
288
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
289
- <header>
290
- <h3>Public Instance Methods</h3>
291
- </header>
292
-
293
-
294
- <div id="method-i-close" class="method-detail ">
295
-
296
- <div class="method-heading">
297
- <span class="method-name">close</span><span
298
- class="method-args">()</span>
299
-
300
- <span class="method-click-advice">click to toggle source</span>
301
-
302
- </div>
303
-
304
-
305
- <div class="method-description">
306
-
307
-
308
-
309
-
310
-
311
-
312
- <div class="method-source-code" id="close-source">
313
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 143</span>
314
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">close</span>; <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">close</span>; <span class="ruby-keyword">end</span></pre>
315
- </div>
316
-
317
- </div>
318
-
319
-
320
-
321
-
322
- </div>
323
-
324
-
325
- <div id="method-i-debug" class="method-detail ">
326
-
327
- <div class="method-heading">
328
- <span class="method-name">debug</span><span
329
- class="method-args">(progname = nil, &block)</span>
330
-
331
- <span class="method-click-advice">click to toggle source</span>
332
-
333
- </div>
334
-
335
-
336
- <div class="method-description">
337
-
338
-
339
-
340
-
341
-
342
-
343
- <div class="method-source-code" id="debug-source">
344
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 119</span>
345
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">debug</span>(<span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
346
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-identifier">progname</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
347
- <span class="ruby-keyword">end</span></pre>
348
- </div>
349
-
350
- </div>
351
-
352
-
353
-
354
-
355
- </div>
356
-
357
-
358
- <div id="method-i-debug-3F" class="method-detail ">
359
-
360
- <div class="method-heading">
361
- <span class="method-name">debug?</span><span
362
- class="method-args">()</span>
363
-
364
- <span class="method-click-advice">click to toggle source</span>
365
-
366
- </div>
367
-
368
-
369
- <div class="method-description">
370
-
371
-
372
-
373
-
374
-
375
-
376
- <div class="method-source-code" id="debug-3F-source">
377
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 105</span>
378
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">debug?</span>; <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">debug?</span>; <span class="ruby-keyword">end</span></pre>
379
- </div>
380
-
381
- </div>
382
-
383
-
384
-
385
-
386
- </div>
387
-
388
-
389
- <div id="method-i-error" class="method-detail ">
390
-
391
- <div class="method-heading">
392
- <span class="method-name">error</span><span
393
- class="method-args">(progname = nil, &block)</span>
394
-
395
- <span class="method-click-advice">click to toggle source</span>
396
-
397
- </div>
398
-
399
-
400
- <div class="method-description">
401
-
402
-
403
-
404
-
405
-
406
-
407
- <div class="method-source-code" id="error-source">
408
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 131</span>
409
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">error</span>(<span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
410
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">error</span>(<span class="ruby-identifier">progname</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
411
- <span class="ruby-keyword">end</span></pre>
412
- </div>
413
-
414
- </div>
415
-
416
-
417
-
418
-
419
- </div>
420
-
421
-
422
- <div id="method-i-error-3F" class="method-detail ">
423
-
424
- <div class="method-heading">
425
- <span class="method-name">error?</span><span
426
- class="method-args">()</span>
427
-
428
- <span class="method-click-advice">click to toggle source</span>
429
-
430
- </div>
431
-
432
-
433
- <div class="method-description">
434
-
435
-
436
-
437
-
438
-
439
-
440
- <div class="method-source-code" id="error-3F-source">
441
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 111</span>
442
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">error?</span>; <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">error?</span>; <span class="ruby-keyword">end</span></pre>
443
- </div>
444
-
445
- </div>
446
-
447
-
448
-
449
-
450
- </div>
451
-
452
-
453
- <div id="method-i-fatal" class="method-detail ">
454
-
455
- <div class="method-heading">
456
- <span class="method-name">fatal</span><span
457
- class="method-args">(progname = nil, &block)</span>
458
-
459
- <span class="method-click-advice">click to toggle source</span>
460
-
461
- </div>
462
-
463
-
464
- <div class="method-description">
465
-
466
-
467
-
468
-
469
-
470
-
471
- <div class="method-source-code" id="fatal-source">
472
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 135</span>
473
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">fatal</span>(<span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
474
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">fatal</span>(<span class="ruby-identifier">progname</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
475
- <span class="ruby-keyword">end</span></pre>
476
- </div>
477
-
478
- </div>
479
-
480
-
481
-
482
-
483
- </div>
484
-
485
-
486
- <div id="method-i-fatal-3F" class="method-detail ">
487
-
488
- <div class="method-heading">
489
- <span class="method-name">fatal?</span><span
490
- class="method-args">()</span>
491
-
492
- <span class="method-click-advice">click to toggle source</span>
493
-
494
- </div>
495
-
496
-
497
- <div class="method-description">
498
-
499
-
500
-
501
-
502
-
503
-
504
- <div class="method-source-code" id="fatal-3F-source">
505
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 113</span>
506
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">fatal?</span>; <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">fatal?</span>; <span class="ruby-keyword">end</span></pre>
507
- </div>
508
-
509
- </div>
510
-
511
-
512
-
513
-
514
- </div>
515
-
516
-
517
- <div id="method-i-info" class="method-detail ">
518
-
519
- <div class="method-heading">
520
- <span class="method-name">info</span><span
521
- class="method-args">(progname = nil, &block)</span>
522
-
523
- <span class="method-click-advice">click to toggle source</span>
524
-
525
- </div>
526
-
527
-
528
- <div class="method-description">
529
-
530
-
531
-
532
-
533
-
534
-
535
- <div class="method-source-code" id="info-source">
536
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 123</span>
537
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">info</span>(<span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
538
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-identifier">progname</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
539
- <span class="ruby-keyword">end</span></pre>
540
- </div>
541
-
542
- </div>
543
-
544
-
545
-
546
-
547
- </div>
548
-
549
-
550
- <div id="method-i-info-3F" class="method-detail ">
551
-
552
- <div class="method-heading">
553
- <span class="method-name">info?</span><span
554
- class="method-args">()</span>
555
-
556
- <span class="method-click-advice">click to toggle source</span>
557
-
558
- </div>
559
-
560
-
561
- <div class="method-description">
562
-
563
-
564
-
565
-
566
-
567
-
568
- <div class="method-source-code" id="info-3F-source">
569
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 107</span>
570
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">info?</span>; <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">info?</span>; <span class="ruby-keyword">end</span></pre>
571
- </div>
572
-
573
- </div>
574
-
575
-
576
-
577
-
578
- </div>
579
-
580
-
581
- <div id="method-i-level-3D" class="method-detail ">
582
-
583
- <div class="method-heading">
584
- <span class="method-name">level=</span><span
585
- class="method-args">(severity)</span>
586
-
587
- <span class="method-click-advice">click to toggle source</span>
588
-
589
- </div>
590
-
591
-
592
- <div class="method-description">
593
-
594
-
595
-
596
-
597
-
598
-
599
- <div class="method-source-code" id="level-3D-source">
600
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 99</span>
601
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">level=</span>(<span class="ruby-identifier">severity</span>)
602
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">level</span> = <span class="ruby-identifier">severity</span>
603
- <span class="ruby-keyword">end</span></pre>
604
- </div>
605
-
606
- </div>
607
-
608
-
609
-
610
-
611
- </div>
612
-
613
-
614
- <div id="method-i-trace" class="method-detail ">
615
-
616
- <div class="method-heading">
617
- <span class="method-name">trace</span><span
618
- class="method-args">(progname = nil, &block)</span>
619
-
620
- <span class="method-click-advice">click to toggle source</span>
621
-
622
- </div>
623
-
624
-
625
- <div class="method-description">
626
-
627
-
628
-
629
-
630
-
631
-
632
- <div class="method-source-code" id="trace-source">
633
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 115</span>
634
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">trace</span>(<span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
635
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">add</span>(<span class="ruby-constant">TRACE</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
636
- <span class="ruby-keyword">end</span></pre>
637
- </div>
638
-
639
- </div>
640
-
641
-
642
-
643
-
644
- </div>
645
-
646
-
647
- <div id="method-i-trace-3F" class="method-detail ">
648
-
649
- <div class="method-heading">
650
- <span class="method-name">trace?</span><span
651
- class="method-args">()</span>
652
-
653
- <span class="method-click-advice">click to toggle source</span>
654
-
655
- </div>
656
-
657
-
658
- <div class="method-description">
659
-
660
-
661
-
662
-
663
-
664
-
665
- <div class="method-source-code" id="trace-3F-source">
666
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 103</span>
667
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">trace?</span>; <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">level</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-constant">TRACE</span>; <span class="ruby-keyword">end</span></pre>
668
- </div>
669
-
670
- </div>
671
-
672
-
673
-
674
-
675
- </div>
676
-
677
-
678
- <div id="method-i-unknown" class="method-detail ">
679
-
680
- <div class="method-heading">
681
- <span class="method-name">unknown</span><span
682
- class="method-args">(progname = nil, &block)</span>
683
-
684
- <span class="method-click-advice">click to toggle source</span>
685
-
686
- </div>
687
-
688
-
689
- <div class="method-description">
690
-
691
-
692
-
693
-
694
-
695
-
696
- <div class="method-source-code" id="unknown-source">
697
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 139</span>
698
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">unknown</span>(<span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
699
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">unknow</span>(<span class="ruby-identifier">progname</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
700
- <span class="ruby-keyword">end</span></pre>
701
- </div>
702
-
703
- </div>
704
-
705
-
706
-
707
-
708
- </div>
709
-
710
-
711
- <div id="method-i-warn" class="method-detail ">
712
-
713
- <div class="method-heading">
714
- <span class="method-name">warn</span><span
715
- class="method-args">(progname = nil, &block)</span>
716
-
717
- <span class="method-click-advice">click to toggle source</span>
718
-
719
- </div>
720
-
721
-
722
- <div class="method-description">
723
-
724
-
725
-
726
-
727
-
728
-
729
- <div class="method-source-code" id="warn-source">
730
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 127</span>
731
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">warn</span>(<span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
732
- <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-identifier">progname</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
733
- <span class="ruby-keyword">end</span></pre>
734
- </div>
735
-
736
- </div>
737
-
738
-
739
-
740
-
741
- </div>
742
-
743
-
744
- <div id="method-i-warn-3F" class="method-detail ">
745
-
746
- <div class="method-heading">
747
- <span class="method-name">warn?</span><span
748
- class="method-args">()</span>
749
-
750
- <span class="method-click-advice">click to toggle source</span>
751
-
752
- </div>
753
-
754
-
755
- <div class="method-description">
756
-
757
-
758
-
759
-
760
-
761
-
762
- <div class="method-source-code" id="warn-3F-source">
763
- <pre><span class="ruby-comment"># File lib/roma/client/rlogger.rb, line 109</span>
764
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">warn?</span>; <span class="ruby-ivar">@wrap_logger</span>.<span class="ruby-identifier">warn?</span>; <span class="ruby-keyword">end</span></pre>
765
- </div>
766
-
767
- </div>
768
-
769
-
770
-
771
-
772
- </div>
773
-
774
-
775
- </section>
776
-
777
- </section>
778
- </main>
779
-
780
-
781
- <footer id="validator-badges" role="contentinfo">
782
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
783
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
784
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
785
- </footer>
786
-