com.sun.corba.se.spi.protocol.LocalClientRequestDispatcherFactory Java Examples

The following examples show how to use com.sun.corba.se.spi.protocol.LocalClientRequestDispatcherFactory. 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: CorbaContactInfoListImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * setLocalSubcontract sets cached information that is set whenever
 * the effectiveTargetIOR changes.
 *
 * Note: this must be maintained accurately whether or not the ORB
 * allows local optimization, because ServantManagers in the POA
 * ALWAYS use local optimization ONLY (they do not have a remote case).
 */
protected void setLocalSubcontract()
{
    if (!effectiveTargetIOR.getProfile().isLocal()) {
        LocalClientRequestDispatcher = new NotLocalLocalCRDImpl();
        return;
    }

    // XXX Note that this always uses the first IIOP profile to get the
    // scid.  What about multi-profile IORs?  This should perhaps be
    // tied to the current ContactInfo in some way, together with an
    // implementation of ClientDelegate that generally prefers co-located
    // ContactInfo.  This may in fact mean that we should do this at
    // the ContactInfo level, rather than the IOR/profile level.
    int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate().
        getSubcontractId() ;
    LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ;
    LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ;
}
 
Example #2
Source File: CorbaContactInfoListImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * setLocalSubcontract sets cached information that is set whenever
 * the effectiveTargetIOR changes.
 *
 * Note: this must be maintained accurately whether or not the ORB
 * allows local optimization, because ServantManagers in the POA
 * ALWAYS use local optimization ONLY (they do not have a remote case).
 */
protected void setLocalSubcontract()
{
    if (!effectiveTargetIOR.getProfile().isLocal()) {
        LocalClientRequestDispatcher = new NotLocalLocalCRDImpl();
        return;
    }

    // XXX Note that this always uses the first IIOP profile to get the
    // scid.  What about multi-profile IORs?  This should perhaps be
    // tied to the current ContactInfo in some way, together with an
    // implementation of ClientDelegate that generally prefers co-located
    // ContactInfo.  This may in fact mean that we should do this at
    // the ContactInfo level, rather than the IOR/profile level.
    int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate().
        getSubcontractId() ;
    LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ;
    LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ;
}
 
Example #3
Source File: CorbaContactInfoListImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * setLocalSubcontract sets cached information that is set whenever
 * the effectiveTargetIOR changes.
 *
 * Note: this must be maintained accurately whether or not the ORB
 * allows local optimization, because ServantManagers in the POA
 * ALWAYS use local optimization ONLY (they do not have a remote case).
 */
protected void setLocalSubcontract()
{
    if (!effectiveTargetIOR.getProfile().isLocal()) {
        LocalClientRequestDispatcher = new NotLocalLocalCRDImpl();
        return;
    }

    // XXX Note that this always uses the first IIOP profile to get the
    // scid.  What about multi-profile IORs?  This should perhaps be
    // tied to the current ContactInfo in some way, together with an
    // implementation of ClientDelegate that generally prefers co-located
    // ContactInfo.  This may in fact mean that we should do this at
    // the ContactInfo level, rather than the IOR/profile level.
    int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate().
        getSubcontractId() ;
    LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ;
    LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ;
}
 
Example #4
Source File: CorbaContactInfoListImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * setLocalSubcontract sets cached information that is set whenever
 * the effectiveTargetIOR changes.
 *
 * Note: this must be maintained accurately whether or not the ORB
 * allows local optimization, because ServantManagers in the POA
 * ALWAYS use local optimization ONLY (they do not have a remote case).
 */
protected void setLocalSubcontract()
{
    if (!effectiveTargetIOR.getProfile().isLocal()) {
        LocalClientRequestDispatcher = new NotLocalLocalCRDImpl();
        return;
    }

    // XXX Note that this always uses the first IIOP profile to get the
    // scid.  What about multi-profile IORs?  This should perhaps be
    // tied to the current ContactInfo in some way, together with an
    // implementation of ClientDelegate that generally prefers co-located
    // ContactInfo.  This may in fact mean that we should do this at
    // the ContactInfo level, rather than the IOR/profile level.
    int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate().
        getSubcontractId() ;
    LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ;
    LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ;
}
 
Example #5
Source File: CorbaContactInfoListImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * setLocalSubcontract sets cached information that is set whenever
 * the effectiveTargetIOR changes.
 *
 * Note: this must be maintained accurately whether or not the ORB
 * allows local optimization, because ServantManagers in the POA
 * ALWAYS use local optimization ONLY (they do not have a remote case).
 */
protected void setLocalSubcontract()
{
    if (!effectiveTargetIOR.getProfile().isLocal()) {
        LocalClientRequestDispatcher = new NotLocalLocalCRDImpl();
        return;
    }

    // XXX Note that this always uses the first IIOP profile to get the
    // scid.  What about multi-profile IORs?  This should perhaps be
    // tied to the current ContactInfo in some way, together with an
    // implementation of ClientDelegate that generally prefers co-located
    // ContactInfo.  This may in fact mean that we should do this at
    // the ContactInfo level, rather than the IOR/profile level.
    int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate().
        getSubcontractId() ;
    LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ;
    LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ;
}
 
Example #6
Source File: CorbaContactInfoListImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * setLocalSubcontract sets cached information that is set whenever
 * the effectiveTargetIOR changes.
 *
 * Note: this must be maintained accurately whether or not the ORB
 * allows local optimization, because ServantManagers in the POA
 * ALWAYS use local optimization ONLY (they do not have a remote case).
 */
protected void setLocalSubcontract()
{
    if (!effectiveTargetIOR.getProfile().isLocal()) {
        LocalClientRequestDispatcher = new NotLocalLocalCRDImpl();
        return;
    }

    // XXX Note that this always uses the first IIOP profile to get the
    // scid.  What about multi-profile IORs?  This should perhaps be
    // tied to the current ContactInfo in some way, together with an
    // implementation of ClientDelegate that generally prefers co-located
    // ContactInfo.  This may in fact mean that we should do this at
    // the ContactInfo level, rather than the IOR/profile level.
    int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate().
        getSubcontractId() ;
    LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ;
    LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ;
}
 
Example #7
Source File: CorbaContactInfoListImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * setLocalSubcontract sets cached information that is set whenever
 * the effectiveTargetIOR changes.
 *
 * Note: this must be maintained accurately whether or not the ORB
 * allows local optimization, because ServantManagers in the POA
 * ALWAYS use local optimization ONLY (they do not have a remote case).
 */
protected void setLocalSubcontract()
{
    if (!effectiveTargetIOR.getProfile().isLocal()) {
        LocalClientRequestDispatcher = new NotLocalLocalCRDImpl();
        return;
    }

    // XXX Note that this always uses the first IIOP profile to get the
    // scid.  What about multi-profile IORs?  This should perhaps be
    // tied to the current ContactInfo in some way, together with an
    // implementation of ClientDelegate that generally prefers co-located
    // ContactInfo.  This may in fact mean that we should do this at
    // the ContactInfo level, rather than the IOR/profile level.
    int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate().
        getSubcontractId() ;
    LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ;
    LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ;
}
 
Example #8
Source File: RequestDispatcherDefault.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeMinimalServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new MinimalServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #9
Source File: RequestDispatcherDefault.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeFullServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new FullServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #10
Source File: RequestDispatcherDefault.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makePOALocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new POALocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #11
Source File: RequestDispatcherDefault.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeJIDLLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new JIDLLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #12
Source File: RequestDispatcherDefault.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeFullServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new FullServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #13
Source File: RequestDispatcherDefault.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeInfoOnlyServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new InfoOnlyServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #14
Source File: RequestDispatcherDefault.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeInfoOnlyServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new InfoOnlyServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #15
Source File: RequestDispatcherDefault.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makePOALocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new POALocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #16
Source File: RequestDispatcherDefault.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeJIDLLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new JIDLLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #17
Source File: RequestDispatcherDefault.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeFullServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new FullServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #18
Source File: RequestDispatcherDefault.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeJIDLLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new JIDLLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #19
Source File: RequestDispatcherDefault.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makePOALocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new POALocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #20
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeMinimalServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new MinimalServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #21
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makePOALocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new POALocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #22
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeJIDLLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new JIDLLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #23
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeFullServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new FullServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #24
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeInfoOnlyServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new InfoOnlyServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #25
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeMinimalServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new MinimalServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #26
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makePOALocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new POALocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #27
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeJIDLLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new JIDLLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #28
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeFullServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new FullServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #29
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeInfoOnlyServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new InfoOnlyServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}
 
Example #30
Source File: RequestDispatcherDefault.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public static LocalClientRequestDispatcherFactory makeInfoOnlyServantCacheLocalClientRequestDispatcherFactory( final ORB orb )
{
    return new LocalClientRequestDispatcherFactory() {
        public LocalClientRequestDispatcher create( int id, IOR ior ) {
            return new InfoOnlyServantCacheLocalCRDImpl( orb, id, ior ) ;
        }
    } ;
}