ganapati 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/LICENSE +674 -0
  2. data/README.rdoc +86 -0
  3. data/Rakefile +32 -0
  4. data/bin/hcp +64 -0
  5. data/bin/hls +42 -0
  6. data/docs/classes/Ganapati.html +138 -0
  7. data/docs/classes/Ganapati/Client.html +666 -0
  8. data/docs/classes/Ganapati/FileUrl.html +253 -0
  9. data/docs/classes/Ganapati/HFile.html +271 -0
  10. data/docs/classes/ThriftHadoopFileSystem.html +169 -0
  11. data/docs/classes/ThriftHadoopFileSystem/Append_args.html +193 -0
  12. data/docs/classes/ThriftHadoopFileSystem/Append_result.html +198 -0
  13. data/docs/classes/ThriftHadoopFileSystem/BlockLocation.html +208 -0
  14. data/docs/classes/ThriftHadoopFileSystem/Chmod_args.html +198 -0
  15. data/docs/classes/ThriftHadoopFileSystem/Chmod_result.html +193 -0
  16. data/docs/classes/ThriftHadoopFileSystem/Chown_args.html +203 -0
  17. data/docs/classes/ThriftHadoopFileSystem/Chown_result.html +193 -0
  18. data/docs/classes/ThriftHadoopFileSystem/Client.html +1566 -0
  19. data/docs/classes/ThriftHadoopFileSystem/Close_args.html +193 -0
  20. data/docs/classes/ThriftHadoopFileSystem/Close_result.html +198 -0
  21. data/docs/classes/ThriftHadoopFileSystem/CreateFile_args.html +218 -0
  22. data/docs/classes/ThriftHadoopFileSystem/CreateFile_result.html +198 -0
  23. data/docs/classes/ThriftHadoopFileSystem/Create_args.html +193 -0
  24. data/docs/classes/ThriftHadoopFileSystem/Create_result.html +198 -0
  25. data/docs/classes/ThriftHadoopFileSystem/Exists_args.html +193 -0
  26. data/docs/classes/ThriftHadoopFileSystem/Exists_result.html +198 -0
  27. data/docs/classes/ThriftHadoopFileSystem/FileStatus.html +233 -0
  28. data/docs/classes/ThriftHadoopFileSystem/GetFileBlockLocations_args.html +203 -0
  29. data/docs/classes/ThriftHadoopFileSystem/GetFileBlockLocations_result.html +198 -0
  30. data/docs/classes/ThriftHadoopFileSystem/ListStatus_args.html +193 -0
  31. data/docs/classes/ThriftHadoopFileSystem/ListStatus_result.html +198 -0
  32. data/docs/classes/ThriftHadoopFileSystem/MalformedInputException.html +220 -0
  33. data/docs/classes/ThriftHadoopFileSystem/Mkdirs_args.html +193 -0
  34. data/docs/classes/ThriftHadoopFileSystem/Mkdirs_result.html +198 -0
  35. data/docs/classes/ThriftHadoopFileSystem/Open_args.html +193 -0
  36. data/docs/classes/ThriftHadoopFileSystem/Open_result.html +198 -0
  37. data/docs/classes/ThriftHadoopFileSystem/Pathname.html +193 -0
  38. data/docs/classes/ThriftHadoopFileSystem/Processor.html +710 -0
  39. data/docs/classes/ThriftHadoopFileSystem/Read_args.html +203 -0
  40. data/docs/classes/ThriftHadoopFileSystem/Read_result.html +198 -0
  41. data/docs/classes/ThriftHadoopFileSystem/Rename_args.html +198 -0
  42. data/docs/classes/ThriftHadoopFileSystem/Rename_result.html +198 -0
  43. data/docs/classes/ThriftHadoopFileSystem/Rm_args.html +198 -0
  44. data/docs/classes/ThriftHadoopFileSystem/Rm_result.html +198 -0
  45. data/docs/classes/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html +199 -0
  46. data/docs/classes/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html +188 -0
  47. data/docs/classes/ThriftHadoopFileSystem/SetReplication_args.html +198 -0
  48. data/docs/classes/ThriftHadoopFileSystem/SetReplication_result.html +193 -0
  49. data/docs/classes/ThriftHadoopFileSystem/Shutdown_args.html +193 -0
  50. data/docs/classes/ThriftHadoopFileSystem/Shutdown_result.html +188 -0
  51. data/docs/classes/ThriftHadoopFileSystem/Stat_args.html +193 -0
  52. data/docs/classes/ThriftHadoopFileSystem/Stat_result.html +198 -0
  53. data/docs/classes/ThriftHadoopFileSystem/ThriftHandle.html +193 -0
  54. data/docs/classes/ThriftHadoopFileSystem/ThriftIOException.html +220 -0
  55. data/docs/classes/ThriftHadoopFileSystem/Write_args.html +198 -0
  56. data/docs/classes/ThriftHadoopFileSystem/Write_result.html +198 -0
  57. data/docs/created.rid +1 -0
  58. data/docs/files/README_rdoc.html +209 -0
  59. data/docs/files/lib/ganapati/client_rb.html +101 -0
  60. data/docs/files/lib/ganapati/hfile_rb.html +101 -0
  61. data/docs/files/lib/ganapati/utils_rb.html +101 -0
  62. data/docs/files/lib/ganapati/version_rb.html +101 -0
  63. data/docs/files/lib/ganapati_rb.html +112 -0
  64. data/docs/files/lib/thrift/hadoopfs_constants_rb.html +117 -0
  65. data/docs/files/lib/thrift/hadoopfs_types_rb.html +110 -0
  66. data/docs/files/lib/thrift/thrift_hadoop_file_system_rb.html +118 -0
  67. data/docs/fr_class_index.html +77 -0
  68. data/docs/fr_file_index.html +35 -0
  69. data/docs/fr_method_index.html +222 -0
  70. data/docs/index.html +24 -0
  71. data/docs/rdoc-style.css +208 -0
  72. data/lib/ganapati.rb +1 -0
  73. data/lib/ganapati/client.rb +4 -2
  74. data/lib/ganapati/utils.rb +47 -0
  75. data/lib/ganapati/version.rb +3 -0
  76. metadata +79 -4
@@ -0,0 +1,193 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: ThriftHadoopFileSystem::Pathname</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">ThriftHadoopFileSystem::Pathname</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/thrift/hadoopfs_types_rb.html">
59
+ lib/thrift/hadoopfs_types.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000155">struct_fields</a>&nbsp;&nbsp;
90
+ <a href="#M000156">validate</a>&nbsp;&nbsp;
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+
96
+
97
+ <!-- if includes -->
98
+ <div id="includes">
99
+ <h3 class="section-bar">Included Modules</h3>
100
+
101
+ <div id="includes-list">
102
+ <span class="include-name">::Thrift::Struct</span>
103
+ <span class="include-name">::Thrift::Struct_Union</span>
104
+ </div>
105
+ </div>
106
+
107
+ <div id="section">
108
+
109
+
110
+ <div id="constants-list">
111
+ <h3 class="section-bar">Constants</h3>
112
+
113
+ <div class="name-list">
114
+ <table summary="Constants">
115
+ <tr class="top-aligned-row context-row">
116
+ <td class="context-item-name">PATHNAME</td>
117
+ <td>=</td>
118
+ <td class="context-item-value">-1</td>
119
+ </tr>
120
+ <tr class="top-aligned-row context-row">
121
+ <td class="context-item-name">FIELDS</td>
122
+ <td>=</td>
123
+ <td class="context-item-value">{ PATHNAME =&gt; {:type =&gt; ::Thrift::Types::STRING, :name =&gt; 'pathname'}</td>
124
+ </tr>
125
+ </table>
126
+ </div>
127
+ </div>
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <!-- if method_list -->
135
+ <div id="methods">
136
+ <h3 class="section-bar">Public Instance methods</h3>
137
+
138
+ <div id="method-M000155" class="method-detail">
139
+ <a name="M000155"></a>
140
+
141
+ <div class="method-heading">
142
+ <a href="#M000155" class="method-signature">
143
+ <span class="method-name">struct_fields</span><span class="method-args">()</span>
144
+ </a>
145
+ </div>
146
+
147
+ <div class="method-description">
148
+ <p><a class="source-toggle" href="#"
149
+ onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
150
+ <div class="method-source-code" id="M000155-source">
151
+ <pre>
152
+ <span class="ruby-comment cmt"># File lib/thrift/hadoopfs_types.rb, line 33</span>
153
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">struct_fields</span>; <span class="ruby-constant">FIELDS</span>; <span class="ruby-keyword kw">end</span>
154
+ </pre>
155
+ </div>
156
+ </div>
157
+ </div>
158
+
159
+ <div id="method-M000156" class="method-detail">
160
+ <a name="M000156"></a>
161
+
162
+ <div class="method-heading">
163
+ <a href="#M000156" class="method-signature">
164
+ <span class="method-name">validate</span><span class="method-args">()</span>
165
+ </a>
166
+ </div>
167
+
168
+ <div class="method-description">
169
+ <p><a class="source-toggle" href="#"
170
+ onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
171
+ <div class="method-source-code" id="M000156-source">
172
+ <pre>
173
+ <span class="ruby-comment cmt"># File lib/thrift/hadoopfs_types.rb, line 35</span>
174
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>
175
+ <span class="ruby-keyword kw">end</span>
176
+ </pre>
177
+ </div>
178
+ </div>
179
+ </div>
180
+
181
+
182
+ </div>
183
+
184
+
185
+ </div>
186
+
187
+
188
+ <div id="validator-badges">
189
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
190
+ </div>
191
+
192
+ </body>
193
+ </html>
@@ -0,0 +1,710 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: ThriftHadoopFileSystem::Processor</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">ThriftHadoopFileSystem::Processor</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/thrift/thrift_hadoop_file_system_rb.html">
59
+ lib/thrift/thrift_hadoop_file_system.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000010">process_append</a>&nbsp;&nbsp;
90
+ <a href="#M000020">process_chmod</a>&nbsp;&nbsp;
91
+ <a href="#M000021">process_chown</a>&nbsp;&nbsp;
92
+ <a href="#M000013">process_close</a>&nbsp;&nbsp;
93
+ <a href="#M000007">process_create</a>&nbsp;&nbsp;
94
+ <a href="#M000008">process_createFile</a>&nbsp;&nbsp;
95
+ <a href="#M000017">process_exists</a>&nbsp;&nbsp;
96
+ <a href="#M000023">process_getFileBlockLocations</a>&nbsp;&nbsp;
97
+ <a href="#M000019">process_listStatus</a>&nbsp;&nbsp;
98
+ <a href="#M000016">process_mkdirs</a>&nbsp;&nbsp;
99
+ <a href="#M000009">process_open</a>&nbsp;&nbsp;
100
+ <a href="#M000012">process_read</a>&nbsp;&nbsp;
101
+ <a href="#M000015">process_rename</a>&nbsp;&nbsp;
102
+ <a href="#M000014">process_rm</a>&nbsp;&nbsp;
103
+ <a href="#M000005">process_setInactivityTimeoutPeriod</a>&nbsp;&nbsp;
104
+ <a href="#M000022">process_setReplication</a>&nbsp;&nbsp;
105
+ <a href="#M000006">process_shutdown</a>&nbsp;&nbsp;
106
+ <a href="#M000018">process_stat</a>&nbsp;&nbsp;
107
+ <a href="#M000011">process_write</a>&nbsp;&nbsp;
108
+ </div>
109
+ </div>
110
+
111
+ </div>
112
+
113
+
114
+ <!-- if includes -->
115
+ <div id="includes">
116
+ <h3 class="section-bar">Included Modules</h3>
117
+
118
+ <div id="includes-list">
119
+ <span class="include-name">::Thrift::Processor</span>
120
+ </div>
121
+ </div>
122
+
123
+ <div id="section">
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+ <!-- if method_list -->
133
+ <div id="methods">
134
+ <h3 class="section-bar">Public Instance methods</h3>
135
+
136
+ <div id="method-M000010" class="method-detail">
137
+ <a name="M000010"></a>
138
+
139
+ <div class="method-heading">
140
+ <a href="#M000010" class="method-signature">
141
+ <span class="method-name">process_append</span><span class="method-args">(seqid, iprot, oprot)</span>
142
+ </a>
143
+ </div>
144
+
145
+ <div class="method-description">
146
+ <p><a class="source-toggle" href="#"
147
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
148
+ <div class="method-source-code" id="M000010-source">
149
+ <pre>
150
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 363</span>
151
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_append</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
152
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Append_args</span>)
153
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Append_result</span>.<span class="ruby-identifier">new</span>()
154
+ <span class="ruby-keyword kw">begin</span>
155
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">append</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>)
156
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
157
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
158
+ <span class="ruby-keyword kw">end</span>
159
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'append'</span>, <span class="ruby-identifier">seqid</span>)
160
+ <span class="ruby-keyword kw">end</span>
161
+ </pre>
162
+ </div>
163
+ </div>
164
+ </div>
165
+
166
+ <div id="method-M000020" class="method-detail">
167
+ <a name="M000020"></a>
168
+
169
+ <div class="method-heading">
170
+ <a href="#M000020" class="method-signature">
171
+ <span class="method-name">process_chmod</span><span class="method-args">(seqid, iprot, oprot)</span>
172
+ </a>
173
+ </div>
174
+
175
+ <div class="method-description">
176
+ <p><a class="source-toggle" href="#"
177
+ onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
178
+ <div class="method-source-code" id="M000020-source">
179
+ <pre>
180
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 473</span>
181
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_chmod</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
182
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Chmod_args</span>)
183
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Chmod_result</span>.<span class="ruby-identifier">new</span>()
184
+ <span class="ruby-keyword kw">begin</span>
185
+ <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">mode</span>)
186
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
187
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
188
+ <span class="ruby-keyword kw">end</span>
189
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'chmod'</span>, <span class="ruby-identifier">seqid</span>)
190
+ <span class="ruby-keyword kw">end</span>
191
+ </pre>
192
+ </div>
193
+ </div>
194
+ </div>
195
+
196
+ <div id="method-M000021" class="method-detail">
197
+ <a name="M000021"></a>
198
+
199
+ <div class="method-heading">
200
+ <a href="#M000021" class="method-signature">
201
+ <span class="method-name">process_chown</span><span class="method-args">(seqid, iprot, oprot)</span>
202
+ </a>
203
+ </div>
204
+
205
+ <div class="method-description">
206
+ <p><a class="source-toggle" href="#"
207
+ onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
208
+ <div class="method-source-code" id="M000021-source">
209
+ <pre>
210
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 484</span>
211
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_chown</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
212
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Chown_args</span>)
213
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Chown_result</span>.<span class="ruby-identifier">new</span>()
214
+ <span class="ruby-keyword kw">begin</span>
215
+ <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">chown</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">owner</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">group</span>)
216
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
217
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
218
+ <span class="ruby-keyword kw">end</span>
219
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'chown'</span>, <span class="ruby-identifier">seqid</span>)
220
+ <span class="ruby-keyword kw">end</span>
221
+ </pre>
222
+ </div>
223
+ </div>
224
+ </div>
225
+
226
+ <div id="method-M000013" class="method-detail">
227
+ <a name="M000013"></a>
228
+
229
+ <div class="method-heading">
230
+ <a href="#M000013" class="method-signature">
231
+ <span class="method-name">process_close</span><span class="method-args">(seqid, iprot, oprot)</span>
232
+ </a>
233
+ </div>
234
+
235
+ <div class="method-description">
236
+ <p><a class="source-toggle" href="#"
237
+ onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
238
+ <div class="method-source-code" id="M000013-source">
239
+ <pre>
240
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 396</span>
241
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_close</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
242
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Close_args</span>)
243
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Close_result</span>.<span class="ruby-identifier">new</span>()
244
+ <span class="ruby-keyword kw">begin</span>
245
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">close</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">out</span>)
246
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
247
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
248
+ <span class="ruby-keyword kw">end</span>
249
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'close'</span>, <span class="ruby-identifier">seqid</span>)
250
+ <span class="ruby-keyword kw">end</span>
251
+ </pre>
252
+ </div>
253
+ </div>
254
+ </div>
255
+
256
+ <div id="method-M000007" class="method-detail">
257
+ <a name="M000007"></a>
258
+
259
+ <div class="method-heading">
260
+ <a href="#M000007" class="method-signature">
261
+ <span class="method-name">process_create</span><span class="method-args">(seqid, iprot, oprot)</span>
262
+ </a>
263
+ </div>
264
+
265
+ <div class="method-description">
266
+ <p><a class="source-toggle" href="#"
267
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
268
+ <div class="method-source-code" id="M000007-source">
269
+ <pre>
270
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 330</span>
271
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_create</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
272
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Create_args</span>)
273
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Create_result</span>.<span class="ruby-identifier">new</span>()
274
+ <span class="ruby-keyword kw">begin</span>
275
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>)
276
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
277
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
278
+ <span class="ruby-keyword kw">end</span>
279
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'create'</span>, <span class="ruby-identifier">seqid</span>)
280
+ <span class="ruby-keyword kw">end</span>
281
+ </pre>
282
+ </div>
283
+ </div>
284
+ </div>
285
+
286
+ <div id="method-M000008" class="method-detail">
287
+ <a name="M000008"></a>
288
+
289
+ <div class="method-heading">
290
+ <a href="#M000008" class="method-signature">
291
+ <span class="method-name">process_createFile</span><span class="method-args">(seqid, iprot, oprot)</span>
292
+ </a>
293
+ </div>
294
+
295
+ <div class="method-description">
296
+ <p><a class="source-toggle" href="#"
297
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
298
+ <div class="method-source-code" id="M000008-source">
299
+ <pre>
300
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 341</span>
301
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_createFile</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
302
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">CreateFile_args</span>)
303
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">CreateFile_result</span>.<span class="ruby-identifier">new</span>()
304
+ <span class="ruby-keyword kw">begin</span>
305
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">createFile</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">overwrite</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">bufferSize</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">block_replication</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">blocksize</span>)
306
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
307
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
308
+ <span class="ruby-keyword kw">end</span>
309
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'createFile'</span>, <span class="ruby-identifier">seqid</span>)
310
+ <span class="ruby-keyword kw">end</span>
311
+ </pre>
312
+ </div>
313
+ </div>
314
+ </div>
315
+
316
+ <div id="method-M000017" class="method-detail">
317
+ <a name="M000017"></a>
318
+
319
+ <div class="method-heading">
320
+ <a href="#M000017" class="method-signature">
321
+ <span class="method-name">process_exists</span><span class="method-args">(seqid, iprot, oprot)</span>
322
+ </a>
323
+ </div>
324
+
325
+ <div class="method-description">
326
+ <p><a class="source-toggle" href="#"
327
+ onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
328
+ <div class="method-source-code" id="M000017-source">
329
+ <pre>
330
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 440</span>
331
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_exists</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
332
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Exists_args</span>)
333
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Exists_result</span>.<span class="ruby-identifier">new</span>()
334
+ <span class="ruby-keyword kw">begin</span>
335
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">exists</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>)
336
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
337
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
338
+ <span class="ruby-keyword kw">end</span>
339
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'exists'</span>, <span class="ruby-identifier">seqid</span>)
340
+ <span class="ruby-keyword kw">end</span>
341
+ </pre>
342
+ </div>
343
+ </div>
344
+ </div>
345
+
346
+ <div id="method-M000023" class="method-detail">
347
+ <a name="M000023"></a>
348
+
349
+ <div class="method-heading">
350
+ <a href="#M000023" class="method-signature">
351
+ <span class="method-name">process_getFileBlockLocations</span><span class="method-args">(seqid, iprot, oprot)</span>
352
+ </a>
353
+ </div>
354
+
355
+ <div class="method-description">
356
+ <p><a class="source-toggle" href="#"
357
+ onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
358
+ <div class="method-source-code" id="M000023-source">
359
+ <pre>
360
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 506</span>
361
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_getFileBlockLocations</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
362
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">GetFileBlockLocations_args</span>)
363
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">GetFileBlockLocations_result</span>.<span class="ruby-identifier">new</span>()
364
+ <span class="ruby-keyword kw">begin</span>
365
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">getFileBlockLocations</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">start</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">length</span>)
366
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
367
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
368
+ <span class="ruby-keyword kw">end</span>
369
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'getFileBlockLocations'</span>, <span class="ruby-identifier">seqid</span>)
370
+ <span class="ruby-keyword kw">end</span>
371
+ </pre>
372
+ </div>
373
+ </div>
374
+ </div>
375
+
376
+ <div id="method-M000019" class="method-detail">
377
+ <a name="M000019"></a>
378
+
379
+ <div class="method-heading">
380
+ <a href="#M000019" class="method-signature">
381
+ <span class="method-name">process_listStatus</span><span class="method-args">(seqid, iprot, oprot)</span>
382
+ </a>
383
+ </div>
384
+
385
+ <div class="method-description">
386
+ <p><a class="source-toggle" href="#"
387
+ onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
388
+ <div class="method-source-code" id="M000019-source">
389
+ <pre>
390
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 462</span>
391
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_listStatus</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
392
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">ListStatus_args</span>)
393
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">ListStatus_result</span>.<span class="ruby-identifier">new</span>()
394
+ <span class="ruby-keyword kw">begin</span>
395
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">listStatus</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>)
396
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
397
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
398
+ <span class="ruby-keyword kw">end</span>
399
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'listStatus'</span>, <span class="ruby-identifier">seqid</span>)
400
+ <span class="ruby-keyword kw">end</span>
401
+ </pre>
402
+ </div>
403
+ </div>
404
+ </div>
405
+
406
+ <div id="method-M000016" class="method-detail">
407
+ <a name="M000016"></a>
408
+
409
+ <div class="method-heading">
410
+ <a href="#M000016" class="method-signature">
411
+ <span class="method-name">process_mkdirs</span><span class="method-args">(seqid, iprot, oprot)</span>
412
+ </a>
413
+ </div>
414
+
415
+ <div class="method-description">
416
+ <p><a class="source-toggle" href="#"
417
+ onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
418
+ <div class="method-source-code" id="M000016-source">
419
+ <pre>
420
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 429</span>
421
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_mkdirs</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
422
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Mkdirs_args</span>)
423
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Mkdirs_result</span>.<span class="ruby-identifier">new</span>()
424
+ <span class="ruby-keyword kw">begin</span>
425
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">mkdirs</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>)
426
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
427
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
428
+ <span class="ruby-keyword kw">end</span>
429
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'mkdirs'</span>, <span class="ruby-identifier">seqid</span>)
430
+ <span class="ruby-keyword kw">end</span>
431
+ </pre>
432
+ </div>
433
+ </div>
434
+ </div>
435
+
436
+ <div id="method-M000009" class="method-detail">
437
+ <a name="M000009"></a>
438
+
439
+ <div class="method-heading">
440
+ <a href="#M000009" class="method-signature">
441
+ <span class="method-name">process_open</span><span class="method-args">(seqid, iprot, oprot)</span>
442
+ </a>
443
+ </div>
444
+
445
+ <div class="method-description">
446
+ <p><a class="source-toggle" href="#"
447
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
448
+ <div class="method-source-code" id="M000009-source">
449
+ <pre>
450
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 352</span>
451
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_open</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
452
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Open_args</span>)
453
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Open_result</span>.<span class="ruby-identifier">new</span>()
454
+ <span class="ruby-keyword kw">begin</span>
455
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>)
456
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
457
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
458
+ <span class="ruby-keyword kw">end</span>
459
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'open'</span>, <span class="ruby-identifier">seqid</span>)
460
+ <span class="ruby-keyword kw">end</span>
461
+ </pre>
462
+ </div>
463
+ </div>
464
+ </div>
465
+
466
+ <div id="method-M000012" class="method-detail">
467
+ <a name="M000012"></a>
468
+
469
+ <div class="method-heading">
470
+ <a href="#M000012" class="method-signature">
471
+ <span class="method-name">process_read</span><span class="method-args">(seqid, iprot, oprot)</span>
472
+ </a>
473
+ </div>
474
+
475
+ <div class="method-description">
476
+ <p><a class="source-toggle" href="#"
477
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
478
+ <div class="method-source-code" id="M000012-source">
479
+ <pre>
480
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 385</span>
481
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_read</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
482
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Read_args</span>)
483
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Read_result</span>.<span class="ruby-identifier">new</span>()
484
+ <span class="ruby-keyword kw">begin</span>
485
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">offset</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span>)
486
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
487
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
488
+ <span class="ruby-keyword kw">end</span>
489
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'read'</span>, <span class="ruby-identifier">seqid</span>)
490
+ <span class="ruby-keyword kw">end</span>
491
+ </pre>
492
+ </div>
493
+ </div>
494
+ </div>
495
+
496
+ <div id="method-M000015" class="method-detail">
497
+ <a name="M000015"></a>
498
+
499
+ <div class="method-heading">
500
+ <a href="#M000015" class="method-signature">
501
+ <span class="method-name">process_rename</span><span class="method-args">(seqid, iprot, oprot)</span>
502
+ </a>
503
+ </div>
504
+
505
+ <div class="method-description">
506
+ <p><a class="source-toggle" href="#"
507
+ onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
508
+ <div class="method-source-code" id="M000015-source">
509
+ <pre>
510
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 418</span>
511
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_rename</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
512
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Rename_args</span>)
513
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Rename_result</span>.<span class="ruby-identifier">new</span>()
514
+ <span class="ruby-keyword kw">begin</span>
515
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">rename</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">dest</span>)
516
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
517
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
518
+ <span class="ruby-keyword kw">end</span>
519
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'rename'</span>, <span class="ruby-identifier">seqid</span>)
520
+ <span class="ruby-keyword kw">end</span>
521
+ </pre>
522
+ </div>
523
+ </div>
524
+ </div>
525
+
526
+ <div id="method-M000014" class="method-detail">
527
+ <a name="M000014"></a>
528
+
529
+ <div class="method-heading">
530
+ <a href="#M000014" class="method-signature">
531
+ <span class="method-name">process_rm</span><span class="method-args">(seqid, iprot, oprot)</span>
532
+ </a>
533
+ </div>
534
+
535
+ <div class="method-description">
536
+ <p><a class="source-toggle" href="#"
537
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
538
+ <div class="method-source-code" id="M000014-source">
539
+ <pre>
540
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 407</span>
541
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_rm</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
542
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Rm_args</span>)
543
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Rm_result</span>.<span class="ruby-identifier">new</span>()
544
+ <span class="ruby-keyword kw">begin</span>
545
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">rm</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">recursive</span>)
546
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
547
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
548
+ <span class="ruby-keyword kw">end</span>
549
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'rm'</span>, <span class="ruby-identifier">seqid</span>)
550
+ <span class="ruby-keyword kw">end</span>
551
+ </pre>
552
+ </div>
553
+ </div>
554
+ </div>
555
+
556
+ <div id="method-M000005" class="method-detail">
557
+ <a name="M000005"></a>
558
+
559
+ <div class="method-heading">
560
+ <a href="#M000005" class="method-signature">
561
+ <span class="method-name">process_setInactivityTimeoutPeriod</span><span class="method-args">(seqid, iprot, oprot)</span>
562
+ </a>
563
+ </div>
564
+
565
+ <div class="method-description">
566
+ <p><a class="source-toggle" href="#"
567
+ onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
568
+ <div class="method-source-code" id="M000005-source">
569
+ <pre>
570
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 316</span>
571
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
572
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">SetInactivityTimeoutPeriod_args</span>)
573
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">SetInactivityTimeoutPeriod_result</span>.<span class="ruby-identifier">new</span>()
574
+ <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">periodInSeconds</span>)
575
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'setInactivityTimeoutPeriod'</span>, <span class="ruby-identifier">seqid</span>)
576
+ <span class="ruby-keyword kw">end</span>
577
+ </pre>
578
+ </div>
579
+ </div>
580
+ </div>
581
+
582
+ <div id="method-M000022" class="method-detail">
583
+ <a name="M000022"></a>
584
+
585
+ <div class="method-heading">
586
+ <a href="#M000022" class="method-signature">
587
+ <span class="method-name">process_setReplication</span><span class="method-args">(seqid, iprot, oprot)</span>
588
+ </a>
589
+ </div>
590
+
591
+ <div class="method-description">
592
+ <p><a class="source-toggle" href="#"
593
+ onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
594
+ <div class="method-source-code" id="M000022-source">
595
+ <pre>
596
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 495</span>
597
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_setReplication</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
598
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">SetReplication_args</span>)
599
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">SetReplication_result</span>.<span class="ruby-identifier">new</span>()
600
+ <span class="ruby-keyword kw">begin</span>
601
+ <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">setReplication</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">replication</span>)
602
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
603
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
604
+ <span class="ruby-keyword kw">end</span>
605
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'setReplication'</span>, <span class="ruby-identifier">seqid</span>)
606
+ <span class="ruby-keyword kw">end</span>
607
+ </pre>
608
+ </div>
609
+ </div>
610
+ </div>
611
+
612
+ <div id="method-M000006" class="method-detail">
613
+ <a name="M000006"></a>
614
+
615
+ <div class="method-heading">
616
+ <a href="#M000006" class="method-signature">
617
+ <span class="method-name">process_shutdown</span><span class="method-args">(seqid, iprot, oprot)</span>
618
+ </a>
619
+ </div>
620
+
621
+ <div class="method-description">
622
+ <p><a class="source-toggle" href="#"
623
+ onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
624
+ <div class="method-source-code" id="M000006-source">
625
+ <pre>
626
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 323</span>
627
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_shutdown</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
628
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Shutdown_args</span>)
629
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Shutdown_result</span>.<span class="ruby-identifier">new</span>()
630
+ <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">shutdown</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">status</span>)
631
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'shutdown'</span>, <span class="ruby-identifier">seqid</span>)
632
+ <span class="ruby-keyword kw">end</span>
633
+ </pre>
634
+ </div>
635
+ </div>
636
+ </div>
637
+
638
+ <div id="method-M000018" class="method-detail">
639
+ <a name="M000018"></a>
640
+
641
+ <div class="method-heading">
642
+ <a href="#M000018" class="method-signature">
643
+ <span class="method-name">process_stat</span><span class="method-args">(seqid, iprot, oprot)</span>
644
+ </a>
645
+ </div>
646
+
647
+ <div class="method-description">
648
+ <p><a class="source-toggle" href="#"
649
+ onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
650
+ <div class="method-source-code" id="M000018-source">
651
+ <pre>
652
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 451</span>
653
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_stat</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
654
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Stat_args</span>)
655
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Stat_result</span>.<span class="ruby-identifier">new</span>()
656
+ <span class="ruby-keyword kw">begin</span>
657
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">path</span>)
658
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
659
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
660
+ <span class="ruby-keyword kw">end</span>
661
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'stat'</span>, <span class="ruby-identifier">seqid</span>)
662
+ <span class="ruby-keyword kw">end</span>
663
+ </pre>
664
+ </div>
665
+ </div>
666
+ </div>
667
+
668
+ <div id="method-M000011" class="method-detail">
669
+ <a name="M000011"></a>
670
+
671
+ <div class="method-heading">
672
+ <a href="#M000011" class="method-signature">
673
+ <span class="method-name">process_write</span><span class="method-args">(seqid, iprot, oprot)</span>
674
+ </a>
675
+ </div>
676
+
677
+ <div class="method-description">
678
+ <p><a class="source-toggle" href="#"
679
+ onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
680
+ <div class="method-source-code" id="M000011-source">
681
+ <pre>
682
+ <span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 374</span>
683
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_write</span>(<span class="ruby-identifier">seqid</span>, <span class="ruby-identifier">iprot</span>, <span class="ruby-identifier">oprot</span>)
684
+ <span class="ruby-identifier">args</span> = <span class="ruby-identifier">read_args</span>(<span class="ruby-identifier">iprot</span>, <span class="ruby-constant">Write_args</span>)
685
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">Write_result</span>.<span class="ruby-identifier">new</span>()
686
+ <span class="ruby-keyword kw">begin</span>
687
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> = <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">args</span>.<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">data</span>)
688
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ThriftIOException</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ouch</span>
689
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> = <span class="ruby-identifier">ouch</span>
690
+ <span class="ruby-keyword kw">end</span>
691
+ <span class="ruby-identifier">write_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">oprot</span>, <span class="ruby-value str">'write'</span>, <span class="ruby-identifier">seqid</span>)
692
+ <span class="ruby-keyword kw">end</span>
693
+ </pre>
694
+ </div>
695
+ </div>
696
+ </div>
697
+
698
+
699
+ </div>
700
+
701
+
702
+ </div>
703
+
704
+
705
+ <div id="validator-badges">
706
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
707
+ </div>
708
+
709
+ </body>
710
+ </html>