Class: Hadoop::API::Jobtracker::ThriftTaskStatus
- Inherits:
-
Object
- Object
- Hadoop::API::Jobtracker::ThriftTaskStatus
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/jobtracker_types.rb
Overview
Describes the current state of a single attempt
Constant Summary collapse
- TASKID =
1
- PROGRESS =
2
- STATE =
3
- DIAGNOSTICINFO =
4
- STATESTRING =
5
- TASKTRACKER =
6
- STARTTIME =
7
- FINISHTIME =
8
- OUTPUTSIZE =
9
- PHASE =
10
- COUNTERS =
11
- SHUFFLEFINISHTIME =
12
- SORTFINISHTIME =
13
- MAPFINISHTIME =
14
- FIELDS =
{ TASKID => {:type => ::Thrift::Types::STRUCT, :name => 'taskID', :class => Hadoop::API::Jobtracker::ThriftTaskAttemptID}, PROGRESS => {:type => ::Thrift::Types::DOUBLE, :name => 'progress'}, STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => Hadoop::API::Jobtracker::ThriftTaskState}, DIAGNOSTICINFO => {:type => ::Thrift::Types::STRING, :name => 'diagnosticInfo'}, STATESTRING => {:type => ::Thrift::Types::STRING, :name => 'stateString'}, TASKTRACKER => {:type => ::Thrift::Types::STRING, :name => 'taskTracker'}, STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime'}, FINISHTIME => {:type => ::Thrift::Types::I64, :name => 'finishTime'}, OUTPUTSIZE => {:type => ::Thrift::Types::I64, :name => 'outputSize'}, PHASE => {:type => ::Thrift::Types::I32, :name => 'phase', :enum_class => Hadoop::API::Jobtracker::ThriftTaskPhase}, COUNTERS => {:type => ::Thrift::Types::STRUCT, :name => 'counters', :class => Hadoop::API::Jobtracker::ThriftGroupList}, SHUFFLEFINISHTIME => {:type => ::Thrift::Types::I64, :name => 'shuffleFinishTime'}, SORTFINISHTIME => {:type => ::Thrift::Types::I64, :name => 'sortFinishTime'}, MAPFINISHTIME => {:type => ::Thrift::Types::I64, :name => 'mapFinishTime'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
309 |
# File 'lib/thrift/jobtracker_types.rb', line 309 def struct_fields; FIELDS; end |
#validate ⇒ Object
311 312 313 314 315 316 317 318 |
# File 'lib/thrift/jobtracker_types.rb', line 311 def validate unless @state.nil? || Hadoop::API::Jobtracker::ThriftTaskState::VALID_VALUES.include?(@state) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!') end unless @phase.nil? || Hadoop::API::Jobtracker::ThriftTaskPhase::VALID_VALUES.include?(@phase) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field phase!') end end |