java.lang.Object
edu.university.ecs.lab.detection.antipatterns.models.AbstractAntiPattern
edu.university.ecs.lab.detection.antipatterns.models.NoHealthcheck
All Implemented Interfaces:
JsonSerializable

public class NoHealthcheck extends AbstractAntiPattern
Represents the "No Health Check" anti-pattern
  • Field Details

  • Constructor Details

    • NoHealthcheck

      public NoHealthcheck(Map<String,Boolean> 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

      public Map<String,Boolean> 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

      protected String getName()
      Specified by:
      getName in class AbstractAntiPattern
    • getDescription

      protected String getDescription()
      Specified by:
      getDescription in class AbstractAntiPattern
    • getMetaData

      protected com.google.gson.JsonObject getMetaData()
      Specified by:
      getMetaData in class AbstractAntiPattern
    • numNoHealthChecks

      public int numNoHealthChecks()