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.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
||||||
|
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public abstract class OnePhaseProcedure<TEnvironment> extends Procedure<TEnvironment> {
|
public abstract class OnePhaseProcedure<TEnvironment> extends Procedure<TEnvironment> {
|
||||||
// TODO (e.g. used by online snapshots)
|
// TODO (e.g. used by online snapshots)
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.hadoop.hbase.classification.InterfaceStability;
|
||||||
/**
|
/**
|
||||||
* Thrown when a procedure is aborted
|
* Thrown when a procedure is aborted
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Stable
|
@InterfaceStability.Stable
|
||||||
public class ProcedureAbortedException extends ProcedureException {
|
public class ProcedureAbortedException extends ProcedureException {
|
||||||
/** default constructor */
|
/** default constructor */
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.io.IOException;
|
||||||
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
||||||
|
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Stable
|
@InterfaceStability.Stable
|
||||||
public class ProcedureException extends IOException {
|
public class ProcedureException extends IOException {
|
||||||
/** default constructor */
|
/** 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
|
* The user of the Procedure framework will get the procedure result with
|
||||||
* procedureExecutor.getResult(procId)
|
* procedureExecutor.getResult(procId)
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public class ProcedureResult {
|
public class ProcedureResult {
|
||||||
private final RemoteProcedureException exception;
|
private final RemoteProcedureException exception;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
||||||
|
|
||||||
// TODO: Not used yet
|
// TODO: Not used yet
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Stable
|
@InterfaceStability.Stable
|
||||||
public class ProcedureYieldException extends ProcedureException {
|
public class ProcedureYieldException extends ProcedureException {
|
||||||
/** default constructor */
|
/** default constructor */
|
||||||
|
|
|
@ -38,7 +38,7 @@ import com.google.protobuf.InvalidProtocolBufferException;
|
||||||
* of the original exception created on original 'remote' source. These ProxyThrowables have their
|
* 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.
|
* their stacks traces and messages overridden to reflect the original 'remote' exception.
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
public class RemoteProcedureException extends ProcedureException {
|
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
|
* execute() call once the child are finished. which means once the child
|
||||||
* of a SequentialProcedure are completed the SequentialProcedure is completed too.
|
* of a SequentialProcedure are completed the SequentialProcedure is completed too.
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public abstract class SequentialProcedure<TEnvironment> extends Procedure<TEnvironment> {
|
public abstract class SequentialProcedure<TEnvironment> extends Procedure<TEnvironment> {
|
||||||
private boolean executed = false;
|
private boolean executed = false;
|
||||||
|
|
|
@ -38,7 +38,7 @@ import org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.StateMachinePr
|
||||||
* states using setNextState(MyStateEnum.ordinal()).
|
* states using setNextState(MyStateEnum.ordinal()).
|
||||||
* The rollback will call rollbackState() for each state that was executed, in reverse order.
|
* The rollback will call rollbackState() for each state that was executed, in reverse order.
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public abstract class StateMachineProcedure<TEnvironment, TState>
|
public abstract class StateMachineProcedure<TEnvironment, TState>
|
||||||
extends Procedure<TEnvironment> {
|
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.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
import org.apache.hadoop.hbase.classification.InterfaceStability;
|
||||||
|
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public abstract class TwoPhaseProcedure<TEnvironment> extends Procedure<TEnvironment> {
|
public abstract class TwoPhaseProcedure<TEnvironment> extends Procedure<TEnvironment> {
|
||||||
// TODO (e.g. used by ACLs/VisibilityTags updates)
|
// 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
|
* This allows to resume the execution of pending/in-progress procedures in case
|
||||||
* of machine failure or service shutdown.
|
* of machine failure or service shutdown.
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Public
|
@InterfaceAudience.Private
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public interface ProcedureStore {
|
public interface ProcedureStore {
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue