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 voidafterPropertiesSet()LongfindTestNameId(TestName testName)Returns test name id by TestName if the test with the name is known, null otherwiselonggetOrSaveTestNameId(String testName)Returns test name id by test name.longgetOrSaveTestNameId(TestName testName)Calculates an identifier by the test name and saves it into database if this identified is not saved yet.TestNamegetTestName(long testNameId)Returns parsed test name by test name id.Map<Long,TestName>getTestNames(Collection<Long> testNameIds)voidprefetchTestNamesForBuild(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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getTestName
@Nullable public TestName getTestName(long testNameId)
Description copied from interface:TestName2IndexReturns parsed test name by test name id.- Specified by:
getTestNamein interfaceTestName2Index- Parameters:
testNameId- test_name_id- Returns:
- parsed test name
-
getTestNames
@NotNull public Map<Long,TestName> getTestNames(@NotNull Collection<Long> testNameIds)
- Specified by:
getTestNamesin interfaceTestName2Index
-
getOrSaveTestNameId
public long getOrSaveTestNameId(@Nullable String testName)Description copied from interface:TestName2IndexReturns test name id by test name.- Specified by:
getOrSaveTestNameIdin interfaceTestName2Index- Parameters:
testName- test_name- Returns:
- test name id
-
getOrSaveTestNameId
public long getOrSaveTestNameId(@NotNull TestName testName)Description copied from interface:TestName2IndexCalculates an identifier by the test name and saves it into database if this identified is not saved yet.- Specified by:
getOrSaveTestNameIdin interfaceTestName2Index
-
findTestNameId
@Nullable public Long findTestNameId(@Nullable TestName testName)
Description copied from interface:TestName2IndexReturns test name id by TestName if the test with the name is known, null otherwise- Specified by:
findTestNameIdin interfaceTestName2Index
-
prefetchTestNamesForBuild
public void prefetchTestNamesForBuild(@NotNull RunningBuildEx build)- Specified by:
prefetchTestNamesForBuildin interfaceTestName2Index
-
-