java.lang.Object
edu.university.ecs.lab.detection.antipatterns.services.GreedyService

public class GreedyService extends Object
Service class to identify and manage microservices identified as greedy.
  • Field Details

    • RESTCALL_THRESHOLD

      private final int RESTCALL_THRESHOLD
      Threshold for the number of REST calls indicating a microservice is greedy.
    • DEFAULT_RESTCALL_THRESHOLD

      protected static final int DEFAULT_RESTCALL_THRESHOLD
      See Also:
  • Constructor Details

    • GreedyService

      public GreedyService()
    • GreedyService

      public GreedyService(int RESTCALL_THRESHOLD)
  • Method Details

    • getGreedyMicroservices

      public GreedyMicroservice getGreedyMicroservices(ServiceDependencyGraph graph)
      Retrieves microservices identified as greedy based on REST call threshold.
      Parameters:
      graph - the network graph to analyze
      Returns:
      a GreedyMicroservice object containing identified greedy microservices