Class CPMThreadGroup
- java.lang.Object
-
- java.lang.ThreadGroup
-
- org.apache.uima.collection.impl.cpm.engine.CPMThreadGroup
-
- All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
public class CPMThreadGroup extends java.lang.ThreadGroupThis 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(java.lang.String name)CPMThreadGroup(java.lang.ThreadGroup parent, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()voidsetListeners(java.util.ArrayList aListenerList)Sets listeners to be used in notificationsvoidsetProcessTrace(ProcessTrace aProcessTrace)voiduncaughtException(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
-
-
-
-
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:
uncaughtExceptionin interfacejava.lang.Thread.UncaughtExceptionHandler- Overrides:
uncaughtExceptionin classjava.lang.ThreadGroup
-
cleanup
public void cleanup()
-
-