Class: ChildProcess::JRuby::Pump

### Home Classes Methods

### In Files

- lib/childprocess/jruby/pump.rb

### Parent

Object

### Methods

- ::new
- #run
- #stop

### Class/Module Index

Quicksearch

- ChildProcess
- ChildProcess::AbstractIO
- ChildProcess::AbstractProcess
- ChildProcess::Error
- ChildProcess::InvalidEnvironmentVariable
- ChildProcess::JRuby
- ChildProcess::JRuby::IO
- ChildProcess::JRuby::Process
- ChildProcess::JRuby::Pump
- ChildProcess::LaunchError
- ChildProcess::MissingPlatformError
- ChildProcess::SubclassResponsibility
- ChildProcess::TimeoutError
- ChildProcess::Tools
- ChildProcess::Tools::Generator
- ChildProcess::Unix
- ChildProcess::Unix::ForkExecProcess
- ChildProcess::Unix::IO
- ChildProcess::Unix::Lib
- ChildProcess::Unix::Lib::Attrs
- ChildProcess::Unix::Lib::FileActions
- ChildProcess::Unix::Platform
- ChildProcess::Unix::PosixSpawnProcess
- ChildProcess::Unix::PosixSpawnProcess::Argv
- ChildProcess::Unix::PosixSpawnProcess::Envp
- ChildProcess::Unix::Process
- ChildProcess::Windows
- ChildProcess::Windows::Handle
- ChildProcess::Windows::IO
- ChildProcess::Windows::IoCounters
- ChildProcess::Windows::JobObjectBasicLimitInformation
- ChildProcess::Windows::JobObjectExtendedLimitInformation
- ChildProcess::Windows::Lib
- ChildProcess::Windows::Process
- ChildProcess::Windows::Process::Job
- ChildProcess::Windows::ProcessBuilder
- ChildProcess::Windows::ProcessInfo
- ChildProcess::Windows::SecurityAttributes
- ChildProcess::Windows::StartupInfo
- Java
- Java::JavaIo
- Java::JavaIo::FileDescriptor
- Java::SunNioCh
- Java::SunNioCh::FileChannelImpl
- FFI
- FFI::MemoryPointer

No matching classes.

# ChildProcess::JRuby::Pump

### Constants

BUFFER_SIZE

### Public Class Methods

new(input, output) click to toggle source

    # File lib/childprocess/jruby/pump.rb, line 6
    def initialize(input, output)
      @input  = input
      @output = output
      @stop   = false
    end

### Public Instance Methods

run() click to toggle source

    # File lib/childprocess/jruby/pump.rb, line 17
    def run
      @thread = Thread.new { pump }

      self
    end

stop() click to toggle source

    # File lib/childprocess/jruby/pump.rb, line 12
    def stop
      @stop = true
      @thread && @thread.join
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.