@ThreadSafe
public final class AlluxioFuseUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getErrorCode(java.lang.Throwable t)
Gets the corresponding error code of a throwable.
|
static long |
getGid(java.lang.String userName)
Retrieves the primary gid of the given user.
|
static long |
getGidFromGroupName(java.lang.String groupName)
Retrieves the gid of the given group.
|
static java.lang.String |
getGroupName(long gid)
Gets the group name from the group id.
|
static java.lang.String |
getGroupName(java.lang.String userName)
Gets the primary group name from the user name.
|
static long |
getUid(java.lang.String userName)
Retrieves the uid of the given user.
|
static java.lang.String |
getUserName(long uid)
Gets the user name from the user id.
|
static boolean |
isFuseInstalled()
Checks whether fuse is installed in local file system.
|
public static long getUid(java.lang.String userName)
userName - the user namepublic static long getGid(java.lang.String userName)
userName - the user namepublic static long getGidFromGroupName(java.lang.String groupName)
throws java.io.IOException
groupName - the group namejava.io.IOExceptionpublic static java.lang.String getUserName(long uid)
throws java.io.IOException
uid - user idjava.io.IOExceptionpublic static java.lang.String getGroupName(java.lang.String userName)
throws java.io.IOException
userName - the user namejava.io.IOExceptionpublic static java.lang.String getGroupName(long gid)
throws java.io.IOException
gid - the group idjava.io.IOExceptionpublic static boolean isFuseInstalled()
public static int getErrorCode(java.lang.Throwable t)
t - throwableCopyright © 2019. All Rights Reserved.