Class: Hadoop::API::Jobtracker::Jobtracker::SetJobPriority_args

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

Constant Summary collapse

CTX =
10
JOBID =
1
PRIORITY =
2
FIELDS =
{
  CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
  JOBID => {:type => ::Thrift::Types::STRUCT, :name => 'jobID', :class => Hadoop::API::Jobtracker::ThriftJobID},
  PRIORITY => {:type => ::Thrift::Types::I32, :name => 'priority', :enum_class => Hadoop::API::Jobtracker::ThriftJobPriority}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



1397
# File 'lib/thrift/jobtracker.rb', line 1397

def struct_fields; FIELDS; end

#validateObject



1399
1400
1401
1402
1403
# File 'lib/thrift/jobtracker.rb', line 1399

def validate
  unless @priority.nil? || Hadoop::API::Jobtracker::ThriftJobPriority::VALID_VALUES.include?(@priority)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field priority!')
  end
end