mirror of https://github.com/apache/activemq.git
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:
parent
928068dfd4
commit
aaa1a74dfb
|
@ -142,6 +142,11 @@ class ElectingLevelDBStore extends ProxyLevelDBStore {
|
|||
|
||||
var position: Long = -1L
|
||||
|
||||
|
||||
override def toString: String = {
|
||||
return "Replicated LevelDB[%s, %s/%s]".format(directory.getAbsolutePath, zkAddress, zkPath)
|
||||
}
|
||||
|
||||
var usageManager: SystemUsage = _
|
||||
override def setUsageManager(usageManager: SystemUsage) {
|
||||
this.usageManager = usageManager
|
||||
|
|
Loading…
Reference in New Issue