private static RefreshUserMappingsProtocol createHSProxyWithRefreshUserMappingsProtocol( InetSocketAddress address, Configuration conf, UserGroupInformation ugi) throws IOException { RefreshUserMappingsProtocolPB proxy = (RefreshUserMappingsProtocolPB) createHSProxy( address, conf, ugi, RefreshUserMappingsProtocolPB.class, 0); return new RefreshUserMappingsProtocolClientSideTranslatorPB(proxy); }
private static RefreshUserMappingsProtocol createNNProxyWithRefreshUserMappingsProtocol(InetSocketAddress address, Configuration conf, UserGroupInformation ugi) throws IOException { RefreshUserMappingsProtocolPB proxy = (RefreshUserMappingsProtocolPB) createNameNodeProxy(address, conf, ugi, RefreshUserMappingsProtocolPB.class); return new RefreshUserMappingsProtocolClientSideTranslatorPB(proxy); }
@Test public void testRefreshUserMappingsProtocol() throws IOException { RefreshUserMappingsProtocolClientSideTranslatorPB translator = (RefreshUserMappingsProtocolClientSideTranslatorPB) NameNodeProxies.createNonHAProxy(conf, nnAddress, RefreshUserMappingsProtocol.class, UserGroupInformation.getCurrentUser(), true).getProxy(); assertTrue( translator.isMethodSupported("refreshUserToGroupsMappings")); }
private static RefreshUserMappingsProtocol createNNProxyWithRefreshUserMappingsProtocol(InetSocketAddress address, Configuration conf, UserGroupInformation ugi) throws IOException { RefreshUserMappingsProtocolPB proxy = (RefreshUserMappingsProtocolPB) createNameNodeProxy(address, conf, ugi, RefreshUserMappingsProtocolPB.class, 0); return new RefreshUserMappingsProtocolClientSideTranslatorPB(proxy); }
private static RefreshUserMappingsProtocol createNNProxyWithRefreshUserMappingsProtocol( InetSocketAddress address, Configuration conf, UserGroupInformation ugi) throws IOException { RefreshUserMappingsProtocolPB proxy = (RefreshUserMappingsProtocolPB) createNameNodeProxy(address, conf, ugi, RefreshUserMappingsProtocolPB.class); return new RefreshUserMappingsProtocolClientSideTranslatorPB(proxy); }
@Test public void testRefreshUserMappingsProtocol() throws IOException { RefreshUserMappingsProtocolClientSideTranslatorPB translator = (RefreshUserMappingsProtocolClientSideTranslatorPB) NameNodeProxies .createNonHAProxy(conf, nnAddress, RefreshUserMappingsProtocol.class, UserGroupInformation.getCurrentUser(), true).getProxy(); assertTrue(translator.isMethodSupported("refreshUserToGroupsMappings")); }