Package iceprod :: Package server :: Module server :: Class SoapTray
[hide private]
[frames] | no frames]

Class SoapTray

source code

Known Subclasses:

XMLRPC server class for submitting jobs to IceProd

Instance Methods [hide private]
 
__init__(self, cfg) source code
 
register_module(self)
Register daemon with database and update status
source code
 
serve_forever(self)
For some reason SOAPpy throws an exception if we get an HTTP instead of HTTPS request when using SSL
source code
 
auth_db(self, db_obj, username, password, keep_open=False)
Authenticate remotely against database This is the exposed method
source code
 
authenticate(self, username, password)
Authenticate remotely against database This is the exposed method
source code
 
enqueue(self, i3steering, username, password, submitter) source code
 
submit(self, sconfig, username, password, submitter, production=False, start=0, end=0, dataset=0)
Receive a remote request for a job submission
source code
 
checkjobs(self, i3q_pkl, username, password)
Receive a remote request for a job status check
source code
 
queue_remove(self, i3q_pkl, username, password)
Receive a remote request for a job status check
source code
 
queue_suspend(self, username, password, dataset, job) source code
 
queue_resume(self, username, password, dataset, job) source code
 
queue_reset(self, username, password, dataset, job) source code
 
queue_clean(self, username, password, dataset) source code
 
queue_delete(self, username, password, dataset) source code
 
queue_dataset_finish(self, username, password, dataset) source code
 
queue_dataset_toggle_debug(self, username, password, dataset) source code
 
loaddict(self, odict_pkl, username, password, dataset_id=0) source code
 
queue_dataset_setstatus(self, username, password, dataset, status) source code
 
queue_setstatus(self, username, password, dataset, job, status) source code
 
queue_retire(self, username, password, dataset)
Mark dataset as obsolete
source code
 
queue_validate(self, username, password, dataset, valid=True) source code
 
daemon_suspend(self, username, password, grid, daemon='all') source code
 
daemon_resume(self, username, password, grid, daemon='all') source code
 
grid_add(self, username, password, grid, dataset) source code
 
grid_suspend_dataset(self, username, password, grid, dataset, suspend=1) source code
 
get_simcat_categories(self)
Get list of valid simcats
source code
 
printsummary(self, days)
get usage statistics @param days number of days (from today) to get data from @return formated string with usage statistics
source code
 
getstatus(self, dataset, job=-1)
Get list of datasets in database
source code
 
getdatasetstatus(self, dataset)
Get list of datasets in database
source code
 
showrunlist(self, search_string='')
Get list of datasets in database
source code
 
download_config(self, dataset, defaults=False, descriptions=False)
Fetch configuration from database
source code
 
check_connection(self)
Fetch configuration from database
source code
 
echo(self, msg) source code
 
register_functions(self)
expose the methods
source code
 
startsoap(self) source code
Method Details [hide private]

auth_db(self, db_obj, username, password, keep_open=False)

source code 

Authenticate remotely against database This is the exposed method

Parameters:
  • db_obj - database instance
  • username
  • password - @param : keep_open
Returns:
True if authenticated False otherwise

authenticate(self, username, password)

source code 

Authenticate remotely against database This is the exposed method

Parameters:
  • username
  • password
Returns:
True if authenticated False otherwise

submit(self, sconfig, username, password, submitter, production=False, start=0, end=0, dataset=0)

source code 

Receive a remote request for a job submission

Parameters:
  • sconfig - pickled steering configuration
  • username - (needed for connecting to the configuration database
  • password - (needed for connecting to the configuration database
  • submitter - username of person who submitted dataset
  • production - boolean flag
  • start - optional begining of job sequence (non-prod)
  • end - optional end of job sequence (non-prod)
  • dataset - optional (non-prod)
Returns:
Output generated by queue

checkjobs(self, i3q_pkl, username, password)

source code 

Receive a remote request for a job status check

Parameters:
  • i3q_pkl - a serialized iGrid object

queue_remove(self, i3q_pkl, username, password)

source code 

Receive a remote request for a job status check

Parameters:
  • i3q_pkl - a serialized iGrid object

getstatus(self, dataset, job=-1)

source code 

Get list of datasets in database

Parameters:
  • search_string - a string containing key words to use

getdatasetstatus(self, dataset)

source code 

Get list of datasets in database

Parameters:
  • search_string - a string containing key words to use

showrunlist(self, search_string='')

source code 

Get list of datasets in database

Parameters:
  • search_string - a string containing key words to use

download_config(self, dataset, defaults=False, descriptions=False)

source code 

Fetch configuration from database

Parameters:
  • datasest - dataset id for configuration

check_connection(self)

source code 

Fetch configuration from database

Parameters:
  • datasest - dataset id for configuration