public final class MasterProcedureUtil
extends java.lang.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 int |
getTablePriority(TableName tableName)
Return the priority for the given table.
|
static int |
getTablePriorityLevels()
Return the total levels of table priority.
|
static long |
submitProcedure(MasterProcedureUtil.NonceProcedureRunnable runnable)
Helper used to deal with submitting procs with nonce.
|
static UserInformation |
toProtoUserInfo(User user) |
static User |
toUserInfo(UserInformation userInfoProto) |
static boolean |
validateProcedureWALFilename(java.lang.String filename)
A Procedure WAL file name is of the format: pv-<wal-id>.log where wal-id is 20 digits.
|
public static UserInformation toProtoUserInfo(User user)
public static User toUserInfo(UserInformation userInfoProto)
public static long submitProcedure(MasterProcedureUtil.NonceProcedureRunnable runnable) throws java.io.IOException
long procId = MasterProcedureUtil.submitProcedure(
new NonceProcedureRunnable(procExec, nonceGroup, nonce) {
@Override
public void run() {
cpHost.preOperation();
submitProcedure(new MyProc());
cpHost.postOperation();
}
});
java.io.IOException
public static boolean validateProcedureWALFilename(java.lang.String filename)
filename
- name of the file to validatepublic static int getTablePriority(TableName tableName)
public static int getTablePriorityLevels()