Class GreedyMicroservice

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

public class GreedyMicroservice extends AbstractAntiPattern
Represents a collection of microservices identified as greedy.
  • Field Details

  • Constructor Details

    • GreedyMicroservice

      public GreedyMicroservice(List<String> greedyMicroservices)
      Constructor to initialize with a set of greedy microservices.
      Parameters:
      greedyMicroservices - set of microservices identified as greedy
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Checks if the list of nodes considered greedy is empty.
      Returns:
      true if the list of nodes 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
    • numGreedyMicro

      public int numGreedyMicro()