|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
networking.base.ForkedThread
abstract class ForkedThread
ForkedThread - this class represents a thread which can be forked
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected static int |
CHILD
Fork status CHILD - a thread was forked as child |
protected int |
m_fork
Fork status |
protected static int |
NONE
Fork status NONE neither parent nor child |
protected static int |
PARENT
Fork status PARENT - a thread has forked other thread and become parent |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ForkedThread()
Construct new ForkedThread object |
|
| Method Summary | |
|---|---|
protected void |
deinit()
Deallocate resources |
protected abstract void |
error(java.lang.Exception e)
Report error |
protected void |
init()
Allocate any required resources |
void |
run()
|
protected void |
run1()
Convenience routine |
| 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 |
| Field Detail |
|---|
protected static final int NONE
protected static final int CHILD
protected static final int PARENT
protected int m_fork
| Constructor Detail |
|---|
public ForkedThread()
forkStatus - initial fork status| Method Detail |
|---|
protected void run1()
throws java.lang.Exception
java.lang.Exception
protected void init()
throws java.lang.Exception
java.lang.Exception
protected void deinit()
throws java.lang.Exception
java.lang.Exceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprotected abstract void error(java.lang.Exception e)
e - exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Alexey Veremenko. All rights reserved.