Example usage for com.liferay.portal.kernel.util ThreadUtil threadDump

List of usage examples for com.liferay.portal.kernel.util ThreadUtil threadDump

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util ThreadUtil threadDump.

Prototype

public static String threadDump() 

Source Link

Usage

From source file:com.liferay.portlet.admin.action.EditServerAction.java

License:Open Source License

protected void threadDump() throws Exception {
    if (_log.isInfoEnabled()) {
        _log.info(ThreadUtil.threadDump());
    } else {// w ww .  j a  v  a  2 s  . com
        _log.error("Thread dumps require the log level to be at least INFO for " + getClass().getName());
    }
}

From source file:com.liferay.server.admin.web.internal.portlet.action.EditServerMVCActionCommand.java

License:Open Source License

protected void threadDump() throws Exception {
    if (_log.isInfoEnabled()) {
        Log log = SanitizerLogWrapper.allowCRLF(_log);

        log.info(ThreadUtil.threadDump());
    } else {//from ww  w .j a v  a  2s . c  o  m
        Class<?> clazz = getClass();

        _log.error("Thread dumps require the log level to be at least INFO for " + clazz.getName());
    }
}