@InterfaceAudience.Public @InterfaceStability.Evolving public class ProcedureInfo extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
private long |
clientAckTime |
private org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage |
exception |
private long |
lastUpdate |
private NonceKey |
nonceKey |
private long |
parentId |
private long |
procId |
private String |
procName |
private String |
procOwner |
private org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState |
procState |
private byte[] |
result |
private long |
startTime |
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)
Helper to convert the protobuf object.
|
static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure |
convertToProcedureProto(ProcedureInfo procInfo) |
long |
executionTime() |
long |
getClientAckTime() |
IOException |
getException() |
String |
getExceptionCause() |
String |
getExceptionFullMessage() |
String |
getExceptionMessage() |
org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage |
getForeignExceptionMessage() |
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() |
private boolean |
hasOwner() |
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() |
private final long procId
private final String procName
private final String procOwner
private final org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState procState
private final long parentId
private final NonceKey nonceKey
private final org.apache.hadoop.hbase.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage exception
private final long lastUpdate
private final long startTime
private final byte[] result
private long clientAckTime
@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()
private boolean hasOwner()
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 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 public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.Procedure convertToProcedureProto(ProcedureInfo procInfo)
ProcedureInfo
into a Protocol Buffers Procedure
instance.@InterfaceAudience.Private 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.