Enum OMRSRegistryEventErrorCode
- java.lang.Object
-
- java.lang.Enum<OMRSRegistryEventErrorCode>
-
- org.odpi.openmetadata.repositoryservices.events.OMRSRegistryEventErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<OMRSRegistryEventErrorCode>
public enum OMRSRegistryEventErrorCode extends Enum<OMRSRegistryEventErrorCode> implements Serializable
OMRSRegistryEventErrorCode defines the list of error codes that are used to record errors in the registration process that is used by the cluster registries when managing the membership of the open metadata repository cluster.- NOT_IN_USE: There has been no error detected and so the error code is not in use.
- CONFLICTING_REPOSITORY_ID: Remote server/repository is using the same metadata collection id as the local server.
- CONFLICTING_TYPEDEFS: There are conflicting type definitions (TypeDefs) detected between two repositories in the open metadata repository cluster.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REMOTE_CONNECTIONCONFLICTING_COLLECTION_IDNOT_IN_USEUNKNOWN_ERROR_CODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the default description for the enum, used when there is not natural language resource bundle available.OMRSEventErrorCodegetEncoding()Return the encoding to use in OMRSEvents.StringgetName()Return the name for the enum, used for message content.intgetOrdinal()Return the identifier for the enum, used for indexing arrays etc with the enum.StringtoString()toString() JSON-stylestatic OMRSRegistryEventErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static OMRSRegistryEventErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_IN_USE
public static final OMRSRegistryEventErrorCode NOT_IN_USE
-
CONFLICTING_COLLECTION_ID
public static final OMRSRegistryEventErrorCode CONFLICTING_COLLECTION_ID
-
BAD_REMOTE_CONNECTION
public static final OMRSRegistryEventErrorCode BAD_REMOTE_CONNECTION
-
UNKNOWN_ERROR_CODE
public static final OMRSRegistryEventErrorCode UNKNOWN_ERROR_CODE
-
-
Method Detail
-
values
public static OMRSRegistryEventErrorCode[] 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 (OMRSRegistryEventErrorCode c : OMRSRegistryEventErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OMRSRegistryEventErrorCode 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
-
getOrdinal
public int getOrdinal()
Return the identifier for the enum, used for indexing arrays etc with the enum.- Returns:
- int identifier
-
getName
public String getName()
Return the name for the enum, used for message content.- Returns:
- String name
-
getDescription
public String getDescription()
Return the default description for the enum, used when there is not natural language resource bundle available.- Returns:
- String default description
-
getEncoding
public OMRSEventErrorCode getEncoding()
Return the encoding to use in OMRSEvents.- Returns:
- String OMRSEvent encoding for this errorCode
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<OMRSRegistryEventErrorCode>- Returns:
- string description
-
-