Class: Concord::Thrift::BoltComputationRequest

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen-rb/bolt_types.rb

Constant Summary collapse

NAME =
1
INSTANCES =
2
CPUS =
3
MEM =
4
DISK =
5
TASKHELPER =
6
FORCEUPDATEBINARY =
7
SLUG =
8
FORCEPULLCONTAINER =
9
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  INSTANCES => {:type => ::Thrift::Types::I64, :name => 'instances', :default => 1},
  CPUS => {:type => ::Thrift::Types::DOUBLE, :name => 'cpus', :default => 0.1},
  MEM => {:type => ::Thrift::Types::I64, :name => 'mem', :default => 2048},
  DISK => {:type => ::Thrift::Types::I64, :name => 'disk', :default => 10240},
  TASKHELPER => {:type => ::Thrift::Types::STRUCT, :name => 'taskHelper', :class => ::Concord::Thrift::ExecutorTaskInfoHelper},
  FORCEUPDATEBINARY => {:type => ::Thrift::Types::BOOL, :name => 'forceUpdateBinary'},
  SLUG => {:type => ::Thrift::Types::STRING, :name => 'slug', :binary => true},
  FORCEPULLCONTAINER => {:type => ::Thrift::Types::BOOL, :name => 'forcePullContainer', :default => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



377
# File 'lib/gen-rb/bolt_types.rb', line 377

def struct_fields; FIELDS; end

#validateObject



379
380
# File 'lib/gen-rb/bolt_types.rb', line 379

def validate
end