Class: ChildProcess::JRuby::Process
- Inherits:
-
AbstractProcess
- Object
- AbstractProcess
- ChildProcess::JRuby::Process
- Defined in:
- lib/childprocess/jruby/process.rb
Instance Attribute Summary
Attributes inherited from AbstractProcess
Instance Method Summary collapse
Methods inherited from AbstractProcess
#alive?, #crashed?, #initialize, #poll_for_exit, #start
Constructor Details
This class inherits a constructor from ChildProcess::AbstractProcess
Instance Method Details
#exited? ⇒ Boolean
7 8 9 10 11 12 13 14 |
# File 'lib/childprocess/jruby/process.rb', line 7 def exited? return true if @exit_code assert_started @exit_code = @process.exitValue rescue java.lang.IllegalThreadStateException false end |
#stop ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/childprocess/jruby/process.rb', line 16 def stop assert_started @process.destroy @process.waitFor @exit_code = @process.exitValue end |