Class GetUserMappingsProtocolClientSideTranslatorPB
java.lang.Object
org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolClientSideTranslatorPB
- All Implemented Interfaces:
Closeable,AutoCloseable,ProtocolMetaInterface,GetUserMappingsProtocol
public class GetUserMappingsProtocolClientSideTranslatorPB
extends Object
implements ProtocolMetaInterface, GetUserMappingsProtocol, Closeable
-
Field Summary
Fields inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol
versionID -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()String[]getGroupsForUser(String user) Get the groups which are mapped to the given user.booleanisMethodSupported(String methodName) Checks whether the given method name is supported by the server.
-
Constructor Details
-
GetUserMappingsProtocolClientSideTranslatorPB
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getGroupsForUser
Description copied from interface:GetUserMappingsProtocolGet the groups which are mapped to the given user.- Specified by:
getGroupsForUserin interfaceGetUserMappingsProtocol- Parameters:
user- The user to get the groups for.- Returns:
- The set of groups the user belongs to.
- Throws:
IOException- raised on errors performing I/O.
-
isMethodSupported
Description copied from interface:ProtocolMetaInterfaceChecks whether the given method name is supported by the server. It is assumed that all method names are unique for a protocol.- Specified by:
isMethodSupportedin interfaceProtocolMetaInterface- Parameters:
methodName- The name of the method- Returns:
- true if method is supported, otherwise false.
- Throws:
IOException- raised on errors performing I/O.
-