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.
|
execProcedure
equals, hashCode
public static final String SIMPLE_SIGNATURE
public static final String SIMPLE_DATA
public void stop(String why)
Stoppable
why
- Why we're stopping.public boolean isStopped()
Stoppable.stop(String)
has been closed.public void initialize(MasterServices master, MetricsMaster metricsMaster) throws KeeperException, IOException, UnsupportedOperationException
MasterProcedureManager
initialize
in class MasterProcedureManager
master
- Master service interfaceKeeperException
IOException
UnsupportedOperationException
public String getProcedureSignature()
ProcedureManager
getProcedureSignature
in class ProcedureManager
public byte[] execProcedureWithRet(HBaseProtos.ProcedureDescription desc) throws IOException
MasterProcedureManager
execProcedureWithRet
in class MasterProcedureManager
desc
- Procedure descriptionIOException
public boolean isProcedureDone(HBaseProtos.ProcedureDescription desc) throws IOException
MasterProcedureManager
isProcedureDone
in class MasterProcedureManager
desc
- Procedure descriptionIOException