forked from voldemort/voldemort
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stats to understand NIO layer performance + BDB exception counts et al
- Loading branch information
1 parent
fbe6718
commit dd29d0e
Showing
22 changed files
with
549 additions
and
112 deletions.
There are no files selected for viewing
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
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
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,28 @@ | ||
package voldemort.common.nio; | ||
|
||
import org.apache.commons.lang.mutable.MutableLong; | ||
|
||
/** | ||
* Statistics object to track the communication buffer sizes across all the | ||
* connections, handled by the selector managers | ||
* | ||
*/ | ||
public class CommBufferSizeStats { | ||
|
||
private MutableLong commReadBufferSizeBytes; | ||
|
||
private MutableLong commWriteBufferSizeBytes; | ||
|
||
public CommBufferSizeStats() { | ||
commReadBufferSizeBytes = new MutableLong(0); | ||
commWriteBufferSizeBytes = new MutableLong(0); | ||
} | ||
|
||
public MutableLong getCommReadBufferSizeTracker() { | ||
return commReadBufferSizeBytes; | ||
} | ||
|
||
public MutableLong getCommWriteBufferSizeTracker() { | ||
return commWriteBufferSizeBytes; | ||
} | ||
} |
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.