Class HubLikeService
java.lang.Object
edu.university.ecs.lab.detection.antipatterns.services.HubLikeService
Service class for identifying and managing hub-like microservices in a network graph.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
Threshold for the number of REST calls indicating a microservice is hub-like.private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves microservices identified as hub-like based on REST call threshold.
-
Field Details
-
DEFAULT_RESTCALL_THRESHOLD
protected static final int DEFAULT_RESTCALL_THRESHOLDThreshold for the number of REST calls indicating a microservice is hub-like.- See Also:
-
RESTCALL_THRESHOLD
private final int RESTCALL_THRESHOLD
-
-
Constructor Details
-
HubLikeService
public HubLikeService() -
HubLikeService
public HubLikeService(int RESTCALL_THRESHOLD)
-
-
Method Details
-
getHubLikeMicroservice
Retrieves microservices identified as hub-like based on REST call threshold.- Parameters:
graph
- the network graph to analyze- Returns:
- a HubLikeMicroservice object containing identified hub-like microservices
-