@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Evolving public class JniBasedUnixGroupsMapping extends Object implements GroupMappingServiceProvider
GroupMappingServiceProvider
that invokes libC calls to get the group
memberships of a given user.| Constructor and Description |
|---|
JniBasedUnixGroupsMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheGroupsAdd(List<String> groups)
Caches the group user information
|
void |
cacheGroupsRefresh()
Refresh the cache of groups and user mapping
|
List<String> |
getGroups(String user)
Get all various group memberships of a given user.
|
public List<String> getGroups(String user) throws IOException
GroupMappingServiceProvidergetGroups in interface GroupMappingServiceProvideruser - User's nameIOExceptionpublic void cacheGroupsRefresh()
throws IOException
GroupMappingServiceProvidercacheGroupsRefresh in interface GroupMappingServiceProviderIOExceptionpublic void cacheGroupsAdd(List<String> groups) throws IOException
GroupMappingServiceProvidercacheGroupsAdd in interface GroupMappingServiceProvidergroups - list of groups to add to cacheIOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.