Defines one or more joblets to be scheduled and run on resources. A ScheduleSpec instance is passed to the job’s schedule(). schedule() creates the joblets and schedules joblets to run on resources.
ScheduleSpec Construct a ScheduleSpec with defaults.
Construct a ScheduleSpec with defaults.
Assign an optional ParameterSpace for this ScheduleSpec.
Retrieve the supplied ParameterSpace for this ScheduleSpec.
Assign the number of joblets to create for this set.
Retrieve number of joblets created for this set. Only valid after <code>scheduleSweep()</code>.
Assign the Joblet class to use for joblet execution on the resource.
Retrieve the Joblet class to schedule no a resource
Assign a Constraint for resource selection. This additional Constraint is ANDed to any existing constraints including the aggregated Policies:
constraint = EqConstraint() constraint.setFact("resource.os.name") constraint.setValue("Windows XP") ScheduleSpec = ScheduleSpec() ScheduleSpec.setJobletClass(MyJoblet) ScheduleSpec.setConstraint(constraint)
Retrieve constraint object
Assign a Constraint in XML for resource selection. This additional Constraint is AND'd to any existing constraints including the aggregated Policies:
ScheduleSpec = ScheduleSpec() ScheduleSpec.setJobletClass(MyJoblet) ScheduleSpec.setConstraint("<eq fact=\"resource.os.name\" value=\"Windows XP\" />")
Retrieve constraint object
If set to true, the joblet set is constructed after applying resource constraints to the set of provisionable resource. If false (the default) the active or online set of resources is used instead.
Define facts for this jobletargs namespace for a Joblet. Each joblet created for this schedulet gets a copy of this set of joblet arguments facts.
Define additional joblet facts for this ScheduleSpec. Each joblet created for this set inherits the base set of joblet facts and any facts supplied to this function.
ScheduleSpec here is used to schedule a single joblet:
s = ScheduleSpec() s.setJobletClass(MyJoblet) self.schedule(s)
Javadoc: ScheduleSpec