org.apache.hadoop.tools.protocolPB
Class GetUserMappingsProtocolClientSideTranslatorPB

java.lang.Object
  extended by org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolClientSideTranslatorPB
All Implemented Interfaces:
Closeable, org.apache.hadoop.ipc.ProtocolMetaInterface, org.apache.hadoop.tools.GetUserMappingsProtocol

public class GetUserMappingsProtocolClientSideTranslatorPB
extends Object
implements org.apache.hadoop.ipc.ProtocolMetaInterface, org.apache.hadoop.tools.GetUserMappingsProtocol, Closeable


Field Summary
 
Fields inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol
versionID
 
Constructor Summary
GetUserMappingsProtocolClientSideTranslatorPB(org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB rpcProxy)
           
 
Method Summary
 void close()
           
 String[] getGroupsForUser(String user)
          Get the groups which are mapped to the given user.
 boolean isMethodSupported(String methodName)
          Checks whether the given method name is supported by the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetUserMappingsProtocolClientSideTranslatorPB

public GetUserMappingsProtocolClientSideTranslatorPB(org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB rpcProxy)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

getGroupsForUser

public String[] getGroupsForUser(String user)
                          throws IOException
Description copied from interface: org.apache.hadoop.tools.GetUserMappingsProtocol
Get the groups which are mapped to the given user.

Specified by:
getGroupsForUser in interface org.apache.hadoop.tools.GetUserMappingsProtocol
Parameters:
user - The user to get the groups for.
Returns:
The set of groups the user belongs to.
Throws:
IOException

isMethodSupported

public boolean isMethodSupported(String methodName)
                          throws IOException
Description copied from interface: org.apache.hadoop.ipc.ProtocolMetaInterface
Checks whether the given method name is supported by the server. It is assumed that all method names are unique for a protocol.

Specified by:
isMethodSupported in interface org.apache.hadoop.ipc.ProtocolMetaInterface
Parameters:
methodName - The name of the method
Returns:
true if method is supported, otherwise false.
Throws:
IOException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.