|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsuramadu.util.exec.JavaThreadLauncher
suramadu.util.exec.RTThreadLauncher
Utility used to launch realtime threads. It requires a Runnable object the type of thread you want to run in and the priority to run at. It will create the Thread, SchedulingParameters, ReleaseParameters MemoryParameters MemoryArea and ProcessingGroupParameters. It will the start the thread.
Field Summary | |
static int |
DEFAULT_SCOPE_SIZE
|
static int |
DEFAULT_WRAPPER_SCRATCH_SIZE
|
Constructor Summary | |
RTThreadLauncher()
Creates a new instance of Launcher |
|
RTThreadLauncher(java.lang.Runnable runnable)
Creates a new instance of Launcher |
|
RTThreadLauncher(java.lang.Runnable runnable,
int priority)
Creates a new instance of Launcher |
|
RTThreadLauncher(java.lang.Runnable runnable,
int priority,
long period)
Creates a new instance of Launcher |
|
RTThreadLauncher(java.lang.Runnable runnable,
int priority,
long period,
long initialDelay)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadLauncherData data)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadType tt,
MemoryType mt,
java.lang.Runnable runnable)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadType tt,
MemoryType mt,
java.lang.Runnable runnable,
int priority)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadType tt,
MemoryType mt,
java.lang.Runnable runnable,
int priority,
long period)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadType tt,
MemoryType mt,
java.lang.Runnable runnable,
int priority,
long period,
long initialDelay)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadType tt,
java.lang.Runnable runnable)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadType tt,
java.lang.Runnable runnable,
int priority)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadType tt,
java.lang.Runnable runnable,
int priority,
long period)
Creates a new instance of Launcher |
|
RTThreadLauncher(ThreadType tt,
java.lang.Runnable runnable,
int priority,
long period,
long initialDelay)
Creates a new instance of Launcher |
Method Summary | |
javax.realtime.AsyncEventHandler |
getMissHandler()
|
javax.realtime.AsyncEventHandler |
getOverrunHandler()
|
javax.realtime.RelativeTime |
getRTCost()
|
javax.realtime.RelativeTime |
getRTDeadline()
|
int |
getScopeSize()
|
int |
getWrapperScratchSize()
|
void |
kill()
Kill the launched thread appropriately for its type. |
void |
setInitialDelay(long d)
|
void |
setMissHandler(javax.realtime.AsyncEventHandler rtMissHandler)
|
void |
setOverrunHandler(javax.realtime.AsyncEventHandler rtOverrunHandler)
|
void |
setPeriod(long p)
|
void |
setRTCost(javax.realtime.RelativeTime rtCost)
|
void |
setRTDeadline(javax.realtime.RelativeTime rtDeadline)
|
void |
setScopeSize(int size)
|
void |
setThreadType(ThreadType tt)
|
void |
setWrapperScratchSize(int size)
|
java.lang.String |
toString()
|
Methods inherited from class suramadu.util.exec.JavaThreadLauncher |
getInitialDelay, getIterations, getMemoryType, getPeriod, getPriority, getRunnable, getThread, getThreadType, launch, launchDaemon, setData, setIterations, setMemoryType, setPriority, setRunnable |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_WRAPPER_SCRATCH_SIZE
public static final int DEFAULT_SCOPE_SIZE
Constructor Detail |
public RTThreadLauncher()
public RTThreadLauncher(ThreadLauncherData data)
data
- initialize from data structurepublic RTThreadLauncher(java.lang.Runnable runnable)
runnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.public RTThreadLauncher(java.lang.Runnable runnable, int priority)
runnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.public RTThreadLauncher(java.lang.Runnable runnable, int priority, long period)
runnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.period
- the period in milliseconds.public RTThreadLauncher(java.lang.Runnable runnable, int priority, long period, long initialDelay)
runnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.period
- the period in milliseconds.initialDelay
- the initial delay before beginning periodic execution in milliseconds.public RTThreadLauncher(ThreadType tt, java.lang.Runnable runnable)
tt
- the ThreadType to use for this launcherrunnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.public RTThreadLauncher(ThreadType tt, java.lang.Runnable runnable, int priority)
tt
- the ThreadType to use for this launcherrunnable
- the object to run in the created thread.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.public RTThreadLauncher(ThreadType tt, java.lang.Runnable runnable, int priority, long period)
tt
- the ThreadType to use for this launcherrunnable
- the object to run in the created thread.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.period
- the period in milliseconds.public RTThreadLauncher(ThreadType tt, java.lang.Runnable runnable, int priority, long period, long initialDelay)
tt
- the ThreadType to use for this launcherrunnable
- the object to run in the created thread.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.period
- the period in milliseconds.initialDelay
- the initial delay before beginning periodic execution in milliseconds.public RTThreadLauncher(ThreadType tt, MemoryType mt, java.lang.Runnable runnable)
tt
- the ThreadType to use for this launchermt
- the MemoryType to use for this launcherrunnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.public RTThreadLauncher(ThreadType tt, MemoryType mt, java.lang.Runnable runnable, int priority)
tt
- the ThreadType to use for this launchermt
- the MemoryType to use for this launcherrunnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.public RTThreadLauncher(ThreadType tt, MemoryType mt, java.lang.Runnable runnable, int priority, long period)
tt
- the ThreadType to use for this launchermt
- the MemoryType to use for this launcherrunnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.period
- the period in milliseconds.public RTThreadLauncher(ThreadType tt, MemoryType mt, java.lang.Runnable runnable, int priority, long period, long initialDelay)
tt
- the ThreadType to use for this launchermt
- the MemoryType to use for this launcherrunnable
- the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea
is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.priority
- the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.period
- the period in milliseconds.initialDelay
- the initial delay before beginning periodic execution in milliseconds.Method Detail |
public void kill()
kill
in interface ThreadLauncher
kill
in class JavaThreadLauncher
public void setThreadType(ThreadType tt)
setThreadType
in interface ThreadLauncher
setThreadType
in class JavaThreadLauncher
public void setWrapperScratchSize(int size)
public void setScopeSize(int size)
public void setPeriod(long p)
setPeriod
in interface ThreadLauncher
setPeriod
in class JavaThreadLauncher
public void setInitialDelay(long d)
setInitialDelay
in interface ThreadLauncher
setInitialDelay
in class JavaThreadLauncher
public void setOverrunHandler(javax.realtime.AsyncEventHandler rtOverrunHandler)
public javax.realtime.AsyncEventHandler getOverrunHandler()
public void setMissHandler(javax.realtime.AsyncEventHandler rtMissHandler)
public int getWrapperScratchSize()
public int getScopeSize()
public javax.realtime.AsyncEventHandler getMissHandler()
public void setRTCost(javax.realtime.RelativeTime rtCost)
public javax.realtime.RelativeTime getRTCost()
public void setRTDeadline(javax.realtime.RelativeTime rtDeadline)
public javax.realtime.RelativeTime getRTDeadline()
public java.lang.String toString()
toString
in class JavaThreadLauncher
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |