org.apache.hadoop.nfs.nfs3
Class IdUserGroup
java.lang.Object
org.apache.hadoop.nfs.nfs3.IdUserGroup
public class IdUserGroup
- extends Object
Map id to user name or group name. It does update every 15 minutes. Only a
single instance of this class is expected to be on the server.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdUserGroup
public IdUserGroup()
updateMaps
public void updateMaps()
getUid
public int getUid(String user)
throws IOException
- Throws:
IOException
getGid
public int getGid(String group)
throws IOException
- Throws:
IOException
getUserName
public String getUserName(int uid,
String unknown)
getGroupName
public String getGroupName(int gid,
String unknown)
getUidAllowingUnknown
public int getUidAllowingUnknown(String user)
getGidAllowingUnknown
public int getGidAllowingUnknown(String group)
Copyright © 2009 The Apache Software Foundation