1 | # |
---|
2 | # Autogenerated by Thrift |
---|
3 | # |
---|
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING |
---|
5 | # |
---|
6 | |
---|
7 | require 'thrift/protocol' |
---|
8 | |
---|
9 | class ThriftHandle |
---|
10 | include Thrift::Struct |
---|
11 | Thrift::Struct.field_accessor self, :id |
---|
12 | FIELDS = { |
---|
13 | -1 => {:type => Thrift::Types::I64, :name => 'id'} |
---|
14 | } |
---|
15 | end |
---|
16 | |
---|
17 | class Pathname |
---|
18 | include Thrift::Struct |
---|
19 | Thrift::Struct.field_accessor self, :pathname |
---|
20 | FIELDS = { |
---|
21 | -1 => {:type => Thrift::Types::STRING, :name => 'pathname'} |
---|
22 | } |
---|
23 | end |
---|
24 | |
---|
25 | class FileStatus |
---|
26 | include Thrift::Struct |
---|
27 | Thrift::Struct.field_accessor self, :path, :length, :isdir, :block_replication, :blocksize, :modification_time, :permission, :owner, :group |
---|
28 | FIELDS = { |
---|
29 | 1 => {:type => Thrift::Types::STRING, :name => 'path'}, |
---|
30 | 2 => {:type => Thrift::Types::I64, :name => 'length'}, |
---|
31 | 3 => {:type => Thrift::Types::BOOL, :name => 'isdir'}, |
---|
32 | 4 => {:type => Thrift::Types::I16, :name => 'block_replication'}, |
---|
33 | 5 => {:type => Thrift::Types::I64, :name => 'blocksize'}, |
---|
34 | 6 => {:type => Thrift::Types::I64, :name => 'modification_time'}, |
---|
35 | 7 => {:type => Thrift::Types::STRING, :name => 'permission'}, |
---|
36 | 8 => {:type => Thrift::Types::STRING, :name => 'owner'}, |
---|
37 | 9 => {:type => Thrift::Types::STRING, :name => 'group'} |
---|
38 | } |
---|
39 | end |
---|
40 | |
---|
41 | class BlockLocation |
---|
42 | include Thrift::Struct |
---|
43 | Thrift::Struct.field_accessor self, :hosts, :names, :offset, :length |
---|
44 | FIELDS = { |
---|
45 | 1 => {:type => Thrift::Types::LIST, :name => 'hosts', :element => {:type => Thrift::Types::STRING}}, |
---|
46 | 2 => {:type => Thrift::Types::LIST, :name => 'names', :element => {:type => Thrift::Types::STRING}}, |
---|
47 | 3 => {:type => Thrift::Types::I64, :name => 'offset'}, |
---|
48 | 4 => {:type => Thrift::Types::I64, :name => 'length'} |
---|
49 | } |
---|
50 | end |
---|
51 | |
---|
52 | class MalformedInputException < StandardError |
---|
53 | include Thrift::Struct |
---|
54 | def initialize(message=nil) |
---|
55 | super() |
---|
56 | self.message = message |
---|
57 | end |
---|
58 | |
---|
59 | Thrift::Struct.field_accessor self, :message |
---|
60 | FIELDS = { |
---|
61 | -1 => {:type => Thrift::Types::STRING, :name => 'message'} |
---|
62 | } |
---|
63 | end |
---|
64 | |
---|
65 | class ThriftIOException < StandardError |
---|
66 | include Thrift::Struct |
---|
67 | def initialize(message=nil) |
---|
68 | super() |
---|
69 | self.message = message |
---|
70 | end |
---|
71 | |
---|
72 | Thrift::Struct.field_accessor self, :message |
---|
73 | FIELDS = { |
---|
74 | -1 => {:type => Thrift::Types::STRING, :name => 'message'} |
---|
75 | } |
---|
76 | end |
---|
77 | |
---|