|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.util.ThreadedExecutor
This class provides a concrete implementation of Executor
that spawn a thread each time it has to execute.
Field Summary | |
protected ProcessingGroupParameters |
groupParam
|
protected MemoryArea |
memoryArea
|
protected MemoryParameters |
memoryParam
|
protected boolean |
noHeap
|
protected ReleaseParameters |
releaseParam
|
protected Scheduler |
scheduler
|
protected SchedulingParameters |
schedulingParam
|
Constructor Summary | |
ThreadedExecutor()
|
|
ThreadedExecutor(SchedulingParameters schedulingParam,
ReleaseParameters releaseParam,
MemoryParameters memoryParam,
MemoryArea memoryArea,
ProcessingGroupParameters groupParam,
boolean noHeap)
|
Method Summary | |
boolean |
addIfFeasible()
Add to the feasibility of the already set scheduler if the resulting feasibility set is schedulable. |
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. |
void |
execute(Runnable logic)
Executes the given logic. |
MemoryParameters |
getMemoryParameters()
Get the MemoryParameters of this schedulable object. |
ProcessingGroupParameters |
getProcessingGroupParameters()
Get the ProcessingGroupParameters of this
schedulable object. |
ReleaseParameters |
getReleaseParameters()
Get the ReleaseParameters of this schedulable object. |
Scheduler |
getScheduler()
Get the Scheduler for this schedulable object. |
SchedulingParameters |
getSchedulingParameters()
Get the SchedulingParameters for 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 memoryParam)
Set the MemoryParameters for this schedulable object. |
boolean |
setMemoryParametersIfFeasible(MemoryParameters memoryParam)
Returns true if, after considering the value of the parameter, the task set would still be feasible. |
void |
setProcessingGroupParameters(ProcessingGroupParameters groupParam)
Set the ProcessingGroupParameters for this schedulable object. |
boolean |
setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParam)
Set the ProcessingGroupParameters of this schedulable object
only if the resulting task set is feasible. |
void |
setReleaseParameters(ReleaseParameters releaseParam)
Set the ReleaseParameters for this schedulable object. |
boolean |
setReleaseParametersIfFeasible(ReleaseParameters releaseParam)
Returns true if, after considering the value of the parameter, the task set would still be feasible. |
void |
setScheduler(Scheduler scheduler)
Set the Scheduler for this schedulable object. |
void |
setScheduler(Scheduler scheduler,
SchedulingParameters schedulingParam,
ReleaseParameters releaseParam,
MemoryParameters memoryParam,
ProcessingGroupParameters groupParam)
Set the Scheduler for this schedulable object. |
void |
setSchedulingParameters(SchedulingParameters schedulingParam)
Set the SchedulingParameters for this schedulable
object only if the resulting task set is feasible. |
boolean |
setSchedulingParametersIfFeasible(SchedulingParameters schedulingParam)
Set the SchedulingParameters for this schedulable object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.realtime.util.Executor |
shutdown |
Methods inherited from interface javax.realtime.Schedulable |
executionEligibility |
Methods inherited from interface java.lang.Runnable |
run |
Field Detail |
protected MemoryParameters memoryParam
protected ReleaseParameters releaseParam
protected SchedulingParameters schedulingParam
protected MemoryArea memoryArea
protected ProcessingGroupParameters groupParam
protected Scheduler scheduler
protected boolean noHeap
Constructor Detail |
public ThreadedExecutor()
public ThreadedExecutor(SchedulingParameters schedulingParam, ReleaseParameters releaseParam, MemoryParameters memoryParam, MemoryArea memoryArea, ProcessingGroupParameters groupParam, boolean noHeap)
Method Detail |
public void execute(Runnable logic)
Executor
execute
in interface Executor
logic
- a Runnable
valuepublic boolean addIfFeasible()
addIfFeasible
in interface Schedulable
public boolean addToFeasibility()
addToFeasibility
in interface Schedulable
public MemoryParameters getMemoryParameters()
MemoryParameters
of this schedulable object.
getMemoryParameters
in interface Schedulable
MemoryParameters
value.public void setMemoryParameters(MemoryParameters memoryParam)
MemoryParameters
for this schedulable object.
setMemoryParameters
in interface Schedulable
memoryParam
- the MemoryParameters
for this
schedulable object.public boolean setMemoryParametersIfFeasible(MemoryParameters memoryParam)
setMemoryParametersIfFeasible
in interface Schedulable
memoryParam
- the MemoryParameters
for this
schedulable object.
public ProcessingGroupParameters getProcessingGroupParameters()
ProcessingGroupParameters
of this
schedulable object.
getProcessingGroupParameters
in interface Schedulable
ProcessingGroupParameters
valuepublic void setProcessingGroupParameters(ProcessingGroupParameters groupParam)
ProcessingGroupParameters
for this schedulable object.
setProcessingGroupParameters
in interface Schedulable
groupParam
- a ProcessingGroupParameters
valuepublic boolean setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParam)
ProcessingGroupParameters
of this schedulable object
only if the resulting task set is feasible.
setProcessingGroupParametersIfFeasible
in interface Schedulable
groupParam
- a ProcessingGroupParameters
value
public ReleaseParameters getReleaseParameters()
ReleaseParameters
of this schedulable object.
getReleaseParameters
in interface Schedulable
ReleaseParameters
valuepublic void setReleaseParameters(ReleaseParameters releaseParam)
ReleaseParameters
for this schedulable object.
setReleaseParameters
in interface Schedulable
releaseParam
- a ReleaseParameters
valuepublic boolean setReleaseParametersIfFeasible(ReleaseParameters releaseParam)
setReleaseParametersIfFeasible
in interface Schedulable
releaseParam
- a ReleaseParameters
valuepublic Scheduler getScheduler()
Scheduler
for this schedulable object.
getScheduler
in interface Schedulable
Scheduler
valuepublic void setScheduler(Scheduler scheduler) throws IllegalThreadStateException
Scheduler
for this schedulable object.
setScheduler
in interface Schedulable
scheduler
- the scheduler.
IllegalThreadStateException
public void setScheduler(Scheduler scheduler, SchedulingParameters schedulingParam, ReleaseParameters releaseParam, MemoryParameters memoryParam, ProcessingGroupParameters groupParam) throws IllegalThreadStateException
Scheduler
for this schedulable object.
setScheduler
in interface Schedulable
scheduler
- a Scheduler
valueschedulingParam
- a SchedulingParameters
valuereleaseParam
- a ReleaseParameters
valuememoryParam
- a MemoryParameters
valuegroupParam
- a ProcessingGroupParameters
value
IllegalThreadStateException
- if an error occurspublic SchedulingParameters getSchedulingParameters()
SchedulingParameters
for this schedulable object.
getSchedulingParameters
in interface Schedulable
SchedulingParameters
valuepublic void setSchedulingParameters(SchedulingParameters schedulingParam)
SchedulingParameters
for this schedulable
object only if the resulting task set is feasible.
setSchedulingParameters
in interface Schedulable
schedulingParam
- a SchedulingParameters
valuepublic boolean setSchedulingParametersIfFeasible(SchedulingParameters schedulingParam)
SchedulingParameters
for this schedulable object.
setSchedulingParametersIfFeasible
in interface Schedulable
schedulingParam
- a SchedulingParameters
value
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 subtrac-tion is completed.
removeFromFeasibility
in interface Schedulable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |