Class NoHealthcheck
java.lang.Object
edu.university.ecs.lab.detection.antipatterns.models.AbstractAntiPattern
edu.university.ecs.lab.detection.antipatterns.models.NoHealthcheck
- All Implemented Interfaces:
JsonSerializable
Represents the "No Health Check" anti-pattern
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNoHealthcheck
(Map<String, Boolean> noHealthcheck) Constructs a NoHealthcheck object with the specified flag indicating the presence of the anti-pattern. -
Method Summary
Methods inherited from class edu.university.ecs.lab.detection.antipatterns.models.AbstractAntiPattern
toJsonObject
-
Field Details
-
NAME
Anti-pattern name- See Also:
-
DESCRIPTION
Anti-pattern descsription- See Also:
-
noHealthcheck
Flag indicating whether the anti-pattern is present
-
-
Constructor Details
-
NoHealthcheck
Constructs a NoHealthcheck object with the specified flag indicating the presence of the anti-pattern.- Parameters:
noHealthcheck
- boolean flag indicating whether the "No Health Check" anti-pattern is present
-
-
Method Details
-
getnoHealthcheck
Retrieves the flag indicating the presence of the "No Health Check" anti-pattern.- Returns:
- boolean flag indicating whether the "No Health Check" anti-pattern is present
-
getName
- Specified by:
getName
in classAbstractAntiPattern
-
getDescription
- Specified by:
getDescription
in classAbstractAntiPattern
-
getMetaData
protected com.google.gson.JsonObject getMetaData()- Specified by:
getMetaData
in classAbstractAntiPattern
-
numNoHealthChecks
public int numNoHealthChecks()
-