Class CPMThreadGroup
java.lang.Object
java.lang.ThreadGroup
org.apache.uima.collection.impl.cpm.engine.CPMThreadGroup
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
void
setListeners
(ArrayList aListenerList) Sets listeners to be used in notificationsvoid
setProcessTrace
(ProcessTrace aProcessTrace) void
uncaughtException
(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 Details
-
CPMThreadGroup
- Parameters:
name
-
-
CPMThreadGroup
- Parameters:
parent
- - parent thread groupname
- - name of this thread group
-
-
Method Details
-
setListeners
Sets listeners to be used in notifications- Parameters:
aListenerList
- - list of registered listners
-
setProcessTrace
-
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
- Overrides:
uncaughtException
in classThreadGroup
-
cleanup
public void cleanup()
-