|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.smartfrog.sfcore.common.CreateNewChildThread
public class CreateNewChildThread
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CreateNewChildThread(java.lang.Object name,
Prim parent,
ComponentDescription cmp,
Context parms)
Creates a CreateNewChildThread that will upon running, execute the given CreateNewChild. |
|
CreateNewChildThread(java.lang.Object name,
Prim parent,
ComponentDescription cmp,
Context parms,
Prim deployer)
Creates a CreateNewChildThread that will upon running, execute the given CreateNewChild. |
|
| Method Summary | |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
Cancel the thread |
protected void |
done()
Protected method invoked when this task transitions to state isDone (whether normally or via cancellation). |
java.lang.Object |
get()
Wait |
java.lang.Object |
get(long timeout)
Wait |
boolean |
isCancelled()
Check if the state as CANCELLED |
boolean |
isDone()
Checks if the tasks is done |
void |
run()
Sets this Future to the result of computation unless it has been cancelled. |
protected void |
set(java.lang.Object v)
Sets the result of this Future to the given value unless this future has already been set or has been cancelled. |
protected void |
setException(java.lang.Throwable t)
Causes this future to report an ExecutionException with the given throwable as its cause, unless this Future has already been set or has been cancelled. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CreateNewChildThread(java.lang.Object name,
Prim parent,
ComponentDescription cmp,
Context parms)
throws SmartFrogException
name - child nameparent - parent componentcmp - component descriptionparms - Context
SmartFrogException - if callable is null
public CreateNewChildThread(java.lang.Object name,
Prim parent,
ComponentDescription cmp,
Context parms,
Prim deployer)
throws SmartFrogException
name - child nameparent - parent componentcmp - component descriptionparms - Contextdeployer - deployer
SmartFrogException - if callable is null| Method Detail |
|---|
public boolean isCancelled()
public boolean isDone()
public boolean cancel(boolean mayInterruptIfRunning)
mayInterruptIfRunning - boolean to interrupt
public java.lang.Object get()
throws java.lang.InterruptedException,
SmartFrogException
java.lang.InterruptedException - if interrupted
SmartFrogException - if failed
public java.lang.Object get(long timeout)
throws java.lang.InterruptedException,
SmartFrogException
timeout - timeout
java.lang.InterruptedException - if interrupted
SmartFrogException - if failedprotected void done()
protected void set(java.lang.Object v)
v - the valueprotected void setException(java.lang.Throwable t)
t - the cause of failure.public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||