Class: LeoFSManager::Status::NodeStat
- Inherits:
-
Object
- Object
- LeoFSManager::Status::NodeStat
- Defined in:
- lib/leofs_manager_client/leofs_manager_models.rb
Constant Summary collapse
- @@properties =
[ :version, :log_dir, :ring_cur, :ring_prev, :vm_version, :total_mem_usage, :system_mem_usage, :procs_mem_usage, :ets_mem_usage, :num_of_procs, :limit_of_procs, :thread_pool_size, :replication_msgs, :sync_vnode_msgs, :rebalance_msgs, :kernel_poll ]
Instance Method Summary collapse
-
#initialize(h) ⇒ NodeStat
constructor
A new instance of NodeStat.
Constructor Details
#initialize(h) ⇒ NodeStat
Returns a new instance of NodeStat.
93 94 95 96 97 98 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 93 def initialize(h) @@properties.each do |property| instance_variable_set("@#{property}", h[property]) end @kernel_poll = (h[:kernel_poll] == "true") if h.has_key?(:kernel_poll) end |