@TaskMeta(id="thread-dump",name="JVM Thread Dump",description="produces thread dumps of the JVM running the UltraESB instance",maskable=false,intensive=true,taskParameters={@TaskParamMeta(name="output",description="output filename of the temporary thread dump files",configurable=false,defaultValue="threads_[timestamp].txt"),@TaskParamMeta(name="count",description="number of thread dump samples",configurable=true,defaultValue="3"),@TaskParamMeta(name="period",description="period (in seconds) between thread dumps",configurable=true,defaultValue="5")}) public class ThreadDumpTask extends TaskBase
Modifier and Type | Field and Description |
---|---|
(package private) static int |
DEFAULT_THREAD_DUMP_COUNT
default run configurations
|
(package private) static int |
DEFAULT_THREAD_DUMP_PERIOD |
(package private) static String |
THREAD_DUMP_COUNT |
(package private) static String |
THREAD_DUMP_PERIOD |
serverConfig
Constructor and Description |
---|
ThreadDumpTask() |
Modifier and Type | Method and Description |
---|---|
Status |
execute(String outputRoot,
Map<String,String> parameters)
Executes the core logic of the task.
|
getDescription, getId, getName, getParameterDetails, isIntensive, isMaskable, setDescription, setId, setIntensive, setMaskable, setName, setParameterDetails, setServerConfig, toView
static final String THREAD_DUMP_COUNT
static final String THREAD_DUMP_PERIOD
static final int DEFAULT_THREAD_DUMP_COUNT
static final int DEFAULT_THREAD_DUMP_PERIOD
public Status execute(String outputRoot, Map<String,String> parameters) throws Exception
TaskBase
File.separator
-terminated path
defined by the outputRoot
parameter.
Any exceptions should be thrown to the base method, for maintaining proper exception notification.Copyright © 2016–2019 AdroitLogic. All rights reserved.