Class: Ostrich::CommandHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/ostrich-jruby/command_handler.rb

Constant Summary collapse

DEFAULT_MIN_DURATION =
Util::Duration.from_seconds(60)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stats_collection, min_period = DEFAULT_MIN_DURATION) ⇒ CommandHandler

Returns a new instance of CommandHandler.



9
10
11
# File 'lib/ostrich-jruby/command_handler.rb', line 9

def initialize(stats_collection, min_period = DEFAULT_MIN_DURATION)
  @handler = handler_class.new(nil, stats_collection, min_period)
end

Instance Attribute Details

#handlerObject (readonly)

Returns the value of attribute handler.



5
6
7
# File 'lib/ostrich-jruby/command_handler.rb', line 5

def handler
  @handler
end