/** * <p> * Obtains the OID of the specified CORBA object. * </p> * * @param object the CORBA object whose OID is to be extracted. * @return a {@code String} representing the object OID or null if the method is unable to obtain the object OID. */ private String getObjectOID(org.omg.CORBA.Object object) { String oid = null; try { byte[] oidBytes = this.poa.reference_to_id(object); if (oidBytes != null) oid = new String(oidBytes, StandardCharsets.UTF_8); } catch (Exception e) { IIOPLogger.ROOT_LOGGER.debug("Unable to obtain id from object", e); } return oid; }
/** * Unexport this object. */ public void shutdown() { POA poa = getPOA(); try { poa.deactivate_object(poa.reference_to_id(getReference())); } catch (UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateIRObject(ex); } }
/** * getObjectKey gets the Object Key from the reference using POA.reference_to_id method * @param reference an CORBA.Object. * @returns Object Key as String */ String getObjectKey( org.omg.CORBA.Object reference ) { byte theId[]; try { theId = nsPOA.reference_to_id( reference ); } catch( org.omg.PortableServer.POAPackage.WrongAdapter e ) { return null; } catch( org.omg.PortableServer.POAPackage.WrongPolicy e ) { return null; } catch( Exception e ) { return null; } String theKey = new String( theId ); return theKey; }
/**Destroys the CoordinatorImpl object reference. */ synchronized final void destroy() { if( poa != null && thisRef != null ) try { poa.deactivate_object(poa.reference_to_id(thisRef)); thisRef = null; } catch( Exception exc ) { _logger.log(Level.WARNING,"jts.object_destroy_error","Coordinator"); } }
/** * Destroy the OTSResourceImpl object. * * @param servant the object to be destroyed. * */ private void destroy() { if (poa != null && thisRef != null) { try { poa.deactivate_object(poa.reference_to_id(thisRef)); thisRef = null; } catch (Exception exc) { _logger.log(Level.WARNING,"jts.object_destroy_error","OTSResource"); } } }
/** * <p> * Obtains the OID of the specified CORBA object. * </p> * * @param object the CORBA object whose OID is to be extracted. * @return a {@code String} representing the object OID or null if the method is unable to obtain the object OID. */ private String getObjectOID(org.omg.CORBA.Object object) { String oid = null; try { byte[] oidBytes = this.poa.reference_to_id(object); if (oidBytes != null) oid = new String(oidBytes); } catch (Exception e) { IIOPLogger.ROOT_LOGGER.debug("Unable to obtain id from object", e); } return oid; }
/** * Destroys the TerminatorImpl object. * * @param * * @return * * @see */ synchronized final void destroy() { if (poa != null && thisRef != null) { try { poa.deactivate_object(poa.reference_to_id(thisRef)); thisRef = null; } catch (Exception exc) { _logger.log(Level.WARNING,"jts.object_destroy_error","Terminator"); } } }
/** * <p> * Obtains the OID of the specified CORBA object. * </p> * * @param object the CORBA object whose OID is to be extracted. * @return a {@code String} representing the object OID or null if the method is unable to obtain the object OID. */ private String getObjectOID(org.omg.CORBA.Object object) { String oid = null; try { byte[] oidBytes = this.poa.reference_to_id(object); if (oidBytes != null) oid = new String(oidBytes, StandardCharsets.UTF_8); } catch (Exception e) { IIOPLogger.ROOT_LOGGER.debug("Unable to obtain id from object", e); } return oid; }
/**Destroys the CoordinatorSynchronizationImpl object. * * @param * * @return * * @see */ void destroy() { if( poa != null && thisRef != null ) try { poa.deactivate_object(poa.reference_to_id(thisRef)); thisRef = null; } catch( Exception exc ) { _logger.log(Level.WARNING,"jts.object_destroy_error", "CoordinatorResource"); } coordinator = null; }
poa.deactivate_object(poa.reference_to_id(thisRef)); thisRef = null; } else { rcPoa.deactivate_object(rcPoa.servant_to_id(this)); } else { rcPoa.deactivate_object(rcPoa.reference_to_id(thisRef)); thisRef = null;
poa.deactivate_object(poa.reference_to_id(thisRef)); thisRef = null; } else { crPoa.deactivate_object(crPoa.servant_to_id(this)); } else { crPoa.deactivate_object(crPoa.reference_to_id(thisRef)); thisRef = null;
/** * Unexport this object. */ public void shutdown() { POA poa = getPOA(); try { poa.deactivate_object(poa.reference_to_id(getReference())); } catch (UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateIRObject(ex); } }
/** * Unexport this object. */ public void shutdown() { POA poa = getPOA(); try { poa.deactivate_object(poa.reference_to_id(getReference())); } catch (UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateIRObject(ex); } }
private void destroy(){ try { byte[] oid = poa.reference_to_id(term_ref); poa.deactivate_object(oid); term_ref._release(); oid = poa.reference_to_id(coord_ref); poa.deactivate_object(oid); coord_ref._release(); oid = poa.reference_to_id(contr_ref); poa.deactivate_object(oid); contr_ref._release(); } catch (org.omg.PortableServer.POAPackage.ObjectNotActive esn){ throw new org.omg.CORBA.INTERNAL(); } catch (org.omg.PortableServer.POAPackage.WrongPolicy ew){ throw new org.omg.CORBA.INTERNAL(); } catch (org.omg.PortableServer.POAPackage.WrongAdapter ew){ throw new org.omg.CORBA.INTERNAL(); } TransactionService.release_coordinator(hash_code); }
/**Destroys the ControlImpl object. * * @param * * @return * * @see */ synchronized final void destroy() { // GDH: We have no desire to destroy an underlying remote control object, instead we // release it. We will finalise the local control wrapper below if ( thisRef != null && Configuration.getProxyChecker().isProxy(thisRef)) { thisRef._release(); } else { if( poa != null && thisRef != null ) try { poa.deactivate_object(poa.reference_to_id(thisRef)); thisRef = null; } catch( Exception exc ) { _logger.log(Level.WARNING,"jts.object_destroy_error","Control"); } } doFinalize(); }
_oa.rootPoa().deactivate_object(_oa.rootPoa().reference_to_id(obj)); else invalidPOA = true;
_oa.poa(_oaName).deactivate_object(_oa.poa(_oaName).reference_to_id(obj)); else invalidPOA = true;
_oa.poa(_oaName).deactivate_object(_oa.poa(_oaName).reference_to_id(obj)); else invalidPOA = true;
_oa.rootPoa().deactivate_object(_oa.rootPoa().reference_to_id(obj)); else invalidPOA = true;
_oa.poa(_oaName).deactivate_object(_oa.poa(_oaName).reference_to_id(obj)); else invalidPOA = true;