public enum RequestStatusState extends Enum<RequestStatusState>
CollectionAdminRequest.RequestStatus
Enum Constant and Description |
---|
COMPLETED
The request was completed.
|
FAILED
The request has failed.
|
NOT_FOUND
The request Id was not found.
|
RUNNING
The request is in progress.
|
SUBMITTED
The request was submitted, but has not yet started.
|
Modifier and Type | Method and Description |
---|---|
static RequestStatusState |
fromKey(String key)
Resolves a key that was returned from
getKey() to a RequestStatusState . |
String |
getKey()
Returns the string representation of this state, for using as a key.
|
static RequestStatusState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestStatusState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestStatusState COMPLETED
public static final RequestStatusState FAILED
public static final RequestStatusState RUNNING
public static final RequestStatusState SUBMITTED
public static final RequestStatusState NOT_FOUND
public static RequestStatusState[] values()
for (RequestStatusState c : RequestStatusState.values()) System.out.println(c);
public static RequestStatusState 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 getKey()
public static RequestStatusState fromKey(String key)
getKey()
to a RequestStatusState
. For backwards
compatibility, it resolves the key "notfound" to NOT_FOUND
.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.