Class: Jubatus::Stat::Client::Stat
Instance Method Summary
collapse
Methods included from Common
check_type, check_types
connect, #do_mix, #get_client, #get_config, #get_name, #get_proxy_status, #get_status, #load, #save, #set_name
Constructor Details
#initialize(host, port, name, timeout_sec = 10) ⇒ Stat
Returns a new instance of Stat.
16
17
18
|
# File 'lib/jubatus/stat/client.rb', line 16
def initialize(host, port, name, timeout_sec=10)
super
end
|
Instance Method Details
#clear ⇒ Object
50
51
52
|
# File 'lib/jubatus/stat/client.rb', line 50
def clear
@jubatus_client.call("clear", [], TBool.new, [])
end
|
#entropy(key) ⇒ Object
41
42
43
|
# File 'lib/jubatus/stat/client.rb', line 41
def entropy(key)
@jubatus_client.call("entropy", [key], TFloat.new, [TString.new])
end
|
#max(key) ⇒ Object
33
34
35
|
# File 'lib/jubatus/stat/client.rb', line 33
def max(key)
@jubatus_client.call("max", [key], TFloat.new, [TString.new])
end
|
#min(key) ⇒ Object
37
38
39
|
# File 'lib/jubatus/stat/client.rb', line 37
def min(key)
@jubatus_client.call("min", [key], TFloat.new, [TString.new])
end
|
#moment(key, degree, center) ⇒ Object
45
46
47
48
|
# File 'lib/jubatus/stat/client.rb', line 45
def moment(key, degree, center)
@jubatus_client.call("moment", [key, degree, center], TFloat.new,
[TString.new, TInt.new(true, 4), TFloat.new])
end
|
#push(key, value) ⇒ Object
20
21
22
23
|
# File 'lib/jubatus/stat/client.rb', line 20
def push(key, value)
@jubatus_client.call("push", [key, value], TBool.new, [TString.new,
TFloat.new])
end
|
#stddev(key) ⇒ Object
29
30
31
|
# File 'lib/jubatus/stat/client.rb', line 29
def stddev(key)
@jubatus_client.call("stddev", [key], TFloat.new, [TString.new])
end
|
#sum(key) ⇒ Object
25
26
27
|
# File 'lib/jubatus/stat/client.rb', line 25
def sum(key)
@jubatus_client.call("sum", [key], TFloat.new, [TString.new])
end
|