Class: Citrus::Components::Monitor
- Defined in:
- lib/citrus/components/monitor.rb
Overview
Monitor
Instance Method Summary collapse
-
#initialize(app, args = {}) ⇒ Monitor
constructor
Initialize the component.
-
#reconnect(master_info) ⇒ Object
Reconnect the master.
-
#start(&block) ⇒ Object
Start the component.
-
#stop(force = false, &block) ⇒ Object
Stop the component.
Constructor Details
Instance Method Details
#reconnect(master_info) ⇒ Object
Reconnect the master
42 43 44 |
# File 'lib/citrus/components/monitor.rb', line 42 def reconnect master_info @monitor.reconnect master_info end |
#start(&block) ⇒ Object
Start the component
28 29 30 |
# File 'lib/citrus/components/monitor.rb', line 28 def start &block @monitor.start &block end |
#stop(force = false, &block) ⇒ Object
Stop the component
35 36 37 |
# File 'lib/citrus/components/monitor.rb', line 35 def stop force=false, &block @monitor.stop &block end |