Class BuildTask<R>
- java.lang.Object
-
- jetbrains.buildServer.serverSide.build.index.BuildTask<R>
-
- All Implemented Interfaces:
Comparable<BuildTask<R>>
,Callable<R>
,Loggable
public class BuildTask<R> extends Object implements Comparable<BuildTask<R>>, Loggable, Callable<R>
-
-
Constructor Summary
Constructors Constructor Description BuildTask(long buildId, byte priority, IndexModificationType imt, Runnable runnable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
call()
int
compareTo(BuildTask<R> o)
String
describe(boolean verbose)
long
getBuildId()
byte
getPriority()
void
run()
Responsible for pre-run task optimization (if more tasks of the same build exists in the queue and manages strip locks to prevent same build task run in parallel.String
toString()
-
-
-
Constructor Detail
-
BuildTask
public BuildTask(long buildId, byte priority, IndexModificationType imt, Runnable runnable)
-
-
Method Detail
-
getPriority
public byte getPriority()
-
getBuildId
public long getBuildId()
-
run
public void run()
Responsible for pre-run task optimization (if more tasks of the same build exists in the queue and manages strip locks to prevent same build task run in parallel.
-
compareTo
public int compareTo(@NotNull BuildTask<R> o)
- Specified by:
compareTo
in interfaceComparable<R>
-
describe
@NotNull public String describe(boolean verbose)
-
-