Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #4873 , initial version of profiler to identify YCSB and storag…
…e engine in general issues, was created and dynamic JMX bean was provided.
- Loading branch information
Showing
7 changed files
with
450 additions
and
95 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
core/src/main/java/com/orientechnologies/common/util/ORawPair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.orientechnologies.common.util; | ||
|
||
/** | ||
* Container for pair of non null objects. | ||
*/ | ||
public class ORawPair<V1, V2> { | ||
private final V1 first; | ||
private final V2 second; | ||
|
||
public ORawPair(V1 first, V2 second) { | ||
this.first = first; | ||
this.second = second; | ||
} | ||
|
||
public V1 getFirst() { | ||
return first; | ||
} | ||
|
||
public V2 getSecond() { | ||
return second; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) | ||
return true; | ||
if (o == null || getClass() != o.getClass()) | ||
return false; | ||
|
||
ORawPair<?, ?> oRawPair = (ORawPair<?, ?>) o; | ||
|
||
if (!first.equals(oRawPair.first)) | ||
return false; | ||
return second.equals(oRawPair.second); | ||
|
||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int result = first.hashCode(); | ||
result = 31 * result + second.hashCode(); | ||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.