示例#1
0
        /// <exception cref="System.IO.IOException"/>
        private int RefreshSuperUserGroupsConfiguration()
        {
            // Refresh the super-user groups
            Configuration conf    = GetConf();
            IPEndPoint    address = conf.GetSocketAddr(JHAdminConfig.JhsAdminAddress, JHAdminConfig
                                                       .DefaultJhsAdminAddress, JHAdminConfig.DefaultJhsAdminPort);
            RefreshUserMappingsProtocol refreshProtocol = HSProxies.CreateProxy <RefreshUserMappingsProtocol
                                                                                 >(conf, address, UserGroupInformation.GetCurrentUser());

            // Refresh the super-user group mappings
            refreshProtocol.RefreshSuperUserGroupsConfiguration();
            return(0);
        }
示例#2
0
 public RefreshUserMappingsProtocolServerSideTranslatorPB(RefreshUserMappingsProtocol
                                                          impl)
 {
     this.impl = impl;
 }