@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Unstable public class NetgroupCache extends Object
| Constructor and Description |
|---|
NetgroupCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
add(String group,
List<String> users)
Add group to cache
|
static void |
clear()
Clear the cache
|
static List<String> |
getNetgroupNames()
Get the list of cached netgroups
|
static void |
getNetgroups(String user,
List<String> groups)
Get netgroups for a given user
|
static boolean |
isCached(String group)
Returns true if a given netgroup is cached
|
public static void getNetgroups(String user, List<String> groups)
user - get groups for this usergroups - put groups into this Listpublic static List<String> getNetgroupNames()
public static boolean isCached(String group)
group - check if this group is cachedpublic static void clear()
Copyright © 2013 Apache Software Foundation. All rights reserved.