ganapati 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +20 -0
- data/Rakefile +2 -1
- data/docs/Ganapati.html +265 -0
- data/docs/Ganapati/Client.html +998 -0
- data/docs/Ganapati/FileUrl.html +469 -0
- data/docs/Ganapati/HFile.html +470 -0
- data/docs/README_rdoc.html +281 -0
- data/docs/ThriftHadoopFileSystem.html +336 -0
- data/docs/ThriftHadoopFileSystem/Append_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Append_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/BlockLocation.html +367 -0
- data/docs/ThriftHadoopFileSystem/Chmod_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/Chmod_result.html +352 -0
- data/docs/ThriftHadoopFileSystem/Chown_args.html +362 -0
- data/docs/ThriftHadoopFileSystem/Chown_result.html +352 -0
- data/docs/ThriftHadoopFileSystem/Client.html +2327 -0
- data/docs/ThriftHadoopFileSystem/Close_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Close_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/CreateFile_args.html +377 -0
- data/docs/ThriftHadoopFileSystem/CreateFile_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Create_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Create_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Exists_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Exists_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/FileStatus.html +392 -0
- data/docs/ThriftHadoopFileSystem/GetFileBlockLocations_args.html +362 -0
- data/docs/ThriftHadoopFileSystem/GetFileBlockLocations_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/ListStatus_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/ListStatus_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/MalformedInputException.html +394 -0
- data/docs/ThriftHadoopFileSystem/Mkdirs_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Mkdirs_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Open_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Open_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Pathname.html +352 -0
- data/docs/ThriftHadoopFileSystem/Processor.html +1053 -0
- data/docs/ThriftHadoopFileSystem/Read_args.html +362 -0
- data/docs/ThriftHadoopFileSystem/Read_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Rename_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/Rename_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Rm_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/Rm_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html +354 -0
- data/docs/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html +347 -0
- data/docs/ThriftHadoopFileSystem/SetReplication_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/SetReplication_result.html +352 -0
- data/docs/ThriftHadoopFileSystem/Shutdown_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Shutdown_result.html +347 -0
- data/docs/ThriftHadoopFileSystem/Stat_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Stat_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/ThriftHandle.html +352 -0
- data/docs/ThriftHadoopFileSystem/ThriftIOException.html +394 -0
- data/docs/ThriftHadoopFileSystem/Write_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/Write_result.html +357 -0
- data/docs/created.rid +10 -1
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +544 -20
- data/docs/js/darkfish.js +116 -0
- data/docs/js/jquery.js +32 -0
- data/docs/js/quicksearch.js +114 -0
- data/docs/js/thickbox-compressed.js +10 -0
- data/docs/lib/ganapati/client_rb.html +52 -0
- data/docs/lib/ganapati/hfile_rb.html +52 -0
- data/docs/lib/ganapati/utils_rb.html +52 -0
- data/docs/lib/ganapati/version_rb.html +52 -0
- data/docs/lib/ganapati_rb.html +62 -0
- data/docs/lib/thrift/hadoopfs_constants_rb.html +58 -0
- data/docs/lib/thrift/hadoopfs_types_rb.html +56 -0
- data/docs/lib/thrift/thrift_hadoop_file_system_rb.html +60 -0
- data/docs/rdoc.css +759 -0
- data/lib/ganapati/client.rb +10 -10
- data/lib/ganapati/version.rb +1 -1
- metadata +112 -9
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ganapati (0.0.6)
|
5
|
+
thrift (>= 0.5.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
metaclass (0.0.1)
|
11
|
+
mocha (0.10.0)
|
12
|
+
metaclass (~> 0.0.1)
|
13
|
+
thrift (0.7.0)
|
14
|
+
|
15
|
+
PLATFORMS
|
16
|
+
ruby
|
17
|
+
|
18
|
+
DEPENDENCIES
|
19
|
+
ganapati!
|
20
|
+
mocha (>= 0.10.0)
|
data/Rakefile
CHANGED
data/docs/Ganapati.html
ADDED
@@ -0,0 +1,265 @@
|
|
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: Ganapati</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="module">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./lib/ganapati/client_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/ganapati/client.rb">lib/ganapati/client.rb</a></li>
|
39
|
+
|
40
|
+
<li><a href="./lib/ganapati/hfile_rb.html?TB_iframe=true&height=550&width=785"
|
41
|
+
class="thickbox" title="lib/ganapati/hfile.rb">lib/ganapati/hfile.rb</a></li>
|
42
|
+
|
43
|
+
<li><a href="./lib/ganapati/utils_rb.html?TB_iframe=true&height=550&width=785"
|
44
|
+
class="thickbox" title="lib/ganapati/utils.rb">lib/ganapati/utils.rb</a></li>
|
45
|
+
|
46
|
+
<li><a href="./lib/ganapati/version_rb.html?TB_iframe=true&height=550&width=785"
|
47
|
+
class="thickbox" title="lib/ganapati/version.rb">lib/ganapati/version.rb</a></li>
|
48
|
+
|
49
|
+
</ul>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<div id="class-metadata">
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
<!-- Namespace Contents -->
|
63
|
+
<div id="namespace-list-section" class="section">
|
64
|
+
<h3 class="section-header">Namespace</h3>
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><span class="type">CLASS</span> <a href="Ganapati/Client.html">Ganapati::Client</a></li>
|
68
|
+
|
69
|
+
<li><span class="type">CLASS</span> <a href="Ganapati/FileUrl.html">Ganapati::FileUrl</a></li>
|
70
|
+
|
71
|
+
<li><span class="type">CLASS</span> <a href="Ganapati/HFile.html">Ganapati::HFile</a></li>
|
72
|
+
|
73
|
+
</ul>
|
74
|
+
</div>
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div id="project-metadata">
|
83
|
+
|
84
|
+
|
85
|
+
<div id="fileindex-section" class="section project-section">
|
86
|
+
<h3 class="section-header">Files</h3>
|
87
|
+
<ul>
|
88
|
+
|
89
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
90
|
+
|
91
|
+
</ul>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
|
95
|
+
<div id="classindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Class/Module Index
|
97
|
+
<span class="search-toggle"><img src="./images/find.png"
|
98
|
+
height="16" width="16" alt="[+]"
|
99
|
+
title="show/hide quicksearch" /></span></h3>
|
100
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
101
|
+
<fieldset>
|
102
|
+
<legend>Quicksearch</legend>
|
103
|
+
<input type="text" name="quicksearch" value=""
|
104
|
+
class="quicksearch-field" />
|
105
|
+
</fieldset>
|
106
|
+
</form>
|
107
|
+
|
108
|
+
<ul class="link-list">
|
109
|
+
|
110
|
+
<li><a href="./ThriftHadoopFileSystem.html">ThriftHadoopFileSystem</a></li>
|
111
|
+
|
112
|
+
<li><a href="./ThriftHadoopFileSystem/Append_args.html">ThriftHadoopFileSystem::Append_args</a></li>
|
113
|
+
|
114
|
+
<li><a href="./ThriftHadoopFileSystem/Append_result.html">ThriftHadoopFileSystem::Append_result</a></li>
|
115
|
+
|
116
|
+
<li><a href="./ThriftHadoopFileSystem/BlockLocation.html">ThriftHadoopFileSystem::BlockLocation</a></li>
|
117
|
+
|
118
|
+
<li><a href="./ThriftHadoopFileSystem/Chmod_args.html">ThriftHadoopFileSystem::Chmod_args</a></li>
|
119
|
+
|
120
|
+
<li><a href="./ThriftHadoopFileSystem/Chmod_result.html">ThriftHadoopFileSystem::Chmod_result</a></li>
|
121
|
+
|
122
|
+
<li><a href="./ThriftHadoopFileSystem/Chown_args.html">ThriftHadoopFileSystem::Chown_args</a></li>
|
123
|
+
|
124
|
+
<li><a href="./ThriftHadoopFileSystem/Chown_result.html">ThriftHadoopFileSystem::Chown_result</a></li>
|
125
|
+
|
126
|
+
<li><a href="./ThriftHadoopFileSystem/Client.html">ThriftHadoopFileSystem::Client</a></li>
|
127
|
+
|
128
|
+
<li><a href="./ThriftHadoopFileSystem/Close_args.html">ThriftHadoopFileSystem::Close_args</a></li>
|
129
|
+
|
130
|
+
<li><a href="./ThriftHadoopFileSystem/Close_result.html">ThriftHadoopFileSystem::Close_result</a></li>
|
131
|
+
|
132
|
+
<li><a href="./ThriftHadoopFileSystem/CreateFile_args.html">ThriftHadoopFileSystem::CreateFile_args</a></li>
|
133
|
+
|
134
|
+
<li><a href="./ThriftHadoopFileSystem/CreateFile_result.html">ThriftHadoopFileSystem::CreateFile_result</a></li>
|
135
|
+
|
136
|
+
<li><a href="./ThriftHadoopFileSystem/Create_args.html">ThriftHadoopFileSystem::Create_args</a></li>
|
137
|
+
|
138
|
+
<li><a href="./ThriftHadoopFileSystem/Create_result.html">ThriftHadoopFileSystem::Create_result</a></li>
|
139
|
+
|
140
|
+
<li><a href="./ThriftHadoopFileSystem/Exists_args.html">ThriftHadoopFileSystem::Exists_args</a></li>
|
141
|
+
|
142
|
+
<li><a href="./ThriftHadoopFileSystem/Exists_result.html">ThriftHadoopFileSystem::Exists_result</a></li>
|
143
|
+
|
144
|
+
<li><a href="./ThriftHadoopFileSystem/FileStatus.html">ThriftHadoopFileSystem::FileStatus</a></li>
|
145
|
+
|
146
|
+
<li><a href="./ThriftHadoopFileSystem/GetFileBlockLocations_args.html">ThriftHadoopFileSystem::GetFileBlockLocations_args</a></li>
|
147
|
+
|
148
|
+
<li><a href="./ThriftHadoopFileSystem/GetFileBlockLocations_result.html">ThriftHadoopFileSystem::GetFileBlockLocations_result</a></li>
|
149
|
+
|
150
|
+
<li><a href="./ThriftHadoopFileSystem/ListStatus_args.html">ThriftHadoopFileSystem::ListStatus_args</a></li>
|
151
|
+
|
152
|
+
<li><a href="./ThriftHadoopFileSystem/ListStatus_result.html">ThriftHadoopFileSystem::ListStatus_result</a></li>
|
153
|
+
|
154
|
+
<li><a href="./ThriftHadoopFileSystem/MalformedInputException.html">ThriftHadoopFileSystem::MalformedInputException</a></li>
|
155
|
+
|
156
|
+
<li><a href="./ThriftHadoopFileSystem/Mkdirs_args.html">ThriftHadoopFileSystem::Mkdirs_args</a></li>
|
157
|
+
|
158
|
+
<li><a href="./ThriftHadoopFileSystem/Mkdirs_result.html">ThriftHadoopFileSystem::Mkdirs_result</a></li>
|
159
|
+
|
160
|
+
<li><a href="./ThriftHadoopFileSystem/Open_args.html">ThriftHadoopFileSystem::Open_args</a></li>
|
161
|
+
|
162
|
+
<li><a href="./ThriftHadoopFileSystem/Open_result.html">ThriftHadoopFileSystem::Open_result</a></li>
|
163
|
+
|
164
|
+
<li><a href="./ThriftHadoopFileSystem/Pathname.html">ThriftHadoopFileSystem::Pathname</a></li>
|
165
|
+
|
166
|
+
<li><a href="./ThriftHadoopFileSystem/Processor.html">ThriftHadoopFileSystem::Processor</a></li>
|
167
|
+
|
168
|
+
<li><a href="./ThriftHadoopFileSystem/Read_args.html">ThriftHadoopFileSystem::Read_args</a></li>
|
169
|
+
|
170
|
+
<li><a href="./ThriftHadoopFileSystem/Read_result.html">ThriftHadoopFileSystem::Read_result</a></li>
|
171
|
+
|
172
|
+
<li><a href="./ThriftHadoopFileSystem/Rename_args.html">ThriftHadoopFileSystem::Rename_args</a></li>
|
173
|
+
|
174
|
+
<li><a href="./ThriftHadoopFileSystem/Rename_result.html">ThriftHadoopFileSystem::Rename_result</a></li>
|
175
|
+
|
176
|
+
<li><a href="./ThriftHadoopFileSystem/Rm_args.html">ThriftHadoopFileSystem::Rm_args</a></li>
|
177
|
+
|
178
|
+
<li><a href="./ThriftHadoopFileSystem/Rm_result.html">ThriftHadoopFileSystem::Rm_result</a></li>
|
179
|
+
|
180
|
+
<li><a href="./ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html">ThriftHadoopFileSystem::SetInactivityTimeoutPeriod_args</a></li>
|
181
|
+
|
182
|
+
<li><a href="./ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html">ThriftHadoopFileSystem::SetInactivityTimeoutPeriod_result</a></li>
|
183
|
+
|
184
|
+
<li><a href="./ThriftHadoopFileSystem/SetReplication_args.html">ThriftHadoopFileSystem::SetReplication_args</a></li>
|
185
|
+
|
186
|
+
<li><a href="./ThriftHadoopFileSystem/SetReplication_result.html">ThriftHadoopFileSystem::SetReplication_result</a></li>
|
187
|
+
|
188
|
+
<li><a href="./ThriftHadoopFileSystem/Shutdown_args.html">ThriftHadoopFileSystem::Shutdown_args</a></li>
|
189
|
+
|
190
|
+
<li><a href="./ThriftHadoopFileSystem/Shutdown_result.html">ThriftHadoopFileSystem::Shutdown_result</a></li>
|
191
|
+
|
192
|
+
<li><a href="./ThriftHadoopFileSystem/Stat_args.html">ThriftHadoopFileSystem::Stat_args</a></li>
|
193
|
+
|
194
|
+
<li><a href="./ThriftHadoopFileSystem/Stat_result.html">ThriftHadoopFileSystem::Stat_result</a></li>
|
195
|
+
|
196
|
+
<li><a href="./ThriftHadoopFileSystem/ThriftHandle.html">ThriftHadoopFileSystem::ThriftHandle</a></li>
|
197
|
+
|
198
|
+
<li><a href="./ThriftHadoopFileSystem/ThriftIOException.html">ThriftHadoopFileSystem::ThriftIOException</a></li>
|
199
|
+
|
200
|
+
<li><a href="./ThriftHadoopFileSystem/Write_args.html">ThriftHadoopFileSystem::Write_args</a></li>
|
201
|
+
|
202
|
+
<li><a href="./ThriftHadoopFileSystem/Write_result.html">ThriftHadoopFileSystem::Write_result</a></li>
|
203
|
+
|
204
|
+
<li><a href="./Ganapati.html">Ganapati</a></li>
|
205
|
+
|
206
|
+
<li><a href="./Ganapati/Client.html">Ganapati::Client</a></li>
|
207
|
+
|
208
|
+
<li><a href="./Ganapati/FileUrl.html">Ganapati::FileUrl</a></li>
|
209
|
+
|
210
|
+
<li><a href="./Ganapati/HFile.html">Ganapati::HFile</a></li>
|
211
|
+
|
212
|
+
</ul>
|
213
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
214
|
+
</div>
|
215
|
+
|
216
|
+
|
217
|
+
</div>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
<div id="documentation">
|
221
|
+
<h1 class="module">Ganapati</h1>
|
222
|
+
|
223
|
+
<div id="description" class="description">
|
224
|
+
|
225
|
+
</div><!-- description -->
|
226
|
+
|
227
|
+
|
228
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
<!-- Constants -->
|
235
|
+
<div id="constants-list" class="section">
|
236
|
+
<h3 class="section-header">Constants</h3>
|
237
|
+
<dl>
|
238
|
+
|
239
|
+
<dt><a name="VERSION">VERSION</a></dt>
|
240
|
+
|
241
|
+
<dd class="description"></dd>
|
242
|
+
|
243
|
+
|
244
|
+
</dl>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
<!-- Methods -->
|
251
|
+
|
252
|
+
</div><!-- 5Buntitled-5D -->
|
253
|
+
|
254
|
+
|
255
|
+
</div><!-- documentation -->
|
256
|
+
|
257
|
+
<div id="validator-badges">
|
258
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
259
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
260
|
+
Rdoc Generator</a> 2</small>.</p>
|
261
|
+
</div>
|
262
|
+
|
263
|
+
</body>
|
264
|
+
</html>
|
265
|
+
|
@@ -0,0 +1,998 @@
|
|
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: Ganapati::Client</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="../index.html">Home</a>
|
25
|
+
<a href="../index.html#classes">Classes</a>
|
26
|
+
<a href="../index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="../lib/ganapati/client_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/ganapati/client.rb">lib/ganapati/client.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">Object</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-c-new">::new</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-c-run">::run</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-append">#append</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-chmod">#chmod</a></li>
|
75
|
+
|
76
|
+
<li><a href="#method-i-chown">#chown</a></li>
|
77
|
+
|
78
|
+
<li><a href="#method-i-close">#close</a></li>
|
79
|
+
|
80
|
+
<li><a href="#method-i-create">#create</a></li>
|
81
|
+
|
82
|
+
<li><a href="#method-i-exists-3F">#exists?</a></li>
|
83
|
+
|
84
|
+
<li><a href="#method-i-get">#get</a></li>
|
85
|
+
|
86
|
+
<li><a href="#method-i-ls">#ls</a></li>
|
87
|
+
|
88
|
+
<li><a href="#method-i-mkdir">#mkdir</a></li>
|
89
|
+
|
90
|
+
<li><a href="#method-i-mv">#mv</a></li>
|
91
|
+
|
92
|
+
<li><a href="#method-i-open">#open</a></li>
|
93
|
+
|
94
|
+
<li><a href="#method-i-put">#put</a></li>
|
95
|
+
|
96
|
+
<li><a href="#method-i-readchunks">#readchunks</a></li>
|
97
|
+
|
98
|
+
<li><a href="#method-i-readlines">#readlines</a></li>
|
99
|
+
|
100
|
+
<li><a href="#method-i-rm">#rm</a></li>
|
101
|
+
|
102
|
+
<li><a href="#method-i-set_replication">#set_replication</a></li>
|
103
|
+
|
104
|
+
<li><a href="#method-i-shutdown">#shutdown</a></li>
|
105
|
+
|
106
|
+
<li><a href="#method-i-stat">#stat</a></li>
|
107
|
+
|
108
|
+
</ul>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<div id="project-metadata">
|
116
|
+
|
117
|
+
|
118
|
+
<div id="fileindex-section" class="section project-section">
|
119
|
+
<h3 class="section-header">Files</h3>
|
120
|
+
<ul>
|
121
|
+
|
122
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
123
|
+
|
124
|
+
</ul>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
|
128
|
+
<div id="classindex-section" class="section project-section">
|
129
|
+
<h3 class="section-header">Class/Module Index
|
130
|
+
<span class="search-toggle"><img src="../images/find.png"
|
131
|
+
height="16" width="16" alt="[+]"
|
132
|
+
title="show/hide quicksearch" /></span></h3>
|
133
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
134
|
+
<fieldset>
|
135
|
+
<legend>Quicksearch</legend>
|
136
|
+
<input type="text" name="quicksearch" value=""
|
137
|
+
class="quicksearch-field" />
|
138
|
+
</fieldset>
|
139
|
+
</form>
|
140
|
+
|
141
|
+
<ul class="link-list">
|
142
|
+
|
143
|
+
<li><a href="../ThriftHadoopFileSystem.html">ThriftHadoopFileSystem</a></li>
|
144
|
+
|
145
|
+
<li><a href="../ThriftHadoopFileSystem/Append_args.html">ThriftHadoopFileSystem::Append_args</a></li>
|
146
|
+
|
147
|
+
<li><a href="../ThriftHadoopFileSystem/Append_result.html">ThriftHadoopFileSystem::Append_result</a></li>
|
148
|
+
|
149
|
+
<li><a href="../ThriftHadoopFileSystem/BlockLocation.html">ThriftHadoopFileSystem::BlockLocation</a></li>
|
150
|
+
|
151
|
+
<li><a href="../ThriftHadoopFileSystem/Chmod_args.html">ThriftHadoopFileSystem::Chmod_args</a></li>
|
152
|
+
|
153
|
+
<li><a href="../ThriftHadoopFileSystem/Chmod_result.html">ThriftHadoopFileSystem::Chmod_result</a></li>
|
154
|
+
|
155
|
+
<li><a href="../ThriftHadoopFileSystem/Chown_args.html">ThriftHadoopFileSystem::Chown_args</a></li>
|
156
|
+
|
157
|
+
<li><a href="../ThriftHadoopFileSystem/Chown_result.html">ThriftHadoopFileSystem::Chown_result</a></li>
|
158
|
+
|
159
|
+
<li><a href="../ThriftHadoopFileSystem/Client.html">ThriftHadoopFileSystem::Client</a></li>
|
160
|
+
|
161
|
+
<li><a href="../ThriftHadoopFileSystem/Close_args.html">ThriftHadoopFileSystem::Close_args</a></li>
|
162
|
+
|
163
|
+
<li><a href="../ThriftHadoopFileSystem/Close_result.html">ThriftHadoopFileSystem::Close_result</a></li>
|
164
|
+
|
165
|
+
<li><a href="../ThriftHadoopFileSystem/CreateFile_args.html">ThriftHadoopFileSystem::CreateFile_args</a></li>
|
166
|
+
|
167
|
+
<li><a href="../ThriftHadoopFileSystem/CreateFile_result.html">ThriftHadoopFileSystem::CreateFile_result</a></li>
|
168
|
+
|
169
|
+
<li><a href="../ThriftHadoopFileSystem/Create_args.html">ThriftHadoopFileSystem::Create_args</a></li>
|
170
|
+
|
171
|
+
<li><a href="../ThriftHadoopFileSystem/Create_result.html">ThriftHadoopFileSystem::Create_result</a></li>
|
172
|
+
|
173
|
+
<li><a href="../ThriftHadoopFileSystem/Exists_args.html">ThriftHadoopFileSystem::Exists_args</a></li>
|
174
|
+
|
175
|
+
<li><a href="../ThriftHadoopFileSystem/Exists_result.html">ThriftHadoopFileSystem::Exists_result</a></li>
|
176
|
+
|
177
|
+
<li><a href="../ThriftHadoopFileSystem/FileStatus.html">ThriftHadoopFileSystem::FileStatus</a></li>
|
178
|
+
|
179
|
+
<li><a href="../ThriftHadoopFileSystem/GetFileBlockLocations_args.html">ThriftHadoopFileSystem::GetFileBlockLocations_args</a></li>
|
180
|
+
|
181
|
+
<li><a href="../ThriftHadoopFileSystem/GetFileBlockLocations_result.html">ThriftHadoopFileSystem::GetFileBlockLocations_result</a></li>
|
182
|
+
|
183
|
+
<li><a href="../ThriftHadoopFileSystem/ListStatus_args.html">ThriftHadoopFileSystem::ListStatus_args</a></li>
|
184
|
+
|
185
|
+
<li><a href="../ThriftHadoopFileSystem/ListStatus_result.html">ThriftHadoopFileSystem::ListStatus_result</a></li>
|
186
|
+
|
187
|
+
<li><a href="../ThriftHadoopFileSystem/MalformedInputException.html">ThriftHadoopFileSystem::MalformedInputException</a></li>
|
188
|
+
|
189
|
+
<li><a href="../ThriftHadoopFileSystem/Mkdirs_args.html">ThriftHadoopFileSystem::Mkdirs_args</a></li>
|
190
|
+
|
191
|
+
<li><a href="../ThriftHadoopFileSystem/Mkdirs_result.html">ThriftHadoopFileSystem::Mkdirs_result</a></li>
|
192
|
+
|
193
|
+
<li><a href="../ThriftHadoopFileSystem/Open_args.html">ThriftHadoopFileSystem::Open_args</a></li>
|
194
|
+
|
195
|
+
<li><a href="../ThriftHadoopFileSystem/Open_result.html">ThriftHadoopFileSystem::Open_result</a></li>
|
196
|
+
|
197
|
+
<li><a href="../ThriftHadoopFileSystem/Pathname.html">ThriftHadoopFileSystem::Pathname</a></li>
|
198
|
+
|
199
|
+
<li><a href="../ThriftHadoopFileSystem/Processor.html">ThriftHadoopFileSystem::Processor</a></li>
|
200
|
+
|
201
|
+
<li><a href="../ThriftHadoopFileSystem/Read_args.html">ThriftHadoopFileSystem::Read_args</a></li>
|
202
|
+
|
203
|
+
<li><a href="../ThriftHadoopFileSystem/Read_result.html">ThriftHadoopFileSystem::Read_result</a></li>
|
204
|
+
|
205
|
+
<li><a href="../ThriftHadoopFileSystem/Rename_args.html">ThriftHadoopFileSystem::Rename_args</a></li>
|
206
|
+
|
207
|
+
<li><a href="../ThriftHadoopFileSystem/Rename_result.html">ThriftHadoopFileSystem::Rename_result</a></li>
|
208
|
+
|
209
|
+
<li><a href="../ThriftHadoopFileSystem/Rm_args.html">ThriftHadoopFileSystem::Rm_args</a></li>
|
210
|
+
|
211
|
+
<li><a href="../ThriftHadoopFileSystem/Rm_result.html">ThriftHadoopFileSystem::Rm_result</a></li>
|
212
|
+
|
213
|
+
<li><a href="../ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html">ThriftHadoopFileSystem::SetInactivityTimeoutPeriod_args</a></li>
|
214
|
+
|
215
|
+
<li><a href="../ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html">ThriftHadoopFileSystem::SetInactivityTimeoutPeriod_result</a></li>
|
216
|
+
|
217
|
+
<li><a href="../ThriftHadoopFileSystem/SetReplication_args.html">ThriftHadoopFileSystem::SetReplication_args</a></li>
|
218
|
+
|
219
|
+
<li><a href="../ThriftHadoopFileSystem/SetReplication_result.html">ThriftHadoopFileSystem::SetReplication_result</a></li>
|
220
|
+
|
221
|
+
<li><a href="../ThriftHadoopFileSystem/Shutdown_args.html">ThriftHadoopFileSystem::Shutdown_args</a></li>
|
222
|
+
|
223
|
+
<li><a href="../ThriftHadoopFileSystem/Shutdown_result.html">ThriftHadoopFileSystem::Shutdown_result</a></li>
|
224
|
+
|
225
|
+
<li><a href="../ThriftHadoopFileSystem/Stat_args.html">ThriftHadoopFileSystem::Stat_args</a></li>
|
226
|
+
|
227
|
+
<li><a href="../ThriftHadoopFileSystem/Stat_result.html">ThriftHadoopFileSystem::Stat_result</a></li>
|
228
|
+
|
229
|
+
<li><a href="../ThriftHadoopFileSystem/ThriftHandle.html">ThriftHadoopFileSystem::ThriftHandle</a></li>
|
230
|
+
|
231
|
+
<li><a href="../ThriftHadoopFileSystem/ThriftIOException.html">ThriftHadoopFileSystem::ThriftIOException</a></li>
|
232
|
+
|
233
|
+
<li><a href="../ThriftHadoopFileSystem/Write_args.html">ThriftHadoopFileSystem::Write_args</a></li>
|
234
|
+
|
235
|
+
<li><a href="../ThriftHadoopFileSystem/Write_result.html">ThriftHadoopFileSystem::Write_result</a></li>
|
236
|
+
|
237
|
+
<li><a href="../Ganapati.html">Ganapati</a></li>
|
238
|
+
|
239
|
+
<li><a href="../Ganapati/Client.html">Ganapati::Client</a></li>
|
240
|
+
|
241
|
+
<li><a href="../Ganapati/FileUrl.html">Ganapati::FileUrl</a></li>
|
242
|
+
|
243
|
+
<li><a href="../Ganapati/HFile.html">Ganapati::HFile</a></li>
|
244
|
+
|
245
|
+
</ul>
|
246
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
|
250
|
+
</div>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
<div id="documentation">
|
254
|
+
<h1 class="class">Ganapati::Client</h1>
|
255
|
+
|
256
|
+
<div id="description" class="description">
|
257
|
+
|
258
|
+
</div><!-- description -->
|
259
|
+
|
260
|
+
|
261
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
<!-- Methods -->
|
271
|
+
|
272
|
+
<div id="public-class-method-details" class="method-section section">
|
273
|
+
<h3 class="section-header">Public Class Methods</h3>
|
274
|
+
|
275
|
+
|
276
|
+
<div id="new-method" class="method-detail ">
|
277
|
+
<a name="method-c-new"></a>
|
278
|
+
|
279
|
+
|
280
|
+
<div class="method-heading">
|
281
|
+
<span class="method-name">new</span><span
|
282
|
+
class="method-args">(server, port, timeout=60)</span>
|
283
|
+
<span class="method-click-advice">click to toggle source</span>
|
284
|
+
</div>
|
285
|
+
|
286
|
+
|
287
|
+
<div class="method-description">
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
<div class="method-source-code" id="new-source">
|
294
|
+
<pre>
|
295
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 4</span>
|
296
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">port</span>, <span class="ruby-identifier">timeout</span>=<span class="ruby-value">60</span>)
|
297
|
+
<span class="ruby-identifier">socket</span> = <span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">Socket</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">port</span>)
|
298
|
+
<span class="ruby-ivar">@transport</span> = <span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">BufferedTransport</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">socket</span>)
|
299
|
+
<span class="ruby-ivar">@transport</span>.<span class="ruby-identifier">open</span>
|
300
|
+
<span class="ruby-identifier">protocol</span> = <span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">BinaryProtocol</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@transport</span>)
|
301
|
+
<span class="ruby-ivar">@client</span> = <span class="ruby-constant">ThriftHadoopFileSystem</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">protocol</span>)
|
302
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">timeout</span>)
|
303
|
+
<span class="ruby-keyword">end</span></pre>
|
304
|
+
</div><!-- new-source -->
|
305
|
+
|
306
|
+
</div>
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</div><!-- new-method -->
|
312
|
+
|
313
|
+
|
314
|
+
<div id="run-method" class="method-detail ">
|
315
|
+
<a name="method-c-run"></a>
|
316
|
+
|
317
|
+
|
318
|
+
<div class="method-heading">
|
319
|
+
<span class="method-name">run</span><span
|
320
|
+
class="method-args">(server, port)</span>
|
321
|
+
<span class="method-click-advice">click to toggle source</span>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
|
325
|
+
<div class="method-description">
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<div class="method-source-code" id="run-source">
|
332
|
+
<pre>
|
333
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 125</span>
|
334
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">port</span>)
|
335
|
+
<span class="ruby-identifier">c</span> = <span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">port</span>)
|
336
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-keyword">yield</span> <span class="ruby-identifier">c</span>
|
337
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">close</span>
|
338
|
+
<span class="ruby-identifier">result</span>
|
339
|
+
<span class="ruby-keyword">end</span></pre>
|
340
|
+
</div><!-- run-source -->
|
341
|
+
|
342
|
+
</div>
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
</div><!-- run-method -->
|
348
|
+
|
349
|
+
|
350
|
+
</div><!-- public-class-method-details -->
|
351
|
+
|
352
|
+
<div id="public-instance-method-details" class="method-section section">
|
353
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
354
|
+
|
355
|
+
|
356
|
+
<div id="append-method" class="method-detail ">
|
357
|
+
<a name="method-i-append"></a>
|
358
|
+
|
359
|
+
|
360
|
+
<div class="method-heading">
|
361
|
+
<span class="method-name">append</span><span
|
362
|
+
class="method-args">(path, &block)</span>
|
363
|
+
<span class="method-click-advice">click to toggle source</span>
|
364
|
+
</div>
|
365
|
+
|
366
|
+
|
367
|
+
<div class="method-description">
|
368
|
+
|
369
|
+
<p>for appending</p>
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
<div class="method-source-code" id="append-source">
|
374
|
+
<pre>
|
375
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 82</span>
|
376
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">append</span>(<span class="ruby-identifier">path</span>, &<span class="ruby-identifier">block</span>)
|
377
|
+
<span class="ruby-identifier">file_handle</span> <span class="ruby-value">:append</span>, <span class="ruby-identifier">path</span>, &<span class="ruby-identifier">block</span>
|
378
|
+
<span class="ruby-keyword">end</span></pre>
|
379
|
+
</div><!-- append-source -->
|
380
|
+
|
381
|
+
</div>
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
</div><!-- append-method -->
|
387
|
+
|
388
|
+
|
389
|
+
<div id="chmod-method" class="method-detail ">
|
390
|
+
<a name="method-i-chmod"></a>
|
391
|
+
|
392
|
+
|
393
|
+
<div class="method-heading">
|
394
|
+
<span class="method-name">chmod</span><span
|
395
|
+
class="method-args">(path, mode)</span>
|
396
|
+
<span class="method-click-advice">click to toggle source</span>
|
397
|
+
</div>
|
398
|
+
|
399
|
+
|
400
|
+
<div class="method-description">
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
<div class="method-source-code" id="chmod-source">
|
407
|
+
<pre>
|
408
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 113</span>
|
409
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>)
|
410
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">chmod</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">path</span>), <span class="ruby-identifier">mode</span>
|
411
|
+
<span class="ruby-keyword">end</span></pre>
|
412
|
+
</div><!-- chmod-source -->
|
413
|
+
|
414
|
+
</div>
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
</div><!-- chmod-method -->
|
420
|
+
|
421
|
+
|
422
|
+
<div id="chown-method" class="method-detail ">
|
423
|
+
<a name="method-i-chown"></a>
|
424
|
+
|
425
|
+
|
426
|
+
<div class="method-heading">
|
427
|
+
<span class="method-name">chown</span><span
|
428
|
+
class="method-args">(path, owner, group)</span>
|
429
|
+
<span class="method-click-advice">click to toggle source</span>
|
430
|
+
</div>
|
431
|
+
|
432
|
+
|
433
|
+
<div class="method-description">
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
<div class="method-source-code" id="chown-source">
|
440
|
+
<pre>
|
441
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 117</span>
|
442
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">chown</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">owner</span>, <span class="ruby-identifier">group</span>)
|
443
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">chown</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">path</span>), <span class="ruby-identifier">owner</span>, <span class="ruby-identifier">group</span>
|
444
|
+
<span class="ruby-keyword">end</span></pre>
|
445
|
+
</div><!-- chown-source -->
|
446
|
+
|
447
|
+
</div>
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
</div><!-- chown-method -->
|
453
|
+
|
454
|
+
|
455
|
+
<div id="close-method" class="method-detail ">
|
456
|
+
<a name="method-i-close"></a>
|
457
|
+
|
458
|
+
|
459
|
+
<div class="method-heading">
|
460
|
+
<span class="method-name">close</span><span
|
461
|
+
class="method-args">()</span>
|
462
|
+
<span class="method-click-advice">click to toggle source</span>
|
463
|
+
</div>
|
464
|
+
|
465
|
+
|
466
|
+
<div class="method-description">
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
<div class="method-source-code" id="close-source">
|
473
|
+
<pre>
|
474
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 13</span>
|
475
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">close</span>
|
476
|
+
<span class="ruby-ivar">@transport</span>.<span class="ruby-identifier">close</span>
|
477
|
+
<span class="ruby-keyword">end</span></pre>
|
478
|
+
</div><!-- close-source -->
|
479
|
+
|
480
|
+
</div>
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
</div><!-- close-method -->
|
486
|
+
|
487
|
+
|
488
|
+
<div id="create-method" class="method-detail ">
|
489
|
+
<a name="method-i-create"></a>
|
490
|
+
|
491
|
+
|
492
|
+
<div class="method-heading">
|
493
|
+
<span class="method-name">create</span><span
|
494
|
+
class="method-args">(path, &block)</span>
|
495
|
+
<span class="method-click-advice">click to toggle source</span>
|
496
|
+
</div>
|
497
|
+
|
498
|
+
|
499
|
+
<div class="method-description">
|
500
|
+
|
501
|
+
<p>for writing to a new file</p>
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
<div class="method-source-code" id="create-source">
|
506
|
+
<pre>
|
507
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 72</span>
|
508
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>(<span class="ruby-identifier">path</span>, &<span class="ruby-identifier">block</span>)
|
509
|
+
<span class="ruby-identifier">file_handle</span> <span class="ruby-value">:create</span>, <span class="ruby-identifier">path</span>, &<span class="ruby-identifier">block</span>
|
510
|
+
<span class="ruby-keyword">end</span></pre>
|
511
|
+
</div><!-- create-source -->
|
512
|
+
|
513
|
+
</div>
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
</div><!-- create-method -->
|
519
|
+
|
520
|
+
|
521
|
+
<div id="exists-3F-method" class="method-detail ">
|
522
|
+
<a name="method-i-exists-3F"></a>
|
523
|
+
|
524
|
+
|
525
|
+
<div class="method-heading">
|
526
|
+
<span class="method-name">exists?</span><span
|
527
|
+
class="method-args">(path)</span>
|
528
|
+
<span class="method-click-advice">click to toggle source</span>
|
529
|
+
</div>
|
530
|
+
|
531
|
+
|
532
|
+
<div class="method-description">
|
533
|
+
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
<div class="method-source-code" id="exists-3F-source">
|
539
|
+
<pre>
|
540
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 98</span>
|
541
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">path</span>)
|
542
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">exists</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">path</span>)
|
543
|
+
<span class="ruby-keyword">end</span></pre>
|
544
|
+
</div><!-- exists-3F-source -->
|
545
|
+
|
546
|
+
</div>
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
</div><!-- exists-3F-method -->
|
552
|
+
|
553
|
+
|
554
|
+
<div id="get-method" class="method-detail ">
|
555
|
+
<a name="method-i-get"></a>
|
556
|
+
|
557
|
+
|
558
|
+
<div class="method-heading">
|
559
|
+
<span class="method-name">get</span><span
|
560
|
+
class="method-args">(remotepath, destpath)</span>
|
561
|
+
<span class="method-click-advice">click to toggle source</span>
|
562
|
+
</div>
|
563
|
+
|
564
|
+
|
565
|
+
<div class="method-description">
|
566
|
+
|
567
|
+
<p>copy remote file to local</p>
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
<div class="method-source-code" id="get-source">
|
572
|
+
<pre>
|
573
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 35</span>
|
574
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">remotepath</span>, <span class="ruby-identifier">destpath</span>)
|
575
|
+
<span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">destpath</span>, <span class="ruby-string">'w'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">dest</span><span class="ruby-operator">|</span>
|
576
|
+
<span class="ruby-identifier">readchunks</span>(<span class="ruby-identifier">remotepath</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">chunk</span><span class="ruby-operator">|</span>
|
577
|
+
<span class="ruby-identifier">dest</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">chunk</span>
|
578
|
+
}
|
579
|
+
}
|
580
|
+
<span class="ruby-keyword">end</span></pre>
|
581
|
+
</div><!-- get-source -->
|
582
|
+
|
583
|
+
</div>
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
</div><!-- get-method -->
|
589
|
+
|
590
|
+
|
591
|
+
<div id="ls-method" class="method-detail ">
|
592
|
+
<a name="method-i-ls"></a>
|
593
|
+
|
594
|
+
|
595
|
+
<div class="method-heading">
|
596
|
+
<span class="method-name">ls</span><span
|
597
|
+
class="method-args">(path, details=false, recursive=false)</span>
|
598
|
+
<span class="method-click-advice">click to toggle source</span>
|
599
|
+
</div>
|
600
|
+
|
601
|
+
|
602
|
+
<div class="method-description">
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
<div class="method-source-code" id="ls-source">
|
609
|
+
<pre>
|
610
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 106</span>
|
611
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ls</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">details</span>=<span class="ruby-keyword">false</span>, <span class="ruby-identifier">recursive</span>=<span class="ruby-keyword">false</span>)
|
612
|
+
<span class="ruby-identifier">statuses</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">listStatus</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">path</span>)
|
613
|
+
<span class="ruby-identifier">paths</span> = (<span class="ruby-identifier">details</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">statuses</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">statuses</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">path</span> }
|
614
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">paths</span> <span class="ruby-keyword">if</span> <span class="ruby-keyword">not</span> <span class="ruby-identifier">recursive</span>
|
615
|
+
<span class="ruby-identifier">paths</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">statuses</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">isdir</span> }.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ls</span>(<span class="ruby-identifier">s</span>.<span class="ruby-identifier">path</span>, <span class="ruby-identifier">details</span>, <span class="ruby-identifier">recursive</span>) }.<span class="ruby-identifier">flatten</span>
|
616
|
+
<span class="ruby-keyword">end</span></pre>
|
617
|
+
</div><!-- ls-source -->
|
618
|
+
|
619
|
+
</div>
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
</div><!-- ls-method -->
|
625
|
+
|
626
|
+
|
627
|
+
<div id="mkdir-method" class="method-detail ">
|
628
|
+
<a name="method-i-mkdir"></a>
|
629
|
+
|
630
|
+
|
631
|
+
<div class="method-heading">
|
632
|
+
<span class="method-name">mkdir</span><span
|
633
|
+
class="method-args">(path)</span>
|
634
|
+
<span class="method-click-advice">click to toggle source</span>
|
635
|
+
</div>
|
636
|
+
|
637
|
+
|
638
|
+
<div class="method-description">
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
<div class="method-source-code" id="mkdir-source">
|
645
|
+
<pre>
|
646
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 94</span>
|
647
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">path</span>)
|
648
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">mkdirs</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">path</span>)
|
649
|
+
<span class="ruby-keyword">end</span></pre>
|
650
|
+
</div><!-- mkdir-source -->
|
651
|
+
|
652
|
+
</div>
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
</div><!-- mkdir-method -->
|
658
|
+
|
659
|
+
|
660
|
+
<div id="mv-method" class="method-detail ">
|
661
|
+
<a name="method-i-mv"></a>
|
662
|
+
|
663
|
+
|
664
|
+
<div class="method-heading">
|
665
|
+
<span class="method-name">mv</span><span
|
666
|
+
class="method-args">(source, dest)</span>
|
667
|
+
<span class="method-click-advice">click to toggle source</span>
|
668
|
+
</div>
|
669
|
+
|
670
|
+
|
671
|
+
<div class="method-description">
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
<div class="method-source-code" id="mv-source">
|
678
|
+
<pre>
|
679
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 90</span>
|
680
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mv</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">dest</span>)
|
681
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">rename</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">source</span>), <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">dest</span>)
|
682
|
+
<span class="ruby-keyword">end</span></pre>
|
683
|
+
</div><!-- mv-source -->
|
684
|
+
|
685
|
+
</div>
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
</div><!-- mv-method -->
|
691
|
+
|
692
|
+
|
693
|
+
<div id="open-method" class="method-detail ">
|
694
|
+
<a name="method-i-open"></a>
|
695
|
+
|
696
|
+
|
697
|
+
<div class="method-heading">
|
698
|
+
<span class="method-name">open</span><span
|
699
|
+
class="method-args">(path, &block)</span>
|
700
|
+
<span class="method-click-advice">click to toggle source</span>
|
701
|
+
</div>
|
702
|
+
|
703
|
+
|
704
|
+
<div class="method-description">
|
705
|
+
|
706
|
+
<p>for reading</p>
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
<div class="method-source-code" id="open-source">
|
711
|
+
<pre>
|
712
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 77</span>
|
713
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>, &<span class="ruby-identifier">block</span>)
|
714
|
+
<span class="ruby-identifier">file_handle</span> <span class="ruby-value">:open</span>, <span class="ruby-identifier">path</span>, &<span class="ruby-identifier">block</span>
|
715
|
+
<span class="ruby-keyword">end</span></pre>
|
716
|
+
</div><!-- open-source -->
|
717
|
+
|
718
|
+
</div>
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
</div><!-- open-method -->
|
724
|
+
|
725
|
+
|
726
|
+
<div id="put-method" class="method-detail ">
|
727
|
+
<a name="method-i-put"></a>
|
728
|
+
|
729
|
+
|
730
|
+
<div class="method-heading">
|
731
|
+
<span class="method-name">put</span><span
|
732
|
+
class="method-args">(localpath, destpath)</span>
|
733
|
+
<span class="method-click-advice">click to toggle source</span>
|
734
|
+
</div>
|
735
|
+
|
736
|
+
|
737
|
+
<div class="method-description">
|
738
|
+
|
739
|
+
<p>copy local file to remote</p>
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
<div class="method-source-code" id="put-source">
|
744
|
+
<pre>
|
745
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 23</span>
|
746
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">put</span>(<span class="ruby-identifier">localpath</span>, <span class="ruby-identifier">destpath</span>)
|
747
|
+
<span class="ruby-identifier">create</span>(<span class="ruby-identifier">destpath</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">dest</span><span class="ruby-operator">|</span>
|
748
|
+
<span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">localpath</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">source</span><span class="ruby-operator">|</span>
|
749
|
+
<span class="ruby-comment"># read 1 MB at a time</span>
|
750
|
+
<span class="ruby-keyword">while</span> <span class="ruby-identifier">record</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value">1048576</span>)
|
751
|
+
<span class="ruby-identifier">dest</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">record</span>)
|
752
|
+
<span class="ruby-keyword">end</span>
|
753
|
+
}
|
754
|
+
}
|
755
|
+
<span class="ruby-keyword">end</span></pre>
|
756
|
+
</div><!-- put-source -->
|
757
|
+
|
758
|
+
</div>
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
</div><!-- put-method -->
|
764
|
+
|
765
|
+
|
766
|
+
<div id="readchunks-method" class="method-detail ">
|
767
|
+
<a name="method-i-readchunks"></a>
|
768
|
+
|
769
|
+
|
770
|
+
<div class="method-heading">
|
771
|
+
<span class="method-name">readchunks</span><span
|
772
|
+
class="method-args">(path, chunksize=1048576)</span>
|
773
|
+
<span class="method-click-advice">click to toggle source</span>
|
774
|
+
</div>
|
775
|
+
|
776
|
+
|
777
|
+
<div class="method-description">
|
778
|
+
|
779
|
+
<p>yeild chunksize of path one chunk at a time</p>
|
780
|
+
|
781
|
+
|
782
|
+
|
783
|
+
<div class="method-source-code" id="readchunks-source">
|
784
|
+
<pre>
|
785
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 44</span>
|
786
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">readchunks</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">chunksize</span>=<span class="ruby-value">1048576</span>)
|
787
|
+
<span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">source</span><span class="ruby-operator">|</span>
|
788
|
+
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">length</span>
|
789
|
+
<span class="ruby-identifier">index</span> = <span class="ruby-value">0</span>
|
790
|
+
<span class="ruby-keyword">while</span> <span class="ruby-identifier">index</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">size</span>
|
791
|
+
<span class="ruby-keyword">yield</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">index</span>, <span class="ruby-identifier">chunksize</span>)
|
792
|
+
<span class="ruby-identifier">index</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">chunksize</span>
|
793
|
+
<span class="ruby-keyword">end</span>
|
794
|
+
}
|
795
|
+
<span class="ruby-keyword">end</span></pre>
|
796
|
+
</div><!-- readchunks-source -->
|
797
|
+
|
798
|
+
</div>
|
799
|
+
|
800
|
+
|
801
|
+
|
802
|
+
|
803
|
+
</div><!-- readchunks-method -->
|
804
|
+
|
805
|
+
|
806
|
+
<div id="readlines-method" class="method-detail ">
|
807
|
+
<a name="method-i-readlines"></a>
|
808
|
+
|
809
|
+
|
810
|
+
<div class="method-heading">
|
811
|
+
<span class="method-name">readlines</span><span
|
812
|
+
class="method-args">(path, sep="\n")</span>
|
813
|
+
<span class="method-click-advice">click to toggle source</span>
|
814
|
+
</div>
|
815
|
+
|
816
|
+
|
817
|
+
<div class="method-description">
|
818
|
+
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
|
823
|
+
<div class="method-source-code" id="readlines-source">
|
824
|
+
<pre>
|
825
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 55</span>
|
826
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">readlines</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-string">"\n"</span>)
|
827
|
+
<span class="ruby-identifier">buffer</span> = <span class="ruby-string">""</span>
|
828
|
+
|
829
|
+
<span class="ruby-identifier">readchunks</span>(<span class="ruby-identifier">path</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">chunk</span><span class="ruby-operator">|</span>
|
830
|
+
<span class="ruby-identifier">buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">chunk</span>
|
831
|
+
|
832
|
+
<span class="ruby-comment"># partitions[1] will be empty if sep does not exist in the string</span>
|
833
|
+
<span class="ruby-keyword">while</span> <span class="ruby-identifier">partitions</span> = <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">partition</span>(<span class="ruby-identifier">sep</span>) <span class="ruby-keyword">and</span> <span class="ruby-operator">!</span><span class="ruby-identifier">partitions</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">empty?</span>
|
834
|
+
<span class="ruby-keyword">yield</span> <span class="ruby-identifier">partitions</span>.<span class="ruby-identifier">first</span>
|
835
|
+
<span class="ruby-identifier">buffer</span> = <span class="ruby-identifier">partitions</span>.<span class="ruby-identifier">last</span>
|
836
|
+
<span class="ruby-keyword">end</span>
|
837
|
+
}
|
838
|
+
|
839
|
+
<span class="ruby-keyword">yield</span> <span class="ruby-identifier">buffer</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">buffer</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
840
|
+
<span class="ruby-keyword">end</span></pre>
|
841
|
+
</div><!-- readlines-source -->
|
842
|
+
|
843
|
+
</div>
|
844
|
+
|
845
|
+
|
846
|
+
|
847
|
+
|
848
|
+
</div><!-- readlines-method -->
|
849
|
+
|
850
|
+
|
851
|
+
<div id="rm-method" class="method-detail ">
|
852
|
+
<a name="method-i-rm"></a>
|
853
|
+
|
854
|
+
|
855
|
+
<div class="method-heading">
|
856
|
+
<span class="method-name">rm</span><span
|
857
|
+
class="method-args">(path, recursive=false)</span>
|
858
|
+
<span class="method-click-advice">click to toggle source</span>
|
859
|
+
</div>
|
860
|
+
|
861
|
+
|
862
|
+
<div class="method-description">
|
863
|
+
|
864
|
+
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
<div class="method-source-code" id="rm-source">
|
869
|
+
<pre>
|
870
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 86</span>
|
871
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">rm</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">recursive</span>=<span class="ruby-keyword">false</span>)
|
872
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">rm</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">path</span>), <span class="ruby-identifier">recursive</span>
|
873
|
+
<span class="ruby-keyword">end</span></pre>
|
874
|
+
</div><!-- rm-source -->
|
875
|
+
|
876
|
+
</div>
|
877
|
+
|
878
|
+
|
879
|
+
|
880
|
+
|
881
|
+
</div><!-- rm-method -->
|
882
|
+
|
883
|
+
|
884
|
+
<div id="set_replication-method" class="method-detail ">
|
885
|
+
<a name="method-i-set_replication"></a>
|
886
|
+
|
887
|
+
|
888
|
+
<div class="method-heading">
|
889
|
+
<span class="method-name">set_replication</span><span
|
890
|
+
class="method-args">(path, level)</span>
|
891
|
+
<span class="method-click-advice">click to toggle source</span>
|
892
|
+
</div>
|
893
|
+
|
894
|
+
|
895
|
+
<div class="method-description">
|
896
|
+
|
897
|
+
|
898
|
+
|
899
|
+
|
900
|
+
|
901
|
+
<div class="method-source-code" id="set_replication-source">
|
902
|
+
<pre>
|
903
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 121</span>
|
904
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_replication</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">level</span>)
|
905
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">setReplication</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">path</span>), <span class="ruby-identifier">level</span>
|
906
|
+
<span class="ruby-keyword">end</span></pre>
|
907
|
+
</div><!-- set_replication-source -->
|
908
|
+
|
909
|
+
</div>
|
910
|
+
|
911
|
+
|
912
|
+
|
913
|
+
|
914
|
+
</div><!-- set_replication-method -->
|
915
|
+
|
916
|
+
|
917
|
+
<div id="shutdown-method" class="method-detail ">
|
918
|
+
<a name="method-i-shutdown"></a>
|
919
|
+
|
920
|
+
|
921
|
+
<div class="method-heading">
|
922
|
+
<span class="method-name">shutdown</span><span
|
923
|
+
class="method-args">(status=0)</span>
|
924
|
+
<span class="method-click-advice">click to toggle source</span>
|
925
|
+
</div>
|
926
|
+
|
927
|
+
|
928
|
+
<div class="method-description">
|
929
|
+
|
930
|
+
<p>shutdown the thrift server</p>
|
931
|
+
|
932
|
+
|
933
|
+
|
934
|
+
<div class="method-source-code" id="shutdown-source">
|
935
|
+
<pre>
|
936
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 18</span>
|
937
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">shutdown</span>(<span class="ruby-identifier">status</span>=<span class="ruby-value">0</span>)
|
938
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">shutdown</span> <span class="ruby-identifier">status</span>
|
939
|
+
<span class="ruby-keyword">end</span></pre>
|
940
|
+
</div><!-- shutdown-source -->
|
941
|
+
|
942
|
+
</div>
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
|
947
|
+
</div><!-- shutdown-method -->
|
948
|
+
|
949
|
+
|
950
|
+
<div id="stat-method" class="method-detail ">
|
951
|
+
<a name="method-i-stat"></a>
|
952
|
+
|
953
|
+
|
954
|
+
<div class="method-heading">
|
955
|
+
<span class="method-name">stat</span><span
|
956
|
+
class="method-args">(path)</span>
|
957
|
+
<span class="method-click-advice">click to toggle source</span>
|
958
|
+
</div>
|
959
|
+
|
960
|
+
|
961
|
+
<div class="method-description">
|
962
|
+
|
963
|
+
|
964
|
+
|
965
|
+
|
966
|
+
|
967
|
+
<div class="method-source-code" id="stat-source">
|
968
|
+
<pre>
|
969
|
+
<span class="ruby-comment"># File lib/ganapati/client.rb, line 102</span>
|
970
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stat</span>(<span class="ruby-identifier">path</span>)
|
971
|
+
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">stat</span> <span class="ruby-identifier">pname</span>(<span class="ruby-identifier">path</span>)
|
972
|
+
<span class="ruby-keyword">end</span></pre>
|
973
|
+
</div><!-- stat-source -->
|
974
|
+
|
975
|
+
</div>
|
976
|
+
|
977
|
+
|
978
|
+
|
979
|
+
|
980
|
+
</div><!-- stat-method -->
|
981
|
+
|
982
|
+
|
983
|
+
</div><!-- public-instance-method-details -->
|
984
|
+
|
985
|
+
</div><!-- 5Buntitled-5D -->
|
986
|
+
|
987
|
+
|
988
|
+
</div><!-- documentation -->
|
989
|
+
|
990
|
+
<div id="validator-badges">
|
991
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
992
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
993
|
+
Rdoc Generator</a> 2</small>.</p>
|
994
|
+
</div>
|
995
|
+
|
996
|
+
</body>
|
997
|
+
</html>
|
998
|
+
|