org.apache.hadoop.tools
Interface GetUserMappingsProtocol

All Superinterfaces:
VersionedProtocol
All Known Implementing Classes:
JobTracker

public interface GetUserMappingsProtocol
extends VersionedProtocol

Protocol implemented by the Name Node and Job Tracker which maps users to groups.


Field Summary
static long versionID
          Version 1: Initial version.
 
Method Summary
 String[] getGroupsForUser(String user)
          Get the groups which are mapped to the given user.
 
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol
getProtocolVersion
 

Field Detail

versionID

static final long versionID
Version 1: Initial version.

See Also:
Constant Field Values
Method Detail

getGroupsForUser

String[] getGroupsForUser(String user)
                          throws IOException
Get the groups which are mapped to the given user.

Parameters:
user - The user to get the groups for.
Returns:
The set of groups the user belongs to.
Throws:
IOException


Copyright © 2009 The Apache Software Foundation