class Hive::Thrift::HiveClusterStatus

Constants

FIELDS
MAPTASKS
MAXMAPTASKS
MAXREDUCETASKS
REDUCETASKS
STATE
TASKTRACKERS

Public Instance Methods

struct_fields() click to toggle source
# File lib/thrift/hive_service_types.rb, line 40
def struct_fields; FIELDS; end
validate() click to toggle source
# File lib/thrift/hive_service_types.rb, line 42
def validate
  unless @state.nil? || ::Hive::Thrift::JobTrackerState::VALID_VALUES.include?(@state)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
  end
end