Parent

Methods

Class Index [+]

Quicksearch

TaskJuggler::JobInfo

The JobInfo class is just a storage container for some batch job realted pieces of information. It contains things like a job id, the process id, the stdout data and the like.

Attributes

jobId[R]
block[R]
tag[R]
pid[RW]
retVal[RW]
stdoutP[RW]
stdoutC[RW]
stdout[RW]
stdoutEOT[RW]
stderrP[RW]
stderrC[RW]
stderr[RW]
stderrEOT[RW]

Public Class Methods

new(jobId, block, tag) click to toggle source
    # File lib/BatchProcessor.rb, line 27
27:     def initialize(jobId, block, tag)
28:       # The job id. A unique number that is used by the BatchProcessor objects
29:       # to indentify jobs.
30:       @jobId = jobId
31:       # This the the block of code to be run as external process.
32:       @block = block
33:       # The tag can really be anything that the user of BatchProcessor needs
34:       # to uniquely identify the job.
35:       @tag = tag
36:       # The pipe to transfer stdout data from the child to the parent.
37:       @stdoutP, @stdoutC = nil
38:       # The stdout output of the child
39:       @stdout = ''
40:       # This flag is set to true when the EOT character has been received.
41:       @stdoutEOF = false
42:       # The pipe to transfer stderr data from the child to the parent.
43:       @stderrP, @stderrC = nil
44:       # The stderr output of the child
45:       @stderr = ''
46:       # This flag is set to true when the EOT character has been received.
47:       @stderrEOT = false
48:     end

Public Instance Methods

openPipes() click to toggle source
    # File lib/BatchProcessor.rb, line 50
50:     def openPipes
51:       @stdoutP, @stdoutC = IO.pipe
52:       @stderrP, @stderrC = IO.pipe
53:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.