/** * <p> * Determines if the supplied object is non_existent * </p> * * @param o the CORBA object being verified. * @return {@code true} if the object is non-existent; {@code false} otherwise. */ private boolean isDead(org.omg.CORBA.Object o) { boolean non_exist; try { non_exist = o._non_existent(); } catch (org.omg.CORBA.SystemException e) { non_exist = true; } return non_exist; }
public boolean _non_existent() { return object._non_existent() ; }
/** * <p> * Determines if the supplied object is non_existent * </p> * * @param o the CORBA object being verified. * @return {@code true} if the object is non-existent; {@code false} otherwise. */ private boolean isDead(org.omg.CORBA.Object o) { boolean non_exist; try { non_exist = o._non_existent(); } catch (org.omg.CORBA.SystemException e) { non_exist = true; } return non_exist; }
/** * <p> * Determines if the supplied object is non_existent * </p> * * @param o the CORBA object being verified. * @return {@code true} if the object is non-existent; {@code false} otherwise. */ private boolean isDead(org.omg.CORBA.Object o) { boolean non_exist; try { non_exist = o._non_existent(); } catch (org.omg.CORBA.SystemException e) { non_exist = true; } return non_exist; }
/** * 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; } }
private synchronized void internalBind(final String _name, final org.omg.CORBA.Object _o, final String _ior) { if (!_ior.equals(iors_.get(_name)) && !_o._non_existent()) { objs_.put(_name, _o); iors_.put(_name, _ior); ttls_.put(_name, new Long(1000)); IObjet iobjet = null; try { iobjet = IObjetHelper.narrow(_o); } catch (final BAD_PARAM ex) {} if (iobjet != null) { String m = ""; try { final String[] l = iobjet.interfacesCorba(); for (int i = 0; i < l.length; i++) { if (i > 0) { m += CtuluLibString.VIR; } m += l[i]; } } catch (final Exception ex) {} itfs_.put(_name, m); } /* * System.out.println("\n"); System.out.println("NAM:"+_name); System.out.println(""+_ior); * System.out.println("\n"); */ } }
System.out.println("Object exists: " + (!o._non_existent()));
boolean nonexist = false; try { nonexist = obj._non_existent(); } catch (final COMM_FAILURE _e) { nonexist = true;
if( ! _object._non_existent() ) // "CORBA ping"