__init__(self,
gridID=u'0',
connection=None,
update=0)
(Constructor)
Create a JobManager for a given Grid and Connection.
This class is mainly designed to be a base class of the Conroller
and Grid classes, both of which need to manage Xgrid jobs. The class
provides basic capabilities to list active jobs and perform various
actions on those jobs (stop, restart, resume, suspend, delete). Job
submission is handled by the Controller, Grid and Job classes.
Usage
-
- Parameters:
gridID -
The grid identifier of the grid on which the JobManager will
manage jobs. Internally, the grid identifier is a unicode string,
but gridID can be given in any of the formats u'0', '0' or 0. If
gridID=u'0', the JobManager will manage jobs on the default
grid
(type=unicode, str or int)
connection -
Instance of Connection class. If empty a default Connection
object is used.
(type=Connection)
update -
A boolean flag that determines whether or not the internal
state is updated upon creation. This involves a call to the Xgrid
controller.
(type=boolean)
|