public class IgniteThread extends Thread
Thread class.
Specifically, it adds:
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected String |
gridName
The name of the grid this thread belongs to.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
|
IgniteThread(org.apache.ignite.internal.util.worker.GridWorker worker)
Creates thread with given worker.
|
|
IgniteThread(String gridName,
String threadName,
Runnable r)
Creates grid thread with given name for a given grid.
|
protected |
IgniteThread(String gridName,
ThreadGroup threadGrp,
String threadName) |
|
IgniteThread(ThreadGroup grp,
String gridName,
String threadName,
Runnable r)
Creates grid thread with given name for a given grid with specified
thread group.
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
createName(long num,
String threadName,
String gridName)
Creates new thread name.
|
String |
getGridName()
Gets name of the grid this thread belongs to.
|
String |
toString() |
activeCount, checkAccess, clone, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldprotected final String gridName
public IgniteThread(org.apache.ignite.internal.util.worker.GridWorker worker)
worker - Runnable to create thread with.public IgniteThread(String gridName, String threadName, Runnable r)
gridName - Name of grid this thread is created for.threadName - Name of thread.r - Runnable to execute.public IgniteThread(ThreadGroup grp, String gridName, String threadName, Runnable r)
grp - Thread group.gridName - Name of grid this thread is created for.threadName - Name of thread.r - Runnable to execute.protected IgniteThread(String gridName, ThreadGroup threadGrp, String threadName)
gridName - Name of grid this thread is created for.threadGrp - Thread group.threadName - Name of thread.public String getGridName()
protected static String createName(long num, String threadName, String gridName)
num - Thread number.threadName - Thread name.gridName - Grid name.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016