Method: TargetNode#refresh_async

Defined in:
lib/ls4/command/top.rb

#refresh_asyncObject



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/ls4/command/top.rb', line 112

def refresh_async
	s = $net.get_session(*@address)
	s.timeout = 3
	@futures = []
	@futures[0] = s.call_async(:stat, 'cmd_read')
	@futures[1] = s.call_async(:stat, 'cmd_write')
	@futures[2] = s.call_async(:stat, 'time')
	@futures[3] = s.call_async(:stat, 'db_items')

	now = Time.now
	@elapse = now - @time
	@time = now

	self
end