org.apache.hadoop.tools.protocolPB
Class GetUserMappingsProtocolClientSideTranslatorPB
java.lang.Object
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
Fields inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol |
versionID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetUserMappingsProtocolClientSideTranslatorPB
public GetUserMappingsProtocolClientSideTranslatorPB(org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB rpcProxy)
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 © 2014 Apache Software Foundation. All Rights Reserved.