public class SimpleMasterProcedureManager extends MasterProcedureManager
| Modifier and Type | Field and Description |
|---|---|
static String |
SIMPLE_DATA |
static String |
SIMPLE_SIGNATURE |
| Constructor and Description |
|---|
SimpleMasterProcedureManager() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
execProcedureWithRet(HBaseProtos.ProcedureDescription desc)
Execute a distributed procedure on cluster with return data.
|
String |
getProcedureSignature()
Return the unique signature of the procedure.
|
void |
initialize(MasterServices master,
MetricsMaster metricsMaster)
Initialize a globally barriered procedure for master.
|
boolean |
isProcedureDone(HBaseProtos.ProcedureDescription desc)
Check if the procedure is finished successfully
|
boolean |
isStopped() |
void |
stop(String why)
Stop this service.
|
execProcedureequals, hashCodepublic static final String SIMPLE_SIGNATURE
public static final String SIMPLE_DATA
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 KeeperException, IOException, UnsupportedOperationException
MasterProcedureManagerinitialize in class MasterProcedureManagermaster - Master service interfaceKeeperExceptionIOExceptionUnsupportedOperationExceptionpublic String getProcedureSignature()
ProcedureManagergetProcedureSignature in class ProcedureManagerpublic byte[] execProcedureWithRet(HBaseProtos.ProcedureDescription desc) throws IOException
MasterProcedureManagerexecProcedureWithRet in class MasterProcedureManagerdesc - Procedure descriptionIOExceptionpublic boolean isProcedureDone(HBaseProtos.ProcedureDescription desc) throws IOException
MasterProcedureManagerisProcedureDone in class MasterProcedureManagerdesc - Procedure descriptionIOException