|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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()
|
ProcessingGroupParameters |
getProcessingGroupParameters()
|
ReleaseParameters |
getReleaseParameters()
|
Scheduler |
getScheduler()
|
SchedulingParameters |
getSchedulingParameters()
|
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 memory)
|
void |
setProcessingGroupParameters(ProcessingGroupParameters groupParameters)
Set the ProcessingGroupParameters of this
schedulable object. |
boolean |
setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParameters)
|
void |
setReleaseParameters(ReleaseParameters release)
Set the ReleaseParameters of
this object |
boolean |
setReleaseParametersIfFeasible(ReleaseParameters release)
Set the ReleaseParameters of
this object if feasible |
void |
setScheduler(Scheduler scheduler)
Set the Scheduler of
this object |
void |
setScheduler(Scheduler scheduler,
SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memoryParameters,
ProcessingGroupParameters processingGroup)
Set the Scheduler and associated
parameters of this object |
void |
setSchedulingParameters(SchedulingParameters scheduling)
Set the SchedulingParameters
of this object |
boolean |
setSchedulingParametersIfFeasible(SchedulingParameters scheduling)
Set the SchedulingParameters
of this object if 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 ProcessingGroupParameters getProcessingGroupParameters()
ProcessingGroupParameters
of this schedulable object.public ReleaseParameters getReleaseParameters()
ReleaseParameters
of this schedulable object.public Scheduler getScheduler()
Scheduler
of this
schedulable object.public SchedulingParameters getSchedulingParameters()
SchedulingParameters
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 boolean setMemoryParametersIfFeasible(MemoryParameters memory)
memory
-
public void setProcessingGroupParameters(ProcessingGroupParameters groupParameters)
ProcessingGroupParameters
of this
schedulable object.
groupParameters
- the
ProcessingGroupParameters
object.public boolean setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParameters)
groupParameters
-
public void setReleaseParameters(ReleaseParameters release)
ReleaseParameters
of
this object
release
- public boolean setReleaseParametersIfFeasible(ReleaseParameters release)
ReleaseParameters
of
this object if feasible
release
-
public void setScheduler(Scheduler scheduler) throws java.lang.IllegalThreadStateException
Scheduler
of
this object
scheduler
-
IllegalThreadStateException
java.lang.IllegalThreadStateException
public void setScheduler(Scheduler scheduler, SchedulingParameters scheduling, ReleaseParameters release, MemoryParameters memoryParameters, ProcessingGroupParameters processingGroup) throws java.lang.IllegalThreadStateException
Scheduler
and associated
parameters of this object
scheduler
- scheduling
- release
- memoryParameters
- processingGroup
-
IllegalThreadStateException
java.lang.IllegalThreadStateException
public void setSchedulingParameters(SchedulingParameters scheduling)
SchedulingParameters
of this object
scheduling
- public boolean setSchedulingParametersIfFeasible(SchedulingParameters scheduling)
SchedulingParameters
of this object if feasible
scheduling
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |