| TaskUmbilicalProtocol proxy = null;
try {
proxy = (TaskUmbilicalProtocol) RPC.getProxy(
TaskUmbilicalProtocol.class, TaskUmbilicalProtocol.versionID,
addr, conf);
proxy.ping(null, null);
} finally {
server.stop();
if (proxy != null) {
RPC.stopProxy(proxy);
}
|