Package sonia.scm.repository
Class HealthCheckFailure
java.lang.Object
sonia.scm.repository.HealthCheckFailure
- All Implemented Interfaces:
Serializable
Single failure of a
HealthCheck
.- Since:
- 1.36
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckFailure
(String id, String summary, String description) Constructs a newHealthCheckFailure
.HealthCheckFailure
(String id, String summary, String url, String description) Constructs ...HealthCheckFailure
(String id, String summary, HealthCheckFailure.UrlTemplate urlTemplate, String description) Constructs ... -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the description of this failure.getId()
Returns the id of this failure.Returns the summary of the failure.getUrl()
Return the url of the failure.Return the url of the failure for a concrete version of SCM-Manager (given the url is templated).int
hashCode()
Use this to createHealthCheckFailure
instances with a custom url for core health check failures.toString()
urlForTitle
(String title) Use this to createHealthCheckFailure
instances with an url for core health check failures.
-
Constructor Details
-
HealthCheckFailure
Constructs a newHealthCheckFailure
.- Parameters:
id
- id of the failuresummary
- summary of the failuredescription
- description of the failure
-
HealthCheckFailure
Constructs ...- Parameters:
id
- id of the failuresummary
- summary of the failureurl
- url of the failuredescription
- description of the failure
-
HealthCheckFailure
public HealthCheckFailure(String id, String summary, HealthCheckFailure.UrlTemplate urlTemplate, String description) Constructs ...- Parameters:
id
- id of the failuresummary
- summary of the failureurlTemplate
- template for the url of the failure (useurlForTitle(String)
to create this)description
- description of the failure- Since:
- 2.17.0
-
-
Method Details
-
urlForTitle
Use this to createHealthCheckFailure
instances with an url for core health check failures.- Parameters:
title
- The title of the failure matching a health check documentation page.- Since:
- 2.17.0
-
templated
Use this to createHealthCheckFailure
instances with a custom url for core health check failures. If this url can be customized with a concrete version of SCM-Manager, you can use{0}
as a placeholder for the version. This will be replaced later on.- Parameters:
urlTemplate
- The url for this failure.- Since:
- 2.17.0
-
equals
-
hashCode
public int hashCode() -
toString
-
getDescription
Returns the description of this failure. -
getId
Returns the id of this failure. -
getSummary
Returns the summary of the failure. -
getUrl
Return the url of the failure. The url may potentially be templated. In the case you can get a special url for an explicit version of SCM-Manager usinggetUrl(String)
whereas this function will return a generic url for the "latest" version.- Returns:
- url of the failure
-
getUrl
Return the url of the failure for a concrete version of SCM-Manager (given the url is templated).- Parameters:
version
- The version of SCM-Manager to create the url for.- Returns:
- url of the failure
- Since:
- 2.17.0
-