NodeCounter: JMX description
@@ -25,6 +25,7 @@ import java.util.Collections;
import org.apache.jackrabbit.oak.api.PropertyState;
import org.apache.jackrabbit.oak.api.Type;
import org.apache.jackrabbit.oak.commons.PathUtils;
+import org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean;
import org.apache.jackrabbit.oak.plugins.index.IndexConstants;
import org.apache.jackrabbit.oak.plugins.index.counter.NodeCounterEditor;
import org.apache.jackrabbit.oak.spi.state.ChildNodeEntry;
@@ -35,7 +36,7 @@ import org.apache.jackrabbit.oak.plugins.index.counter.ApproximateCounter;
/**
* A mechanism to retrieve node counter data.
*/
-public class NodeCounter implements NodeCounterMBean {
+public class NodeCounter extends AnnotatedStandardMBean implements NodeCounterMBean {
/**
* Approximate count using the hashed name (deterministically, so that after
@@ -47,6 +48,7 @@ public class NodeCounter implements NodeCounterMBean {
private final NodeStore store;
public NodeCounter(NodeStore store) {
+ super(NodeCounterMBean.class);
this.store = store;
}
