public class ExitOnErrorThreadGroup extends ThreadGroup
ThreadGroupclass. This class is used by
ChildMain.main(String)to run the target application. By using this class, any
ThreadDeaththrown by threads created by the target application will be caught the process terminated. By default, the JVM will only print a stack trace of the
Errorand destroy the thread. However, when an uncaught
Erroroccurs, it normally means that the JVM has encountered a severe problem. Hence, an orderly shutdown is a reasonable approach.
Note: not all threads created by the target application are guaranteed to
use this class. Target application's may bypass this class by creating a
thread using the
Thread.Thread(ThreadGroup, String) or other similar
|Constructor and Description|
Constructs a new thread group.
|Modifier and Type||Method and Description|
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.