Parent

Methods

LeoManager::StorageStat

Storage Status Model

Attributes

active_num_of_objects[R]
active_size_of_objects[R]
last_compaction_end[R]
last_compaction_start[R]
ratio_of_active_size[R]
total_num_of_objects[R]
total_of_objects[R]
total_size_of_objects[R]

Public Class Methods

new(h) click to toggle source
# File lib/leo_manager_models.rb, line 182
def initialize(h)
  @active_num_of_objects  = h[:active_num_of_objects]
  @total_num_of_objects   = h[:total_num_of_objects]
  @active_size_of_objects = h[:active_size_of_objects]
  @total_size_of_objects  = h[:total_size_of_objects]
  @ratio_of_active_size   = h[:ratio_of_active_size]

  last_compaction_start = h[:last_compaction_start]
  if last_compaction_start == "____-__-__ __:__:__"
    @last_compaction_start = nil # you have never done compaction
  else
    @last_compaction_start = Time.parse(last_compaction_start)
  end

  last_compaction_end = h[:last_compaction_end]
  if last_compaction_end == "____-__-__ __:__:__"
    @last_compaction_end = nil
  else
    @last_compaction_end = Time.parse(last_compaction_end)
  end
end

Public Instance Methods

file_size() click to toggle source
# File lib/leo_manager_models.rb, line 204
def file_size
  warn "property 'file_size' is deprecated"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.