Add a toString() method to the replicated leveldb store so that it displays a nicer message when the broker starts it up.

This commit is contained in:
Hiram Chirino 2013-10-30 12:21:50 -04:00
parent 928068dfd4
commit aaa1a74dfb
1 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,11 @@ class ElectingLevelDBStore extends ProxyLevelDBStore {
var position: Long = -1L var position: Long = -1L
override def toString: String = {
return "Replicated LevelDB[%s, %s/%s]".format(directory.getAbsolutePath, zkAddress, zkPath)
}
var usageManager: SystemUsage = _ var usageManager: SystemUsage = _
override def setUsageManager(usageManager: SystemUsage) { override def setUsageManager(usageManager: SystemUsage) {
this.usageManager = usageManager this.usageManager = usageManager