public class RoundRobinUserResolver extends Object implements UserResolver
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
RoundRobinUserResolver() |
Modifier and Type | Method and Description |
---|---|
UserGroupInformation |
getTargetUgi(UserGroupInformation ugi)
Map the given UGI to another per the subclass contract.
|
boolean |
needsTargetUsersList()
Indicates whether this user resolver needs a list of target users to be
provided.
|
boolean |
setTargetUsers(URI userloc,
Configuration conf)
Configure the user map given the URI and configuration.
|
public boolean setTargetUsers(URI userloc, Configuration conf) throws IOException
UserResolver
Path
listing target users.
This method should be called only if UserResolver.needsTargetUsersList()
returns true.setTargetUsers
in interface UserResolver
userloc
- URI from which user information may be loaded per the
subclass contract.conf
- The tool configuration.IOException
public UserGroupInformation getTargetUgi(UserGroupInformation ugi)
UserResolver
getTargetUgi
in interface UserResolver
ugi
- User information from the trace.public boolean needsTargetUsersList()
RoundRobinUserResolver
needs to map the users in the
trace to the provided list of target users. So user list is needed.
needsTargetUsersList
in interface UserResolver
Copyright © 2013 Apache Software Foundation. All rights reserved.