Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker-TeeTime-Stages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeeTime
Kieker-TeeTime-Stages
Commits
452c94c9
Commit
452c94c9
authored
9 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
refactoring
parent
0fad3438
No related branches found
No related tags found
1 merge request
!17
Get impletemented stages and Java 8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/kieker/analysis/dev/OperationsDependency.java
+9
-46
9 additions, 46 deletions
src/main/java/kieker/analysis/dev/OperationsDependency.java
with
9 additions
and
46 deletions
src/main/java/kieker/analysis/dev/OperationsDependency.java
+
9
−
46
View file @
452c94c9
...
...
@@ -23,10 +23,7 @@ public class OperationsDependency {
public
void
addCall
(
final
AggregatedOperationCall
call
)
{
// Add call (node)
addOperation
(
call
);
// Add relation (edge)
addRelation
(
call
);
}
...
...
@@ -40,22 +37,21 @@ public class OperationsDependency {
}
private
void
addRelation
(
final
AggregatedOperationCall
call
)
{
// TODO Rename
String
key2
=
call
.
getIdentifier
()
+
','
+
call
.
getIdentifier
();
if
(!
relations
.
containsKey
(
key2
))
{
String
key
=
call
.
getIdentifier
()
+
','
+
call
.
getIdentifier
();
if
(!
relations
.
containsKey
(
key
))
{
// Todo rename
AggregatedOperationCall
thiz
=
operations
.
get
(
call
.
getIdentifier
());
AggregatedOperationCall
parent
=
operations
.
get
(
call
.
getParent
().
getIdentifier
());
AggregatedOperationCall
callee
=
operations
.
get
(
call
.
getIdentifier
());
AggregatedOperationCall
caller
=
operations
.
get
(
call
.
getParent
().
getIdentifier
());
OperationsDependencyRelation
relation
=
new
OperationsDependencyRelation
(
thiz
,
parent
);
relations
.
put
(
key
2
,
relation
);
OperationsDependencyRelation
relation
=
new
OperationsDependencyRelation
(
callee
,
caller
);
relations
.
put
(
key
,
relation
);
}
if
(
call
.
isFailed
())
{
relations
.
get
(
key
2
).
addCall
();
relations
.
get
(
key
).
addCall
();
}
else
{
relations
.
get
(
key
2
).
addFailuredCall
();
relations
.
get
(
key
).
addFailuredCall
();
}
}
...
...
@@ -101,39 +97,6 @@ public class OperationsDependency {
* }
*/
/**
* Wrapper class for {@link AggregatedOperationCall} for calculating the hash code and check equality of two {@link AggregatedOperationCall}.
*
* @author Sören Henning
*
*/
private
static
class
OperationCallWrapper
{
private
final
AggregatedOperationCall
operationCall
;
public
OperationCallWrapper
(
final
AggregatedOperationCall
operationCall
)
{
this
.
operationCall
=
operationCall
;
}
public
AggregatedOperationCall
getOperationCall
()
{
return
operationCall
;
}
@Override
public
int
hashCode
()
{
return
this
.
operationCall
.
calculateHashCode
();
}
@Override
public
boolean
equals
(
final
Object
obj
)
{
if
(!(
obj
instanceof
OperationCallWrapper
))
{
return
false
;
}
return
this
.
operationCall
.
isEqualTo
(((
OperationCallWrapper
)
obj
).
operationCall
);
}
}
/**
* Relation between two {@link AggregatedOperationCall}. If this class will be
* extended by more attributes, new hashCode() and equals() methods are required.
...
...
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