|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.AbstractJVMComponent
fr.umlv.corosol.component.impl.DefaultJScheduler
public class DefaultJScheduler
This is the default implementation of the JScheduler interface.
JScheduler| Constructor Summary | |
|---|---|
DefaultJScheduler()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
breakScheduling()
Stops the thread managing loop of this scheduler. |
void |
enqueueThread(JThread thread)
Puts the specified thread in the thread queue of this scheduler. |
java.lang.Class |
getComponentClass()
Returns the class object describing this component. |
JThread |
getCurrentThread()
Returns the current executing thread. |
JThread[] |
getThreads()
Returns all the active threads managed by this scheduler. |
boolean |
hasNext()
Determines if there is a thread to be managed by this scheduler. |
void |
replace(JVMComponent component)
Replaces the data of this scheduler by the data of the specified component. |
void |
schedule()
Starts the thread managing loops of this scheduler. |
java.lang.String |
toString()
Returns a string representation of this scheduler. |
| Methods inherited from class fr.umlv.corosol.component.impl.AbstractJVMComponent |
|---|
configure |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface fr.umlv.corosol.component.JVMComponent |
|---|
configure |
| Constructor Detail |
|---|
public DefaultJScheduler()
| Method Detail |
|---|
public JThread getCurrentThread()
getCurrentThread in interface JSchedulerpublic void enqueueThread(JThread thread)
enqueueThread in interface JSchedulerthread - a new thread to be scheduled
public void schedule()
throws java.lang.Throwable
schedule in interface JSchedulerjava.lang.Throwable - if an exception occurs during executionbreakScheduling()public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Class getComponentClass()
getComponentClass in interface JVMComponentpublic void replace(JVMComponent component)
replace in interface JVMComponentreplace in class AbstractJVMComponentcomponent - a component to be used to initialize this componentpublic void breakScheduling()
breakScheduling in interface JSchedulergetThreads()public JThread[] getThreads()
getThreads in interface JSchedulerpublic boolean hasNext()
hasNext in interface JScheduler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||