Class GreedyService
java.lang.Object
edu.university.ecs.lab.detection.antipatterns.services.GreedyService
Service class to identify and manage microservices identified as greedy.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
private final int
Threshold for the number of REST calls indicating a microservice is greedy. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves microservices identified as greedy based on REST call threshold.
-
Field Details
-
RESTCALL_THRESHOLD
private final int RESTCALL_THRESHOLDThreshold 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
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
-