public class GetUserMappingsProtocolClientSideTranslatorPB extends Object implements org.apache.hadoop.ipc.ProtocolMetaInterface, org.apache.hadoop.tools.GetUserMappingsProtocol, Closeable
Constructor and Description |
---|
GetUserMappingsProtocolClientSideTranslatorPB(org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB rpcProxy) |
Modifier and Type | Method and Description |
---|---|
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.
|
public GetUserMappingsProtocolClientSideTranslatorPB(org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB rpcProxy)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public String[] getGroupsForUser(String user) throws IOException
org.apache.hadoop.tools.GetUserMappingsProtocol
getGroupsForUser
in interface org.apache.hadoop.tools.GetUserMappingsProtocol
user
- The user to get the groups for.IOException
public boolean isMethodSupported(String methodName) throws IOException
org.apache.hadoop.ipc.ProtocolMetaInterface
isMethodSupported
in interface org.apache.hadoop.ipc.ProtocolMetaInterface
methodName
- The name of the methodIOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.