GridGain™ 2.1.0
Java API Specification

org.gridgain.grid.thread
Class GridThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.gridgain.grid.thread.GridThread
All Implemented Interfaces:
Runnable

public class GridThread
extends Thread

This class adds some necessary plumbing on top of the Thread class. Specifically, it adds:

Note: this class is intended for internal use only.



See Also:

  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
GridThread(String poolName, Runnable r)
          Creates thread with given name.
GridThread(String gridName, String threadName, Runnable r)
          Creates grid thread with given name for a given grid.
GridThread(ThreadGroup parent, String gridName, String threadName, Runnable r)
          Creates grid thread with given name for a given grid with specified thread group.
 
Method Summary
 void interrupt()
          
 boolean isInterrupted()
          
 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, run, 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

DFLT_GRP

public static final ThreadGroup DFLT_GRP
Default thread's group.

Constructor Detail

GridThread

public GridThread(String poolName,
                  Runnable r)
Creates thread with given name.

Parameters:
poolName - Thread's pool name.
r - Runnable to run.

GridThread

public GridThread(String gridName,
                  String threadName,
                  Runnable r)
Creates grid thread with given name for a given grid.

Parameters:
gridName - Name of grid this thread is created for.
threadName - Name of thread.
r - Runnable to execute.

GridThread

public GridThread(ThreadGroup parent,
                  String gridName,
                  String threadName,
                  Runnable r)
Creates grid thread with given name for a given grid with specified thread group.

Parameters:
parent - Parent thread group.
gridName - Name of grid this thread is created for.
threadName - Name of thread.
r - Runnable to execute.
Method Detail

isInterrupted

public boolean isInterrupted()

Overrides:
isInterrupted in class Thread

interrupt

public void interrupt()

Overrides:
interrupt in class Thread

toString

public String toString()

Overrides:
toString in class Thread

GridGain™ 2.1.0
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.1.0.19122008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.