public static String interruptThread(String threadNamePattern) throws Exception {
        ThreadGroup root = Thread.currentThread().getThreadGroup();
        final StringBuilder msg = new StringBuilder();
        boolean found = false;

        for (; root.getParent() != null; root = root.getParent())
            ;

        final Thread[] all = new Thread[root.activeCount()];
        final int count = root.enumerate(all);
        for (int i = 0; i < count; i++) {
            final Thread thread = all[i];
            if (thread.getName() != null && thread.getName().matches(threadNamePattern)) {
                thread.interrupt();
                if (thread instanceof ESBThread) {
                    final ESBThread<?> ESBThread = (ESBThread<?>) thread;
                    if (ESBThread.isPCThread()) {
                        msg.append("并行计算引擎创建的线程").append(thread.getName()).append("中断状态设置成功，此停止的计算片参数为:{")
                                .append(ESBThread.getDescription()).append("}").append("\n");
                    } else {
                        msg.append("线程").append(thread.getName()).append("中断状态设置成功\n");
                    }
                } else {
                    msg.append("线程").append(thread.getName()).append("中断状态设置成功\n");
                }
                found = true;
            }
        }

        if (!found) {
            throw new Exception("UT-17001:不存在名称规则为" + threadNamePattern + "的线程，无法执行停止操作");
        }

        return msg.toString();
    }