6263646566676869707172
server.start(); } catch (YarnRuntimeException e) { e.printStackTrace(); Assert.fail("Failed to create server"); } finally { server.stop(); } } private void testPbClientFactory() {
93949596979899100101102103
} catch (YarnRuntimeException e) { e.printStackTrace(); Assert.fail("Failed to create server"); } finally { server.stop(); } } public class ResourceTrackerTestImpl implements ResourceTracker {
104105106107108109110111112113114
try { proxy = RPC.getProxy(ClientProtocol.class, ClientProtocol.versionID, addr, conf); proxy.getServerDefaults(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } return null;
8687888990919293949596
server.start(); } catch (YarnRuntimeException e) { e.printStackTrace(); Assert.fail("Failed to crete server"); } finally { server.stop(); } } private void testPbClientFactory() {
117118119120121122123124125126127
} catch (YarnRuntimeException e) { e.printStackTrace(); Assert.fail("Failed to crete server"); } finally { server.stop(); } } public class MRClientProtocolTestImpl implements MRClientProtocol {
201202203204205206207208209210211
checkRemoteUgi(server, proxyUserUgi, conf); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
233234235236237238239240241242243
281282283284285286287288289290291
Assert.fail("The RPC must have failed " + retVal); } catch (Exception e) { e.printStackTrace(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
324325326327328329330331332333334
364365366367368369370371372373374