com.sun.corba.se.spi.ior.IORTemplate Java Examples
The following examples show how to use
com.sun.corba.se.spi.ior.IORTemplate.
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: BootstrapResolverImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #2
Source File: IORTemplateImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public boolean isEquivalent( IORFactory other ) { if (!(other instanceof IORTemplate)) return false ; IORTemplate list = (IORTemplate)other ; Iterator thisIterator = iterator() ; Iterator listIterator = list.iterator() ; while (thisIterator.hasNext() && listIterator.hasNext()) { TaggedProfileTemplate thisTemplate = (TaggedProfileTemplate)thisIterator.next() ; TaggedProfileTemplate listTemplate = (TaggedProfileTemplate)listIterator.next() ; if (!thisTemplate.isEquivalent( listTemplate )) return false ; } return (thisIterator.hasNext() == listIterator.hasNext()) && getObjectKeyTemplate().equals( list.getObjectKeyTemplate() ) ; }
Example #3
Source File: IORTemplateListImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public boolean isEquivalent( IORFactory other ) { if (!(other instanceof IORTemplateList)) return false ; IORTemplateList list = (IORTemplateList)other ; Iterator thisIterator = iterator() ; Iterator listIterator = list.iterator() ; while (thisIterator.hasNext() && listIterator.hasNext()) { IORTemplate thisTemplate = (IORTemplate)thisIterator.next() ; IORTemplate listTemplate = (IORTemplate)listIterator.next() ; if (!thisTemplate.isEquivalent( listTemplate )) return false ; } return thisIterator.hasNext() == listIterator.hasNext() ; }
Example #4
Source File: IORTemplateImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public boolean isEquivalent( IORFactory other ) { if (!(other instanceof IORTemplate)) return false ; IORTemplate list = (IORTemplate)other ; Iterator thisIterator = iterator() ; Iterator listIterator = list.iterator() ; while (thisIterator.hasNext() && listIterator.hasNext()) { TaggedProfileTemplate thisTemplate = (TaggedProfileTemplate)thisIterator.next() ; TaggedProfileTemplate listTemplate = (TaggedProfileTemplate)listIterator.next() ; if (!thisTemplate.isEquivalent( listTemplate )) return false ; } return (thisIterator.hasNext() == listIterator.hasNext()) && getObjectKeyTemplate().equals( list.getObjectKeyTemplate() ) ; }
Example #5
Source File: BootstrapResolverImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #6
Source File: BootstrapResolverImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #7
Source File: IORTemplateListImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public boolean isEquivalent( IORFactory other ) { if (!(other instanceof IORTemplateList)) return false ; IORTemplateList list = (IORTemplateList)other ; Iterator thisIterator = iterator() ; Iterator listIterator = list.iterator() ; while (thisIterator.hasNext() && listIterator.hasNext()) { IORTemplate thisTemplate = (IORTemplate)thisIterator.next() ; IORTemplate listTemplate = (IORTemplate)listIterator.next() ; if (!thisTemplate.isEquivalent( listTemplate )) return false ; } return thisIterator.hasNext() == listIterator.hasNext() ; }
Example #8
Source File: IORTemplateImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public boolean isEquivalent( IORFactory other ) { if (!(other instanceof IORTemplate)) return false ; IORTemplate list = (IORTemplate)other ; Iterator thisIterator = iterator() ; Iterator listIterator = list.iterator() ; while (thisIterator.hasNext() && listIterator.hasNext()) { TaggedProfileTemplate thisTemplate = (TaggedProfileTemplate)thisIterator.next() ; TaggedProfileTemplate listTemplate = (TaggedProfileTemplate)listIterator.next() ; if (!thisTemplate.isEquivalent( listTemplate )) return false ; } return (thisIterator.hasNext() == listIterator.hasNext()) && getObjectKeyTemplate().equals( list.getObjectKeyTemplate() ) ; }
Example #9
Source File: IORTemplateListImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
public boolean isEquivalent( IORFactory other ) { if (!(other instanceof IORTemplateList)) return false ; IORTemplateList list = (IORTemplateList)other ; Iterator thisIterator = iterator() ; Iterator listIterator = list.iterator() ; while (thisIterator.hasNext() && listIterator.hasNext()) { IORTemplate thisTemplate = (IORTemplate)thisIterator.next() ; IORTemplate listTemplate = (IORTemplate)listIterator.next() ; if (!thisTemplate.isEquivalent( listTemplate )) return false ; } return thisIterator.hasNext() == listIterator.hasNext() ; }
Example #10
Source File: BootstrapResolverImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #11
Source File: BootstrapResolverImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #12
Source File: BootstrapResolverImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #13
Source File: IORTemplateListImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public boolean isEquivalent( IORFactory other ) { if (!(other instanceof IORTemplateList)) return false ; IORTemplateList list = (IORTemplateList)other ; Iterator thisIterator = iterator() ; Iterator listIterator = list.iterator() ; while (thisIterator.hasNext() && listIterator.hasNext()) { IORTemplate thisTemplate = (IORTemplate)thisIterator.next() ; IORTemplate listTemplate = (IORTemplate)listIterator.next() ; if (!thisTemplate.isEquivalent( listTemplate )) return false ; } return thisIterator.hasNext() == listIterator.hasNext() ; }
Example #14
Source File: BootstrapResolverImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #15
Source File: CorbaTransportManagerImpl.java From openjdk-jdk8u-backup 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 #16
Source File: IORTemplateListImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public IORTemplateListImpl( InputStream is ) { this() ; int size = is.read_long() ; for (int ctr=0; ctr<size; ctr++) { IORTemplate iortemp = IORFactories.makeIORTemplate( is ) ; add( iortemp ) ; } makeImmutable() ; }
Example #17
Source File: IORImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example #18
Source File: IORImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map oktempToIORTemplate = new HashMap() ; iortemps = IORFactories.makeIORTemplateList() ; Iterator iter = iterator() ; ObjectId oid = null ; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile)(iter.next()) ; TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ; ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ; // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId() ; else if (!oid.equals( prof.getObjectId() )) throw wrapper.badOidInIorTemplateList() ; // Find or create the IORTemplate for oktemp. IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ; if (iortemp == null) { iortemp = IORFactories.makeIORTemplate( oktemp ) ; oktempToIORTemplate.put( oktemp, iortemp ) ; iortemps.add( iortemp ) ; } iortemp.add( ptemp ) ; } iortemps.makeImmutable() ; }
Example #19
Source File: IORImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example #20
Source File: IORImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplateList iortemps, ObjectId id) { this( orb, typeId ) ; this.iortemps = iortemps ; Iterator iter = iortemps.iterator() ; while (iter.hasNext()) { IORTemplate iortemp = (IORTemplate)(iter.next()) ; addTaggedProfiles( iortemp, id ) ; } makeImmutable() ; }
Example #21
Source File: CorbaTransportManagerImpl.java From openjdk-jdk9 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: IORImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void addTaggedProfiles( IORTemplate iortemp, ObjectId id ) { ObjectKeyTemplate oktemp = iortemp.getObjectKeyTemplate() ; Iterator templateIterator = iortemp.iterator() ; while (templateIterator.hasNext()) { TaggedProfileTemplate ptemp = (TaggedProfileTemplate)(templateIterator.next()) ; TaggedProfile profile = ptemp.create( oktemp, id ) ; add( profile ) ; } }
Example #23
Source File: IORTemplateListImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void write( OutputStream os ) { os.write_long( size() ) ; Iterator iter = iterator() ; while (iter.hasNext()) { IORTemplate iortemp = (IORTemplate)(iter.next()) ; iortemp.write( os ) ; } }
Example #24
Source File: IORTemplateListImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void add( int index, Object element ) { if (element instanceof IORTemplate) { super.add( index, element ) ; } else if (element instanceof IORTemplateList) { IORTemplateList tl = (IORTemplateList)element ; addAll( index, tl ) ; } else throw new IllegalArgumentException() ; }
Example #25
Source File: IORTemplateListImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Object set( int index, Object element ) { if (element instanceof IORTemplate) { return super.set( index, element ) ; } else if (element instanceof IORTemplateList) { Object result = remove( index ) ; add( index, element ) ; return result ; } else throw new IllegalArgumentException() ; }
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: IORImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplateList iortemps, ObjectId id) { this( orb, typeId ) ; this.iortemps = iortemps ; Iterator iter = iortemps.iterator() ; while (iter.hasNext()) { IORTemplate iortemp = (IORTemplate)(iter.next()) ; addTaggedProfiles( iortemp, id ) ; } makeImmutable() ; }
Example #28
Source File: IORTemplateListImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void write( OutputStream os ) { os.write_long( size() ) ; Iterator iter = iterator() ; while (iter.hasNext()) { IORTemplate iortemp = (IORTemplate)(iter.next()) ; iortemp.write( os ) ; } }
Example #29
Source File: IORImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example #30
Source File: IORImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map oktempToIORTemplate = new HashMap() ; iortemps = IORFactories.makeIORTemplateList() ; Iterator iter = iterator() ; ObjectId oid = null ; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile)(iter.next()) ; TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ; ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ; // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId() ; else if (!oid.equals( prof.getObjectId() )) throw wrapper.badOidInIorTemplateList() ; // Find or create the IORTemplate for oktemp. IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ; if (iortemp == null) { iortemp = IORFactories.makeIORTemplate( oktemp ) ; oktempToIORTemplate.put( oktemp, iortemp ) ; iortemps.add( iortemp ) ; } iortemp.add( ptemp ) ; } iortemps.makeImmutable() ; }