Class TestRunsCache
- java.lang.Object
-
- jetbrains.buildServer.responsibility.impl.TestRunsCache
-
public class TestRunsCache extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calculateSize()
void
clear()
String
getStatusText()
boolean
isEmpty()
STestRun
put(String buildTypeId, Long testNameId, String branchName, STestRun testRun)
Adds or updates a test run in the cache for a given build type ID, test name ID, and branch name.void
remove(String buildTypeId, Long testNameId, String branchName)
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
calculateSize
public int calculateSize()
-
put
@Nullable public STestRun put(String buildTypeId, Long testNameId, @Nullable String branchName, @NotNull STestRun testRun)
Adds or updates a test run in the cache for a given build type ID, test name ID, and branch name.- Returns:
- the previous test run associated with the given branch name, or null if no previous test run exists
-
clear
public void clear()
-
getStatusText
public String getStatusText()
-
-