public static final class ProcedureProtos.Procedure extends com.google.protobuf.GeneratedMessage implements ProcedureProtos.ProcedureOrBuilder
hbase.pb.Procedure
Procedure metadata, serialized by the ProcedureStore to be able to recover the old state.
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcedureProtos.Procedure.Builder
Protobuf type
hbase.pb.Procedure |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_NAME_FIELD_NUMBER |
static int |
EXCEPTION_FIELD_NUMBER |
static int |
LAST_UPDATE_FIELD_NUMBER |
static int |
NONCE_FIELD_NUMBER |
static int |
NONCE_GROUP_FIELD_NUMBER |
static int |
OWNER_FIELD_NUMBER |
static int |
PARENT_ID_FIELD_NUMBER |
static <any> |
PARSER |
static int |
PROC_ID_FIELD_NUMBER |
static int |
RESULT_FIELD_NUMBER |
static int |
STACK_ID_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
STATE_DATA_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
TIMEOUT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClassName()
required string class_name = 1; |
com.google.protobuf.ByteString |
getClassNameBytes()
required string class_name = 1; |
static ProcedureProtos.Procedure |
getDefaultInstance() |
ProcedureProtos.Procedure |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ErrorHandlingProtos.ForeignExceptionMessage |
getException()
optional .hbase.pb.ForeignExceptionMessage exception = 10; |
ErrorHandlingProtos.ForeignExceptionMessageOrBuilder |
getExceptionOrBuilder()
optional .hbase.pb.ForeignExceptionMessage exception = 10; |
long |
getLastUpdate()
required uint64 last_update = 8; |
long |
getNonce()
optional uint64 nonce = 14 [default = 0]; |
long |
getNonceGroup()
optional uint64 nonce_group = 13 [default = 0]; |
java.lang.String |
getOwner()
optional string owner = 5; |
com.google.protobuf.ByteString |
getOwnerBytes()
optional string owner = 5; |
long |
getParentId()
optional uint64 parent_id = 2; |
<any> |
getParserForType() |
long |
getProcId()
required uint64 proc_id = 3; |
com.google.protobuf.ByteString |
getResult()
optional bytes result = 11; |
int |
getSerializedSize() |
int |
getStackId(int index)
repeated uint32 stack_id = 7; |
int |
getStackIdCount()
repeated uint32 stack_id = 7; |
java.util.List<java.lang.Integer> |
getStackIdList()
repeated uint32 stack_id = 7; |
long |
getStartTime()
required uint64 start_time = 4; |
ProcedureProtos.ProcedureState |
getState()
required .hbase.pb.ProcedureState state = 6; |
com.google.protobuf.ByteString |
getStateData()
optional bytes state_data = 12; |
int |
getTimeout()
optional uint32 timeout = 9; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasClassName()
required string class_name = 1; |
boolean |
hasException()
optional .hbase.pb.ForeignExceptionMessage exception = 10; |
int |
hashCode() |
boolean |
hasLastUpdate()
required uint64 last_update = 8; |
boolean |
hasNonce()
optional uint64 nonce = 14 [default = 0]; |
boolean |
hasNonceGroup()
optional uint64 nonce_group = 13 [default = 0]; |
boolean |
hasOwner()
optional string owner = 5; |
boolean |
hasParentId()
optional uint64 parent_id = 2; |
boolean |
hasProcId()
required uint64 proc_id = 3; |
boolean |
hasResult()
optional bytes result = 11; |
boolean |
hasStartTime()
required uint64 start_time = 4; |
boolean |
hasState()
required .hbase.pb.ProcedureState state = 6; |
boolean |
hasStateData()
optional bytes state_data = 12; |
boolean |
hasTimeout()
optional uint32 timeout = 9; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ProcedureProtos.Procedure.Builder |
newBuilder() |
static ProcedureProtos.Procedure.Builder |
newBuilder(ProcedureProtos.Procedure prototype) |
ProcedureProtos.Procedure.Builder |
newBuilderForType() |
protected ProcedureProtos.Procedure.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static ProcedureProtos.Procedure |
parseDelimitedFrom(java.io.InputStream input) |
static ProcedureProtos.Procedure |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcedureProtos.Procedure |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcedureProtos.Procedure |
parseFrom(com.google.protobuf.ByteString data) |
static ProcedureProtos.Procedure |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcedureProtos.Procedure |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ProcedureProtos.Procedure |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcedureProtos.Procedure |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ProcedureProtos.Procedure.Builder |
toBuilder() |
protected java.lang.Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static <any> PARSER
public static final int CLASS_NAME_FIELD_NUMBER
public static final int PARENT_ID_FIELD_NUMBER
public static final int PROC_ID_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int OWNER_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int STACK_ID_FIELD_NUMBER
public static final int LAST_UPDATE_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public static final int EXCEPTION_FIELD_NUMBER
public static final int RESULT_FIELD_NUMBER
public static final int STATE_DATA_FIELD_NUMBER
public static final int NONCE_GROUP_FIELD_NUMBER
public static final int NONCE_FIELD_NUMBER
public static ProcedureProtos.Procedure getDefaultInstance()
public ProcedureProtos.Procedure getDefaultInstanceForType()
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
public <any> getParserForType()
public boolean hasClassName()
required string class_name = 1;
internal "static" state
hasClassName in interface ProcedureProtos.ProcedureOrBuilderpublic java.lang.String getClassName()
required string class_name = 1;
internal "static" state
getClassName in interface ProcedureProtos.ProcedureOrBuilderpublic com.google.protobuf.ByteString getClassNameBytes()
required string class_name = 1;
internal "static" state
getClassNameBytes in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasParentId()
optional uint64 parent_id = 2;
parent if not a root-procedure otherwise not set
hasParentId in interface ProcedureProtos.ProcedureOrBuilderpublic long getParentId()
optional uint64 parent_id = 2;
parent if not a root-procedure otherwise not set
getParentId in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasProcId()
required uint64 proc_id = 3;hasProcId in interface ProcedureProtos.ProcedureOrBuilderpublic long getProcId()
required uint64 proc_id = 3;getProcId in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasStartTime()
required uint64 start_time = 4;hasStartTime in interface ProcedureProtos.ProcedureOrBuilderpublic long getStartTime()
required uint64 start_time = 4;getStartTime in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasOwner()
optional string owner = 5;hasOwner in interface ProcedureProtos.ProcedureOrBuilderpublic java.lang.String getOwner()
optional string owner = 5;getOwner in interface ProcedureProtos.ProcedureOrBuilderpublic com.google.protobuf.ByteString getOwnerBytes()
optional string owner = 5;getOwnerBytes in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasState()
required .hbase.pb.ProcedureState state = 6;
internal "runtime" state
hasState in interface ProcedureProtos.ProcedureOrBuilderpublic ProcedureProtos.ProcedureState getState()
required .hbase.pb.ProcedureState state = 6;
internal "runtime" state
getState in interface ProcedureProtos.ProcedureOrBuilderpublic java.util.List<java.lang.Integer> getStackIdList()
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
getStackIdList in interface ProcedureProtos.ProcedureOrBuilderpublic int getStackIdCount()
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
getStackIdCount in interface ProcedureProtos.ProcedureOrBuilderpublic int getStackId(int index)
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
getStackId in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasLastUpdate()
required uint64 last_update = 8;hasLastUpdate in interface ProcedureProtos.ProcedureOrBuilderpublic long getLastUpdate()
required uint64 last_update = 8;getLastUpdate in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasTimeout()
optional uint32 timeout = 9;hasTimeout in interface ProcedureProtos.ProcedureOrBuilderpublic int getTimeout()
optional uint32 timeout = 9;getTimeout in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasException()
optional .hbase.pb.ForeignExceptionMessage exception = 10;
user state/results
hasException in interface ProcedureProtos.ProcedureOrBuilderpublic ErrorHandlingProtos.ForeignExceptionMessage getException()
optional .hbase.pb.ForeignExceptionMessage exception = 10;
user state/results
getException in interface ProcedureProtos.ProcedureOrBuilderpublic ErrorHandlingProtos.ForeignExceptionMessageOrBuilder getExceptionOrBuilder()
optional .hbase.pb.ForeignExceptionMessage exception = 10;
user state/results
getExceptionOrBuilder in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasResult()
optional bytes result = 11;
opaque (user) result structure
hasResult in interface ProcedureProtos.ProcedureOrBuilderpublic com.google.protobuf.ByteString getResult()
optional bytes result = 11;
opaque (user) result structure
getResult in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasStateData()
optional bytes state_data = 12;
opaque (user) procedure internal-state
hasStateData in interface ProcedureProtos.ProcedureOrBuilderpublic com.google.protobuf.ByteString getStateData()
optional bytes state_data = 12;
opaque (user) procedure internal-state
getStateData in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasNonceGroup()
optional uint64 nonce_group = 13 [default = 0];
Nonce to prevent same procedure submit by multiple times
hasNonceGroup in interface ProcedureProtos.ProcedureOrBuilderpublic long getNonceGroup()
optional uint64 nonce_group = 13 [default = 0];
Nonce to prevent same procedure submit by multiple times
getNonceGroup in interface ProcedureProtos.ProcedureOrBuilderpublic boolean hasNonce()
optional uint64 nonce = 14 [default = 0];hasNonce in interface ProcedureProtos.ProcedureOrBuilderpublic long getNonce()
optional uint64 nonce = 14 [default = 0];getNonce in interface ProcedureProtos.ProcedureOrBuilderpublic final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic int getSerializedSize()
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic boolean equals(java.lang.Object obj)
public int hashCode()
public static ProcedureProtos.Procedure parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcedureProtos.Procedure parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcedureProtos.Procedure parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcedureProtos.Procedure parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ProcedureProtos.Procedure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ProcedureProtos.Procedure parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ProcedureProtos.Procedure parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ProcedureProtos.Procedure parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ProcedureProtos.Procedure.Builder newBuilder()
public ProcedureProtos.Procedure.Builder newBuilderForType()
public static ProcedureProtos.Procedure.Builder newBuilder(ProcedureProtos.Procedure prototype)
public ProcedureProtos.Procedure.Builder toBuilder()
protected ProcedureProtos.Procedure.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)