109110111112113114115116117118119
try { proxy = (ClientProtocol) RPC.getProxy(ClientProtocol.class, ClientProtocol.versionID, addr, conf); proxy.getStats(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } return null;
102103104105106107108109110111112
proxy = (TaskUmbilicalProtocol) RPC.getProxy( TaskUmbilicalProtocol.class, TaskUmbilicalProtocol.versionID, addr, conf); proxy.ping(null); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } return null;
172173174175176177178179180181182
Assert.assertEquals(PROXY_USER_NAME + " via " + REAL_USER_NAME, retVal); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
215216217218219220221222223224225
261262263264265266267268269270271
Assert.fail("The RPC must have failed " + retVal); } catch (Exception e) { e.printStackTrace(); } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
302303304305306307308309310311312
342343344345346347348349350351352
384385386387388389390391392393394
436437438439440441442443444445446
return ret; } catch (Exception e) { e.printStackTrace(); throw e; } finally { server.stop(); if (proxy != null) { RPC.stopProxy(proxy); } } }
488489490491492493494495496497498