if (this.names.containsKey(n)) { org.omg.CORBA.Object ref = (org.omg.CORBA.Object) this.names.remove(n); ref._release(); IIOPLogger.ROOT_LOGGER.debugf("Unbound: %s", n); } else if (this.contexts.containsKey(n)) { org.omg.CORBA.Object ref = (org.omg.CORBA.Object) this.contexts.remove(n); ref._release();
public void _release() { object._release() ; }
private void tryDisconnectClient() { try { if (disposedProxyDisconnectsClient_ && connected_.get()) { logger_.info("disconnect_client"); disconnectClient(); client_._release(); } } catch (Exception e) { logger_.info("disconnect_client raised an unexpected error: will be ignored", e); } finally { connected_.set(false); client_ = null; } }
/** * @param _name le nom de l'objet corba a enlever du diffuseur * @param _o l'objet a deconnecter du bus corba et a enlever du diffuseur. */ public static void unbind(final String _name, final org.omg.CORBA.Object _o) { // getORB().disconnect(_o); /* * FD:temporaire Une exception envoye si on deconnecte un objet non connecte */ try { // getORB().disconnect(_o); _o._release(); } catch (final OBJ_ADAPTER e) { System.err.println(" non dconnect"); } // fin FD if (_name != null) { DDiffuseur.unbind(_name, _o); } }
/** * determine if non_existent */ private boolean isDead(org.omg.CORBA.Object o) { boolean non_exist = true; try { non_exist = o._non_existent(); // Code added to release the reference. if(!non_exist) { o._release(); } } catch (org.omg.CORBA.NO_IMPLEMENT ni) { // not a failure, the peer is alive, it just doesn't // implement _non_existent() non_exist = false; } catch (org.omg.CORBA.SystemException e) { non_exist = true; } return non_exist; } }
if (this.names.containsKey(n)) { org.omg.CORBA.Object ref = (org.omg.CORBA.Object) this.names.remove(n); ref._release(); IIOPLogger.ROOT_LOGGER.debugf("Unbound: %s", n); } else if (this.contexts.containsKey(n)) { org.omg.CORBA.Object ref = (org.omg.CORBA.Object) this.contexts.remove(n); ref._release();
if (this.names.containsKey(n)) { org.omg.CORBA.Object ref = (org.omg.CORBA.Object) this.names.remove(n); ref._release(); IIOPLogger.ROOT_LOGGER.debugf("Unbound: %s", n); } else if (this.contexts.containsKey(n)) { org.omg.CORBA.Object ref = (org.omg.CORBA.Object) this.contexts.remove(n); ref._release();