public class IgfsUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
fixUserName(String user)
Provides non-null user name.
|
static IgfsException |
newIgfsException(Class<? extends IgfsException> cls,
String msg,
Throwable cause)
Construct new IGFS exception passing specified message and cause.
|
static IgfsException |
toIgfsException(Exception err)
Converts any passed exception to IGFS exception.
|
public static IgfsException toIgfsException(Exception err)
err - Initial exception.public static IgfsException newIgfsException(Class<? extends IgfsException> cls, String msg, Throwable cause)
cls - Class.msg - Message.cause - Cause.public static String fixUserName(@Nullable String user)
FileSystemConfiguration.DFLT_USER_NAME,
which is the current process owner user.user - a user name to be fixed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015