diff --git a/activemq-leveldb-store/src/main/java/org/apache/activemq/leveldb/replicated/ReplicatedLevelDBStoreViewMBean.java b/activemq-leveldb-store/src/main/java/org/apache/activemq/leveldb/replicated/ReplicatedLevelDBStoreViewMBean.java index 19b2192925..9c81eb1aa9 100644 --- a/activemq-leveldb-store/src/main/java/org/apache/activemq/leveldb/replicated/ReplicatedLevelDBStoreViewMBean.java +++ b/activemq-leveldb-store/src/main/java/org/apache/activemq/leveldb/replicated/ReplicatedLevelDBStoreViewMBean.java @@ -34,7 +34,7 @@ public interface ReplicatedLevelDBStoreViewMBean { @MBeanInfo("The path in ZooKeeper to hold master elections.") String getZkPath(); @MBeanInfo("The ZooKeeper session timeout.") - String getZkSessionTmeout(); + String getZkSessionTimeout(); @MBeanInfo("The address and port the master will bind for the replication protocol.") String getBind(); @MBeanInfo("The number of replication nodes that will be part of the replication cluster.") 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 c64c9afcc1..331d06b849 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 @@ -69,7 +69,7 @@ class ElectingLevelDBStore extends ProxyLevelDBStore { @BeanProperty var zkPath = "/default" @BeanProperty - var zkSessionTmeout = "2s" + var zkSessionTimeout = "2s" var brokerName: String = _ @@ -181,7 +181,7 @@ class ElectingLevelDBStore extends ProxyLevelDBStore { log.close } - zk_client = new ZKClient(zkAddress, Timespan.parse(zkSessionTmeout), null) + zk_client = new ZKClient(zkAddress, Timespan.parse(zkSessionTimeout), null) if( zkPassword!=null ) { zk_client.setPassword(zkPassword) } @@ -415,7 +415,7 @@ class ReplicatedLevelDBStoreView(val store:ElectingLevelDBStore) extends Replica def getZkAddress = zkAddress def getZkPath = zkPath - def getZkSessionTmeout = zkSessionTmeout + def getZkSessionTimeout = zkSessionTimeout def getBind = bind def getReplicas = replicas diff --git a/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ReplicatedLevelDBBrokerTest.java b/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ReplicatedLevelDBBrokerTest.java index 3514930cdc..4aeebfd5c5 100644 --- a/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ReplicatedLevelDBBrokerTest.java +++ b/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ReplicatedLevelDBBrokerTest.java @@ -447,7 +447,7 @@ public class ReplicatedLevelDBBrokerTest extends ZooKeeperTestSupport { store.setContainer(id); store.setReplicas(3); store.setZkAddress("localhost:" + connector.getLocalPort()); - store.setZkSessionTmeout("15s"); + store.setZkSessionTimeout("15s"); store.setHostname("localhost"); store.setBind("tcp://0.0.0.0:0"); return store;