@InterfaceAudience.LimitedPrivate(value="Configuration") public class MasterFlushTableProcedureManager extends MasterProcedureManager
| Modifier and Type | Field and Description | 
|---|---|
| private ProcedureCoordinator | coordinator | 
| private static int | FLUSH_PROC_POOL_THREADS_DEFAULT | 
| private static String | FLUSH_PROC_POOL_THREADS_KEY | 
| static String | FLUSH_TABLE_PROCEDURE_SIGNATURE | 
| private static int | FLUSH_TIMEOUT_MILLIS_DEFAULT | 
| private static String | FLUSH_TIMEOUT_MILLIS_KEY | 
| private static int | FLUSH_WAKE_MILLIS_DEFAULT | 
| private static String | FLUSH_WAKE_MILLIS_KEY | 
| private static org.slf4j.Logger | LOG | 
| private MasterServices | master | 
| private Map<TableName,Procedure> | procMap | 
| private boolean | stopped | 
| Constructor and Description | 
|---|
| MasterFlushTableProcedureManager() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkPermissions(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc,
                AccessChecker accessChecker,
                User user)Check for required permissions before executing the procedure. | 
| void | execProcedure(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc)Execute a distributed procedure on cluster | 
| String | getProcedureSignature()Return the unique signature of the procedure. | 
| void | initialize(MasterServices master,
          MetricsMaster metricsMaster)Initialize a globally barriered procedure for master. | 
| boolean | isProcedureDone(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc)Check if the procedure is finished successfully | 
| boolean | isStopped() | 
| void | stop(String why)Stop this service. | 
execProcedureWithRetequals, hashCodepublic static final String FLUSH_TABLE_PROCEDURE_SIGNATURE
private static final String FLUSH_TIMEOUT_MILLIS_KEY
private static final int FLUSH_TIMEOUT_MILLIS_DEFAULT
private static final String FLUSH_WAKE_MILLIS_KEY
private static final int FLUSH_WAKE_MILLIS_DEFAULT
private static final String FLUSH_PROC_POOL_THREADS_KEY
private static final int FLUSH_PROC_POOL_THREADS_DEFAULT
private static final org.slf4j.Logger LOG
private MasterServices master
private ProcedureCoordinator coordinator
private boolean stopped
public MasterFlushTableProcedureManager()
public void stop(String why)
Stoppablewhy - Why we're stopping.public boolean isStopped()
Stoppable.stop(String) has been closed.public void initialize(MasterServices master, MetricsMaster metricsMaster) throws org.apache.zookeeper.KeeperException, IOException, UnsupportedOperationException
MasterProcedureManagerinitialize in class MasterProcedureManagermaster - Master service interfaceorg.apache.zookeeper.KeeperExceptionIOExceptionUnsupportedOperationExceptionpublic String getProcedureSignature()
ProcedureManagergetProcedureSignature in class ProcedureManagerpublic void execProcedure(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc) throws IOException
MasterProcedureManagerexecProcedure in class MasterProcedureManagerdesc - Procedure descriptionIOExceptionpublic void checkPermissions(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc, AccessChecker accessChecker, User user) throws IOException
MasterProcedureManagercheckPermissions in class MasterProcedureManagerIOException - if permissions requirements are not met.public boolean isProcedureDone(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ProcedureDescription desc) throws IOException
MasterProcedureManagerisProcedureDone in class MasterProcedureManagerdesc - Procedure descriptionIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.