X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fjmx%2Fmbeans%2FDatastoreInfoMXBeanImpl.java;h=00ecb72703710fac9fe54598f1599f2a3dc873b0;hb=27aa99100f4860edafa4d62d6fa2188f79348d98;hp=7976344c7c1bdd55a067d94667c7fe862522ee16;hpb=59e84273be97b1115fb3fb0f06364b7491a40385;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/DatastoreInfoMXBeanImpl.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/DatastoreInfoMXBeanImpl.java index 7976344c7c..00ecb72703 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/DatastoreInfoMXBeanImpl.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/DatastoreInfoMXBeanImpl.java @@ -7,7 +7,7 @@ */ package org.opendaylight.controller.cluster.datastore.jmx.mbeans; -import org.opendaylight.controller.cluster.datastore.utils.ActorContext; +import org.opendaylight.controller.cluster.datastore.utils.ActorUtils; import org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean; /** @@ -16,17 +16,25 @@ import org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean; * @author Thomas Pantelis */ public class DatastoreInfoMXBeanImpl extends AbstractMXBean implements DatastoreInfoMXBean { + private final ActorUtils actorUtils; - private final ActorContext actorContext; - - public DatastoreInfoMXBeanImpl(String mxBeanType, ActorContext actorContext) { + public DatastoreInfoMXBeanImpl(final String mxBeanType, final ActorUtils actorUtils) { super("GeneralRuntimeInfo", mxBeanType, null); - this.actorContext = actorContext; + this.actorUtils = actorUtils; } - @Override public double getTransactionCreationRateLimit() { - return actorContext.getTxCreationLimit(); + return actorUtils.getTxCreationLimit(); + } + + @Override + public long getAskTimeoutExceptionCount() { + return actorUtils.getAskTimeoutExceptionCount(); + } + + @Override + public void resetAskTimeoutExceptionCount() { + actorUtils.resetAskTimeoutExceptionCount(); } }