Package org.kuali.rice.ksb.api.registry
Enum Class ServiceEndpointStatus
- All Implemented Interfaces:
Serializable,Comparable<ServiceEndpointStatus>,Constable,Coded
Defines the possible statuses for a service endpoint in the KSB registry.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the service has been disabled because the registry has detected that it, or it's host instance is defective or not processing requests properly.Indicates the service has been taken offline, most likely as the result of the instance hosting the service being taken offline (i.e. for maintenance or otherwise)Indicates the service is online and available to receieve requests. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceEndpointStatusReturns the endpoint status for the given status code.getCode()static ServiceEndpointStatusReturns the enum constant of this class with the specified name.static ServiceEndpointStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONLINE
Indicates the service is online and available to receieve requests. -
OFFLINE
Indicates the service has been taken offline, most likely as the result of the instance hosting the service being taken offline (i.e. for maintenance or otherwise) -
DISABLED
Indicates the service has been disabled because the registry has detected that it, or it's host instance is defective or not processing requests properly.
-
-
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
-
getCode
-
fromCode
Returns the endpoint status for the given status code. This method will return null if the given code value is null.- Parameters:
code- the code for which to locate theServiceEndpointStatus- Returns:
- the
ServiceEndpointStatuswhich has the given code, or null if the given code value was null - Throws:
IllegalArgumentException- if an endpoint status does not match the given code
-