public enum ServiceName extends Enum<ServiceName>
Enum Constant and Description |
---|
DISTRIBUTOR
Used for distribution error
|
EXTERNAL_ACCESS
Used for external access error
|
EXTERNAL_INGEST
used for external ingest error
|
FUNCTIONAL_ADMINISTRATION
Used for Functional Administration error
|
INTERNAL_ACCESS
Used for internal access error
|
INTERNAL_INGEST
Used for internal ingest error
|
LOGBOOK
Use for logbook error
|
METADATA
Used for metadata error
|
PROCESSING
Used for processing error
|
STORAGE
Used for storage error
|
VITAM
Used if the service does not exist.
|
WORKER
Used for worker error
|
WORKSPACE
Used for workspace error
|
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
static ServiceName |
getFromCode(String code)
Retrieve ServiceName from code
|
String |
getName() |
static ServiceName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceName VITAM
public static final ServiceName INTERNAL_ACCESS
public static final ServiceName EXTERNAL_ACCESS
public static final ServiceName INTERNAL_INGEST
public static final ServiceName EXTERNAL_INGEST
public static final ServiceName LOGBOOK
public static final ServiceName METADATA
public static final ServiceName PROCESSING
public static final ServiceName DISTRIBUTOR
public static final ServiceName WORKER
public static final ServiceName STORAGE
public static final ServiceName WORKSPACE
public static final ServiceName FUNCTIONAL_ADMINISTRATION
public static ServiceName[] values()
for (ServiceName c : ServiceName.values()) System.out.println(c);
public static ServiceName valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getCode()
public String getName()
public static ServiceName getFromCode(String code)
code
- the codeIllegalArgumentException
- thrown if code is null or empty or if the attached service to the code does not
existCopyright © 2018 Vitam. All rights reserved.