public class HadoopIgfsUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_IGFS_ENDPOINT_IGNITE_CFG_PATH
Parameter name for endpoint path to Ignite client configuration.
|
static String |
PARAM_IGFS_ENDPOINT_NO_EMBED
Parameter name for endpoint no embed mode flag.
|
static String |
PARAM_IGFS_ENDPOINT_NO_LOCAL_SHMEM
Parameter name for endpoint no shared memory flag.
|
static String |
PARAM_IGFS_ENDPOINT_NO_LOCAL_TCP
Parameter name for endpoint no local TCP flag.
|
static String |
PARAM_IGFS_ENDPOINT_NO_REMOTE_TCP
Parameter name for endpoint no remote TCP flag.
|
| Modifier and Type | Method and Description |
|---|---|
static IOException |
cast(IgniteCheckedException e)
Cast Ignite exception to appropriate IO exception.
|
static IOException |
cast(IgniteCheckedException e,
String path)
Cast Ignite exception to appropriate IO exception.
|
static void |
clear(AbstractFileSystem fs)
Deletes all files from the given file system.
|
static void |
clear(FileSystem fs)
Deletes all files from the given file system.
|
static boolean |
parameter(Configuration cfg,
String name,
String authority,
boolean dflt)
Get boolean parameter.
|
static int |
parameter(Configuration cfg,
String name,
String authority,
int dflt)
Get integer parameter.
|
static String |
parameter(Configuration cfg,
String name,
String authority,
String dflt)
Get string parameter.
|
public static final String PARAM_IGFS_ENDPOINT_NO_EMBED
public static final String PARAM_IGFS_ENDPOINT_NO_LOCAL_SHMEM
public static final String PARAM_IGFS_ENDPOINT_NO_LOCAL_TCP
public static final String PARAM_IGFS_ENDPOINT_NO_REMOTE_TCP
public static final String PARAM_IGFS_ENDPOINT_IGNITE_CFG_PATH
public static String parameter(Configuration cfg, String name, String authority, String dflt)
cfg - Configuration.name - Parameter name.authority - Authority.dflt - Default value.public static int parameter(Configuration cfg, String name, String authority, int dflt) throws IOException
cfg - Configuration.name - Parameter name.authority - Authority.dflt - Default value.IOException - In case of parse exception.public static boolean parameter(Configuration cfg, String name, String authority, boolean dflt)
cfg - Configuration.name - Parameter name.authority - Authority.dflt - Default value.public static IOException cast(IgniteCheckedException e)
e - Exception to cast.public static IOException cast(IgniteCheckedException e, @Nullable String path)
e - Exception to cast.path - Path for exceptions.public static void clear(FileSystem fs) throws IOException
fs - The file system to clean up.IOException - On error.public static void clear(AbstractFileSystem fs) throws IOException
fs - The file system to clean up.IOException - On error.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019