Author: mduerig
Date: Tue Mar 18 10:05:16 2014
New Revision: 1578805
URL: http://svn.apache.org/r1578805
Log:
OAK-1160: Generic interfaces for operation tasks
Adding @NonNull annotations and TYPE constant
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/jmx/RepositoryManagementMBean.java
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/jmx/RepositoryManagementMBean.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/jmx/RepositoryManagementMBean.java?rev=1578805&r1=1578804&r2=1578805&view=diff
==============================================================================
---
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/jmx/RepositoryManagementMBean.java
(original)
+++
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/api/jmx/RepositoryManagementMBean.java
Tue Mar 18 10:05:16 2014
@@ -19,6 +19,8 @@
package org.apache.jackrabbit.oak.api.jmx;
+import javax.annotation.Nonnull;
+
/**
* This interface exposes repository management operations
* and the status of such operations. This interface only
@@ -46,12 +48,14 @@ package org.apache.jackrabbit.oak.api.jm
* about what caused a terminated operation to fail.
*/
public interface RepositoryManagementMBean {
+ String TYPE = "RepositoryManagement";
/**
* Initiate a backup operation.
*
* @return the status of the operation right after it was initiated
*/
+ @Nonnull
String startBackup();
/**
@@ -60,6 +64,7 @@ public interface RepositoryManagementMBe
* @return the status of the ongoing operation or if none the terminal
* status of the last operation or {@code null} if none.
*/
+ @Nonnull
String getBackupStatus();
/**
@@ -67,6 +72,7 @@ public interface RepositoryManagementMBe
*
* @return the status of the operation right after it was initiated
*/
+ @Nonnull
String startRestore();
/**
@@ -75,6 +81,7 @@ public interface RepositoryManagementMBe
* @return the status of the ongoing operation or if none the terminal
* status of the last operation or {@code null} if none.
*/
+ @Nonnull
String getRestoreStatus();
/**
@@ -82,6 +89,7 @@ public interface RepositoryManagementMBe
*
* @return the status of the operation right after it was initiated
*/
+ @Nonnull
String startDataStoreGC();
/**
@@ -90,6 +98,7 @@ public interface RepositoryManagementMBe
* @return the status of the ongoing operation or if none the terminal
* status of the last operation or {@code null} if none.
*/
+ @Nonnull
String getDataStoreGCStatus();
/**
@@ -97,6 +106,7 @@ public interface RepositoryManagementMBe
*
* @return the status of the operation right after it was initiated
*/
+ @Nonnull
String startRevisionGC();
/**
@@ -105,5 +115,6 @@ public interface RepositoryManagementMBe
* @return the status of the ongoing operation or if none the terminal
* status of the last operation or {@code null} if none.
*/
+ @Nonnull
String getRevisionGCStatus();
}