Class: Hadoop::API::Jobtracker::ThriftTaskTrackerStatus

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/jobtracker_types.rb

Overview

TaskTracker status; contains details of individual tasks

Constant Summary collapse

TRACKERNAME =
1
HOST =
2
HTTPPORT =
3
FAILURECOUNT =
4
TASKREPORTS =
5
LASTSEEN =
6
MAXMAPTASKS =
7
MAXREDUCETASKS =
8
TOTALVIRTUALMEMORY =
9
TOTALPHYSICALMEMORY =
11
AVAILABLESPACE =
13
MAPCOUNT =
14
REDUCECOUNT =
15
FIELDS =
{
  TRACKERNAME => {:type => ::Thrift::Types::STRING, :name => 'trackerName'},
  HOST => {:type => ::Thrift::Types::STRING, :name => 'host'},
  HTTPPORT => {:type => ::Thrift::Types::I32, :name => 'httpPort'},
  FAILURECOUNT => {:type => ::Thrift::Types::I32, :name => 'failureCount'},
  # List of the state of all tasks on this tracker
  TASKREPORTS => {:type => ::Thrift::Types::LIST, :name => 'taskReports', :element => {:type => ::Thrift::Types::STRUCT, :class => Hadoop::API::Jobtracker::ThriftTaskStatus}},
  # When did the JobTracker last hear from this TaskTracker?
  LASTSEEN => {:type => ::Thrift::Types::I64, :name => 'lastSeen'},
  # Maximum possible number of both task types
  MAXMAPTASKS => {:type => ::Thrift::Types::I32, :name => 'maxMapTasks'},
  MAXREDUCETASKS => {:type => ::Thrift::Types::I32, :name => 'maxReduceTasks'},
  # Main memory metrics, all in bytes
  TOTALVIRTUALMEMORY => {:type => ::Thrift::Types::I64, :name => 'totalVirtualMemory'},
  TOTALPHYSICALMEMORY => {:type => ::Thrift::Types::I64, :name => 'totalPhysicalMemory'},
  AVAILABLESPACE => {:type => ::Thrift::Types::I64, :name => 'availableSpace'},
  # Currently running and unassigned map and reduce tasks
  MAPCOUNT => {:type => ::Thrift::Types::I32, :name => 'mapCount'},
  REDUCECOUNT => {:type => ::Thrift::Types::I32, :name => 'reduceCount'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



412
# File 'lib/thrift/jobtracker_types.rb', line 412

def struct_fields; FIELDS; end

#validateObject



414
415
# File 'lib/thrift/jobtracker_types.rb', line 414

def validate
end