public class ShellBasedGroupsMapping extends Object implements IGroupMappingServiceProvider
Modifier and Type | Field and Description |
---|---|
RotatingMap<String,Set<String>> |
cachedGroups |
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ShellBasedGroupsMapping() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getGroups(String user)
Returns list of groups for a user.
|
void |
prepare(Map<String,Object> topoConf)
Invoked once immediately after construction.
|
public static final org.slf4j.Logger LOG
public RotatingMap<String,Set<String>> cachedGroups
public void prepare(Map<String,Object> topoConf)
prepare
in interface IGroupMappingServiceProvider
topoConf
- Storm configurationpublic Set<String> getGroups(String user) throws IOException
getGroups
in interface IGroupMappingServiceProvider
user
- get groups for this userIOException
Copyright © 2023 The Apache Software Foundation. All rights reserved.