encode.execution.Batch Class Reference

Batch. More...

List of all members.

Public Member Functions

def __init__
def get_input
def get_output
def get_error
def add
def extend
def remove
def clear
def rewind
def start
def stop
def is_alive
def on_started
def on_executor_stopped


Detailed Description

Batch.

Sequence of jobs that can be monitored via signals.  The "job-started" signal is emitted
   when a new job starts executing (callbacks are invoked with the Job as a parameter).
   "finished" is emitted when a job fails or the whole batch finishes (callbacks are
   invoked with the exit status as a parameter).

Definition at line 324 of file execution.py.


Member Function Documentation

def encode.execution.Batch.__init__ (   self,
  jobs = None 
)

Initialise an empty batch.

Definition at line 327 of file execution.py.

def encode.execution.Batch.add (   self,
  job 
)

Add JOB to be executed in this batch.

Definition at line 378 of file execution.py.

def encode.execution.Batch.clear (   self  ) 

Remove all jobs from this batch.  The batch must not be running.

Definition at line 394 of file execution.py.

def encode.execution.Batch.extend (   self,
  jobs 
)

Add JOBS to be executed in this batch.

Definition at line 383 of file execution.py.

def encode.execution.Batch.get_error (   self  ) 

Return (and possibly initialize) error output channel.

Definition at line 373 of file execution.py.

def encode.execution.Batch.get_input (   self,
  fileno = 0 
)

Return (and possibly initialize) input channel.

Definition at line 345 of file execution.py.

def encode.execution.Batch.get_output (   self,
  fileno = 1 
)

Return (and possibly initialize) output channel.

Definition at line 359 of file execution.py.

def encode.execution.Batch.is_alive (   self  ) 

Check if one of the jobs is currently running.

Definition at line 434 of file execution.py.

def encode.execution.Batch.on_executor_stopped (   self,
  executor,
  status 
)

Definition at line 442 of file execution.py.

def encode.execution.Batch.on_started (   self,
  batch,
  job 
)

Definition at line 439 of file execution.py.

def encode.execution.Batch.remove (   self,
  job 
)

Remove JOB from this batch.  The batch must not be running.

Definition at line 388 of file execution.py.

def encode.execution.Batch.rewind (   self  ) 

Batch position will be reset.  The batch must not be running.

Definition at line 400 of file execution.py.

def encode.execution.Batch.start (   self  ) 

Execute the remaining jobs.

Definition at line 406 of file execution.py.

def encode.execution.Batch.stop (   self  ) 

Stop the execution.

Definition at line 429 of file execution.py.


The documentation for this class was generated from the following file:
Generated on Thu Jan 18 09:47:53 2007 for Encode by  doxygen 1.4.7