public enum GridGgfsMode extends Enum<GridGgfsMode>
GGFS mode defining interactions with underlying secondary Hadoop file system.
Secondary Hadoop file system is provided for pass-through, write-through, and
read-through purposes.
This mode is configured via GridGgfsConfiguration.getDefaultMode()
configuration property.
| Enum Constant and Description |
|---|
DUAL_ASYNC
In this mode
GGFS will cache files locally and also asynchronously
write them through to secondary Hadoop file system. |
DUAL_SYNC
In this mode
GGFS will cache files locally and also synchronously
write them through to secondary Hadoop file system. |
PRIMARY
In this mode GGFS will not delegate to secondary Hadoop file system and will
cache all the files in memory only.
|
PROXY
In this mode GGFS will not cache any files in memory and will only pass them
through to secondary Hadoop file system.
|
| Modifier and Type | Method and Description |
|---|---|
static GridGgfsMode |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static GridGgfsMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridGgfsMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridGgfsMode PRIMARY
public static final GridGgfsMode PROXY
public static final GridGgfsMode DUAL_SYNC
GGFS will cache files locally and also synchronously
write them through to secondary Hadoop file system.
If secondary Hadoop file system is not configured, then this mode behaves like
PRIMARY mode.
public static final GridGgfsMode DUAL_ASYNC
GGFS will cache files locally and also asynchronously
write them through to secondary Hadoop file system.
If secondary Hadoop file system is not configured, then this mode behaves like
PRIMARY mode.
public static GridGgfsMode[] values()
for (GridGgfsMode c : GridGgfsMode.values()) System.out.println(c);
public static GridGgfsMode 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 null@Nullable public static GridGgfsMode fromOrdinal(int ord)
ord - Ordinal value.null if ordinal out of range.Copyright © 2014. All rights reserved.