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

add identifier for operation call

parent d3e5f9fb
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
......@@ -37,7 +37,7 @@ public final class OperationCallAggregator extends AbstractTransformation<Operat
@Override
protected void execute(final OperationCall call) {
final String key = call.getContainer() + "," + call.getComponent() + "," + call.getOperation() + ", " + call.getFailedCause();
final String key = call.getIdentifier();
if (!this.aggregationMap.containsKey(key)) {
final List<OperationCall> aggregationList = new ArrayList<>();
......
......@@ -39,6 +39,8 @@ public abstract class AbstractOperationCall<T extends AbstractOperationCall<T>>
private final String component;
private final String operation;
private final String identifier;
private int stackDepth;
private int stackSize;
private String failedCause;
......@@ -55,6 +57,8 @@ public abstract class AbstractOperationCall<T extends AbstractOperationCall<T>>
this.operation = operation.intern();
this.orderIndex = orderIndex;
this.failedCause = (failedCause != null) ? failedCause.intern() : null;
this.identifier = container + ',' + component + ',' + operation;
}
public void addChild(final T child) {
......@@ -115,6 +119,14 @@ public abstract class AbstractOperationCall<T extends AbstractOperationCall<T>>
return this.isFailed() || this.children.parallelStream().anyMatch(T::containsFailure);
}
public String getIdentifier() {
return identifier;
}
public String getIdentifierWithFailure() {
return identifier + ',' + failedCause;
}
public final int calculateHashCode() {
final int prime = 31;
int result = 1;
......
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