Class: Flor::Caller::ProcessStatus
- Inherits:
-
Object
- Object
- Flor::Caller::ProcessStatus
- Defined in:
- lib/flor/unit/caller_jruby.rb
Instance Attribute Summary collapse
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#process ⇒ Object
readonly
Returns the value of attribute process.
Instance Method Summary collapse
-
#initialize(process, exitstatus) ⇒ ProcessStatus
constructor
A new instance of ProcessStatus.
- #pid ⇒ Object
Constructor Details
#initialize(process, exitstatus) ⇒ ProcessStatus
Returns a new instance of ProcessStatus.
20 21 22 23 24 |
# File 'lib/flor/unit/caller_jruby.rb', line 20 def initialize(process, exitstatus) @process = process @exitstatus = exitstatus end |
Instance Attribute Details
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
18 19 20 |
# File 'lib/flor/unit/caller_jruby.rb', line 18 def exitstatus @exitstatus end |
#process ⇒ Object (readonly)
Returns the value of attribute process.
18 19 20 |
# File 'lib/flor/unit/caller_jruby.rb', line 18 def process @process end |
Instance Method Details
#pid ⇒ Object
26 |
# File 'lib/flor/unit/caller_jruby.rb', line 26 def pid; @process.pid; rescue; nil; end |