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
IOException
public 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
IOException
public void updateMaps() throws IOException
IOException
public int getUid(String user) throws IOException
IOException
public int getGid(String group) throws IOException
IOException
public int getUidAllowingUnknown(String user)
public int getGidAllowingUnknown(String group)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.