Examples of TaggedProfile


Examples of com.sun.corba.ee.spi.ior.TaggedProfile

      IOR ior = ((com.sun.corba.ee.spi.orb.ORB)ORBManager.getORB()).getIOR(obj, false)
      java.util.Iterator iter = ior.iterator();

      byte[] oid = null;
      if (iter.hasNext()) {
    TaggedProfile profile = (TaggedProfile) iter.next();
    ObjectKey objKey = profile.getObjectKey();
    oid = objKey.getId().getId();
      }

      long containerId = -1;
      int keyLength = -1;
View Full Code Here

Examples of com.sun.corba.ee.spi.ior.TaggedProfile

                IOR ior = ((com.sun.corba.ee.spi.orb.ORB) ORBManager.getORB())
                    .getIOR(effective_target, false);
                java.util.Iterator iter = ior.iterator();

                if (iter.hasNext()) {
                    TaggedProfile profile = (TaggedProfile) iter.next();
                    ObjectKey objKey = profile.getObjectKey();
                    this.oid = objKey.getId().getId();
                   
                    SimpleKeyGenerator gen = new SimpleKeyGenerator();
                    this.instanceKey = gen.byteArrayToKey(oid, INSTANCEKEY_OFFSET, 20);
                   
View Full Code Here

Examples of com.sun.corba.ee.spi.ior.TaggedProfile

        IOR ior = ((com.sun.corba.ee.spi.orb.ORB)orb).getIOR(obj, false);
      java.util.Iterator iter = ior.iterator();

        byte[] oid = null;
        if (iter.hasNext()) {
            TaggedProfile profile = (TaggedProfile) iter.next();
            ObjectKey objKey = profile.getObjectKey();
            oid = objKey.getId().getId();
        }

        return oid;
    }
View Full Code Here

Examples of com.sun.corba.ee.spi.ior.TaggedProfile

      IOR ior = (orb).getIOR(obj, false);
      java.util.Iterator iter = ior.iterator();

      byte[] oid = null;
      if (iter.hasNext()) {
                TaggedProfile profile = (TaggedProfile) iter.next();
                ObjectKey objKey = profile.getObjectKey();
                oid = objKey.getId().getId();
      }

      if ((oid != null) && (oid.length > INSTANCEKEY_OFFSET)) {
                long cid = Utility.bytesToLong(oid, EJBID_OFFSET);
View Full Code Here

Examples of com.sun.corba.ee.spi.ior.TaggedProfile

        IOR ior = ((com.sun.corba.ee.spi.orb.ORB)orb).getIOR(obj, false);
      java.util.Iterator iter = ior.iterator();

        byte[] oid = null;
        if (iter.hasNext()) {
            TaggedProfile profile = (TaggedProfile) iter.next();
            ObjectKey objKey = profile.getObjectKey();
            oid = objKey.getId().getId();
        }

        return oid;
    }
View Full Code Here

Examples of com.sun.corba.ee.spi.ior.TaggedProfile

      IOR ior = (orb).getIOR(obj, false);
      java.util.Iterator iter = ior.iterator();

      byte[] oid = null;
      if (iter.hasNext()) {
                TaggedProfile profile = (TaggedProfile) iter.next();
                ObjectKey objKey = profile.getObjectKey();
                oid = objKey.getId().getId();
      }

      if ((oid != null) && (oid.length > INSTANCEKEY_OFFSET)) {
                long cid = Utility.bytesToLong(oid, EJBID_OFFSET);
View Full Code Here

Examples of com.sun.corba.se.spi.ior.TaggedProfile

    protected LocalClientRequestDispatcherBase(ORB orb, int scid, IOR ior)
    {
        this.orb = orb ;

        TaggedProfile prof = ior.getProfile() ;
        servantIsLocal = orb.getORBData().isLocalOptimizationAllowed() &&
            prof.isLocal();

        ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ;
        this.scid = oktemp.getSubcontractId() ;
        RequestDispatcherRegistry sreg = orb.getRequestDispatcherRegistry() ;
        oaf = sreg.getObjectAdapterFactory( scid ) ;
        oaid = oktemp.getObjectAdapterId() ;
        ObjectId oid = prof.getObjectId() ;
        objectId = oid.getId() ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.TaggedProfile

        // every profile through the profile templates in the currentFactory,
        // so we will get the same result from any profile.
        Iterator iter = ior.iterator() ;
        if (!iter.hasNext())
            throw iorWrapper().noProfilesInIor() ;
        TaggedProfile prof = (TaggedProfile)(iter.next()) ;
        ObjectId oid = prof.getObjectId() ;

        return oid.getId();
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.TaggedProfile

        while (templateIterator.hasNext()) {
            TaggedProfileTemplate ptemp =
                (TaggedProfileTemplate)(templateIterator.next()) ;

            TaggedProfile profile = ptemp.create( oktemp, id ) ;

            add( profile ) ;
        }
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.TaggedProfile

    public boolean isEquivalent(IOR ior)
    {
        Iterator myIterator = iterator() ;
        Iterator otherIterator = ior.iterator() ;
        while (myIterator.hasNext() && otherIterator.hasNext()) {
            TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ;
            TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ;
            if (!myProfile.isEquivalent( otherProfile ))
                return false ;
        }

        return myIterator.hasNext() == otherIterator.hasNext() ;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.