Author: chetanm
Date: Mon Jun 20 10:26:28 2016
New Revision: 1749292
URL: http://svn.apache.org/viewvc?rev=1749292&view=rev
Log:
OAK-2065 - JMX stats for operations being performed in DocumentNodeStore
Move the operation docs to Description annotation
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreMBean.java
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreMBean.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreMBean.java?rev=1749292&r1=1749291&r2=1749292&view=diff
==============================================================================
---
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreMBean.java
(original)
+++
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreMBean.java
Mon Jun 20 10:26:28 2016
@@ -21,6 +21,7 @@ package org.apache.jackrabbit.oak.plugin
import javax.management.openmbean.CompositeData;
+import org.apache.jackrabbit.oak.commons.jmx.Description;
import org.apache.jackrabbit.oak.commons.jmx.Name;
@SuppressWarnings("UnusedDeclaration")
@@ -44,15 +45,12 @@ public interface DocumentNodeStoreMBean
String formatRevision(@Name("revision") String rev, @Name("UTC")boolean
utc);
- /**
- * @return the estimated time difference in milliseconds between
- * the local instance and the (typically common, shared) document server
system.
- * The value can be zero if the times are estimated to be equal,
- * positive when the local instance is ahead of the remote server
- * and negative when the local instance is behind the remote server. An
invocation is not cached
- * and typically requires a round-trip to the server (but that is not a
requirement).
- * @throws UnsupportedOperationException if this DocumentStore does not
support this method
- */
+ @Description("Return the estimated time difference in milliseconds
between\n" +
+ "the local instance and the (typically common, shared) document server
system.\n" +
+ "The value can be zero if the times are estimated to be equal,\n" +
+ "positive when the local instance is ahead of the remote server\n" +
+ "and negative when the local instance is behind the remote server. An
invocation is not cached\n" +
+ "and typically requires a round-trip to the server (but that is not a
requirement).")
long determineServerTimeDifferenceMillis();
CompositeData getMergeSuccessHistory();