synchronized void stopUmbilical() { if (umbilical != null) { RPC.stopProxy(umbilical); } umbilical = null; }
@Override public void close() throws IOException { RPC.stopProxy(server); }
@Override public void close() throws IOException { RPC.stopProxy(proxy); }
@Override public void close() { RPC.stopProxy(rpcProxy); }
@Override public void close() throws IOException { RPC.stopProxy(rpcProxy); }
@Override public void close() throws IOException { RPC.stopProxy(rpcProxy); }
@Override public void close() throws IOException { RPC.stopProxy(rpcProxy); }
@Override public void close() { RPC.stopProxy(rpcProxy); }
@Override public void close() throws IOException { RPC.stopProxy(rpcProxy); }
@Override public void close() throws IOException { RPC.stopProxy(rpcProxy); }
@Override public void close() throws IOException { RPC.stopProxy(rpcProxy); }
public void shutdown() { if (executor != null) { executor.shutdownNow(); } if (taskReporter != null) { taskReporter.shutdown(); } if (umbilical != null) { // TODO: Can this be moved out of the main callback path RPC.stopProxy(umbilical); } }
try { if ((args == null || args.length == 0) && "close".equals(method.getName())) { RPC.stopProxy(cp); return null; } else {
/** * Try to get the HA state of the node at the given address. This * function is guaranteed to be "quick" -- ie it has a short timeout * and no retries. Its only purpose is to avoid fencing a node that * has already restarted. */ boolean tryGracefulFence(HAServiceTarget svc) { HAServiceProtocol proxy = null; try { proxy = svc.getProxy(gracefulFenceConf, gracefulFenceTimeout); proxy.transitionToStandby(createReqInfo()); return true; } catch (ServiceFailedException sfe) { LOG.warn("Unable to gracefully make {} standby ({})", svc, sfe.getMessage()); } catch (IOException ioe) { LOG.warn("Unable to gracefully make {} standby (unable to connect)", svc, ioe); } finally { if (proxy != null) { RPC.stopProxy(proxy); } } return false; }
LOG.warn("Transport-level exception trying to monitor health of {}", targetToMonitor, t); RPC.stopProxy(proxy); proxy = null; enterState(State.SERVICE_NOT_RESPONDING);
@Override public void close() { if (aliasMaps != null) { for (InMemoryAliasMapProtocol aliasMap : aliasMaps) { RPC.stopProxy(aliasMap); } } }
@Override public void abort() throws IOException { RPC.stopProxy(backupNode); doubleBuf = null; }
@Override public void close() { RPC.stopProxy(rpcProxy); }
@Override public void close() throws IOException { RPC.stopProxy(rpcProxy); }
@Override public void close() throws IOException { LOG.info("Stopping rpcProxy in" + "InMemoryAliasMapProtocolClientSideTranslatorPB"); if (rpcProxy != null) { RPC.stopProxy(rpcProxy); } } }