org.apache.uima.collection.impl.cpm.engine
Class CPMThreadGroup

java.lang.Object
  extended by java.lang.ThreadGroup
      extended by org.apache.uima.collection.impl.cpm.engine.CPMThreadGroup
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class CPMThreadGroup
extends java.lang.ThreadGroup

This component catches uncaught errors in the CPM. All critical threads in the CPM are part of this ThreadGroup. If OutOfMemory Error is thrown this component is notified by the JVM and its job is to notify registered listeners.


Constructor Summary
CPMThreadGroup(java.lang.String name)
           
CPMThreadGroup(java.lang.ThreadGroup parent, java.lang.String name)
           
 
Method Summary
 void cleanup()
           
 void setListeners(java.util.ArrayList aListenerList)
          Sets listeners to be used in notifications
 void setProcessTrace(ProcessTrace aProcessTrace)
           
 void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
           
 
Methods inherited from class java.lang.ThreadGroup
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CPMThreadGroup

public CPMThreadGroup(java.lang.String name)
Parameters:
name -

CPMThreadGroup

public CPMThreadGroup(java.lang.ThreadGroup parent,
                      java.lang.String name)
Parameters:
parent - - parent thread group
name - - name of this thread group
Method Detail

setListeners

public void setListeners(java.util.ArrayList aListenerList)
Sets listeners to be used in notifications

Parameters:
aListenerList - - list of registered listners

setProcessTrace

public void setProcessTrace(ProcessTrace aProcessTrace)

uncaughtException

public void uncaughtException(java.lang.Thread t,
                              java.lang.Throwable e)
Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
Overrides:
uncaughtException in class java.lang.ThreadGroup

cleanup

public void cleanup()


Copyright © 2011. All Rights Reserved.