activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject [07/20] git commit: Add a toString() method to the replicated leveldb store so that it displays a nicer message when the broker starts it up.
Date Wed, 12 Mar 2014 02:21:33 GMT
Add a toString() method to the replicated leveldb store so that it displays a nicer message
when the broker starts it up.


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/28e6e6f7
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/28e6e6f7
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/28e6e6f7

Branch: refs/heads/activemq-5.9
Commit: 28e6e6f7fced2236ffd54ecc20abfc4f0ca18c92
Parents: a87deff
Author: Hiram Chirino <hiram@hiramchirino.com>
Authored: Wed Oct 30 12:21:50 2013 -0400
Committer: Hadrian Zbarcea <hadrian@apache.org>
Committed: Tue Mar 11 21:03:46 2014 -0400

----------------------------------------------------------------------
 .../activemq/leveldb/replicated/ElectingLevelDBStore.scala      | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/28e6e6f7/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala
----------------------------------------------------------------------
diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala
b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala
index 0399bd9..074eb7b 100644
--- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala
+++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala
@@ -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


Mime
View raw message