Enum Class MetasyncResult
- All Implemented Interfaces:
Serializable
,Comparable<MetasyncResult>
,Constable
Enumeration of all the different categories of results we want to report on during metadata synchronisation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny kind of HTTP error (e.g.Is any kind of error establishing a connection or during a connection that's usually on the network level (connection refused, timeouts etc.).The synchronization was successful.Anything that doesn't fit in the former categories (e.g.This means that we got a reply from the endpoint but it does not conform to what we expected (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetasyncResult
Returns the enum constant of this class with the specified name.static MetasyncResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
OK
The synchronization was successful. -
IO_EXCEPTION
Is any kind of error establishing a connection or during a connection that's usually on the network level (connection refused, timeouts etc.). -
HTTP_ERROR
Any kind of HTTP error (e.g. a non 200 response code). -
PROTOCOL_ERROR
This means that we got a reply from the endpoint but it does not conform to what we expected (e.g. HTML instead of XML). -
OTHER_ERROR
Anything that doesn't fit in the former categories (e.g. invalid URI stored in our Registry).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-