mirror of https://github.com/apache/activemq.git
Quick fix the build after broken by previous commit on this issue, no actual stats tracking implemented in LevelDB by this commit.
This commit is contained in:
parent
cf3d419528
commit
37da75e0e4
|
@ -87,7 +87,7 @@ class LevelDBStoreTest(val store:LevelDBStore) extends LevelDBStoreTestMBean {
|
||||||
|
|
||||||
import store._
|
import store._
|
||||||
var suspendForce = false;
|
var suspendForce = false;
|
||||||
|
|
||||||
override def setSuspendForce(value: Boolean): Unit = this.synchronized {
|
override def setSuspendForce(value: Boolean): Unit = this.synchronized {
|
||||||
if( suspendForce!=value ) {
|
if( suspendForce!=value ) {
|
||||||
suspendForce = value;
|
suspendForce = value;
|
||||||
|
@ -129,7 +129,7 @@ class LevelDBStoreTest(val store:LevelDBStore) extends LevelDBStoreTestMBean {
|
||||||
}
|
}
|
||||||
|
|
||||||
var suspendDelete = false;
|
var suspendDelete = false;
|
||||||
|
|
||||||
override def setSuspendDelete(value: Boolean): Unit = this.synchronized {
|
override def setSuspendDelete(value: Boolean): Unit = this.synchronized {
|
||||||
if( suspendDelete!=value ) {
|
if( suspendDelete!=value ) {
|
||||||
suspendDelete = value;
|
suspendDelete = value;
|
||||||
|
@ -147,8 +147,8 @@ class LevelDBStoreTest(val store:LevelDBStore) extends LevelDBStoreTestMBean {
|
||||||
|
|
||||||
override def getDeleteCalls = this.synchronized {
|
override def getDeleteCalls = this.synchronized {
|
||||||
db.client.log.recordLogTestSupport.deleteCall.threads.get()
|
db.client.log.recordLogTestSupport.deleteCall.threads.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class LevelDBStoreView(val store:LevelDBStore) extends LevelDBStoreViewMBean {
|
class LevelDBStoreView(val store:LevelDBStore) extends LevelDBStoreViewMBean {
|
||||||
|
@ -901,6 +901,12 @@ class LevelDBStore extends LockableServiceSupport with BrokerServiceAware with P
|
||||||
super.asyncAddQueueMessage(context, message, false)
|
super.asyncAddQueueMessage(context, message, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var stats = new MessageStoreSubscriptionStatistics(false)
|
||||||
|
|
||||||
|
def getMessageStoreSubStatistics: MessageStoreSubscriptionStatistics = {
|
||||||
|
stats;
|
||||||
|
}
|
||||||
|
|
||||||
def subscription_count = subscriptions.synchronized {
|
def subscription_count = subscriptions.synchronized {
|
||||||
subscriptions.size
|
subscriptions.size
|
||||||
}
|
}
|
||||||
|
@ -1008,7 +1014,7 @@ class LevelDBStore extends LockableServiceSupport with BrokerServiceAware with P
|
||||||
case None => 0
|
case None => 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def getMessageSize(clientId: String, subscriptionName: String): Long = {
|
def getMessageSize(clientId: String, subscriptionName: String): Long = {
|
||||||
check_running
|
check_running
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue