Class HubLikeMicroservice

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

public class HubLikeMicroservice extends AbstractAntiPattern
Represents a collection of microservices identified as hub-like.
  • Field Details

  • Constructor Details

    • HubLikeMicroservice

      public HubLikeMicroservice(List<String> hublikeMicroservices)
      Constructor to initialize with a set of hub-like microservices.
      Parameters:
      hublikeMicroservices - set of microservices identified as hub-like
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Checks if the list of nodes considered hub-like is empty.
      Returns:
      true if the cycle list is empty, false otherwise
    • 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
    • numHubLike

      public int numHubLike()