Skip to content
Snippets Groups Projects
Commit f1c7869a authored by Sören Henning's avatar Sören Henning
Browse files

fix some bugs

parent ba27ad68
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
......@@ -34,12 +34,18 @@ public class OperationsDependency {
if (!operations.containsKey(key)) {
operations.put(key, new AggregatedOperationCall(call.getContainer(), call.getComponent(), call.getOperation(), 0));
}
operations.get(key).addChild(call);
// TODO Dont't add the call as child but as something different
// operations.get(key).addChild(call);
}
private void addRelation(final AggregatedOperationCall call) {
String key = call.getIdentifier() + ',' + call.getIdentifier();
if (call.getParent() == null) {
// TODO parent shouldn't be null. Create a class "EntryOperationCall".
return;
}
String key = call.getIdentifier() + ',' + call.getParent().getIdentifier();
if (!relations.containsKey(key)) {
......@@ -51,9 +57,9 @@ public class OperationsDependency {
}
if (call.isFailed()) {
relations.get(key).addFailuredCalls(call.getCalls()); // TODO Temp
relations.get(key).addFailuredCalls(call.getCalls());
} else {
relations.get(key).addCalls(call.getCalls()); // TODO Temp
relations.get(key).addCalls(call.getCalls());
}
}
......@@ -72,7 +78,7 @@ public class OperationsDependency {
for (AggregatedOperationCall call2 : call.getValue().getChildren()) {
System.out.println(call2.getOperation());
System.out.println(call2.getOperation() + ": " + call2.getCalls());
// System.out.println(call2.getFailedCause());
}
......@@ -91,7 +97,8 @@ public class OperationsDependency {
System.out.println("Set begin");
// System.out.println(call.getKey());
System.out.println(call.getValue().getCaller().getOperation() + "->" + call.getValue().getCallee().getOperation());
System.out.println(call.getValue().getCaller().getOperation() + "<-" + call.getValue().getCallee().getOperation() + ": " + call.getValue().getCalls()
+ " (F: " + call.getValue().getFailuredCalls() + ")");
System.out.println("Set end");
System.out.println();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment