Package jetbrains.buildServer.serverSide
Interface MultiNodeTasks.PersistedTask
-
- All Superinterfaces:
MultiNodeTasks.Task
- All Known Subinterfaces:
MultiNodeTasks.PerformingTask
,MultiNodeTasks.SubmittedTask
- All Known Implementing Classes:
MultiNodeTasksDbImpl.PerformingTaskImpl
- Enclosing interface:
- MultiNodeTasks
public static interface MultiNodeTasks.PersistedTask extends MultiNodeTasks.Task
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel()
Cancel the task.void
finished()
Marks the task as finishedvoid
finished(Date finishDate, String result)
Marks the task as finished and associates some result and a finish date with it, seeMultiNodeTasks.SubmittedTask.getResult()
.Date
getCreateTime()
int
getId()
Date
getLastActivityTime()
String
getLongStrArgUUID()
boolean
isCancelled()
void
setLastActivityTime(Date lastActivityTime)
Updates the last activity time for the task-
Methods inherited from interface jetbrains.buildServer.serverSide.MultiNodeTasks.Task
getIdentity, getLongArg1, getLongArg2, getStringArg, getType
-
-
-
-
Method Detail
-
getId
int getId()
-
getCreateTime
@NotNull Date getCreateTime()
-
getLastActivityTime
@Nullable Date getLastActivityTime()
- Returns:
- time when some actions related to this task were performed the last time.
-
setLastActivityTime
void setLastActivityTime(@NotNull Date lastActivityTime)
Updates the last activity time for the task- Parameters:
lastActivityTime
-
-
finished
void finished()
Marks the task as finished
-
finished
void finished(@NotNull Date finishDate, @Nullable String result)
Marks the task as finished and associates some result and a finish date with it, seeMultiNodeTasks.SubmittedTask.getResult()
. The result length must not exceed 1024 characters.- Parameters:
finishDate
-result
-- Since:
- 2022.10
-
isCancelled
boolean isCancelled()
- Returns:
- true if this task is cancelled
-
cancel
void cancel()
Cancel the task. This method just triggers the task cancellation and doesn't wait until the task is completed.
-
getLongStrArgUUID
@Nullable String getLongStrArgUUID()
-
-