@InterfaceAudience.Private @InterfaceStability.Evolving public final class MasterProcedureUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MasterProcedureUtil.NonceProcedureRunnable
Helper Runnable used in conjunction with submitProcedure() to deal with
submitting procs with nonce.
|
Modifier and Type | Method and Description |
---|---|
static long |
submitProcedure(MasterProcedureUtil.NonceProcedureRunnable runnable)
Helper used to deal with submitting procs with nonce.
|
static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation |
toProtoUserInfo(org.apache.hadoop.security.UserGroupInformation ugi) |
static org.apache.hadoop.security.UserGroupInformation |
toUserInfo(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation userInfoProto) |
public static org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation toProtoUserInfo(org.apache.hadoop.security.UserGroupInformation ugi)
public static org.apache.hadoop.security.UserGroupInformation toUserInfo(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation userInfoProto)
public static long submitProcedure(MasterProcedureUtil.NonceProcedureRunnable runnable) throws IOException
long procId = MasterProcedureUtil.submitProcedure(
new NonceProcedureRunnable(procExec, nonceGroup, nonce) {
@Override
public void run() {
cpHost.preOperation();
submitProcedure(new MyProc());
cpHost.postOperation();
}
});
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.