iceprod :: core :: exe :: RunInstance :: Class RunInstance
[hide private]
[frames] | no frames]

Class RunInstance

source code

Known Subclasses:

Instance Methods [hide private]
 
setstats(self, name, value) source code
 
setpython(self, tray) source code
 
__init__(self, opts) source code
 
configure(self)
Configure I3Run instance and set status for monitoring system
source code
 
getenv(self)
Get current environment and save it
source code
 
setenv(self, i3build)
Configure environment for run
source code
 
fetch_metaproject(self, tray=0, tmpstorage='/tmp/juancarlos_icesoft')
Cached download of metaproject tarball
source code
 
fetch_dependencies(self)
Download files needed from server.
source code
 
getmemusage(self, stats) source code
 
getstats(self, file=None) source code
 
tarwork(self) source code
 
runextern(self) source code
 
get_trays(self)
Extract number of trays and iterations in each tray
source code
 
setlog4cplus(self)
Configure log4cplus to write output logging
source code
 
flush_output(self)
Cat out/err files
source code
 
run(self)
Execute each of the icetray iterations in configuration
source code
 
finish(self)
Stage out generated files and generate an inventory
source code
 
abort(self, error, message='') source code
 
startsoap(self, url, dataset, procnum, passkey) source code
 
execute(self, tray, iter) source code
Method Details [hide private]

configure(self)

source code 

Configure I3Run instance and set status for monitoring system

Returns:
True if job was configures succesfully

setenv(self, i3build)

source code 

Configure environment for run

Parameters:
  • i3build - working directory path

fetch_metaproject(self, tray=0, tmpstorage='/tmp/juancarlos_icesoft')

source code 

Cached download of metaproject tarball

Parameters:
  • tray - integer tray index in config file
  • tmpstorage - location to cache software

get_trays(self)

source code 

Extract number of trays and iterations in each tray

Returns:
array of indices indicating the number of iterations in each tray

setlog4cplus(self)

source code 

Configure log4cplus to write output logging

Returns:
path to log output file

run(self)

source code 

Execute each of the icetray iterations in configuration

Returns:
execution value (0 if everything went ok)