|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Handlers and other objects can be run by a Scheduler if they
provide a run() method and the methods defined below. The
Scheduler uses this information to create a suitable context
to execute the run() method.
| Method Summary | |
boolean |
addToFeasibility()
Inform the scheduler and cooperating facilities that the resource demands (as expressed in the associated instances of SchedulingParameters,
ReleaseParameters,
MemoryParameters, and
ProcessingGroupParameters)
of this instance of Schedulable
will be considered in the feasibility analysis of the
associated Scheduler until further notice. |
MemoryParameters |
getMemoryParameters()
Return the MemoryParameters of this schedulable object. |
ProcessingGroupParameters |
getProcessingGroupParameters()
Return the ProcessingGroupParameters of this schedulable object. |
ReleaseParameters |
getReleaseParameters()
Return the ReleaseParameters of this schedulable object. |
Scheduler |
getScheduler()
Return the Scheduler for this schedulable object. |
SchedulingParameters |
getSchedulingParameters()
Return the SchedulingParameters of this schedulable object. |
boolean |
removeFromFeasibility()
Inform the scheduler and cooperating facilities that the resource demands, as expressed in the associated instances of SchedulingParameters,
ReleaseParameters,
MemoryParameters, and
ProcessingGroupParameters,
of this instance of Schedulable
should no longer be considered in the feasibility analysis of the
associated Scheduler. |
void |
setMemoryParameters(MemoryParameters memory)
Set the MemoryParameters of this schedulable object. |
boolean |
setMemoryParametersIfFeasible(MemoryParameters memParam)
Set the MemoryParameters of this schedulable object. |
void |
setProcessingGroupParameters(ProcessingGroupParameters groupParameters)
Set the ProcessingGroupParameters of this schedulable object. |
boolean |
setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParameters)
Set the ProcessingGroupParameters of this schedulable object only if the resulting
task set is feasible. |
void |
setReleaseParameters(ReleaseParameters release)
Set the ReleaseParameters for this schedulable object. |
boolean |
setReleaseParametersIfFeasible(ReleaseParameters release)
Set the ReleaseParameters for this schedulable object only if the resulting
task set is feasible. |
void |
setScheduler(Scheduler scheduler)
Set the Scheduler for this schedulable object. |
void |
setScheduler(Scheduler scheduler,
SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memoryParameters,
ProcessingGroupParameters processingGroup)
Set the Scheduler for this schedulable object. |
void |
setSchedulingParameters(SchedulingParameters scheduling)
Set the SchedulingParameters of this scheduable object. |
boolean |
setSchedulingParametersIfFeasible(SchedulingParameters scheduling)
Set the SchedulingParameters of this schedulable object only if the resulting task
set is feasible. |
| Methods inherited from interface java.lang.Runnable |
run |
| Method Detail |
public boolean addToFeasibility()
SchedulingParameters,
ReleaseParameters,
MemoryParameters, and
ProcessingGroupParameters)
of this instance of Schedulable
will be considered in the feasibility analysis of the
associated Scheduler until further notice.
Whether the resulting system is feasible or not, the addition is completed.public MemoryParameters getMemoryParameters()
MemoryParameters of this schedulable object.public ReleaseParameters getReleaseParameters()
ReleaseParameters of this schedulable object.public Scheduler getScheduler()
Scheduler for this schedulable object.public SchedulingParameters getSchedulingParameters()
SchedulingParameters of this schedulable object.public ProcessingGroupParameters getProcessingGroupParameters()
ProcessingGroupParameters of this schedulable object.public boolean removeFromFeasibility()
SchedulingParameters,
ReleaseParameters,
MemoryParameters, and
ProcessingGroupParameters,
of this instance of Schedulable
should no longer be considered in the feasibility analysis of the
associated Scheduler.
Whether the resulting system is feasible or not, the subtraction is completed.public void setMemoryParameters(MemoryParameters memory)
MemoryParameters of this schedulable object.memory - The MemoryParameters object.public void setReleaseParameters(ReleaseParameters release)
ReleaseParameters for this schedulable object.release - The ReleaseParameters object.
public void setScheduler(Scheduler scheduler)
throws java.lang.IllegalThreadStateException
Scheduler for this schedulable object.scheduler - The Scheduler object.
public void setScheduler(Scheduler scheduler,
SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memoryParameters,
ProcessingGroupParameters processingGroup)
throws java.lang.IllegalThreadStateException
Scheduler for this schedulable object.scheduler - The Scheduler object.public void setSchedulingParameters(SchedulingParameters scheduling)
SchedulingParameters of this scheduable object.scheduling - The SchedulingParameters object.public void setProcessingGroupParameters(ProcessingGroupParameters groupParameters)
ProcessingGroupParameters of this schedulable object.groupParameters - The ProcessingGroupParameters object.public boolean setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParameters)
ProcessingGroupParameters of this schedulable object only if the resulting
task set is feasible.groupParameters - The ProcessingGroupParameters object.public boolean setSchedulingParametersIfFeasible(SchedulingParameters scheduling)
SchedulingParameters of this schedulable object only if the resulting task
set is feasible.scheduling - The SchedulingParameters object. If null nothing happens.public boolean setReleaseParametersIfFeasible(ReleaseParameters release)
ReleaseParameters for this schedulable object only if the resulting
task set is feasible.release - The ReleaseParameters object. If null nothing happens.public boolean setMemoryParametersIfFeasible(MemoryParameters memParam)
MemoryParameters of this schedulable object.memory - The MemoryParameters object. If null nothing happens.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||