本文整理了Java中org.omg.CORBA.Object._non_existent()
方法的一些代码示例,展示了Object._non_existent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Object._non_existent()
方法的具体详情如下:
包路径:org.omg.CORBA.Object
类名称:Object
方法名:_non_existent
暂无
代码示例来源:origin: wildfly/wildfly
/**
* <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;
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public boolean _non_existent()
{
return object._non_existent() ;
}
代码示例来源:origin: org.wildfly/wildfly-iiop-openjdk
/**
* <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;
}
代码示例来源:origin: org.jboss.eap/wildfly-iiop-openjdk
/**
* <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;
}
代码示例来源:origin: org.jacorb/jacorb
/**
* 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;
}
}
代码示例来源:origin: org.fudaa.business/dodico-corba
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");
*/
}
}
代码示例来源:origin: org.jacorb/jacorb
System.out.println("Object exists: " + (!o._non_existent()));
代码示例来源:origin: org.fudaa.business/dodico-corba
boolean nonexist = false;
try {
nonexist = obj._non_existent();
} catch (final COMM_FAILURE _e) {
nonexist = true;
代码示例来源:origin: org.jacorb/jacorb
if( ! _object._non_existent() ) // "CORBA ping"
内容来源于网络,如有侵权,请联系作者删除!