Package com.oracle.bmc.mysql.model
Enum InnoDbShutdownMode
- java.lang.Object
-
- java.lang.Enum<InnoDbShutdownMode>
-
- com.oracle.bmc.mysql.model.InnoDbShutdownMode
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<InnoDbShutdownMode>
@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public enum InnoDbShutdownMode extends Enum<InnoDbShutdownMode> implements BmcEnum
The InnoDB shutdown mode.If the value is “SLOW”, InnoDB does a slow shutdown, a full purge and a change buffer merge before shutting down. If the value is “FAST”, InnoDB skips these operations at shutdown, a process known as a fast shutdown. If the value is “IMMEDIATE”, InnoDB flushes its logs and shuts down cold, as if MySQL had crashed; no committed transactions are lost, but the crash recovery operation makes the next startup take longer.
The slow shutdown can take minutes, or even hours in extreme cases where substantial amounts of data are still buffered. Use the slow shutdown technique before upgrading or downgrading between MySQL major releases, so that all data files are fully prepared in case the upgrade process updates the file format.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InnoDbShutdownMode
create(String key)
String
getValue()
static InnoDbShutdownMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static InnoDbShutdownMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Immediate
public static final InnoDbShutdownMode Immediate
-
Fast
public static final InnoDbShutdownMode Fast
-
Slow
public static final InnoDbShutdownMode Slow
-
-
Method Detail
-
values
public static InnoDbShutdownMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InnoDbShutdownMode c : InnoDbShutdownMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InnoDbShutdownMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static InnoDbShutdownMode create(String key)
-
-