@Override public void run() { try { rmiServiceExporter.destroy(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void run() { try { rmiServiceExporter.destroy(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void destroy() { try { super.destroy(); this.exporter.destroy(); } catch (Exception e) { throw new IllegalStateException(e); } }
public void destroy() throws RemoteException { if(enabled) { super.destroy(); } }
public void destroy() throws RemoteException { if(enabled) { super.destroy(); } }
@Override public void destroy() throws RemoteException { logger.warn("Destroying {} exporters", allExporters.size()); for (final RmiServiceExporter exporter : allExporters) { exporter.destroy(); } }
@Override public void run() { try { rmiServiceExporter.destroy(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void run() { try { rmiServiceExporter.destroy(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void destroy() throws Exception { super.destroy(); this.exporter.destroy(); }
public void run() { try { rmiServiceExporter.destroy(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
public void run() { try { rmiServiceExporter.destroy(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void run() { try { rmiServiceExporter.destroy(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
@Override public void run() { try { rmiServiceExporter.destroy(); } catch (Throwable e) { logger.warn(e.getMessage(), e); } } };
/** * Closes the stream and the RMI connection to the peer. */ public void close() throws IOException { try { inputStream.close(); } finally { if (rmiServiceExporter != null) { try { rmiServiceExporter.destroy(); } catch (Throwable e) { throw new IOException(e.getMessage()); } } } }
/** * Closes the stream and the RMI connection to the peer. */ public void close() throws IOException { try { inputStream.close(); } finally { if (rmiServiceExporter != null) { try { rmiServiceExporter.destroy(); } catch (Throwable e) { throw new IOException(e.getMessage()); } } } }
@Override public void unregister(final InternalConnectionDeploymentResult deployment) { final Object exporter = deployment.getExporter(); if (exporter instanceof RmiServiceExporter) { final RmiServiceExporter rmiExporter = (RmiServiceExporter) exporter; try { rmiExporter.destroy(); } catch (final RemoteException e) { throw new IllegalStateException("Exception while unregistering service.", e); } allExporters.remove(rmiExporter); } else { logger.error("Exporter should be RmiServiceExporter type, not: " + exporter.getClass()); throw new IllegalArgumentException("Exporter should be RmiServiceExporter type"); } }