Class: Flor::Caller::ProcessStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/flor/unit/caller_jruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



18
19
20
# File 'lib/flor/unit/caller_jruby.rb', line 18

def exitstatus
  @exitstatus
end

#processObject (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

#pidObject



26
# File 'lib/flor/unit/caller_jruby.rb', line 26

def pid; @process.pid; rescue; nil; end