Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ttc18
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stgroup
ttc18
Commits
ed53744f
Commit
ed53744f
authored
Feb 1, 2019
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
send whole config and not just changed parts per living partition or nothing if lp has not changed
parent
48d8672e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
jastadd-mquat-eris/src/main/java/de/tudresden/inf/st/mquat/eris/coupling/ERISConnector.java
+6
-4
6 additions, 4 deletions
...e/tudresden/inf/st/mquat/eris/coupling/ERISConnector.java
with
6 additions
and
4 deletions
jastadd-mquat-eris/src/main/java/de/tudresden/inf/st/mquat/eris/coupling/ERISConnector.java
+
6
−
4
View file @
ed53744f
...
...
@@ -305,10 +305,12 @@ public class ERISConnector {
JSONObject
result
=
new
JSONObject
();
for
(
String
path
:
partitionStorageConfigAttributes
.
keySet
())
{
JSONArray
storageConfigurationGroups
=
new
JSONArray
();
// for each living partition
for
(
List
<
String
>
accessPathList
:
partitionStorageConfigAttributes
.
get
(
path
).
keySet
())
{
boolean
configChanged
=
false
;
for
(
String
attributeId
:
partitionStorageConfigAttributes
.
get
(
path
).
get
(
accessPathList
))
{
if
(
attributeId
.
equals
(
""
))
continue
;
...
...
@@ -322,12 +324,12 @@ public class ERISConnector {
String
key
=
path
+
"/"
+
attributeId
;
String
value
=
accessPathList
.
get
(
0
)
+
"_"
+
accessPathList
.
get
(
1
)
+
"_"
+
accessPathList
.
get
(
2
);
if
(
this
.
currentAccessPaths
.
containsKey
(
key
)
&&
this
.
currentAccessPaths
.
get
(
key
).
contains
(
value
))
{
logger
.
debug
(
"known config found, not sending a request again"
);
}
else
{
jsonArrayAttributes
.
put
(
attribute
)
;
configChanged
=
true
;
}
jsonArrayAttributes
.
put
(
attribute
);
jsonGroup
.
put
(
"attributes"
,
jsonArrayAttributes
);
if
(!
jsonArrayAttributes
.
isEmpty
())
{
if
(!
jsonArrayAttributes
.
isEmpty
()
&&
configChanged
)
{
storageConfigurationGroups
.
put
(
jsonGroup
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment