Package org.jacorb.poa.util

Examples of org.jacorb.poa.util.ByteArrayKey


     * when activating a servant with the ServantActivator.
     */
    public Servant _incarnateServant(byte[] oid, ServantActivator sa)
        throws org.omg.PortableServer.ForwardRequest
    {
        return aom.incarnate(new ByteArrayKey(oid), sa, this);
    }
View Full Code Here


            throw new WrongPolicy();
        }

        ((GOA)this).clearGroupRegistration(oid);

        ByteArrayKey oidbak = new ByteArrayKey (oid);

        aom.remove(
            oidbak,
            requestController,
            useServantManager() ? (ServantActivator)servantManager : null,
View Full Code Here

        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

                            "reference_to_id: reference not previously generated for this POA!");
            }
            throw new WrongAdapter();
        }

        final ByteArrayKey oid = new ByteArrayKey (objectId);

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

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

        add(oidbak, servant);
    }
View Full Code Here

        final StringPair[] result = new StringPair[objectMap.size()];
        Iterator en = objectMap.keySet().iterator();

        for ( int i = 0; i < result.length; i++ )
        {
            final ByteArrayKey oidbak = (ByteArrayKey) en.next();
            result[i] = new StringPair
            (
                oidbak.toString(),
                objectMap.get(oidbak).getClass().getName()
            );
        }
        return result;
View Full Code Here

        if (!unique)
        {
            throw new POAInternalError("error: not UNIQUE_ID policy (getObjectId)");
        }

        ByteArrayKey oidbak = (ByteArrayKey)servantMap.get(servant);

        if (oidbak != null)
        {
            return oidbak.getBytes();
        }

        return null;
    }
View Full Code Here

        return null;
    }

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

                                           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

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

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

TOP

Related Classes of org.jacorb.poa.util.ByteArrayKey

Copyright © 2018 www.massapicom. 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.