Class: HiveClusterStatus
- Inherits:
-
Object
- Object
- HiveClusterStatus
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/hive_service_types.rb
Constant Summary collapse
- TASKTRACKERS =
1
- MAPTASKS =
2
- REDUCETASKS =
3
- MAXMAPTASKS =
4
- MAXREDUCETASKS =
5
- STATE =
6
- FIELDS =
{ TASKTRACKERS => {:type => ::Thrift::Types::I32, :name => 'taskTrackers'}, MAPTASKS => {:type => ::Thrift::Types::I32, :name => 'mapTasks'}, REDUCETASKS => {:type => ::Thrift::Types::I32, :name => 'reduceTasks'}, MAXMAPTASKS => {:type => ::Thrift::Types::I32, :name => 'maxMapTasks'}, MAXREDUCETASKS => {:type => ::Thrift::Types::I32, :name => 'maxReduceTasks'}, STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => JobTrackerState} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
37 |
# File 'lib/thrift/hive_service_types.rb', line 37 def struct_fields; FIELDS; end |
#validate ⇒ Object
39 40 41 42 43 |
# File 'lib/thrift/hive_service_types.rb', line 39 def validate unless @state.nil? || JobTrackerState::VALID_VALUES.include?(@state) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!') end end |