public class GridGgfsHadoopUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_GGFS_ENDPOINT_NO_EMBED
Parameter name for endpoint no embed mode flag.
|
static String |
PARAM_GGFS_ENDPOINT_NO_LOCAL_SHMEM
Parameter name for endpoint no shared memory flag.
|
static String |
PARAM_GGFS_ENDPOINT_NO_LOCAL_TCP
Parameter name for endpoint no local TCP flag.
|
| Modifier and Type | Method and Description |
|---|---|
static IOException |
cast(org.gridgain.grid.GridException e)
Cast GG exception to appropriate IO exception.
|
static IOException |
cast(org.gridgain.grid.GridException e,
String path)
Cast GG exception to appropriate IO exception.
|
static org.gridgain.grid.ggfs.GridGgfsException |
cast(IOException e)
Cast IO exception to GGFS exception.
|
static boolean |
parameter(org.apache.hadoop.conf.Configuration cfg,
String name,
String authority,
boolean dflt)
Get boolean parameter.
|
static int |
parameter(org.apache.hadoop.conf.Configuration cfg,
String name,
String authority,
int dflt)
Get integer parameter.
|
static String |
parameter(org.apache.hadoop.conf.Configuration cfg,
String name,
String authority,
String dflt)
Get string parameter.
|
public static final String PARAM_GGFS_ENDPOINT_NO_EMBED
public static final String PARAM_GGFS_ENDPOINT_NO_LOCAL_SHMEM
public static final String PARAM_GGFS_ENDPOINT_NO_LOCAL_TCP
public static String parameter(org.apache.hadoop.conf.Configuration cfg, String name, String authority, String dflt)
cfg - Configuration.name - Parameter name.authority - Authority.dflt - Default value.public static int parameter(org.apache.hadoop.conf.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(org.apache.hadoop.conf.Configuration cfg,
String name,
String authority,
boolean dflt)
cfg - Configuration.name - Parameter name.authority - Authority.dflt - Default value.public static IOException cast(org.gridgain.grid.GridException e)
e - Exception to cast.public static IOException cast(org.gridgain.grid.GridException e, @Nullable String path)
e - Exception to cast.path - Path for exceptions.public static org.gridgain.grid.ggfs.GridGgfsException cast(IOException e)
e - IO exception.Copyright © 2014. All rights reserved.