HBASE-13551 Procedure V2 - Procedure classes should not be InterfaceAudience.Public
This commit is contained in:
parent
19242fa1d1
commit
f487dda20c
|
@ -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<TEnvironment> extends Procedure<TEnvironment> {
|
||||
// TODO (e.g. used by online snapshots)
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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<TEnvironment> extends Procedure<TEnvironment> {
|
||||
private boolean executed = false;
|
||||
|
|
|
@ -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<TEnvironment, TState>
|
||||
extends Procedure<TEnvironment> {
|
||||
|
|
|
@ -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<TEnvironment> extends Procedure<TEnvironment> {
|
||||
// TODO (e.g. used by ACLs/VisibilityTags updates)
|
||||
|
|
|
@ -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 {
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue