class Citrus::Components::Monitor

Monitor

Public Class Methods

new(app, args={}) click to toggle source

Initialize the component

@param [Object] app @param [Hash] args

# File lib/citrus/components/monitor.rb, line 23
def initialize app, args={}
  @monitor = Citrus::Monitor::Monitor.new app, args
end

Public Instance Methods

reconnect(master_info) click to toggle source

Reconnect the master

@param [Hash] master_info

# File lib/citrus/components/monitor.rb, line 42
def reconnect master_info
  @monitor.reconnect master_info
end
start(&block) click to toggle source

Start the component

# File lib/citrus/components/monitor.rb, line 28
def start &block
  @monitor.start &block
end
stop(force=false, &block) click to toggle source

Stop the component

@param [Boolean] force

# File lib/citrus/components/monitor.rb, line 35
def stop force=false, &block
  @monitor.stop &block
end