Examples of ByteArrayKey


Examples of org.jacorb.poa.util.ByteArrayKey



    protected Servant getServant(byte[] oid)
    {
        return (Servant) objectMap.get( new ByteArrayKey( oid ) );
    }
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

    protected synchronized Servant incarnate( byte[] oid,
                                              ServantActivator servant_activator,
                                              org.omg.PortableServer.POA poa )
        throws org.omg.PortableServer.ForwardRequest
    {
        ByteArrayKey oidbak = new ByteArrayKey( oid );
        Servant servant = null;

        if (logger.isInfoEnabled())
        {
            logger.info( "oid: " + POAUtil.convert(oid) +
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

                           ServantActivator servantActivator,
                           POA poa,
                           boolean cleanupInProgress)
        throws ObjectNotActive
    {
        ByteArrayKey oidbak = new ByteArrayKey( oid );

        // check that the same oid is not already being deactivated
        // (this must be synchronized to avoid having two independent
        // threads register the same oid)
        synchronized( deactivationListLock )
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

                              boolean cleanup_in_progress )
    {
        final Iterator i = new HashSet(objectMap.keySet()).iterator();
        while (i.hasNext())
        {
            final ByteArrayKey oid = (ByteArrayKey) i.next();
            _remove(oid, null, servant_activator, poa, cleanup_in_progress);
        }
    }
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

            useServantManager() ? (ServantActivator)servantManager : null,
            this,
            false
                  );

        createdReferences.remove( new ByteArrayKey(oid));
    }
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

        offset += pid_length;
        object_key[offset] = POAConstants.OBJECT_KEY_SEP_BYTE;
        offset++;
        System.arraycopy (object_id, 0, object_key, offset, oid_length);

        ByteArrayKey key = new ByteArrayKey (oid);

        org.omg.CORBA.Object result =
            (org.omg.CORBA.Object) createdReferences.get (key);

        if (result == null)
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

                            "reference_to_servant: oid not previously generated!");
            }
            throw new WrongAdapter();
        }

        ByteArrayKey oid = new ByteArrayKey (objectId);

        if ( ( aom != null && aom.isDeactivating (oid) )
             || requestController.isDeactivating (oid))
        {
            if (logger.isWarnEnabled())
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

     * a call indicates that the object deactivation process is complete
     */

    synchronized void freeObject( byte[] oid )
    {
        deactivationList.removeElement( new ByteArrayKey( oid ) );
    }
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

        throws ShutdownInProgressException, CompletionRequestedException
    {
        Servant servant = null;
        ServantManager servantManager = null;
        boolean invalid = false;
        ByteArrayKey oid = new ByteArrayKey( request.objectId() );

        synchronized (this)
        {
            if (waitForCompletionCalled)
            {
View Full Code Here

Examples of org.jacorb.poa.util.ByteArrayKey

     * @exception ServantAlreadyActive if an error occurs
     */
    protected synchronized void add( byte[] oid, Servant servant )
        throws ObjectAlreadyActive, ServantAlreadyActive
    {
        ByteArrayKey oidbak = new ByteArrayKey (oid);

        /* an inCarnation and activation with the same oid has
           priority, a reactivation for the same oid blocks until
           etherealization is complete */

 
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.