@InterfaceAudience.Public @InterfaceStability.Evolving public class ProcedureInfo extends Object implements Cloneable
Constructor and Description |
---|
ProcedureInfo(long procId,
String procName,
String procOwner,
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState procState,
long parentId,
NonceKey nonceKey,
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage exception,
long lastUpdate,
long startTime,
byte[] result) |
Modifier and Type | Method and Description |
---|---|
ProcedureInfo |
clone() |
static ProcedureInfo |
convert(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure procProto)
Deprecated.
|
static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure |
convertToProcedureProto(ProcedureInfo procInfo)
Deprecated.
|
long |
executionTime() |
long |
getClientAckTime() |
IOException |
getException() |
String |
getExceptionCause() |
String |
getExceptionFullMessage() |
String |
getExceptionMessage() |
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage |
getForeignExceptionMessage()
Deprecated.
|
long |
getLastUpdate() |
NonceKey |
getNonceKey() |
long |
getParentId() |
long |
getProcId() |
String |
getProcName() |
String |
getProcOwner() |
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState |
getProcState() |
byte[] |
getResult() |
long |
getStartTime() |
boolean |
hasClientAckTime() |
boolean |
hasParentId() |
boolean |
hasResultData() |
boolean |
isFailed() |
static boolean |
isProcedureOwner(ProcedureInfo procInfo,
User user)
Check if the user is this procedure's owner
|
void |
setClientAckTime(long timestamp) |
String |
toString() |
@InterfaceAudience.Private public ProcedureInfo(long procId, String procName, String procOwner, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState procState, long parentId, NonceKey nonceKey, org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage exception, long lastUpdate, long startTime, byte[] result)
public ProcedureInfo clone()
public long getProcId()
public String getProcName()
public String getProcOwner()
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState getProcState()
public boolean hasParentId()
public long getParentId()
public NonceKey getNonceKey()
public boolean isFailed()
public IOException getException()
@InterfaceAudience.Private @Deprecated public org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage getForeignExceptionMessage()
public String getExceptionCause()
public String getExceptionMessage()
public String getExceptionFullMessage()
public boolean hasResultData()
public byte[] getResult()
public long getStartTime()
public long getLastUpdate()
public long executionTime()
@InterfaceAudience.Private public boolean hasClientAckTime()
@InterfaceAudience.Private public long getClientAckTime()
@InterfaceAudience.Private public void setClientAckTime(long timestamp)
@InterfaceAudience.Private @Deprecated public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure convertToProcedureProto(ProcedureInfo procInfo)
ProcedureInfo
into a Protocol Buffers Procedure
instance.@InterfaceAudience.Private @Deprecated public static ProcedureInfo convert(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure procProto)
ProcedureInfo
instance.@InterfaceAudience.Private public static boolean isProcedureOwner(ProcedureInfo procInfo, User user)
owner
- the owner field of the procedureuser
- the userCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.