@InterfaceAudience.Private public final class ProcedureUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Procedure<?> |
convertToProcedure(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure proto)
Helper to convert the protobuf procedure.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockedResource |
convertToProtoLockedResource(LockedResource lockedResource) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockType |
convertToProtoLockType(LockType lockType) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure |
convertToProtoProcedure(Procedure<?> proc)
Helper to convert the procedure to protobuf.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockedResourceType |
convertToProtoResourceType(LockedResourceType resourceType) |
static long |
getBackoffTimeMs(int attempts)
Get an exponential backoff time, in milliseconds.
|
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure convertToProtoProcedure(Procedure<?> proc) throws IOException
IOExceptionpublic static Procedure<?> convertToProcedure(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure proto) throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockedResourceType convertToProtoResourceType(LockedResourceType resourceType)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockType convertToProtoLockType(LockType lockType)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockedResource convertToProtoLockedResource(LockedResource lockedResource) throws IOException
IOExceptionpublic static long getBackoffTimeMs(int attempts)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.