journeta 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +8 -0
- data/Gemfile.lock +20 -0
- data/{History.txt → HISTORY} +13 -1
- data/LICENSE +51 -0
- data/License.txt +2 -2
- data/{README.txt → README.rdoc} +12 -17
- data/Rakefile +46 -112
- data/VERSION +1 -0
- data/{examples/instant_messenger.rb → bin/journeta_instant_messenger.rb} +13 -0
- data/bin/journeta_mock_peers.rb +32 -0
- data/{examples/network_status.rb → bin/journeta_network_status.rb} +0 -0
- data/bin/journeta_peer_fuzzer.rb +54 -0
- data/{examples/queue_client.rb → bin/journeta_queue_client.rb} +0 -0
- data/{examples/queue_server.rb → bin/journeta_queue_server.rb} +0 -0
- data/bin/journeta_thread_leak_check.rb +16 -0
- data/bin/journeta_top.rb +73 -0
- data/{examples/instant_messenger_gui.rb → broken/journeta_instant_messenger_gui.rb} +0 -2
- data/broken/journeta_instant_messenger_shoes.rb +52 -0
- data/lib/diff.rb +280 -0
- data/lib/journeta.rb +1 -0
- data/lib/journeta/asynchronous.rb +2 -2
- data/lib/journeta/exception.rb +8 -0
- data/lib/journeta/journeta_engine.rb +4 -5
- data/lib/journeta/logger.rb +1 -1
- data/lib/journeta/peer_connection.rb +2 -2
- data/lib/journeta/peer_listener.rb +2 -2
- data/lib/journeta/presence_broadcaster.rb +19 -5
- data/lib/journeta/presence_listener.rb +8 -4
- data/lib/journeta/version.rb +6 -4
- data/rdoc/Array.html +199 -0
- data/rdoc/Diff.html +714 -0
- data/rdoc/Diffable.html +409 -0
- data/rdoc/Journeta.html +288 -0
- data/rdoc/Journeta/Asynchronous.html +429 -0
- data/rdoc/Journeta/Common.html +205 -0
- data/rdoc/Journeta/Common/BasicMessage.html +228 -0
- data/rdoc/Journeta/Common/DummyPeerHandler.html +237 -0
- data/rdoc/Journeta/Common/Job.html +279 -0
- data/rdoc/Journeta/Common/Shutdown.html +236 -0
- data/rdoc/Journeta/DefaultPeerHandler.html +248 -0
- data/rdoc/Journeta/DefaultPeerRegisteredHandler.html +249 -0
- data/rdoc/Journeta/DefaultPeerUnregisteredHandler.html +249 -0
- data/rdoc/Journeta/DefaultPeerUpdatedHandler.html +249 -0
- data/rdoc/Journeta/Engine.html +953 -0
- data/rdoc/Journeta/Logger.html +237 -0
- data/rdoc/Journeta/NotImplementedException.html +188 -0
- data/rdoc/Journeta/PeerConnection.html +549 -0
- data/rdoc/Journeta/PeerListener.html +276 -0
- data/rdoc/Journeta/PeerRegistry.html +804 -0
- data/rdoc/Journeta/PresenceBroadcaster.html +306 -0
- data/rdoc/Journeta/PresenceListener.html +300 -0
- data/rdoc/Journeta/PresenceMessage.html +321 -0
- data/rdoc/Journeta/VERSION.html +181 -0
- data/rdoc/README_rdoc.html +196 -0
- data/rdoc/String.html +199 -0
- data/rdoc/created.rid +20 -0
- data/rdoc/index.html +212 -0
- data/rdoc/lib/diff_rb.html +52 -0
- data/rdoc/lib/journeta/asynchronous_rb.html +60 -0
- data/rdoc/lib/journeta/common/basic_message_rb.html +52 -0
- data/rdoc/lib/journeta/common/dummy_peer_handler_rb.html +52 -0
- data/rdoc/lib/journeta/common/job_rb.html +52 -0
- data/rdoc/lib/journeta/common/shutdown_rb.html +52 -0
- data/rdoc/lib/journeta/exception_rb.html +55 -0
- data/rdoc/lib/journeta/journeta_engine_rb.html +62 -0
- data/rdoc/lib/journeta/logger_rb.html +55 -0
- data/rdoc/lib/journeta/peer_connection_rb.html +58 -0
- data/rdoc/lib/journeta/peer_handler_rb.html +52 -0
- data/rdoc/lib/journeta/peer_listener_rb.html +60 -0
- data/rdoc/lib/journeta/peer_registry_rb.html +54 -0
- data/rdoc/lib/journeta/presence_broadcaster_rb.html +57 -0
- data/rdoc/lib/journeta/presence_listener_rb.html +62 -0
- data/rdoc/lib/journeta/presence_message_rb.html +52 -0
- data/rdoc/lib/journeta/version_rb.html +52 -0
- data/rdoc/lib/journeta_rb.html +91 -0
- data/rdoc/rdoc.css +706 -0
- data/test/helper.rb +19 -0
- data/test/test_lifecycle.rb +49 -9
- data/website/images/arrow.png +0 -0
- data/website/images/banner.jpg +0 -0
- data/website/images/content_shadow.png +0 -0
- data/website/images/content_side.png +0 -0
- data/website/images/header.jpg +0 -0
- data/website/images/header_side.jpg +0 -0
- data/website/index.html +1 -1
- data/website/index.txt +1 -1
- data/website/stylesheets/reset.css +30 -0
- data/website/stylesheets/screen.css +1 -1
- metadata +152 -46
- data/test/test_event_broadcaster.rb +0 -15
- data/test/test_helper.rb +0 -4
- data/test/test_journeta.rb +0 -11
@@ -0,0 +1,279 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Journeta::Common::Job</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="class">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../../index.html">Home</a>
|
29
|
+
<a href="../../index.html#classes">Classes</a>
|
30
|
+
<a href="../../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../../lib/journeta/common/job_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/journeta/common/job.rb">lib/journeta/common/job.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link">Object</p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Namespace Contents -->
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
|
69
|
+
<!-- Included Modules -->
|
70
|
+
|
71
|
+
</div>
|
72
|
+
|
73
|
+
<div id="project-metadata">
|
74
|
+
|
75
|
+
|
76
|
+
<div id="fileindex-section" class="section project-section">
|
77
|
+
<h3 class="section-header">Files</h3>
|
78
|
+
<ul>
|
79
|
+
|
80
|
+
<li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
|
81
|
+
|
82
|
+
</ul>
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<div id="classindex-section" class="section project-section">
|
87
|
+
<h3 class="section-header">Class Index
|
88
|
+
<span class="search-toggle"><img src="../../images/find.png"
|
89
|
+
height="16" width="16" alt="[+]"
|
90
|
+
title="show/hide quicksearch" /></span></h3>
|
91
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
92
|
+
<fieldset>
|
93
|
+
<legend>Quicksearch</legend>
|
94
|
+
<input type="text" name="quicksearch" value=""
|
95
|
+
class="quicksearch-field" />
|
96
|
+
</fieldset>
|
97
|
+
</form>
|
98
|
+
|
99
|
+
<ul class="link-list">
|
100
|
+
|
101
|
+
<li><a href="../../Journeta/Asynchronous.html">Journeta::Asynchronous</a></li>
|
102
|
+
|
103
|
+
<li><a href="../../Journeta/Common.html">Journeta::Common</a></li>
|
104
|
+
|
105
|
+
<li><a href="../../Journeta/Common/BasicMessage.html">Journeta::Common::BasicMessage</a></li>
|
106
|
+
|
107
|
+
<li><a href="../../Journeta/Common/DummyPeerHandler.html">Journeta::Common::DummyPeerHandler</a></li>
|
108
|
+
|
109
|
+
<li><a href="../../Journeta/Common/Job.html">Journeta::Common::Job</a></li>
|
110
|
+
|
111
|
+
<li><a href="../../Journeta/Common/Shutdown.html">Journeta::Common::Shutdown</a></li>
|
112
|
+
|
113
|
+
<li><a href="../../Journeta/DefaultPeerHandler.html">Journeta::DefaultPeerHandler</a></li>
|
114
|
+
|
115
|
+
<li><a href="../../Journeta/DefaultPeerRegisteredHandler.html">Journeta::DefaultPeerRegisteredHandler</a></li>
|
116
|
+
|
117
|
+
<li><a href="../../Journeta/DefaultPeerUnregisteredHandler.html">Journeta::DefaultPeerUnregisteredHandler</a></li>
|
118
|
+
|
119
|
+
<li><a href="../../Journeta/DefaultPeerUpdatedHandler.html">Journeta::DefaultPeerUpdatedHandler</a></li>
|
120
|
+
|
121
|
+
<li><a href="../../Journeta/Engine.html">Journeta::Engine</a></li>
|
122
|
+
|
123
|
+
<li><a href="../../Journeta/Logger.html">Journeta::Logger</a></li>
|
124
|
+
|
125
|
+
<li><a href="../../Journeta/NotImplementedException.html">Journeta::NotImplementedException</a></li>
|
126
|
+
|
127
|
+
<li><a href="../../Journeta/PeerConnection.html">Journeta::PeerConnection</a></li>
|
128
|
+
|
129
|
+
<li><a href="../../Journeta/PeerListener.html">Journeta::PeerListener</a></li>
|
130
|
+
|
131
|
+
<li><a href="../../Journeta/PeerRegistry.html">Journeta::PeerRegistry</a></li>
|
132
|
+
|
133
|
+
<li><a href="../../Journeta/PresenceBroadcaster.html">Journeta::PresenceBroadcaster</a></li>
|
134
|
+
|
135
|
+
<li><a href="../../Journeta/PresenceListener.html">Journeta::PresenceListener</a></li>
|
136
|
+
|
137
|
+
<li><a href="../../Journeta/PresenceMessage.html">Journeta::PresenceMessage</a></li>
|
138
|
+
|
139
|
+
<li><a href="../../Array.html">Array</a></li>
|
140
|
+
|
141
|
+
<li><a href="../../Diff.html">Diff</a></li>
|
142
|
+
|
143
|
+
<li><a href="../../Diffable.html">Diffable</a></li>
|
144
|
+
|
145
|
+
<li><a href="../../String.html">String</a></li>
|
146
|
+
|
147
|
+
</ul>
|
148
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
<div id="documentation">
|
156
|
+
<h1 class="class">Journeta::Common::Job</h1>
|
157
|
+
|
158
|
+
<div id="description">
|
159
|
+
|
160
|
+
</div>
|
161
|
+
|
162
|
+
<!-- Constants -->
|
163
|
+
|
164
|
+
|
165
|
+
<!-- Attributes -->
|
166
|
+
|
167
|
+
<div id="attribute-method-details" class="method-section section">
|
168
|
+
<h3 class="section-header">Attributes</h3>
|
169
|
+
|
170
|
+
|
171
|
+
<div id="owner-attribute-method" class="method-detail">
|
172
|
+
<a name="owner"></a>
|
173
|
+
|
174
|
+
<a name="owner="></a>
|
175
|
+
|
176
|
+
<div class="method-heading attribute-method-heading">
|
177
|
+
<span class="method-name">owner</span><span
|
178
|
+
class="attribute-access-type">[RW]</span>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<div class="method-description">
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
<div id="name-attribute-method" class="method-detail">
|
189
|
+
<a name="name"></a>
|
190
|
+
|
191
|
+
<a name="name="></a>
|
192
|
+
|
193
|
+
<div class="method-heading attribute-method-heading">
|
194
|
+
<span class="method-name">name</span><span
|
195
|
+
class="attribute-access-type">[RW]</span>
|
196
|
+
</div>
|
197
|
+
|
198
|
+
<div class="method-description">
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
</div>
|
203
|
+
</div>
|
204
|
+
|
205
|
+
<div id="description-attribute-method" class="method-detail">
|
206
|
+
<a name="description"></a>
|
207
|
+
|
208
|
+
<a name="description="></a>
|
209
|
+
|
210
|
+
<div class="method-heading attribute-method-heading">
|
211
|
+
<span class="method-name">description</span><span
|
212
|
+
class="attribute-access-type">[RW]</span>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div class="method-description">
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
<div id="data-attribute-method" class="method-detail">
|
223
|
+
<a name="data"></a>
|
224
|
+
|
225
|
+
<a name="data="></a>
|
226
|
+
|
227
|
+
<div class="method-heading attribute-method-heading">
|
228
|
+
<span class="method-name">data</span><span
|
229
|
+
class="attribute-access-type">[RW]</span>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
<div class="method-description">
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
</div>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
<div id="submission-attribute-method" class="method-detail">
|
240
|
+
<a name="submission"></a>
|
241
|
+
|
242
|
+
<a name="submission="></a>
|
243
|
+
|
244
|
+
<div class="method-heading attribute-method-heading">
|
245
|
+
<span class="method-name">submission</span><span
|
246
|
+
class="attribute-access-type">[RW]</span>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
<div class="method-description">
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
</div>
|
257
|
+
|
258
|
+
|
259
|
+
<!-- Methods -->
|
260
|
+
|
261
|
+
|
262
|
+
</div>
|
263
|
+
|
264
|
+
|
265
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
266
|
+
|
267
|
+
<p>Disabled; run with --debug to generate this.</p>
|
268
|
+
|
269
|
+
</div>
|
270
|
+
|
271
|
+
<div id="validator-badges">
|
272
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
273
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
274
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
275
|
+
</div>
|
276
|
+
|
277
|
+
</body>
|
278
|
+
</html>
|
279
|
+
|
@@ -0,0 +1,236 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Module: Journeta::Common::Shutdown</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="module">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../../index.html">Home</a>
|
29
|
+
<a href="../../index.html#classes">Classes</a>
|
30
|
+
<a href="../../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../../lib/journeta/common/shutdown_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/journeta/common/shutdown.rb">lib/journeta/common/shutdown.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
|
56
|
+
<!-- Namespace Contents -->
|
57
|
+
|
58
|
+
|
59
|
+
<!-- Method Quickref -->
|
60
|
+
|
61
|
+
<div id="method-list-section" class="section">
|
62
|
+
<h3 class="section-header">Methods</h3>
|
63
|
+
<ul class="link-list">
|
64
|
+
|
65
|
+
<li><a href="#method-i-stop_on_shutdown">#stop_on_shutdown</a></li>
|
66
|
+
|
67
|
+
</ul>
|
68
|
+
</div>
|
69
|
+
|
70
|
+
|
71
|
+
<!-- Included Modules -->
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div id="project-metadata">
|
76
|
+
|
77
|
+
|
78
|
+
<div id="fileindex-section" class="section project-section">
|
79
|
+
<h3 class="section-header">Files</h3>
|
80
|
+
<ul>
|
81
|
+
|
82
|
+
<li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
|
83
|
+
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
|
88
|
+
<div id="classindex-section" class="section project-section">
|
89
|
+
<h3 class="section-header">Class Index
|
90
|
+
<span class="search-toggle"><img src="../../images/find.png"
|
91
|
+
height="16" width="16" alt="[+]"
|
92
|
+
title="show/hide quicksearch" /></span></h3>
|
93
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
94
|
+
<fieldset>
|
95
|
+
<legend>Quicksearch</legend>
|
96
|
+
<input type="text" name="quicksearch" value=""
|
97
|
+
class="quicksearch-field" />
|
98
|
+
</fieldset>
|
99
|
+
</form>
|
100
|
+
|
101
|
+
<ul class="link-list">
|
102
|
+
|
103
|
+
<li><a href="../../Journeta/Asynchronous.html">Journeta::Asynchronous</a></li>
|
104
|
+
|
105
|
+
<li><a href="../../Journeta/Common.html">Journeta::Common</a></li>
|
106
|
+
|
107
|
+
<li><a href="../../Journeta/Common/BasicMessage.html">Journeta::Common::BasicMessage</a></li>
|
108
|
+
|
109
|
+
<li><a href="../../Journeta/Common/DummyPeerHandler.html">Journeta::Common::DummyPeerHandler</a></li>
|
110
|
+
|
111
|
+
<li><a href="../../Journeta/Common/Job.html">Journeta::Common::Job</a></li>
|
112
|
+
|
113
|
+
<li><a href="../../Journeta/Common/Shutdown.html">Journeta::Common::Shutdown</a></li>
|
114
|
+
|
115
|
+
<li><a href="../../Journeta/DefaultPeerHandler.html">Journeta::DefaultPeerHandler</a></li>
|
116
|
+
|
117
|
+
<li><a href="../../Journeta/DefaultPeerRegisteredHandler.html">Journeta::DefaultPeerRegisteredHandler</a></li>
|
118
|
+
|
119
|
+
<li><a href="../../Journeta/DefaultPeerUnregisteredHandler.html">Journeta::DefaultPeerUnregisteredHandler</a></li>
|
120
|
+
|
121
|
+
<li><a href="../../Journeta/DefaultPeerUpdatedHandler.html">Journeta::DefaultPeerUpdatedHandler</a></li>
|
122
|
+
|
123
|
+
<li><a href="../../Journeta/Engine.html">Journeta::Engine</a></li>
|
124
|
+
|
125
|
+
<li><a href="../../Journeta/Logger.html">Journeta::Logger</a></li>
|
126
|
+
|
127
|
+
<li><a href="../../Journeta/NotImplementedException.html">Journeta::NotImplementedException</a></li>
|
128
|
+
|
129
|
+
<li><a href="../../Journeta/PeerConnection.html">Journeta::PeerConnection</a></li>
|
130
|
+
|
131
|
+
<li><a href="../../Journeta/PeerListener.html">Journeta::PeerListener</a></li>
|
132
|
+
|
133
|
+
<li><a href="../../Journeta/PeerRegistry.html">Journeta::PeerRegistry</a></li>
|
134
|
+
|
135
|
+
<li><a href="../../Journeta/PresenceBroadcaster.html">Journeta::PresenceBroadcaster</a></li>
|
136
|
+
|
137
|
+
<li><a href="../../Journeta/PresenceListener.html">Journeta::PresenceListener</a></li>
|
138
|
+
|
139
|
+
<li><a href="../../Journeta/PresenceMessage.html">Journeta::PresenceMessage</a></li>
|
140
|
+
|
141
|
+
<li><a href="../../Array.html">Array</a></li>
|
142
|
+
|
143
|
+
<li><a href="../../Diff.html">Diff</a></li>
|
144
|
+
|
145
|
+
<li><a href="../../Diffable.html">Diffable</a></li>
|
146
|
+
|
147
|
+
<li><a href="../../String.html">String</a></li>
|
148
|
+
|
149
|
+
</ul>
|
150
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div id="documentation">
|
158
|
+
<h1 class="module">Journeta::Common::Shutdown</h1>
|
159
|
+
|
160
|
+
<div id="description">
|
161
|
+
|
162
|
+
</div>
|
163
|
+
|
164
|
+
<!-- Constants -->
|
165
|
+
|
166
|
+
|
167
|
+
<!-- Attributes -->
|
168
|
+
|
169
|
+
|
170
|
+
<!-- Methods -->
|
171
|
+
|
172
|
+
<div id="public-instance-method-details" class="method-section section">
|
173
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
174
|
+
|
175
|
+
|
176
|
+
<div id="stop-on-shutdown-method" class="method-detail ">
|
177
|
+
<a name="method-i-stop_on_shutdown"></a>
|
178
|
+
|
179
|
+
<div class="method-heading">
|
180
|
+
|
181
|
+
<span class="method-name">stop_on_shutdown</span><span
|
182
|
+
class="method-args">(engine)</span>
|
183
|
+
<span class="method-click-advice">click to toggle source</span>
|
184
|
+
|
185
|
+
</div>
|
186
|
+
|
187
|
+
<div class="method-description">
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<div class="method-source-code"
|
194
|
+
id="stop-on-shutdown-source">
|
195
|
+
<pre>
|
196
|
+
<span class="ruby-comment cmt"># File lib/journeta/common/shutdown.rb, line 7</span>
|
197
|
+
7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop_on_shutdown</span>(<span class="ruby-identifier">engine</span>)
|
198
|
+
8: <span class="ruby-identifier">bye</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> {
|
199
|
+
9: <span class="ruby-identifier">engine</span>.<span class="ruby-identifier">stop</span>
|
200
|
+
10: <span class="ruby-identifier">exit</span> <span class="ruby-value">0</span>
|
201
|
+
11: }
|
202
|
+
12: <span class="ruby-constant">Signal</span><span class="ruby-operator">::</span><span class="ruby-identifier">trap</span>(<span class="ruby-value str">"HUP"</span>, <span class="ruby-identifier">bye</span>)
|
203
|
+
13: <span class="ruby-constant">Signal</span><span class="ruby-operator">::</span><span class="ruby-identifier">trap</span>(<span class="ruby-value str">"INT"</span>, <span class="ruby-identifier">bye</span>)
|
204
|
+
14: <span class="ruby-constant">Signal</span><span class="ruby-operator">::</span><span class="ruby-identifier">trap</span>(<span class="ruby-value str">"KILL"</span>, <span class="ruby-identifier">bye</span>)
|
205
|
+
15: <span class="ruby-keyword kw">end</span></pre>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
</div>
|
214
|
+
|
215
|
+
|
216
|
+
</div>
|
217
|
+
|
218
|
+
|
219
|
+
</div>
|
220
|
+
|
221
|
+
|
222
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
223
|
+
|
224
|
+
<p>Disabled; run with --debug to generate this.</p>
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
<div id="validator-badges">
|
229
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
230
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
231
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
232
|
+
</div>
|
233
|
+
|
234
|
+
</body>
|
235
|
+
</html>
|
236
|
+
|