Class: RubySupervisor::ProcessGroupProxy

Inherits:
NamedProxy show all
Defined in:
lib/ruby-supervisor/api/process_group.rb

Overview

Process Group Proxy.

Instance Attribute Summary

Attributes inherited from NamedProxy

#name

Instance Method Summary collapse

Methods inherited from NamedProxy

#initialize

Methods inherited from Proxy

#initialize

Constructor Details

This class inherits a constructor from RubySupervisor::NamedProxy

Instance Method Details

#restart(wait = true) ⇒ Object

Restart the process group.

Parameters:

  • wait (Boolean) (defaults to: true)

    if true the call will block until the process group is restarted.



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.

Parameters:

  • wait (Boolean) (defaults to: true)

    if true the call will block until the process group is started.



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.

Parameters:

  • wait (Boolean) (defaults to: true)

    if true the call will block until the process group is stopped.



36
37
38
# File 'lib/ruby-supervisor/api/process_group.rb', line 36

def stop(wait = true)
  request('stopProcessGroup', @name, wait)
end