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
Represents a collection of microservices identified as hub-like.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHubLikeMicroservice
(List<String> hublikeMicroservices) Constructor to initialize with a set of hub-like microservices. -
Method Summary
Methods inherited from class edu.university.ecs.lab.detection.antipatterns.models.AbstractAntiPattern
toJsonObject
-
Field Details
-
NAME
Anti-pattern name- See Also:
-
DESCRIPTION
Anti-pattern description- See Also:
-
hublikeMicroservices
Set of microservices identified as hub-like.
-
-
Constructor Details
-
HubLikeMicroservice
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
- Specified by:
getName
in classAbstractAntiPattern
-
getDescription
- Specified by:
getDescription
in classAbstractAntiPattern
-
getMetaData
protected com.google.gson.JsonObject getMetaData()- Specified by:
getMetaData
in classAbstractAntiPattern
-
numHubLike
public int numHubLike()
-