Package gmisclib :: Module spread_jobs :: Class Connection_subprocess
[frames] | no frames]

Class Connection_subprocess

source code


This is a Connection via stdin/stdout to a subprocess.

Instance Methods
 
__init__(self, arglist)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
send(self, todo) source code
 
get(self)
Returns: (answer, standard_output, standard_error) or None.
source code
 
close1(self) source code
 
close2(self) source code
 
I_am_working(self, now) (Inherited from gmisclib.spread_jobs.Connection) source code
 
argstring(self) (Inherited from gmisclib.spread_jobs.Connection) source code
 
close(self)
Closes the channel to the slave. (Inherited from gmisclib.spread_jobs.Connection)
source code
 
mystate(self, state) (Inherited from gmisclib.spread_jobs.Connection) source code
 
performance(self) (Inherited from gmisclib.spread_jobs.Connection) source code
 
usefulness(self) (Inherited from gmisclib.spread_jobs.Connection) source code
list(str)
wait(self)
Waits for the slave to terminate and closes the channel from the slave. (Inherited from gmisclib.spread_jobs.Connection)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  GetError = (<type 'exceptions.EOFError'>, <class 'cPickle.Unpi...
  ConnectError = (<type 'exceptions.OSError'>)
  BUSYFAC1 = 0.85 (Inherited from gmisclib.spread_jobs.Connection)
  BUSYFAC2 = 0.15 (Inherited from gmisclib.spread_jobs.Connection)
  SendError = (<type 'exceptions.IOError'>, <type 'exceptions.Va... (Inherited from gmisclib.spread_jobs.Connection)
Instance Variables
  uness
How useful is this thread? (Inherited from gmisclib.spread_jobs.Connection)
Properties

Inherited from object: __class__

Method Details

__init__(self, arglist)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • arglist - an argument list to execute to start a subprocess.
Raises:
  • OSError - when connection cannot be set up.
Overrides: object.__init__
(inherited documentation)

send(self, todo)

source code 
Raises:
  • IOError - Trouble sending.
Overrides: Connection.send
(inherited documentation)

get(self)

source code 
Returns:
(answer, standard_output, standard_error) or None.
Raises:
  • EOFError - No data available from slave.
Overrides: Connection.get
(inherited documentation)

Class Variable Details

GetError

Value:
(<type 'exceptions.EOFError'>,
 <class 'cPickle.UnpicklingError'>,
 <type 'exceptions.ValueError'>)