@InterfaceAudience.Public @InterfaceStability.Evolving public class ProcedureInfo extends Object
Constructor and Description |
---|
ProcedureInfo(long procId,
String procName,
String procOwner,
ProcedureProtos.ProcedureState procState,
long parentId,
ErrorHandlingProtos.ForeignExceptionMessage exception,
long lastUpdate,
long startTime,
byte[] result) |
Modifier and Type | Method and Description |
---|---|
ProcedureInfo |
clone() |
static ProcedureInfo |
convert(ProcedureProtos.Procedure procProto)
Helper to convert the protobuf object.
|
static ProcedureProtos.Procedure |
convertToProcedureProto(ProcedureInfo procInfo) |
long |
executionTime() |
long |
getClientAckTime() |
IOException |
getException() |
String |
getExceptionCause() |
String |
getExceptionFullMessage() |
String |
getExceptionMessage() |
ErrorHandlingProtos.ForeignExceptionMessage |
getForeignExceptionMessage() |
long |
getLastUpdate() |
long |
getParentId() |
long |
getProcId() |
String |
getProcName() |
String |
getProcOwner() |
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) |
public ProcedureInfo(long procId, String procName, String procOwner, ProcedureProtos.ProcedureState procState, long parentId, ErrorHandlingProtos.ForeignExceptionMessage exception, long lastUpdate, long startTime, byte[] result)
public ProcedureInfo clone()
public long getProcId()
public String getProcName()
public String getProcOwner()
public ProcedureProtos.ProcedureState getProcState()
public boolean hasParentId()
public long getParentId()
public boolean isFailed()
public IOException getException()
@InterfaceAudience.Private public 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 ProcedureProtos.Procedure convertToProcedureProto(ProcedureInfo procInfo)
ProcedureInfo
into a Protocol Buffers Procedure
instance.@InterfaceAudience.Private public static ProcedureInfo convert(ProcedureProtos.Procedure procProto)
ProcedureInfo
instance.@InterfaceAudience.Private public static boolean isProcedureOwner(ProcedureInfo procInfo, User user)
owner
- the owner field of the procedureuser
- the user