Class AR3
java.lang.Object
edu.university.ecs.lab.detection.architecture.models.AbstractAR
edu.university.ecs.lab.detection.architecture.models.AR3
- All Implemented Interfaces:
JsonSerializable
Architectural Rule 3 Class: Floating call due to invalid call creation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
findMatch
(RestCall restCall, MicroserviceSystem newSystem) Find rest call/endpoint matched in the given systemGet the description of the Architectural Rulecom.google.gson.JsonObject
Get the meta data of the Architectural RulegetName()
Get the name of the Architectural RulegetType()
Get the new commitIDdouble
Get the weight of the Architectural Rulescan
(Delta delta, MicroserviceSystem oldSystem, MicroserviceSystem newSystem) Scan and compare old microservice system and new microservice system to identify invalid call creationscan2
(MicroserviceSystem oldSystem, MicroserviceSystem newSystem) Scan and compare old microservice system and new microservice system to identify invalid call creationMethods inherited from class edu.university.ecs.lab.detection.architecture.models.AbstractAR
getNewCommitID, getOldCommitID, toJsonObject
-
Field Details
-
TYPE
Architectural Rule 3 details- See Also:
-
NAME
- See Also:
-
DESC
- See Also:
-
oldCommitID
-
newCommitID
-
metaData
protected com.google.gson.JsonObject metaData
-
-
Constructor Details
-
AR3
public AR3()
-
-
Method Details
-
getName
Description copied from class:AbstractAR
Get the name of the Architectural Rule- Specified by:
getName
in classAbstractAR
- Returns:
- string name of the Architectural Rule
-
getDescription
Description copied from class:AbstractAR
Get the description of the Architectural Rule- Specified by:
getDescription
in classAbstractAR
- Returns:
- string description of the Architectural Rule
-
getWeight
public double getWeight()Description copied from class:AbstractAR
Get the weight of the Architectural Rule- Specified by:
getWeight
in classAbstractAR
- Returns:
- double weight of the Architectural Rule
-
getType
Description copied from class:AbstractAR
Get the new commitID- Specified by:
getType
in classAbstractAR
- Returns:
- string new commitID
-
getMetaData
public com.google.gson.JsonObject getMetaData()Description copied from class:AbstractAR
Get the meta data of the Architectural Rule- Specified by:
getMetaData
in classAbstractAR
- Returns:
- JSON object meta data of the Architectural Rule
-
scan
Scan and compare old microservice system and new microservice system to identify invalid call creation- Parameters:
delta
- change between old commit and new microservice systemsoldSystem
- old commit of microservice systemnewSystem
- new commit of microservice system- Returns:
- list of rest calls with no match found in new system
-
findMatch
Find rest call/endpoint matched in the given system- Parameters:
restCall
- call to be matched to an endpointnewSystem
- microservice system to search for match in- Returns:
- true if an endpoint match is found, false otherwise
-
scan2
Scan and compare old microservice system and new microservice system to identify invalid call creation- Parameters:
oldSystem
- old commit of microservice systemnewSystem
- new commit of microservice system- Returns:
- list of all rest calls without an endpoint match in new system
-