|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ForceEnum>
com.bigdata.journal.ForceEnum
public enum ForceEnum
Type safe enumeration of options governing whether and how a file is forced
to stable storage. This enum is used for a variety of behaviors, including
commit semantics and the mode in which the RandomAccessFile is
opened.
| Enum Constant Summary | |
|---|---|
Force
The file data, but NOT the file metadata, are forced to stable storage. |
|
ForceMetadata
The file data and the file metadata are forced to stable storage. |
|
No
The file is not forced to stable storage. |
|
| Method Summary | |
|---|---|
String |
asFileMode()
Return the read-write file mode corresponding to the enum value. |
static ForceEnum |
parse(String s)
Parse a string whose contents must be "No", "Force", "ForceMetadata". |
String |
toString()
|
static ForceEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ForceEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ForceEnum No
public static final ForceEnum Force
FileChannel.force(boolean)public static final ForceEnum ForceMetadata
FileChannel.force(boolean)| Method Detail |
|---|
public static ForceEnum[] values()
for (ForceEnum c : ForceEnum.values()) System.out.println(c);
public static ForceEnum valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<ForceEnum>public static ForceEnum parse(String s)
s - The string.
ForceEnum.public String asFileMode()
RandomAccessFile.RandomAccessFile(java.io.File, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||