public enum InstanceStatus extends Enum<InstanceStatus>
Enum Constant and Description |
---|
AVAILABLE
Database state that defines that the database is available.
|
CREATING
Database state that is available during creation of the database.
|
DELETING
Database state which defines that the database is deleting.
|
MODIFYING
Database state which defines that the database instance is modifying.
|
REBOOTING
Database state which defines that the database instance is rebooting.
|
UNKNOWN
Unknown status, which assumes the database is not available and not retryable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable()
Operation that returns
true if the database is available from the
Amazon RDS perspective. |
boolean |
isRetryable()
Operation that returns
true if a second call will likely succeed. |
static InstanceStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstanceStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstanceStatus CREATING
public static final InstanceStatus AVAILABLE
public static final InstanceStatus REBOOTING
public static final InstanceStatus MODIFYING
public static final InstanceStatus DELETING
public static final InstanceStatus UNKNOWN
public static InstanceStatus[] values()
for (InstanceStatus c : InstanceStatus.values()) System.out.println(c);
public static InstanceStatus 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 boolean isRetryable()
true
if a second call will likely succeed. This
is typically the case if the database is down for temporary reasons like a reboot
after a configuration change, or a multi a/z failover until the DNS record is
updated. Clients should wait some time (e.g. up until 3 minutes) before retrying
their last database operation.true
if the operation is retryable, false
otherwisepublic boolean isAvailable()
true
if the database is available from the
Amazon RDS perspective. That does not necessarily mean that there is a connection
possible to that database itself. Due to wrong/missing rule in the security
credentials it might be possible that a database is available but not connectible
through the JDBC protocol.true
if the database is available, false
otherwiseCopyright © 2023 Pivotal Software, Inc.. All rights reserved.