Class: Navy::Rank
- Inherits:
-
Object
- Object
- Navy::Rank
- Defined in:
- lib/navy/rank.rb
Instance Attribute Summary collapse
-
#after_fork ⇒ Object
callbacks ##.
-
#after_stop ⇒ Object
callbacks ##.
-
#before_fork ⇒ Object
callbacks ##.
-
#before_stop ⇒ Object
callbacks ##.
-
#current_stderr ⇒ Object
Returns the value of attribute current_stderr.
-
#current_stdout ⇒ Object
Returns the value of attribute current_stdout.
-
#heartbeat ⇒ Object
callbacks ##.
- #logger ⇒ Object
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#orders ⇒ Object
orders are configuration settings.
-
#orig_stderr ⇒ Object
Returns the value of attribute orig_stderr.
-
#orig_stdout ⇒ Object
Returns the value of attribute orig_stdout.
-
#patience ⇒ Object
timeouts ##.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#post_fork ⇒ Object
callbacks ##.
-
#preload ⇒ Object
Returns the value of attribute preload.
-
#reexec_pid ⇒ Object
reexec ##.
-
#respawn_limit ⇒ Object
respawn ##.
-
#respawn_limit_seconds ⇒ Object
respawn ##.
-
#stderr_path ⇒ Object
stderr/stdout ##.
-
#stdout_path ⇒ Object
stderr/stdout ##.
-
#timeout ⇒ Object
timeouts ##.
Instance Attribute Details
#after_fork ⇒ Object
callbacks ##
7 8 9 |
# File 'lib/navy/rank.rb', line 7 def after_fork @after_fork end |
#after_stop ⇒ Object
callbacks ##
7 8 9 |
# File 'lib/navy/rank.rb', line 7 def after_stop @after_stop end |
#before_fork ⇒ Object
callbacks ##
7 8 9 |
# File 'lib/navy/rank.rb', line 7 def before_fork @before_fork end |
#before_stop ⇒ Object
callbacks ##
7 8 9 |
# File 'lib/navy/rank.rb', line 7 def before_stop @before_stop end |
#current_stderr ⇒ Object
Returns the value of attribute current_stderr.
22 23 24 |
# File 'lib/navy/rank.rb', line 22 def current_stderr @current_stderr end |
#current_stdout ⇒ Object
Returns the value of attribute current_stdout.
22 23 24 |
# File 'lib/navy/rank.rb', line 22 def current_stdout @current_stdout end |
#heartbeat ⇒ Object
callbacks ##
7 8 9 |
# File 'lib/navy/rank.rb', line 7 def heartbeat @heartbeat end |
#logger ⇒ Object
27 28 29 30 31 |
# File 'lib/navy/rank.rb', line 27 def logger (@logger ||= orders[:logger]).tap do |log| log.scope = self #if log.respond_to?(:scope=) end end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
34 35 36 |
# File 'lib/navy/rank.rb', line 34 def @options end |
#orders ⇒ Object
orders are configuration settings
4 5 6 |
# File 'lib/navy/rank.rb', line 4 def orders @orders end |
#orig_stderr ⇒ Object
Returns the value of attribute orig_stderr.
22 23 24 |
# File 'lib/navy/rank.rb', line 22 def orig_stderr @orig_stderr end |
#orig_stdout ⇒ Object
Returns the value of attribute orig_stdout.
22 23 24 |
# File 'lib/navy/rank.rb', line 22 def orig_stdout @orig_stdout end |
#patience ⇒ Object
timeouts ##
25 26 27 |
# File 'lib/navy/rank.rb', line 25 def patience @patience end |
#pid ⇒ Object
Returns the value of attribute pid.
65 66 67 |
# File 'lib/navy/rank.rb', line 65 def pid @pid end |
#post_fork ⇒ Object
callbacks ##
7 8 9 |
# File 'lib/navy/rank.rb', line 7 def post_fork @post_fork end |
#preload ⇒ Object
Returns the value of attribute preload.
67 68 69 |
# File 'lib/navy/rank.rb', line 67 def preload @preload end |
#reexec_pid ⇒ Object
reexec ##
15 16 17 |
# File 'lib/navy/rank.rb', line 15 def reexec_pid @reexec_pid end |
#respawn_limit ⇒ Object
respawn ##
18 19 20 |
# File 'lib/navy/rank.rb', line 18 def respawn_limit @respawn_limit end |
#respawn_limit_seconds ⇒ Object
respawn ##
18 19 20 |
# File 'lib/navy/rank.rb', line 18 def respawn_limit_seconds @respawn_limit_seconds end |
#stderr_path ⇒ Object
stderr/stdout ##
21 22 23 |
# File 'lib/navy/rank.rb', line 21 def stderr_path @stderr_path end |
#stdout_path ⇒ Object
stderr/stdout ##
21 22 23 |
# File 'lib/navy/rank.rb', line 21 def stdout_path @stdout_path end |
#timeout ⇒ Object
timeouts ##
25 26 27 |
# File 'lib/navy/rank.rb', line 25 def timeout @timeout end |