Class TestName2IndexImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.tests.TestName2IndexImpl
-
- All Implemented Interfaces:
TestName2Index
,org.springframework.beans.factory.InitializingBean
public class TestName2IndexImpl extends Object implements TestName2Index, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description TestName2IndexImpl(SQLRunnerEx sqlRunner, ServerResponsibilityEx serverResponsibility, ExecutorServices executorServices, ServerPaths serverPaths, EventDispatcher<BuildServerListener> eventDispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
Long
findTestNameId(TestName testName)
Returns test name id by TestName if the test with the name is known, null otherwiselong
getOrSaveTestNameId(String testName)
Returns test name id by test name.long
getOrSaveTestNameId(TestName testName)
Calculates an identifier by the test name and saves it into database if this identified is not saved yet.TestName
getTestName(long testNameId)
Returns parsed test name by test name id.Map<Long,TestName>
getTestNames(Collection<Long> testNameIds)
void
prefetchTestNamesForBuild(RunningBuildEx build)
-
-
-
Constructor Detail
-
TestName2IndexImpl
public TestName2IndexImpl(@NotNull SQLRunnerEx sqlRunner, @NotNull ServerResponsibilityEx serverResponsibility, @NotNull ExecutorServices executorServices, @NotNull ServerPaths serverPaths, @NotNull EventDispatcher<BuildServerListener> eventDispatcher)
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getTestName
@Nullable public TestName getTestName(long testNameId)
Description copied from interface:TestName2Index
Returns parsed test name by test name id.- Specified by:
getTestName
in interfaceTestName2Index
- Parameters:
testNameId
- test_name_id- Returns:
- parsed test name
-
getTestNames
@NotNull public Map<Long,TestName> getTestNames(@NotNull Collection<Long> testNameIds)
- Specified by:
getTestNames
in interfaceTestName2Index
-
getOrSaveTestNameId
public long getOrSaveTestNameId(@Nullable String testName)
Description copied from interface:TestName2Index
Returns test name id by test name.- Specified by:
getOrSaveTestNameId
in interfaceTestName2Index
- Parameters:
testName
- test_name- Returns:
- test name id
-
getOrSaveTestNameId
public long getOrSaveTestNameId(@NotNull TestName testName)
Description copied from interface:TestName2Index
Calculates an identifier by the test name and saves it into database if this identified is not saved yet.- Specified by:
getOrSaveTestNameId
in interfaceTestName2Index
-
findTestNameId
@Nullable public Long findTestNameId(@Nullable TestName testName)
Description copied from interface:TestName2Index
Returns test name id by TestName if the test with the name is known, null otherwise- Specified by:
findTestNameId
in interfaceTestName2Index
-
prefetchTestNamesForBuild
public void prefetchTestNamesForBuild(@NotNull RunningBuildEx build)
- Specified by:
prefetchTestNamesForBuild
in interfaceTestName2Index
-
-