Package | Description |
---|---|
org.hippoecm.hst.diagnosis |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTaskImpl
DefaultTaskImpl
|
Modifier and Type | Field and Description |
---|---|
static Task |
HDC.NOOP_TASK |
Modifier and Type | Method and Description |
---|---|
protected Task |
DefaultTaskImpl.createSubtask(Task parentTask,
String name)
Creates a real
Task instance. |
protected Task |
HDC.doCreateTask(String name)
Internally create a task instance by the name.
|
protected Task |
HDC.doGetCurrentTask()
Internally returns the task instance in the current thread context if available.
|
protected Task |
HDC.doGetRootTask()
Internally returns the root task instance if available.
|
protected Task |
HDC.doStart(String name)
Internally starts the root task by the name.
|
static Task |
HDC.getCurrentTask()
Returns the task in the current thread context.
|
Task |
Task.getParentTask() |
Task |
DefaultTaskImpl.getParentTask() |
static Task |
HDC.getRootTask()
Returns the root task.
|
static Task |
HDC.start(String name)
Start the root task with the name.
|
Task |
Task.startSubtask(String name)
Starts and returns a child subtask with the name.
|
Task |
DefaultTaskImpl.startSubtask(String name) |
Modifier and Type | Method and Description |
---|---|
Collection<Task> |
Task.getChildTasks()
Returns the child tasks collection
|
Collection<Task> |
DefaultTaskImpl.getChildTasks() |
Modifier and Type | Method and Description |
---|---|
protected Task |
DefaultTaskImpl.createSubtask(Task parentTask,
String name)
Creates a real
Task instance. |
protected void |
HDC.doSetCurrentTask(Task currentTask)
Internally sets the task instance in the current thread context.
|
static String |
TaskLogFormatUtils.getTaskLog(Task task)
Returns a nicely formatted string showing all the tasks hierarchically.
|
static String |
TaskLogFormatUtils.getTaskLog(Task task,
int maxDepth)
Returns a formatted string from the
task including its descendant tasks. |
static String |
TaskLogFormatUtils.getTaskLog(Task task,
int maxDepth,
long subtaskThresholdMillisec)
Returns a formatted string from the
task including its descendant tasks. |
static void |
HDC.setCurrentTask(Task currentTask)
Sets a task in the current thread context.
|
Constructor and Description |
---|
DefaultTaskImpl(Task parentTask,
String name) |
Copyright © 2012–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.