Class MasterFlushTableProcedureManager
java.lang.Object
org.apache.hadoop.hbase.procedure.ProcedureManager
org.apache.hadoop.hbase.procedure.MasterProcedureManager
org.apache.hadoop.hbase.procedure.flush.MasterFlushTableProcedureManager
- All Implemented Interfaces:
Stoppable
@LimitedPrivate("Configuration")
public class MasterFlushTableProcedureManager
extends MasterProcedureManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ProcedureCoordinatorprivate static final intprivate static final Stringstatic final Stringstatic final booleanstatic final Stringprivate static final intprivate static final Stringprivate static final intprivate static final Stringprivate static final org.slf4j.Loggerprivate MasterServicesprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPermissions(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc, AccessChecker accessChecker, User user) Check for required permissions before executing the procedure.voidexecProcedure(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc) Execute a distributed procedure on clusterReturn the unique signature of the procedure.voidinitialize(MasterServices master, MetricsMaster metricsMaster) Initialize a globally barriered procedure for master.booleanisProcedureDone(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc) Check if the procedure is finished successfullybooleanReturns True ifStoppable.stop(String)has been closed.voidStop this service.Methods inherited from class org.apache.hadoop.hbase.procedure.MasterProcedureManager
execProcedureWithRetMethods inherited from class org.apache.hadoop.hbase.procedure.ProcedureManager
equals, hashCode
-
Field Details
-
FLUSH_TABLE_PROCEDURE_SIGNATURE
- See Also:
-
FLUSH_PROCEDURE_ENABLED
- See Also:
-
FLUSH_PROCEDURE_ENABLED_DEFAULT
- See Also:
-
FLUSH_TIMEOUT_MILLIS_KEY
- See Also:
-
FLUSH_TIMEOUT_MILLIS_DEFAULT
- See Also:
-
FLUSH_WAKE_MILLIS_KEY
- See Also:
-
FLUSH_WAKE_MILLIS_DEFAULT
- See Also:
-
FLUSH_PROC_POOL_THREADS_KEY
- See Also:
-
FLUSH_PROC_POOL_THREADS_DEFAULT
- See Also:
-
LOG
-
master
-
coordinator
-
procMap
-
stopped
-
-
Constructor Details
-
MasterFlushTableProcedureManager
public MasterFlushTableProcedureManager()
-
-
Method Details
-
stop
Description copied from interface:StoppableStop this service. Implementers should favor logging errors over throwing RuntimeExceptions.- Parameters:
why- Why we're stopping.
-
isStopped
Description copied from interface:StoppableReturns True ifStoppable.stop(String)has been closed. -
initialize
public void initialize(MasterServices master, MetricsMaster metricsMaster) throws org.apache.zookeeper.KeeperException, IOException, UnsupportedOperationException Description copied from class:MasterProcedureManagerInitialize a globally barriered procedure for master.- Specified by:
initializein classMasterProcedureManager- Parameters:
master- Master service interface- Throws:
org.apache.zookeeper.KeeperExceptionIOExceptionUnsupportedOperationException
-
getProcedureSignature
Description copied from class:ProcedureManagerReturn the unique signature of the procedure. This signature uniquely identifies the procedure. By default, this signature is the string used in the procedure controller (i.e., the root ZK node name for the procedure)- Specified by:
getProcedureSignaturein classProcedureManager
-
execProcedure
public void execProcedure(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc) throws IOException Description copied from class:MasterProcedureManagerExecute a distributed procedure on cluster- Overrides:
execProcedurein classMasterProcedureManager- Parameters:
desc- Procedure description- Throws:
IOException
-
checkPermissions
public void checkPermissions(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc, AccessChecker accessChecker, User user) throws IOException Description copied from class:MasterProcedureManagerCheck for required permissions before executing the procedure.- Specified by:
checkPermissionsin classMasterProcedureManager- Throws:
IOException- if permissions requirements are not met.
-
isProcedureDone
public boolean isProcedureDone(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc) throws IOException Description copied from class:MasterProcedureManagerCheck if the procedure is finished successfully- Specified by:
isProcedureDonein classMasterProcedureManager- Parameters:
desc- Procedure description- Returns:
- true if the specified procedure is finished successfully
- Throws:
IOException
-