class TaskJuggler::JobInfo
The JobInfo
class is just a storage container for some batch job related pieces of information. It contains things like a job id, the process id, the stdout data and the like.
Attributes
Public Class Methods
Source
# File lib/taskjuggler/BatchProcessor.rb, line 28 def initialize(jobId, block, tag) # The job id. A unique number that is used by the BatchProcessor objects # to indentify jobs. @jobId = jobId # This the the block of code to be run as external process. @block = block # The tag can really be anything that the user of BatchProcessor needs # to uniquely identify the job. @tag = tag # The pipe to transfer stdout data from the child to the parent. @stdoutP, @stdoutC = nil # The stdout output of the child @stdout = '' # This flag is set to true when the EOT character has been received. @stdoutEOF = false # The pipe to transfer stderr data from the child to the parent. @stderrP, @stderrC = nil # The stderr output of the child @stderr = '' # This flag is set to true when the EOT character has been received. @stderrEOT = false end
Public Instance Methods
Source
# File lib/taskjuggler/BatchProcessor.rb, line 51 def openPipes @stdoutP, @stdoutC = IO.pipe @stderrP, @stderrC = IO.pipe end