Class: Rafflesia::CacheBenchmarkRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/cache/cache_benchmark_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  db: :db,
  evalue: :evalue,
  evict_first: :evict_first,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  max_target_seqs: :max_target_seqs,
  min_bit_score: :min_bit_score,
  out_format: :out_format,
  pack_access_mode: :pack_access_mode,
  pressure_max_bytes: :pressure_max_bytes,
  program: :program,
  query: :query,
  ref: :ref,
  run_pressure: :run_pressure,
  segment_roles: :segment_roles,
  shards: :shards,
  target_dir: :target_dir,
  threads: :threads,
  verify: :verify,
  workload: :workload
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CacheBenchmarkRequest

Returns a new instance of CacheBenchmarkRequest.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 53

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @db = hash[:db]
  @evalue = hash[:evalue]
  @evict_first = hash[:evict_first]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @max_target_seqs = hash[:max_target_seqs]
  @min_bit_score = hash[:min_bit_score]
  @out_format = hash[:out_format]
  @pack_access_mode = hash[:pack_access_mode]
  @pressure_max_bytes = hash[:pressure_max_bytes]
  @program = hash[:program]
  @query = hash[:query]
  @ref = hash[:ref]
  @run_pressure = hash[:run_pressure]
  @segment_roles = (hash[:segment_roles] || [])
  @shards = (hash[:shards] || [])
  @target_dir = hash[:target_dir]
  @threads = hash[:threads]
  @verify = hash[:verify]
  @workload = hash[:workload]
end

Instance Attribute Details

#dbObject

Returns the value of attribute db.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def db
  @db
end

#evalueObject

Returns the value of attribute evalue.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def evalue
  @evalue
end

#evict_firstObject

Returns the value of attribute evict_first.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def evict_first
  @evict_first
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def manifest_path
  @manifest_path
end

#max_target_seqsObject

Returns the value of attribute max_target_seqs.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def max_target_seqs
  @max_target_seqs
end

#min_bit_scoreObject

Returns the value of attribute min_bit_score.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def min_bit_score
  @min_bit_score
end

#out_formatObject

Returns the value of attribute out_format.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def out_format
  @out_format
end

#pack_access_modeObject

Returns the value of attribute pack_access_mode.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def pack_access_mode
  @pack_access_mode
end

#pressure_max_bytesObject

Returns the value of attribute pressure_max_bytes.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def pressure_max_bytes
  @pressure_max_bytes
end

#programObject

Returns the value of attribute program.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def program
  @program
end

#queryObject

Returns the value of attribute query.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def query
  @query
end

#refObject

Returns the value of attribute ref.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def ref
  @ref
end

#run_pressureObject

Returns the value of attribute run_pressure.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def run_pressure
  @run_pressure
end

#segment_rolesObject

Returns the value of attribute segment_roles.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def segment_roles
  @segment_roles
end

#shardsObject

Returns the value of attribute shards.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def shards
  @shards
end

#target_dirObject

Returns the value of attribute target_dir.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def target_dir
  @target_dir
end

#threadsObject

Returns the value of attribute threads.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def threads
  @threads
end

#verifyObject

Returns the value of attribute verify.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def verify
  @verify
end

#workloadObject

Returns the value of attribute workload.



31
32
33
# File 'lib/rafflesia/cache/cache_benchmark_request.rb', line 31

def workload
  @workload
end