Class CompositeHealthStatusReportTestUtil.ControlledReport
- java.lang.Object
-
- jetbrains.buildServer.serverSide.healthStatus.HealthStatusReport
-
- jetbrains.buildServer.serverSide.healthStatus.CompositeHealthStatusReportTestUtil.TestReport
-
- jetbrains.buildServer.serverSide.healthStatus.CompositeHealthStatusReportTestUtil.ControlledReport
-
- All Implemented Interfaces:
ServerExtension
,TeamCityExtension
- Enclosing class:
- CompositeHealthStatusReportTestUtil
public static class CompositeHealthStatusReportTestUtil.ControlledReport extends CompositeHealthStatusReportTestUtil.TestReport
-
-
Constructor Summary
Constructors Constructor Description ControlledReport(String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
continueReporting()
void
report(HealthStatusScope scope, HealthStatusItemConsumer resultConsumer)
When called must report all found problems to result consumer according to the received scope.void
waitForFinish()
void
waitForStart()
-
Methods inherited from class jetbrains.buildServer.serverSide.healthStatus.CompositeHealthStatusReportTestUtil.TestReport
canReportItemsFor, getCategories, getDisplayName, getType
-
Methods inherited from class jetbrains.buildServer.serverSide.healthStatus.HealthStatusReport
equals, hashCode
-
-
-
-
Constructor Detail
-
ControlledReport
public ControlledReport(String type)
-
-
Method Detail
-
waitForStart
public void waitForStart() throws InterruptedException
- Throws:
InterruptedException
-
continueReporting
public void continueReporting()
-
waitForFinish
public void waitForFinish() throws InterruptedException
- Throws:
InterruptedException
-
report
public void report(@NotNull HealthStatusScope scope, @NotNull HealthStatusItemConsumer resultConsumer)
Description copied from class:HealthStatusReport
When called must report all found problems to result consumer according to the received scope. Always called with system privileges (in all permissions mode) so no permission checks are required. Note that this method can be called quite often, so long-running implementations should return false fromHealthStatusReport.canReportItemsFor(HealthStatusScope)
if it's clear that they can't produce any items for the requested scope. Implementations of this method should always return in a reasonable time. For example, long running computations or network calls should not be made in this method, but rather called in some background thread, their result saved to a cache, and then be read from the cache in this method.- Specified by:
report
in classHealthStatusReport
- Parameters:
scope
- health status coderesultConsumer
- health status item consumer
-
-