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
Represents a collection of microservices identified as greedy.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGreedyMicroservice
(List<String> greedyMicroservices) Constructor to initialize with a set of greedy 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:
-
greedyMicroservices
Set of microservices identified as greedy
-
-
Constructor Details
-
GreedyMicroservice
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
- Specified by:
getName
in classAbstractAntiPattern
-
getDescription
- Specified by:
getDescription
in classAbstractAntiPattern
-
getMetaData
protected com.google.gson.JsonObject getMetaData()- Specified by:
getMetaData
in classAbstractAntiPattern
-
numGreedyMicro
public int numGreedyMicro()
-