public class TaskProgressEvent extends Object implements Serializable
Constructor and Description |
---|
TaskProgressEvent(Long taskId,
long elapsedRunTime,
long taskProgress,
String currentSubTask,
String message)
Create an event and initialise it with the passed parameters.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCreationTimeStamp()
Find the time the event was created.
|
String |
getCurrentSubTask()
This returns the name of the current sub-task stored in the event.
|
long |
getElapsedRunTime()
Return the elasped run time stored in the event.
|
String |
getMessage()
Get the message associated with the event.
|
Long |
getTaskId()
Gets the id of the
TaskDescriptor associated with the task that is running. |
long |
getTaskProgress()
The progress stored in the event.
|
public TaskProgressEvent(Long taskId, long elapsedRunTime, long taskProgress, String currentSubTask, String message)
taskId
- the identifier of the task that generated the event.elapsedRunTime
- the elapsed run time to store in the event.taskProgress
- the progress to store in the event.currentSubTask
- the current sub-task to store in the event.message
- the current message to store in the event.public String getCurrentSubTask()
public long getElapsedRunTime()
public long getTaskProgress()
public Date getCreationTimeStamp()
public String getMessage()
public Long getTaskId()
TaskDescriptor
associated with the task that is running.TaskDescriptor
associated with the task that is running.
It cannot be null.Copyright © 2002-2019 Atlassian. All Rights Reserved.