public static enum Common.StatusCode extends java.lang.Enum<Common.StatusCode> implements com.google.protobuf.ProtocolMessageEnum
heron.proto.system.StatusCode
Enum Constant and Description |
---|
DUPLICATE_STRMGR
DUPLICATE_STRMGR = 1002; |
INVALID_STMGR
INVALID_STMGR = 1000; |
INVALID_TOPOLOGY_NAME
INVALID_TOPOLOGY_NAME = 100; |
NOT_YET_IMPLEMENTED
NOT_YET_IMPLEMENTED = 103; |
NOTOK
NOTOK = 2; |
OK
OK = 1; |
PATH_ALREADY_EXISTS
PATH_ALREADY_EXISTS = 2001; |
PATH_DOES_NOT_EXIST
PATH_DOES_NOT_EXIST = 2000; |
STATE_CORRUPTED
STATE_CORRUPTED = 2003; |
STATE_READ_ERROR
STATE_READ_ERROR = 2004; |
STATE_WRITE_ERROR
STATE_WRITE_ERROR = 2005; |
STMGR_DIDNT_REGISTER
STMGR_DIDNT_REGISTER = 1001; |
TMASTERLOCATION_ALREADY_EXISTS
TMASTERLOCATION_ALREADY_EXISTS = 2002; |
TOPOLOGY_ALREADY_ACTIVE
TOPOLOGY_ALREADY_ACTIVE = 101; |
TOPOLOGY_ALREADY_DEACTIVE
TOPOLOGY_ALREADY_DEACTIVE = 102; |
Modifier and Type | Field and Description |
---|---|
static int |
DUPLICATE_STRMGR_VALUE
DUPLICATE_STRMGR = 1002; |
static int |
INVALID_STMGR_VALUE
INVALID_STMGR = 1000; |
static int |
INVALID_TOPOLOGY_NAME_VALUE
INVALID_TOPOLOGY_NAME = 100; |
static int |
NOT_YET_IMPLEMENTED_VALUE
NOT_YET_IMPLEMENTED = 103; |
static int |
NOTOK_VALUE
NOTOK = 2; |
static int |
OK_VALUE
OK = 1; |
static int |
PATH_ALREADY_EXISTS_VALUE
PATH_ALREADY_EXISTS = 2001; |
static int |
PATH_DOES_NOT_EXIST_VALUE
PATH_DOES_NOT_EXIST = 2000; |
static int |
STATE_CORRUPTED_VALUE
STATE_CORRUPTED = 2003; |
static int |
STATE_READ_ERROR_VALUE
STATE_READ_ERROR = 2004; |
static int |
STATE_WRITE_ERROR_VALUE
STATE_WRITE_ERROR = 2005; |
static int |
STMGR_DIDNT_REGISTER_VALUE
STMGR_DIDNT_REGISTER = 1001; |
static int |
TMASTERLOCATION_ALREADY_EXISTS_VALUE
TMASTERLOCATION_ALREADY_EXISTS = 2002; |
static int |
TOPOLOGY_ALREADY_ACTIVE_VALUE
TOPOLOGY_ALREADY_ACTIVE = 101; |
static int |
TOPOLOGY_ALREADY_DEACTIVE_VALUE
TOPOLOGY_ALREADY_DEACTIVE = 102; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Common.StatusCode> |
internalGetValueMap() |
static Common.StatusCode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Common.StatusCode |
valueOf(int value) |
static Common.StatusCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Common.StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Common.StatusCode OK
OK = 1;
public static final Common.StatusCode NOTOK
NOTOK = 2;
generic not ok message
public static final Common.StatusCode INVALID_TOPOLOGY_NAME
INVALID_TOPOLOGY_NAME = 100;
These are messages that are seen by the external applications
public static final Common.StatusCode TOPOLOGY_ALREADY_ACTIVE
TOPOLOGY_ALREADY_ACTIVE = 101;
public static final Common.StatusCode TOPOLOGY_ALREADY_DEACTIVE
TOPOLOGY_ALREADY_DEACTIVE = 102;
public static final Common.StatusCode NOT_YET_IMPLEMENTED
NOT_YET_IMPLEMENTED = 103;
public static final Common.StatusCode INVALID_STMGR
INVALID_STMGR = 1000;
Internal errors start at 1000
public static final Common.StatusCode STMGR_DIDNT_REGISTER
STMGR_DIDNT_REGISTER = 1001;
public static final Common.StatusCode DUPLICATE_STRMGR
DUPLICATE_STRMGR = 1002;
public static final Common.StatusCode PATH_DOES_NOT_EXIST
PATH_DOES_NOT_EXIST = 2000;
State specific errors
public static final Common.StatusCode PATH_ALREADY_EXISTS
PATH_ALREADY_EXISTS = 2001;
public static final Common.StatusCode TMASTERLOCATION_ALREADY_EXISTS
TMASTERLOCATION_ALREADY_EXISTS = 2002;
public static final Common.StatusCode STATE_CORRUPTED
STATE_CORRUPTED = 2003;
public static final Common.StatusCode STATE_READ_ERROR
STATE_READ_ERROR = 2004;
public static final Common.StatusCode STATE_WRITE_ERROR
STATE_WRITE_ERROR = 2005;
public static final int OK_VALUE
OK = 1;
public static final int NOTOK_VALUE
NOTOK = 2;
generic not ok message
public static final int INVALID_TOPOLOGY_NAME_VALUE
INVALID_TOPOLOGY_NAME = 100;
These are messages that are seen by the external applications
public static final int TOPOLOGY_ALREADY_ACTIVE_VALUE
TOPOLOGY_ALREADY_ACTIVE = 101;
public static final int TOPOLOGY_ALREADY_DEACTIVE_VALUE
TOPOLOGY_ALREADY_DEACTIVE = 102;
public static final int NOT_YET_IMPLEMENTED_VALUE
NOT_YET_IMPLEMENTED = 103;
public static final int INVALID_STMGR_VALUE
INVALID_STMGR = 1000;
Internal errors start at 1000
public static final int STMGR_DIDNT_REGISTER_VALUE
STMGR_DIDNT_REGISTER = 1001;
public static final int DUPLICATE_STRMGR_VALUE
DUPLICATE_STRMGR = 1002;
public static final int PATH_DOES_NOT_EXIST_VALUE
PATH_DOES_NOT_EXIST = 2000;
State specific errors
public static final int PATH_ALREADY_EXISTS_VALUE
PATH_ALREADY_EXISTS = 2001;
public static final int TMASTERLOCATION_ALREADY_EXISTS_VALUE
TMASTERLOCATION_ALREADY_EXISTS = 2002;
public static final int STATE_CORRUPTED_VALUE
STATE_CORRUPTED = 2003;
public static final int STATE_READ_ERROR_VALUE
STATE_READ_ERROR = 2004;
public static final int STATE_WRITE_ERROR_VALUE
STATE_WRITE_ERROR = 2005;
public static Common.StatusCode[] values()
for (Common.StatusCode c : Common.StatusCode.values()) System.out.println(c);
public static Common.StatusCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static Common.StatusCode valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Common.StatusCode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Common.StatusCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)