|
GridGain 2.1.0
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.gridgain.grid.spi.GridSpiThread
public abstract class GridSpiThread
This class provides convenient adapter for threads used by SPIs.
This class adds necessary plumbing on top of the Thread class:
Documentation
Email Support
Online Forums
Issue Tracking
Author: 2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.1.0
![]() |
![]() |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static ThreadGroup |
DFLT_GRP
Default thread's group. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
GridSpiThread(String gridName,
String name,
GridLogger log)
Creates thread with given name. |
| Method Summary | |
|---|---|
protected abstract void |
body()
Body of SPI thread. |
protected void |
cleanup()
Should be overridden by child classes if cleanup logic is required. |
void |
interrupt()
|
boolean |
isInterrupted()
|
void |
run()
|
String |
toString()
|
| 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, interrupted, isAlive, isDaemon, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ThreadGroup DFLT_GRP
| Constructor Detail |
|---|
protected GridSpiThread(String gridName,
String name,
GridLogger log)
gridName - Name of grid this thread is created in.name - Thread's name.log - Grid logger to use.| Method Detail |
|---|
public boolean isInterrupted()
isInterrupted in class Threadpublic void interrupt()
interrupt in class Threadpublic final void run()
run in interface Runnablerun in class Threadprotected void cleanup()
protected abstract void body()
throws InterruptedException
InterruptedException - If thread got interrupted.public String toString()
toString in class Thread
|
GridGain 2.1.0
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
GridGain - Grid Computing Made Simple, ver. 2.1.0.19122008
2005-2008 Copyright © GridGain Systems. All Rights Reserved. |
|
|