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

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.