com.sun.corba.se.spi.ior.ObjectAdapterId Java Examples
The following examples show how to use
com.sun.corba.se.spi.ior.ObjectAdapterId.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ObjectAdapterIdBase.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public boolean equals( Object other ) { if (!(other instanceof ObjectAdapterId)) return false ; ObjectAdapterId theOther = (ObjectAdapterId)other ; Iterator iter1 = iterator() ; Iterator iter2 = theOther.iterator() ; while (iter1.hasNext() && iter2.hasNext()) { String str1 = (String)(iter1.next()) ; String str2 = (String)(iter2.next()) ; if (!str1.equals( str2 )) return false ; } return iter1.hasNext() == iter2.hasNext() ; }
Example #2
Source File: CorbaTransportManagerImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public Collection getAcceptors(String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { // REVISIT - need to filter based on arguments. // REVISIT - initialization will be moved to OA. // Lazy initialization of acceptors. Iterator iterator = acceptors.iterator(); while (iterator.hasNext()) { Acceptor acceptor = (Acceptor) iterator.next(); if (acceptor.initialize()) { if (acceptor.shouldRegisterAcceptEvent()) { orb.getTransportManager().getSelector(0) .registerForEvent(acceptor.getEventHandler()); } } } return acceptors; }
Example #3
Source File: ObjectAdapterIdBase.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public boolean equals( Object other ) { if (!(other instanceof ObjectAdapterId)) return false ; ObjectAdapterId theOther = (ObjectAdapterId)other ; Iterator iter1 = iterator() ; Iterator iter2 = theOther.iterator() ; while (iter1.hasNext() && iter2.hasNext()) { String str1 = (String)(iter1.next()) ; String str2 = (String)(iter2.next()) ; if (!str1.equals( str2 )) return false ; } return iter1.hasNext() == iter2.hasNext() ; }
Example #4
Source File: CorbaTransportManagerImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public Collection getAcceptors(String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { // REVISIT - need to filter based on arguments. // REVISIT - initialization will be moved to OA. // Lazy initialization of acceptors. Iterator iterator = acceptors.iterator(); while (iterator.hasNext()) { Acceptor acceptor = (Acceptor) iterator.next(); if (acceptor.initialize()) { if (acceptor.shouldRegisterAcceptEvent()) { orb.getTransportManager().getSelector(0) .registerForEvent(acceptor.getEventHandler()); } } } return acceptors; }
Example #5
Source File: ObjectAdapterIdBase.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public boolean equals( Object other ) { if (!(other instanceof ObjectAdapterId)) return false ; ObjectAdapterId theOther = (ObjectAdapterId)other ; Iterator iter1 = iterator() ; Iterator iter2 = theOther.iterator() ; while (iter1.hasNext() && iter2.hasNext()) { String str1 = (String)(iter1.next()) ; String str2 = (String)(iter2.next()) ; if (!str1.equals( str2 )) return false ; } return iter1.hasNext() == iter2.hasNext() ; }
Example #6
Source File: ObjectAdapterIdBase.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public boolean equals( Object other ) { if (!(other instanceof ObjectAdapterId)) return false ; ObjectAdapterId theOther = (ObjectAdapterId)other ; Iterator iter1 = iterator() ; Iterator iter2 = theOther.iterator() ; while (iter1.hasNext() && iter2.hasNext()) { String str1 = (String)(iter1.next()) ; String str2 = (String)(iter2.next()) ; if (!str1.equals( str2 )) return false ; } return iter1.hasNext() == iter2.hasNext() ; }
Example #7
Source File: ObjectAdapterIdBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public boolean equals( Object other ) { if (!(other instanceof ObjectAdapterId)) return false ; ObjectAdapterId theOther = (ObjectAdapterId)other ; Iterator iter1 = iterator() ; Iterator iter2 = theOther.iterator() ; while (iter1.hasNext() && iter2.hasNext()) { String str1 = (String)(iter1.next()) ; String str2 = (String)(iter2.next()) ; if (!str1.equals( str2 )) return false ; } return iter1.hasNext() == iter2.hasNext() ; }
Example #8
Source File: CorbaTransportManagerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public Collection getAcceptors(String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { // REVISIT - need to filter based on arguments. // REVISIT - initialization will be moved to OA. // Lazy initialization of acceptors. Iterator iterator = acceptors.iterator(); while (iterator.hasNext()) { Acceptor acceptor = (Acceptor) iterator.next(); if (acceptor.initialize()) { if (acceptor.shouldRegisterAcceptEvent()) { orb.getTransportManager().getSelector(0) .registerForEvent(acceptor.getEventHandler()); } } } return acceptors; }
Example #9
Source File: ObjectReferenceTemplateImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public String[] adapter_name() { ObjectAdapterId poaid = iorTemplate.getObjectKeyTemplate().getObjectAdapterId() ; return poaid.getAdapterName() ; }
Example #10
Source File: ObjectKeyTemplateBase.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public ObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid ) { this.orb = orb ; this.wrapper = IORSystemException.get( orb, CORBALogDomains.OA_IOR ) ; this.magic = magic ; this.scid = scid ; this.serverid = serverid ; this.orbid = orbid ; this.oaid = oaid ; adapterId = computeAdapterId() ; }
Example #11
Source File: OldObjectKeyTemplateBase.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid ) { super( orb, magic, scid, serverid, orbid, oaid ) ; // set version based on magic if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD) setORBVersion( ORBVersionFactory.getOLD() ) ; else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW) setORBVersion( ORBVersionFactory.getNEW() ) ; else // any other magic should not be here throw wrapper.badMagic( new Integer( magic ) ) ; }
Example #12
Source File: CorbaServerRequestDispatcherImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private ObjectAdapter findObjectAdapter(ObjectKeyTemplate oktemp) { try { if (orb.subcontractDebugFlag) { dprint(".findObjectAdapter->"); } RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; int scid = oktemp.getSubcontractId() ; ObjectAdapterFactory oaf = scr.getObjectAdapterFactory(scid); if (oaf == null) { if (orb.subcontractDebugFlag) { dprint(".findObjectAdapter: failed to find ObjectAdapterFactory"); } throw wrapper.noObjectAdapterFactory() ; } ObjectAdapterId oaid = oktemp.getObjectAdapterId() ; ObjectAdapter oa = oaf.find(oaid); if (oa == null) { if (orb.subcontractDebugFlag) { dprint(".findObjectAdapter: failed to find ObjectAdaptor"); } throw wrapper.badAdapterId() ; } return oa ; } finally { if (orb.subcontractDebugFlag) { dprint(".findObjectAdapter<-"); } } }
Example #13
Source File: ObjectAdapterBase.java From JDKSourceCode1.8 with MIT License | 5 votes |
final public void initializeTemplate( ObjectKeyTemplate oktemp, boolean notifyORB, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { adapterId = oktemp.getAdapterId() ; iortemp = IORFactories.makeIORTemplate(oktemp) ; // This calls acceptors which create profiles and may // add tagged components to those profiles. orb.getCorbaTransportManager().addToIORTemplate( iortemp, policies, codebase, objectAdapterManagerId, objectAdapterId); adapterTemplate = IORFactories.makeObjectReferenceTemplate( orb, iortemp ) ; currentFactory = adapterTemplate ; if (notifyORB) { PIHandler pih = orb.getPIHandler() ; if (pih != null) // This runs the IORInterceptors. pih.objectAdapterCreated( this ) ; } iortemp.makeImmutable() ; }
Example #14
Source File: OldObjectKeyTemplateBase.java From hottub with GNU General Public License v2.0 | 5 votes |
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid ) { super( orb, magic, scid, serverid, orbid, oaid ) ; // set version based on magic if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD) setORBVersion( ORBVersionFactory.getOLD() ) ; else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW) setORBVersion( ORBVersionFactory.getNEW() ) ; else // any other magic should not be here throw wrapper.badMagic( new Integer( magic ) ) ; }
Example #15
Source File: ObjectKeyTemplateBase.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public ObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid ) { this.orb = orb ; this.wrapper = IORSystemException.get( orb, CORBALogDomains.OA_IOR ) ; this.magic = magic ; this.scid = scid ; this.serverid = serverid ; this.orbid = orbid ; this.oaid = oaid ; adapterId = computeAdapterId() ; }
Example #16
Source File: NewObjectKeyTemplateBase.java From JDKSourceCode1.8 with MIT License | 5 votes |
public NewObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid ) { super( orb, magic, scid, serverid, orbid, oaid ) ; // subclass must set the version, since we don't have the object key here. if (magic != ObjectKeyFactoryImpl.JAVAMAGIC_NEWER) throw wrapper.badMagic( new Integer( magic ) ) ; }
Example #17
Source File: ObjectReferenceTemplateImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public String[] adapter_name() { ObjectAdapterId poaid = iorTemplate.getObjectKeyTemplate().getObjectAdapterId() ; return poaid.getAdapterName() ; }
Example #18
Source File: IIOPProfileImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Return the servant for this IOR, if it is local AND if the OA that * implements this objref supports direct access to servants outside of an * invocation. * XXX revisit: do we want this at all? If we do, it might move to the * ObjectKeyTemplate instead. */ public java.lang.Object getServant() { if (!isLocal()) return null ; RequestDispatcherRegistry scr = orb.getRequestDispatcherRegistry() ; ObjectAdapterFactory oaf = scr.getObjectAdapterFactory( oktemp.getSubcontractId() ) ; ObjectAdapterId oaid = oktemp.getObjectAdapterId() ; ObjectAdapter oa = null ; try { oa = oaf.find( oaid ) ; } catch (SystemException exc) { // Could not find the OA, so just return null. // This usually happens when POAs are being deleted, // and the POA always return null for getLocalServant anyway. wrapper.getLocalServantFailure( exc, oaid.toString() ) ; return null ; } byte[] boid = oid.getId() ; java.lang.Object servant = oa.getLocalServant( boid ) ; return servant ; }
Example #19
Source File: TOAFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public ObjectAdapter find ( ObjectAdapterId oaid ) { if (oaid.equals( ObjectKeyTemplateBase.JIDL_OAID ) ) // Return the dispatch-only TOA, which can dispatch // request for objects created by any TOA. return getTOA() ; else throw wrapper.badToaOaid() ; }
Example #20
Source File: CorbaTransportManagerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void addToIORTemplate(IORTemplate iorTemplate, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { Iterator iterator = getAcceptors(objectAdapterManagerId, objectAdapterId).iterator(); while (iterator.hasNext()) { CorbaAcceptor acceptor = (CorbaAcceptor) iterator.next(); acceptor.addToIORTemplate(iorTemplate, policies, codebase); } }
Example #21
Source File: CorbaTransportManagerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void addToIORTemplate(IORTemplate iorTemplate, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { Iterator iterator = getAcceptors(objectAdapterManagerId, objectAdapterId).iterator(); while (iterator.hasNext()) { CorbaAcceptor acceptor = (CorbaAcceptor) iterator.next(); acceptor.addToIORTemplate(iorTemplate, policies, codebase); } }
Example #22
Source File: ServerRequestInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
synchronized public String[] adapter_name() { checkAccess( MID_ADAPTER_NAME ) ; if (adapterName == null) { checkForNullTemplate() ; ObjectAdapterId oaid = oktemp.getObjectAdapterId() ; adapterName = oaid.getAdapterName() ; } return adapterName ; }
Example #23
Source File: POAObjectKeyTemplate.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public POAObjectKeyTemplate( ORB orb, int scid, int serverid, String orbid, ObjectAdapterId objectAdapterId) { super( orb, ObjectKeyFactoryImpl.JAVAMAGIC_NEWER, scid, serverid, orbid, objectAdapterId ) ; setORBVersion( ORBVersionFactory.getORBVersion() ) ; }
Example #24
Source File: TOAFactory.java From JDKSourceCode1.8 with MIT License | 5 votes |
public ObjectAdapter find ( ObjectAdapterId oaid ) { if (oaid.equals( ObjectKeyTemplateBase.JIDL_OAID ) ) // Return the dispatch-only TOA, which can dispatch // request for objects created by any TOA. return getTOA() ; else throw wrapper.badToaOaid() ; }
Example #25
Source File: TOAFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ObjectAdapter find ( ObjectAdapterId oaid ) { if (oaid.equals( ObjectKeyTemplateBase.JIDL_OAID ) ) // Return the dispatch-only TOA, which can dispatch // request for objects created by any TOA. return getTOA() ; else throw wrapper.badToaOaid() ; }
Example #26
Source File: CorbaTransportManagerImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void addToIORTemplate(IORTemplate iorTemplate, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { Iterator iterator = getAcceptors(objectAdapterManagerId, objectAdapterId).iterator(); while (iterator.hasNext()) { CorbaAcceptor acceptor = (CorbaAcceptor) iterator.next(); acceptor.addToIORTemplate(iorTemplate, policies, codebase); } }
Example #27
Source File: ObjectKeyTemplateBase.java From hottub with GNU General Public License v2.0 | 5 votes |
public ObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid ) { this.orb = orb ; this.wrapper = IORSystemException.get( orb, CORBALogDomains.OA_IOR ) ; this.magic = magic ; this.scid = scid ; this.serverid = serverid ; this.orbid = orbid ; this.oaid = oaid ; adapterId = computeAdapterId() ; }
Example #28
Source File: OldObjectKeyTemplateBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, String orbid, ObjectAdapterId oaid ) { super( orb, magic, scid, serverid, orbid, oaid ) ; // set version based on magic if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD) setORBVersion( ORBVersionFactory.getOLD() ) ; else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW) setORBVersion( ORBVersionFactory.getNEW() ) ; else // any other magic should not be here throw wrapper.badMagic( new Integer( magic ) ) ; }
Example #29
Source File: POAObjectKeyTemplate.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public POAObjectKeyTemplate( ORB orb, int scid, int serverid, String orbid, ObjectAdapterId objectAdapterId) { super( orb, ObjectKeyFactoryImpl.JAVAMAGIC_NEWER, scid, serverid, orbid, objectAdapterId ) ; setORBVersion( ORBVersionFactory.getORBVersion() ) ; }
Example #30
Source File: ObjectAdapterBase.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
final public void initializeTemplate( ObjectKeyTemplate oktemp, boolean notifyORB, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) { adapterId = oktemp.getAdapterId() ; iortemp = IORFactories.makeIORTemplate(oktemp) ; // This calls acceptors which create profiles and may // add tagged components to those profiles. orb.getCorbaTransportManager().addToIORTemplate( iortemp, policies, codebase, objectAdapterManagerId, objectAdapterId); adapterTemplate = IORFactories.makeObjectReferenceTemplate( orb, iortemp ) ; currentFactory = adapterTemplate ; if (notifyORB) { PIHandler pih = orb.getPIHandler() ; if (pih != null) // This runs the IORInterceptors. pih.objectAdapterCreated( this ) ; } iortemp.makeImmutable() ; }