Class RouterAsyncUserProtocol
java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.RouterUserProtocol
org.apache.hadoop.hdfs.server.federation.router.async.RouterAsyncUserProtocol
- All Implemented Interfaces:
org.apache.hadoop.security.RefreshUserMappingsProtocol,org.apache.hadoop.tools.GetUserMappingsProtocol
Module that implements all the asynchronous RPC calls in
RefreshUserMappingsProtocol GetUserMappingsProtocol in the
RouterRpcServer.-
Field Summary
Fields inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol
versionIDFields inherited from interface org.apache.hadoop.security.RefreshUserMappingsProtocol
versionID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getGroupsForUser(String user) Asynchronously get the groups which are mapped to the given user.voidAsynchronously refresh superuser proxy group list.voidAsynchronously refresh user to group mappings.
-
Constructor Details
-
RouterAsyncUserProtocol
-
-
Method Details
-
refreshUserToGroupsMappings
Asynchronously refresh user to group mappings.- Specified by:
refreshUserToGroupsMappingsin interfaceorg.apache.hadoop.security.RefreshUserMappingsProtocol- Overrides:
refreshUserToGroupsMappingsin classRouterUserProtocol- Throws:
IOException- raised on errors performing I/O.
-
refreshSuperUserGroupsConfiguration
Asynchronously refresh superuser proxy group list.- Specified by:
refreshSuperUserGroupsConfigurationin interfaceorg.apache.hadoop.security.RefreshUserMappingsProtocol- Overrides:
refreshSuperUserGroupsConfigurationin classRouterUserProtocol- Throws:
IOException- raised on errors performing I/O.
-
getGroupsForUser
Asynchronously get the groups which are mapped to the given user.- Specified by:
getGroupsForUserin interfaceorg.apache.hadoop.tools.GetUserMappingsProtocol- Overrides:
getGroupsForUserin classRouterUserProtocol- 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.
-