org.globus.cog.karajan.util
Class ThreadManager

java.lang.Object
  extended by org.globus.cog.karajan.util.ThreadManager

public class ThreadManager
extends Object


Field Summary
static boolean DEFAULT_CHECK_MEMORY
           
static int DEFAULT_MAX_THREADS
           
static String TM_CHECK_MEMORY
           
static String TM_MAX_THREADS
           
 
Constructor Summary
ThreadManager()
           
 
Method Summary
 void allocate(int requested)
           
 boolean canAllocate(int requested)
           
 boolean getCheckMemory()
           
static ThreadManager getDefault()
           
 int getMaxThreads()
           
 void release(int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_THREADS

public static final int DEFAULT_MAX_THREADS
See Also:
Constant Field Values

DEFAULT_CHECK_MEMORY

public static final boolean DEFAULT_CHECK_MEMORY
See Also:
Constant Field Values

TM_MAX_THREADS

public static final String TM_MAX_THREADS
See Also:
Constant Field Values

TM_CHECK_MEMORY

public static final String TM_CHECK_MEMORY
See Also:
Constant Field Values
Constructor Detail

ThreadManager

public ThreadManager()
Method Detail

getDefault

public static ThreadManager getDefault()

allocate

public void allocate(int requested)

release

public void release(int count)

canAllocate

public boolean canAllocate(int requested)

getMaxThreads

public int getMaxThreads()

getCheckMemory

public boolean getCheckMemory()