public enum IgfsMode extends Enum<IgfsMode>
IGFS
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 FileSystemConfiguration.getDefaultMode()
configuration property.
Enum Constant and Description |
---|
DUAL_ASYNC
In this mode
IGFS will cache files locally and also asynchronously
write them through to secondary Hadoop file system. |
DUAL_SYNC
In this mode
IGFS will cache files locally and also synchronously
write them through to secondary Hadoop file system. |
PRIMARY
In this mode IGFS will not delegate to secondary Hadoop file system and will
cache all the files in memory only.
|
PROXY
In this mode IGFS 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 @Nullable IgfsMode |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static IgfsMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IgfsMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IgfsMode PRIMARY
public static final IgfsMode PROXY
public static final IgfsMode DUAL_SYNC
IGFS
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 IgfsMode[] values()
for (IgfsMode c : IgfsMode.values()) System.out.println(c);
public static IgfsMode 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 @Nullable IgfsMode fromOrdinal(int ord)
ord
- Ordinal value.null
if ordinal out of range.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019