Package io.hstream.internal
Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- io.hstream.internal.ErrorCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ErrorCode>
public enum ErrorCode extends Enum<ErrorCode> implements com.google.protobuf.ProtocolMessageEnum
ErrorCodes
Protobuf enumhstream.server.ErrorCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ConnectorCheckFailedConnectorCheckFailed = 604;ConnectorExistsConnectorExists = 601;ConnectorInvalidObjectIdentifierConnectorInvalidObjectIdentifier = 603;ConnectorInvalidStatusConnectorInvalidStatus = 606;ConnectorInvalidTypeConnectorInvalidType = 602;ConnectorNotFound6xx -> IOConnectorUnimplementedConnectorUnimplemented = 605;InternalError0xx -> internal errorQueryAlreadyTerminatedQueryAlreadyTerminated = 408;QueryExistsQueryExists = 401;QueryFoundAssociatedViewQueryFoundAssociatedView = 403;QueryInvalidObjectIdentifierQueryInvalidObjectIdentifier = 404;QueryInvalidSQLQueryInvalidSQL = 402;QueryNotFound4xx -> Query ErrorsQueryNotRunningQueryNotRunning = 406;QueryNotTerminatedQueryNotTerminated = 407;QueryStillRunningQueryStillRunning = 405;ShardReaderAccessGapShardReaderAccessGap = 904;ShardReaderConflictOffsetShardReaderConflictOffset = 901;ShardReaderDataLossGapShardReaderDataLossGap = 903;ShardReaderInvalidObjectIdentifier9xx -> ShardReaderShardReaderNotInConfigGapShardReaderNotInConfigGap = 905;ShardReaderTooManyShardsShardReaderTooManyShards = 902;ShardReaderUnknownGapShardReaderUnknownGap = 906;StreamEmptyBatchedRecordStreamEmptyBatchedRecord = 206;StreamExistsStreamExists = 201;StreamFoundSubscriptionStreamFoundSubscription = 202;StreamInvalidObjectIdentifierStreamInvalidObjectIdentifier = 204;StreamInvalidOffsetStreamInvalidOffset = 208;StreamInvalidRecordIdStreamInvalidRecordId = 209;StreamInvalidRecordSizeStreamInvalidRecordSize = 207;StreamInvalidReplicaFactorStreamInvalidReplicaFactor = 203;StreamInvalidShardCountStreamInvalidShardCount = 205;StreamNotFound2xx -> Stream ErrorsStreamShardNotExistsStreamShardNotExists = 210;SubscriptionCreationOnNonExistentStreamSubscriptionCreationOnNonExistentStream = 302;SubscriptionExistsSubscriptionExists = 301;SubscriptionFoundActiveConsumersSubscriptionFoundActiveConsumers = 305;SubscriptionInvalidObjectIdentifierSubscriptionInvalidObjectIdentifier = 304;SubscriptionInvalidOffsetSubscriptionInvalidOffset = 303;SubscriptionNotFound3xx -> Subscription ErrorsUNRECOGNIZEDViewExistsViewExists = 501;ViewInvalidObjectIdentifierViewInvalidObjectIdentifier = 503;ViewInvalidSQLViewInvalidSQL = 502;ViewNotFound5xx -> View ErrorsWrongServer8xx -> Cluster
-
Field Summary
Fields Modifier and Type Field Description static intConnectorCheckFailed_VALUEConnectorCheckFailed = 604;static intConnectorExists_VALUEConnectorExists = 601;static intConnectorInvalidObjectIdentifier_VALUEConnectorInvalidObjectIdentifier = 603;static intConnectorInvalidStatus_VALUEConnectorInvalidStatus = 606;static intConnectorInvalidType_VALUEConnectorInvalidType = 602;static intConnectorNotFound_VALUE6xx -> IOstatic intConnectorUnimplemented_VALUEConnectorUnimplemented = 605;static intInternalError_VALUE0xx -> internal errorstatic intQueryAlreadyTerminated_VALUEQueryAlreadyTerminated = 408;static intQueryExists_VALUEQueryExists = 401;static intQueryFoundAssociatedView_VALUEQueryFoundAssociatedView = 403;static intQueryInvalidObjectIdentifier_VALUEQueryInvalidObjectIdentifier = 404;static intQueryInvalidSQL_VALUEQueryInvalidSQL = 402;static intQueryNotFound_VALUE4xx -> Query Errorsstatic intQueryNotRunning_VALUEQueryNotRunning = 406;static intQueryNotTerminated_VALUEQueryNotTerminated = 407;static intQueryStillRunning_VALUEQueryStillRunning = 405;static intShardReaderAccessGap_VALUEShardReaderAccessGap = 904;static intShardReaderConflictOffset_VALUEShardReaderConflictOffset = 901;static intShardReaderDataLossGap_VALUEShardReaderDataLossGap = 903;static intShardReaderInvalidObjectIdentifier_VALUE9xx -> ShardReaderstatic intShardReaderNotInConfigGap_VALUEShardReaderNotInConfigGap = 905;static intShardReaderTooManyShards_VALUEShardReaderTooManyShards = 902;static intShardReaderUnknownGap_VALUEShardReaderUnknownGap = 906;static intStreamEmptyBatchedRecord_VALUEStreamEmptyBatchedRecord = 206;static intStreamExists_VALUEStreamExists = 201;static intStreamFoundSubscription_VALUEStreamFoundSubscription = 202;static intStreamInvalidObjectIdentifier_VALUEStreamInvalidObjectIdentifier = 204;static intStreamInvalidOffset_VALUEStreamInvalidOffset = 208;static intStreamInvalidRecordId_VALUEStreamInvalidRecordId = 209;static intStreamInvalidRecordSize_VALUEStreamInvalidRecordSize = 207;static intStreamInvalidReplicaFactor_VALUEStreamInvalidReplicaFactor = 203;static intStreamInvalidShardCount_VALUEStreamInvalidShardCount = 205;static intStreamNotFound_VALUE2xx -> Stream Errorsstatic intStreamShardNotExists_VALUEStreamShardNotExists = 210;static intSubscriptionCreationOnNonExistentStream_VALUESubscriptionCreationOnNonExistentStream = 302;static intSubscriptionExists_VALUESubscriptionExists = 301;static intSubscriptionFoundActiveConsumers_VALUESubscriptionFoundActiveConsumers = 305;static intSubscriptionInvalidObjectIdentifier_VALUESubscriptionInvalidObjectIdentifier = 304;static intSubscriptionInvalidOffset_VALUESubscriptionInvalidOffset = 303;static intSubscriptionNotFound_VALUE3xx -> Subscription Errorsstatic intViewExists_VALUEViewExists = 501;static intViewInvalidObjectIdentifier_VALUEViewInvalidObjectIdentifier = 503;static intViewInvalidSQL_VALUEViewInvalidSQL = 502;static intViewNotFound_VALUE5xx -> View Errorsstatic intWrongServer_VALUE8xx -> Cluster
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ErrorCodeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ErrorCode>internalGetValueMap()static ErrorCodevalueOf(int value)Deprecated.static ErrorCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
InternalError
public static final ErrorCode InternalError
0xx -> internal error
InternalError = 0;
-
StreamNotFound
public static final ErrorCode StreamNotFound
2xx -> Stream Errors
StreamNotFound = 200;
-
StreamExists
public static final ErrorCode StreamExists
StreamExists = 201;
-
StreamFoundSubscription
public static final ErrorCode StreamFoundSubscription
StreamFoundSubscription = 202;
-
StreamInvalidReplicaFactor
public static final ErrorCode StreamInvalidReplicaFactor
StreamInvalidReplicaFactor = 203;
-
StreamInvalidObjectIdentifier
public static final ErrorCode StreamInvalidObjectIdentifier
StreamInvalidObjectIdentifier = 204;
-
StreamInvalidShardCount
public static final ErrorCode StreamInvalidShardCount
StreamInvalidShardCount = 205;
-
StreamEmptyBatchedRecord
public static final ErrorCode StreamEmptyBatchedRecord
StreamEmptyBatchedRecord = 206;
-
StreamInvalidRecordSize
public static final ErrorCode StreamInvalidRecordSize
StreamInvalidRecordSize = 207;
-
StreamInvalidOffset
public static final ErrorCode StreamInvalidOffset
StreamInvalidOffset = 208;
-
StreamInvalidRecordId
public static final ErrorCode StreamInvalidRecordId
StreamInvalidRecordId = 209;
-
StreamShardNotExists
public static final ErrorCode StreamShardNotExists
StreamShardNotExists = 210;
-
SubscriptionNotFound
public static final ErrorCode SubscriptionNotFound
3xx -> Subscription Errors
SubscriptionNotFound = 300;
-
SubscriptionExists
public static final ErrorCode SubscriptionExists
SubscriptionExists = 301;
-
SubscriptionCreationOnNonExistentStream
public static final ErrorCode SubscriptionCreationOnNonExistentStream
SubscriptionCreationOnNonExistentStream = 302;
-
SubscriptionInvalidOffset
public static final ErrorCode SubscriptionInvalidOffset
SubscriptionInvalidOffset = 303;
-
SubscriptionInvalidObjectIdentifier
public static final ErrorCode SubscriptionInvalidObjectIdentifier
SubscriptionInvalidObjectIdentifier = 304;
-
SubscriptionFoundActiveConsumers
public static final ErrorCode SubscriptionFoundActiveConsumers
SubscriptionFoundActiveConsumers = 305;
-
QueryNotFound
public static final ErrorCode QueryNotFound
4xx -> Query Errors
QueryNotFound = 400;
-
QueryExists
public static final ErrorCode QueryExists
QueryExists = 401;
-
QueryInvalidSQL
public static final ErrorCode QueryInvalidSQL
QueryInvalidSQL = 402;
-
QueryFoundAssociatedView
public static final ErrorCode QueryFoundAssociatedView
QueryFoundAssociatedView = 403;
-
QueryInvalidObjectIdentifier
public static final ErrorCode QueryInvalidObjectIdentifier
QueryInvalidObjectIdentifier = 404;
-
QueryStillRunning
public static final ErrorCode QueryStillRunning
QueryStillRunning = 405;
-
QueryNotRunning
public static final ErrorCode QueryNotRunning
QueryNotRunning = 406;
-
QueryNotTerminated
public static final ErrorCode QueryNotTerminated
QueryNotTerminated = 407;
-
QueryAlreadyTerminated
public static final ErrorCode QueryAlreadyTerminated
QueryAlreadyTerminated = 408;
-
ViewNotFound
public static final ErrorCode ViewNotFound
5xx -> View Errors
ViewNotFound = 500;
-
ViewExists
public static final ErrorCode ViewExists
ViewExists = 501;
-
ViewInvalidSQL
public static final ErrorCode ViewInvalidSQL
ViewInvalidSQL = 502;
-
ViewInvalidObjectIdentifier
public static final ErrorCode ViewInvalidObjectIdentifier
ViewInvalidObjectIdentifier = 503;
-
ConnectorNotFound
public static final ErrorCode ConnectorNotFound
6xx -> IO
ConnectorNotFound = 600;
-
ConnectorExists
public static final ErrorCode ConnectorExists
ConnectorExists = 601;
-
ConnectorInvalidType
public static final ErrorCode ConnectorInvalidType
ConnectorInvalidType = 602;
-
ConnectorInvalidObjectIdentifier
public static final ErrorCode ConnectorInvalidObjectIdentifier
ConnectorInvalidObjectIdentifier = 603;
-
ConnectorCheckFailed
public static final ErrorCode ConnectorCheckFailed
ConnectorCheckFailed = 604;
-
ConnectorUnimplemented
public static final ErrorCode ConnectorUnimplemented
ConnectorUnimplemented = 605;
-
ConnectorInvalidStatus
public static final ErrorCode ConnectorInvalidStatus
ConnectorInvalidStatus = 606;
-
WrongServer
public static final ErrorCode WrongServer
8xx -> Cluster
WrongServer = 800;
-
ShardReaderInvalidObjectIdentifier
public static final ErrorCode ShardReaderInvalidObjectIdentifier
9xx -> ShardReader
ShardReaderInvalidObjectIdentifier = 900;
-
ShardReaderConflictOffset
public static final ErrorCode ShardReaderConflictOffset
ShardReaderConflictOffset = 901;
-
ShardReaderTooManyShards
public static final ErrorCode ShardReaderTooManyShards
ShardReaderTooManyShards = 902;
-
ShardReaderDataLossGap
public static final ErrorCode ShardReaderDataLossGap
ShardReaderDataLossGap = 903;
-
ShardReaderAccessGap
public static final ErrorCode ShardReaderAccessGap
ShardReaderAccessGap = 904;
-
ShardReaderNotInConfigGap
public static final ErrorCode ShardReaderNotInConfigGap
ShardReaderNotInConfigGap = 905;
-
ShardReaderUnknownGap
public static final ErrorCode ShardReaderUnknownGap
ShardReaderUnknownGap = 906;
-
UNRECOGNIZED
public static final ErrorCode UNRECOGNIZED
-
-
Field Detail
-
InternalError_VALUE
public static final int InternalError_VALUE
0xx -> internal error
InternalError = 0;- See Also:
- Constant Field Values
-
StreamNotFound_VALUE
public static final int StreamNotFound_VALUE
2xx -> Stream Errors
StreamNotFound = 200;- See Also:
- Constant Field Values
-
StreamExists_VALUE
public static final int StreamExists_VALUE
StreamExists = 201;- See Also:
- Constant Field Values
-
StreamFoundSubscription_VALUE
public static final int StreamFoundSubscription_VALUE
StreamFoundSubscription = 202;- See Also:
- Constant Field Values
-
StreamInvalidReplicaFactor_VALUE
public static final int StreamInvalidReplicaFactor_VALUE
StreamInvalidReplicaFactor = 203;- See Also:
- Constant Field Values
-
StreamInvalidObjectIdentifier_VALUE
public static final int StreamInvalidObjectIdentifier_VALUE
StreamInvalidObjectIdentifier = 204;- See Also:
- Constant Field Values
-
StreamInvalidShardCount_VALUE
public static final int StreamInvalidShardCount_VALUE
StreamInvalidShardCount = 205;- See Also:
- Constant Field Values
-
StreamEmptyBatchedRecord_VALUE
public static final int StreamEmptyBatchedRecord_VALUE
StreamEmptyBatchedRecord = 206;- See Also:
- Constant Field Values
-
StreamInvalidRecordSize_VALUE
public static final int StreamInvalidRecordSize_VALUE
StreamInvalidRecordSize = 207;- See Also:
- Constant Field Values
-
StreamInvalidOffset_VALUE
public static final int StreamInvalidOffset_VALUE
StreamInvalidOffset = 208;- See Also:
- Constant Field Values
-
StreamInvalidRecordId_VALUE
public static final int StreamInvalidRecordId_VALUE
StreamInvalidRecordId = 209;- See Also:
- Constant Field Values
-
StreamShardNotExists_VALUE
public static final int StreamShardNotExists_VALUE
StreamShardNotExists = 210;- See Also:
- Constant Field Values
-
SubscriptionNotFound_VALUE
public static final int SubscriptionNotFound_VALUE
3xx -> Subscription Errors
SubscriptionNotFound = 300;- See Also:
- Constant Field Values
-
SubscriptionExists_VALUE
public static final int SubscriptionExists_VALUE
SubscriptionExists = 301;- See Also:
- Constant Field Values
-
SubscriptionCreationOnNonExistentStream_VALUE
public static final int SubscriptionCreationOnNonExistentStream_VALUE
SubscriptionCreationOnNonExistentStream = 302;- See Also:
- Constant Field Values
-
SubscriptionInvalidOffset_VALUE
public static final int SubscriptionInvalidOffset_VALUE
SubscriptionInvalidOffset = 303;- See Also:
- Constant Field Values
-
SubscriptionInvalidObjectIdentifier_VALUE
public static final int SubscriptionInvalidObjectIdentifier_VALUE
SubscriptionInvalidObjectIdentifier = 304;- See Also:
- Constant Field Values
-
SubscriptionFoundActiveConsumers_VALUE
public static final int SubscriptionFoundActiveConsumers_VALUE
SubscriptionFoundActiveConsumers = 305;- See Also:
- Constant Field Values
-
QueryNotFound_VALUE
public static final int QueryNotFound_VALUE
4xx -> Query Errors
QueryNotFound = 400;- See Also:
- Constant Field Values
-
QueryExists_VALUE
public static final int QueryExists_VALUE
QueryExists = 401;- See Also:
- Constant Field Values
-
QueryInvalidSQL_VALUE
public static final int QueryInvalidSQL_VALUE
QueryInvalidSQL = 402;- See Also:
- Constant Field Values
-
QueryFoundAssociatedView_VALUE
public static final int QueryFoundAssociatedView_VALUE
QueryFoundAssociatedView = 403;- See Also:
- Constant Field Values
-
QueryInvalidObjectIdentifier_VALUE
public static final int QueryInvalidObjectIdentifier_VALUE
QueryInvalidObjectIdentifier = 404;- See Also:
- Constant Field Values
-
QueryStillRunning_VALUE
public static final int QueryStillRunning_VALUE
QueryStillRunning = 405;- See Also:
- Constant Field Values
-
QueryNotRunning_VALUE
public static final int QueryNotRunning_VALUE
QueryNotRunning = 406;- See Also:
- Constant Field Values
-
QueryNotTerminated_VALUE
public static final int QueryNotTerminated_VALUE
QueryNotTerminated = 407;- See Also:
- Constant Field Values
-
QueryAlreadyTerminated_VALUE
public static final int QueryAlreadyTerminated_VALUE
QueryAlreadyTerminated = 408;- See Also:
- Constant Field Values
-
ViewNotFound_VALUE
public static final int ViewNotFound_VALUE
5xx -> View Errors
ViewNotFound = 500;- See Also:
- Constant Field Values
-
ViewExists_VALUE
public static final int ViewExists_VALUE
ViewExists = 501;- See Also:
- Constant Field Values
-
ViewInvalidSQL_VALUE
public static final int ViewInvalidSQL_VALUE
ViewInvalidSQL = 502;- See Also:
- Constant Field Values
-
ViewInvalidObjectIdentifier_VALUE
public static final int ViewInvalidObjectIdentifier_VALUE
ViewInvalidObjectIdentifier = 503;- See Also:
- Constant Field Values
-
ConnectorNotFound_VALUE
public static final int ConnectorNotFound_VALUE
6xx -> IO
ConnectorNotFound = 600;- See Also:
- Constant Field Values
-
ConnectorExists_VALUE
public static final int ConnectorExists_VALUE
ConnectorExists = 601;- See Also:
- Constant Field Values
-
ConnectorInvalidType_VALUE
public static final int ConnectorInvalidType_VALUE
ConnectorInvalidType = 602;- See Also:
- Constant Field Values
-
ConnectorInvalidObjectIdentifier_VALUE
public static final int ConnectorInvalidObjectIdentifier_VALUE
ConnectorInvalidObjectIdentifier = 603;- See Also:
- Constant Field Values
-
ConnectorCheckFailed_VALUE
public static final int ConnectorCheckFailed_VALUE
ConnectorCheckFailed = 604;- See Also:
- Constant Field Values
-
ConnectorUnimplemented_VALUE
public static final int ConnectorUnimplemented_VALUE
ConnectorUnimplemented = 605;- See Also:
- Constant Field Values
-
ConnectorInvalidStatus_VALUE
public static final int ConnectorInvalidStatus_VALUE
ConnectorInvalidStatus = 606;- See Also:
- Constant Field Values
-
WrongServer_VALUE
public static final int WrongServer_VALUE
8xx -> Cluster
WrongServer = 800;- See Also:
- Constant Field Values
-
ShardReaderInvalidObjectIdentifier_VALUE
public static final int ShardReaderInvalidObjectIdentifier_VALUE
9xx -> ShardReader
ShardReaderInvalidObjectIdentifier = 900;- See Also:
- Constant Field Values
-
ShardReaderConflictOffset_VALUE
public static final int ShardReaderConflictOffset_VALUE
ShardReaderConflictOffset = 901;- See Also:
- Constant Field Values
-
ShardReaderTooManyShards_VALUE
public static final int ShardReaderTooManyShards_VALUE
ShardReaderTooManyShards = 902;- See Also:
- Constant Field Values
-
ShardReaderDataLossGap_VALUE
public static final int ShardReaderDataLossGap_VALUE
ShardReaderDataLossGap = 903;- See Also:
- Constant Field Values
-
ShardReaderAccessGap_VALUE
public static final int ShardReaderAccessGap_VALUE
ShardReaderAccessGap = 904;- See Also:
- Constant Field Values
-
ShardReaderNotInConfigGap_VALUE
public static final int ShardReaderNotInConfigGap_VALUE
ShardReaderNotInConfigGap = 905;- See Also:
- Constant Field Values
-
ShardReaderUnknownGap_VALUE
public static final int ShardReaderUnknownGap_VALUE
ShardReaderUnknownGap = 906;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ErrorCode c : ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ErrorCode valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static ErrorCode forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ErrorCode> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ErrorCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-