Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
melodic-upperware
Commits
53416b37
Commit
53416b37
authored
May 31, 2022
by
Jan Marchel
Browse files
adding placementName attribute
parent
c6e51422
Pipeline
#21372
failed with stages
in 42 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cp_generator/src/main/java/eu/paasage/upperware/profiler/generator/communication/impl/NodeCandidatesFetchingServiceImpl.java
View file @
53416b37
...
...
@@ -45,7 +45,7 @@ public class NodeCandidatesFetchingServiceImpl implements NodeCandidatesFetching
private
static
final
String
LOCATION_CLASS
=
"location"
;
private
static
final
String
CLOUD_CLASS
=
"cloud"
;
private
static
final
String
FAAS_ENVIRONMENT_CLASS
=
"environment"
;
private
static
final
String
NAME_CLASS
=
"name"
;
private
final
ProactiveClientServiceForGenerator
proactiveClientServiceForGenerator
;
@Override
...
...
@@ -126,6 +126,8 @@ public class NodeCandidatesFetchingServiceImpl implements NodeCandidatesFetching
result
.
add
(
createNodeTypeRequirement
(
Arrays
.
asList
(
NodeType
.
IAAS
,
NodeType
.
BYON
,
NodeType
.
EDGE
),
resourceName
));
}
getAttribute
(
requirementsMap
,
"placementName"
).
ifPresent
(
attribute
->
result
.
add
(
createRequirement
(
NAME_CLASS
,
"name"
,
RequirementOperator
.
EQ
,
getValueAsString
(
attribute
.
getValue
()))));
getAttribute
(
requirementsMap
,
"totalMemoryHasMin"
).
ifPresent
(
attribute
->
result
.
add
(
createRequirement
(
HARDWARE_CLASS
,
"ram"
,
RequirementOperator
.
GEQ
,
getValueAsString
(
attribute
.
getValue
()))));
getAttribute
(
requirementsMap
,
"totalMemoryHasMax"
).
ifPresent
(
attribute
->
result
.
add
(
createRequirement
(
HARDWARE_CLASS
,
"ram"
,
RequirementOperator
.
LEQ
,
getValueAsString
(
attribute
.
getValue
()))));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment