Class: Groonga::GrntestLog::EnvironmentEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/grntest-log.rb

Instance Method Summary collapse

Constructor Details

#initialize(environment) ⇒ EnvironmentEvent

Returns a new instance of EnvironmentEvent.



26
27
28
# File 'lib/groonga/grntest-log.rb', line 26

def initialize(environment)
  @environment = environment
end

Instance Method Details

#bitObject



46
47
48
# File 'lib/groonga/grntest-log.rb', line 46

def bit
  @environment["bit"]
end

#coreObject



50
51
52
# File 'lib/groonga/grntest-log.rb', line 50

def core
  @environment["core"]
end

#cpuObject



42
43
44
# File 'lib/groonga/grntest-log.rb', line 42

def cpu
  @environment["cpu"]
end

#dateObject



38
39
40
# File 'lib/groonga/grntest-log.rb', line 38

def date
  Time.parse(@environment["date"])
end

#disk_sizeObject



82
83
84
# File 'lib/groonga/grntest-log.rb', line 82

def disk_size
  parse_size_with_unit(hdd)
end

#hddObject



78
79
80
# File 'lib/groonga/grntest-log.rb', line 78

def hdd
  @environment["HDD"]
end

#hostObject



90
91
92
# File 'lib/groonga/grntest-log.rb', line 90

def host
  @environment["HOST"]
end

#locked_memoryObject



74
75
76
# File 'lib/groonga/grntest-log.rb', line 74

def locked_memory
  parse_size_with_unit(mlocked)
end

#mlockedObject



62
63
64
# File 'lib/groonga/grntest-log.rb', line 62

def mlocked
  @environment["Mlocked"]
end

#osObject



86
87
88
# File 'lib/groonga/grntest-log.rb', line 86

def os
  @environment["OS"]
end

#portObject



94
95
96
# File 'lib/groonga/grntest-log.rb', line 94

def port
  @environment["PORT"]
end

#ramObject



54
55
56
# File 'lib/groonga/grntest-log.rb', line 54

def ram
  @environment["RAM"]
end

#scriptObject



30
31
32
# File 'lib/groonga/grntest-log.rb', line 30

def script
  @environment["script"]
end

#total_memoryObject



66
67
68
# File 'lib/groonga/grntest-log.rb', line 66

def total_memory
  parse_size_with_unit(ram)
end

#unevictableObject



58
59
60
# File 'lib/groonga/grntest-log.rb', line 58

def unevictable
  @environment["Unevictable"]
end

#unevictable_memoryObject



70
71
72
# File 'lib/groonga/grntest-log.rb', line 70

def unevictable_memory
  parse_size_with_unit(unevictable)
end

#userObject



34
35
36
# File 'lib/groonga/grntest-log.rb', line 34

def user
  @environment["user"]
end

#versionObject



98
99
100
# File 'lib/groonga/grntest-log.rb', line 98

def version
  @environment["VERSION"]
end