Class CPMThreadGroup
- java.lang.Object
-
- java.lang.ThreadGroup
-
- org.apache.uima.collection.impl.cpm.engine.CPMThreadGroup
-
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
public class CPMThreadGroup extends 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
Constructors Constructor Description CPMThreadGroup(String name)CPMThreadGroup(ThreadGroup parent, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()voidsetListeners(ArrayList aListenerList)Sets listeners to be used in notificationsvoidsetProcessTrace(ProcessTrace aProcessTrace)voiduncaughtException(Thread t, 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
-
-
-
-
Constructor Detail
-
CPMThreadGroup
public CPMThreadGroup(String name)
- Parameters:
name-
-
CPMThreadGroup
public CPMThreadGroup(ThreadGroup parent, String name)
- Parameters:
parent- - parent thread groupname- - name of this thread group
-
-
Method Detail
-
setListeners
public void setListeners(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(Thread t, Throwable e)
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler- Overrides:
uncaughtExceptionin classThreadGroup
-
cleanup
public void cleanup()
-
-