Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CdgProcess Class Reference
[YadaScheduler - the data workhorse]

Inheritance diagram for CdgProcess:

Inheritance graph
[legend]
Collaboration diagram for CdgProcess:

Collaboration graph
[legend]
List of all members.

Detailed Description

CdgProcess - interface for a cdgp process. This class wraps arround a cdgp command spawned in the background and tries to provide all you need to handle a cdgp job. The class communicates with the cdgp job connecting to its STDIN and reads back all its output on STDOUT.

Author:
Michael Daum
Id
CdgProcess.tcl,v 1.14 2004/07/13 13:32:27 micha Exp

Definition at line 22 of file CdgProcess.tcl.

Public Member Functions

 CdgProcess (TclList args)
 getJobState ()
 getPassedJobStates ()
 getPid ()
 interrupt ()
 isAlive ()
 kill ()
 nice (TclNumber prio=10)
 signal (TclNumber signo)
 start (TclString command="")
 stop ()
 tell (TclList args)
 term ()
 wait ()
 ~CdgProcess ()

Public Attributes

TclNumber bufferSize = 81920
TclString cdgp = ""
TclString consumerCommand = ""
TclString initFile = ""
TclString job = ""
TclString logFile = ""
TclString printCommand = ""
TclNumber showProgress = 0
TclNumber sync = 0
TclNumber useCopy = 0
TclString xmlFile = ""

Protected Member Functions

 _print (TclString text)


Constructor & Destructor Documentation

CdgProcess::CdgProcess TclList  args  ) 
 

constructor. This constructor builds a cdgp wrapper object. If you don't specify a cdgp binary yourself (with -cdgp "/here/it/is/cdgp"), we assume the binary to be in "$env(YADA_TMP)/cdgp-[pid]". Definition at line 59 of file CdgProcess.tcl.

CdgProcess::~CdgProcess  ) 
 

destructor. Before we leave we remove the private copy of the cdgp binary iff useCopy is true. Definition at line 82 of file CdgProcess.tcl.


Member Function Documentation

Process::_print TclString  text  )  [protected, inherited]
 

_print

Definition at line 198 of file Process.tcl.

Process::getJobState  )  [inherited]
 

getJobState

Definition at line 326 of file Process.tcl.

Process::getPassedJobStates  )  [inherited]
 

getPassedJobStates

Definition at line 336 of file Process.tcl.

Process::getPid  )  [inherited]
 

getPid

Definition at line 128 of file Process.tcl.

References Process::start().

Process::interrupt  )  [inherited]
 

interrupt

Definition at line 260 of file Process.tcl.

References Process::term().

Process::isAlive  )  [inherited]
 

isAlive

Definition at line 220 of file Process.tcl.

Process::kill  )  [inherited]
 

kill

Definition at line 274 of file Process.tcl.

References Process::signal().

Referenced by Process::term().

Process::nice TclNumber  prio = 10  )  [inherited]
 

nice

Definition at line 315 of file Process.tcl.

Process::signal TclNumber  signo  )  [inherited]
 

signal

Definition at line 281 of file Process.tcl.

Referenced by Process::kill().

CdgProcess::start TclString  command = ""  ) 
 

start the cdgp process. This forks the cdgp in the background, which is actually done in Process::start().

Parameters:
command this lets you overwrite the command given in CdgProcess::cdgp.

Reimplemented from Process.

Definition at line 95 of file CdgProcess.tcl.

References start().

Referenced by start().

CdgProcess::stop  )  [virtual]
 

stop the cdgp process. This method stops a started cdgp process and gzips the xmllogfile. Afterwards Process::stop() is called to finalize everything. There the job scheduled to be consumed.

Reimplemented from Process.

Definition at line 129 of file CdgProcess.tcl.

References stop().

Referenced by stop().

Process::tell TclList  args  )  [inherited]
 

tell

Definition at line 292 of file Process.tcl.

Process::term  )  [inherited]
 

term

Definition at line 267 of file Process.tcl.

References Process::kill().

Referenced by Process::interrupt().

Process::wait  )  [inherited]
 

wait

Definition at line 209 of file Process.tcl.


Member Data Documentation

TclString CdgProcess::cdgp = ""
 

binary location. This variable stores the absolute path to the cdgp binary that we wrap arround. Definition at line 41 of file CdgProcess.tcl.

TclString CdgProcess::initFile = ""
 

if you like to call cdgp with an init file (-i commandline option), put that filename in here. Definition at line 32 of file CdgProcess.tcl.

Process::showProgress = 0 [inherited]
 

callback for Process::showProgress showProgress Definition at line 347 of file Process.tcl.

TclNumber CdgProcess::useCopy = 0
 

binary copy usage. This flag indicates whether to use a private copy of the cdgp binary in a temp directory or not. Definition at line 37 of file CdgProcess.tcl.

TclString CdgProcess::xmlFile = ""
 

the file where to store the xml output of the logfile

Definition at line 28 of file CdgProcess.tcl.


The documentation for this class was generated from the following file:
YADA 2.0-alpha (20 Oct 2004)