Class CompositeHealthStatusReportImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ServerListenerAdapter
-
- jetbrains.buildServer.serverSide.healthStatus.impl.CompositeHealthStatusReportImpl
-
- All Implemented Interfaces:
EventListener
,HealthStatusProvider
,HealthStatusReportLocator
,ServerListener
public class CompositeHealthStatusReportImpl extends ServerListenerAdapter implements HealthStatusReportLocator, HealthStatusProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CompositeHealthStatusReportImpl.HealthStatusTaskImpl
-
Field Summary
Fields Modifier and Type Field Description static String
DISABLED_REPORTS_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description CompositeHealthStatusReportImpl(ExecutorServices executors, ExtensionHolder extensionHolder, HealthStatusItemIdProviderImpl itemsStorage, ItemVisibilityTracker itemVisibilityTracker, SecurityContextEx securityContextEx, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthStatusTask
collectItems(HealthStatusScope scope, HealthStatusProfile profile)
HealthStatusTask
collectItems(HealthStatusScope scope, HealthStatusProfile profile, HealthReportProgressListener progressListener)
List<HealthStatusItem>
collectItemsSynchronously(HealthStatusScope scope, HealthStatusProfile profile)
Computes health status items with the specified scope and profile.HealthStatusReport
findReportByType(String type)
Finds report in available reports collection.Collection<HealthStatusReport>
getAvailableReports()
Gets all registered reports with correctly declared categories.void
serverStartup()
Called when server has been started and its configuration has been loaded from the disk-
Methods inherited from class jetbrains.buildServer.serverSide.ServerListenerAdapter
serverShutdown
-
-
-
-
Field Detail
-
DISABLED_REPORTS_PROPERTY_NAME
public static final String DISABLED_REPORTS_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CompositeHealthStatusReportImpl
public CompositeHealthStatusReportImpl(@NotNull ExecutorServices executors, @NotNull ExtensionHolder extensionHolder, @NotNull HealthStatusItemIdProviderImpl itemsStorage, @NotNull ItemVisibilityTracker itemVisibilityTracker, @NotNull SecurityContextEx securityContextEx, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
serverStartup
public void serverStartup()
Description copied from interface:ServerListener
Called when server has been started and its configuration has been loaded from the disk- Specified by:
serverStartup
in interfaceServerListener
- Overrides:
serverStartup
in classServerListenerAdapter
-
collectItems
@NotNull public HealthStatusTask collectItems(@NotNull HealthStatusScope scope, @Nullable HealthStatusProfile profile)
- Specified by:
collectItems
in interfaceHealthStatusProvider
-
collectItems
@NotNull public HealthStatusTask collectItems(@NotNull HealthStatusScope scope, @Nullable HealthStatusProfile profile, @NotNull HealthReportProgressListener progressListener)
- Specified by:
collectItems
in interfaceHealthStatusProvider
-
collectItemsSynchronously
@NotNull public List<HealthStatusItem> collectItemsSynchronously(@NotNull HealthStatusScope scope, @Nullable HealthStatusProfile profile)
Description copied from interface:HealthStatusProvider
Computes health status items with the specified scope and profile.- Specified by:
collectItemsSynchronously
in interfaceHealthStatusProvider
- Returns:
-
getAvailableReports
@NotNull public Collection<HealthStatusReport> getAvailableReports()
Description copied from interface:HealthStatusReportLocator
Gets all registered reports with correctly declared categories.- Specified by:
getAvailableReports
in interfaceHealthStatusReportLocator
-
findReportByType
@Nullable public HealthStatusReport findReportByType(@NotNull String type)
Description copied from interface:HealthStatusReportLocator
Finds report in available reports collection.- Specified by:
findReportByType
in interfaceHealthStatusReportLocator
-
-