class Jubatus::Stat::Client::Stat

Public Class Methods

new(host, port, name, timeout_sec=10) click to toggle source
Calls superclass method Jubatus::Common::ClientBase::new
# File lib/jubatus/stat/client.rb, line 16
def initialize(host, port, name, timeout_sec=10)
  super
end

Public Instance Methods

clear() click to toggle source
# File lib/jubatus/stat/client.rb, line 50
def clear
  @jubatus_client.call("clear", [], TBool.new, [])
end
entropy(key) click to toggle source
# File lib/jubatus/stat/client.rb, line 41
def entropy(key)
  @jubatus_client.call("entropy", [key], TFloat.new, [TString.new])
end
max(key) click to toggle source
# File lib/jubatus/stat/client.rb, line 33
def max(key)
  @jubatus_client.call("max", [key], TFloat.new, [TString.new])
end
min(key) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# File lib/jubatus/stat/client.rb, line 29
def stddev(key)
  @jubatus_client.call("stddev", [key], TFloat.new, [TString.new])
end
sum(key) click to toggle source
# File lib/jubatus/stat/client.rb, line 25
def sum(key)
  @jubatus_client.call("sum", [key], TFloat.new, [TString.new])
end