|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.ThreadSynchronization
org.jppf.server.node.ThreadManager
public class ThreadManager
This class maanges the thread for the node's execution manager.
| Field Summary |
|---|
| Fields inherited from class org.jppf.utils.ThreadSynchronization |
|---|
stopped |
| Constructor Summary | |
|---|---|
ThreadManager()
Initialize this execution manager with the specified node. |
|
| Method Summary | |
|---|---|
protected NodeExecutionInfo |
computeExecutionInfo()
Computes the total CPU time used by the execution threads. |
long |
getCpuTime()
Get the total cpu time used by the task processing threads. |
long |
getCpuTime(long threadId)
Get the current cpu time for the thread identified by the specified id. |
JPPFThreadFactory |
getThreadFactory()
Get the factory used to create thread in the pool. |
ThreadMXBean |
getThreadMXBean()
Get the platform MBean used to gather statistics about the JVM threads. |
ThreadPoolExecutor |
getThreadPool()
Get the thread pool that really processes the tasks |
int |
getThreadPoolSize()
Get the size of the node's thread pool. |
int |
getThreadsPriority()
Get the priority assigned to the execution threads. |
boolean |
isCpuTimeEnabled()
Determines wheather the thread cpu time measurement is supported and enabled. |
void |
setThreadPoolSize(int size)
Set the size of the node's thread pool. |
void |
updateThreadsPriority(int newPriority)
Update the priority of all execution threads. |
| Methods inherited from class org.jppf.utils.ThreadSynchronization |
|---|
goToSleep, goToSleep, goToSleep, isStopped, setStopped, wakeUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadManager()
| Method Detail |
|---|
public void setThreadPoolSize(int size)
size - the size as an int.public int getThreadPoolSize()
public long getCpuTime()
protected NodeExecutionInfo computeExecutionInfo()
NodeExecutionInfo instance.public long getCpuTime(long threadId)
threadId - the id of the thread to the cpu time from.
public int getThreadsPriority()
public void updateThreadsPriority(int newPriority)
newPriority - the new priority to set.public ThreadPoolExecutor getThreadPool()
ThreadPoolExecutor instance.public boolean isCpuTimeEnabled()
public JPPFThreadFactory getThreadFactory()
JPPFThreadFactory instance.public ThreadMXBean getThreadMXBean()
ThreadMXBean instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||