Class: RubySupervisor::ProcessGroupProxy
- Inherits:
-
NamedProxy
- Object
- Proxy
- NamedProxy
- RubySupervisor::ProcessGroupProxy
- Defined in:
- lib/ruby-supervisor/api/process_group.rb
Overview
Process Group Proxy.
Instance Attribute Summary
Attributes inherited from NamedProxy
Instance Method Summary collapse
-
#restart(wait = true) ⇒ Object
Restart the process group.
-
#start(wait = true) ⇒ Object
Start the process group.
-
#stop(wait = true) ⇒ Object
Stop the process group.
Methods inherited from NamedProxy
Methods inherited from Proxy
Constructor Details
This class inherits a constructor from RubySupervisor::NamedProxy
Instance Method Details
#restart(wait = true) ⇒ Object
Restart the process group.
46 47 48 49 |
# File 'lib/ruby-supervisor/api/process_group.rb', line 46 def restart(wait = true) stop(wait) start(wait) end |
#start(wait = true) ⇒ Object
Start the process group.
26 27 28 |
# File 'lib/ruby-supervisor/api/process_group.rb', line 26 def start(wait = true) request('startProcessGroup', @name, wait) end |
#stop(wait = true) ⇒ Object
Stop the process group.
36 37 38 |
# File 'lib/ruby-supervisor/api/process_group.rb', line 36 def stop(wait = true) request('stopProcessGroup', @name, wait) end |