public class IdUserGroup extends Object
| Constructor and Description |
|---|
IdUserGroup(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
int |
getGid(String group) |
int |
getGidAllowingUnknown(String group) |
String |
getGroupName(int gid,
String unknown) |
long |
getTimeout() |
int |
getUid(String user) |
int |
getUidAllowingUnknown(String user) |
String |
getUserName(int uid,
String unknown) |
static void |
updateMapInternal(com.google.common.collect.BiMap<Integer,String> map,
String mapName,
String command,
String regex,
Map<Integer,Integer> staticMapping)
Get the whole list of users and groups and save them in the maps.
|
void |
updateMaps() |
public IdUserGroup(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic long getTimeout()
public static void updateMapInternal(com.google.common.collect.BiMap<Integer,String> map, String mapName, String command, String regex, Map<Integer,Integer> staticMapping) throws IOException
IOExceptionpublic void updateMaps()
throws IOException
IOExceptionpublic int getUid(String user) throws IOException
IOExceptionpublic int getGid(String group) throws IOException
IOExceptionpublic int getUidAllowingUnknown(String user)
public int getGidAllowingUnknown(String group)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.