diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/OnePhaseProcedure.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/OnePhaseProcedure.java index 1c3be2dec54..359c059c84f 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/OnePhaseProcedure.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/OnePhaseProcedure.java @@ -21,7 +21,7 @@ package org.apache.hadoop.hbase.procedure2; import org.apache.hadoop.hbase.classification.InterfaceAudience; import org.apache.hadoop.hbase.classification.InterfaceStability; -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class OnePhaseProcedure extends Procedure { // TODO (e.g. used by online snapshots) diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureAbortedException.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureAbortedException.java index 2e409cf8d8c..aa2d0572e45 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureAbortedException.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureAbortedException.java @@ -24,7 +24,7 @@ import org.apache.hadoop.hbase.classification.InterfaceStability; /** * Thrown when a procedure is aborted */ -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Stable public class ProcedureAbortedException extends ProcedureException { /** default constructor */ diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureException.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureException.java index 9f922b1b933..551a70849c4 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureException.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureException.java @@ -23,7 +23,7 @@ import java.io.IOException; import org.apache.hadoop.hbase.classification.InterfaceAudience; import org.apache.hadoop.hbase.classification.InterfaceStability; -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Stable public class ProcedureException extends IOException { /** default constructor */ diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureResult.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureResult.java index 0aebd5a083e..98c293be1c3 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureResult.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureResult.java @@ -27,7 +27,7 @@ import org.apache.hadoop.hbase.classification.InterfaceStability; * The user of the Procedure framework will get the procedure result with * procedureExecutor.getResult(procId) */ -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Evolving public class ProcedureResult { private final RemoteProcedureException exception; diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureYieldException.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureYieldException.java index 177ff5b0fc3..b29c8b4f72e 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureYieldException.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureYieldException.java @@ -22,7 +22,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience; import org.apache.hadoop.hbase.classification.InterfaceStability; // TODO: Not used yet -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Stable public class ProcedureYieldException extends ProcedureException { /** default constructor */ diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RemoteProcedureException.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RemoteProcedureException.java index 6be512ddeac..71aae84495a 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RemoteProcedureException.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RemoteProcedureException.java @@ -38,7 +38,7 @@ import com.google.protobuf.InvalidProtocolBufferException; * of the original exception created on original 'remote' source. These ProxyThrowables have their * their stacks traces and messages overridden to reflect the original 'remote' exception. */ -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Evolving @SuppressWarnings("serial") public class RemoteProcedureException extends ProcedureException { diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/SequentialProcedure.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/SequentialProcedure.java index b4b35f246e2..8ddb36e585b 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/SequentialProcedure.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/SequentialProcedure.java @@ -35,7 +35,7 @@ import org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.SequentialProc * execute() call once the child are finished. which means once the child * of a SequentialProcedure are completed the SequentialProcedure is completed too. */ -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class SequentialProcedure extends Procedure { private boolean executed = false; diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/StateMachineProcedure.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/StateMachineProcedure.java index eab96e4b7d8..d513eaecb46 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/StateMachineProcedure.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/StateMachineProcedure.java @@ -38,7 +38,7 @@ import org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachinePr * states using setNextState(MyStateEnum.ordinal()). * The rollback will call rollbackState() for each state that was executed, in reverse order. */ -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class StateMachineProcedure extends Procedure { diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/TwoPhaseProcedure.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/TwoPhaseProcedure.java index cd6b0a7a254..4d3e0991aa7 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/TwoPhaseProcedure.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/TwoPhaseProcedure.java @@ -21,7 +21,7 @@ package org.apache.hadoop.hbase.procedure2; import org.apache.hadoop.hbase.classification.InterfaceAudience; import org.apache.hadoop.hbase.classification.InterfaceStability; -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class TwoPhaseProcedure extends Procedure { // TODO (e.g. used by ACLs/VisibilityTags updates) diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/ProcedureStore.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/ProcedureStore.java index 0d1c050bd4f..06bfa44e476 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/ProcedureStore.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/ProcedureStore.java @@ -30,7 +30,7 @@ import org.apache.hadoop.hbase.procedure2.Procedure; * This allows to resume the execution of pending/in-progress procedures in case * of machine failure or service shutdown. */ -@InterfaceAudience.Public +@InterfaceAudience.Private @InterfaceStability.Evolving public interface ProcedureStore { /**