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

The following examples show how to use com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher. 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: ORBImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #2
Source File: ORBImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        insNamingDelegate = sdel ;
    }
}
 
Example #3
Source File: ORBImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        insNamingDelegate = sdel ;
    }
}
 
Example #4
Source File: ORBImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        insNamingDelegate = sdel ;
    }
}
 
Example #5
Source File: ORBImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #6
Source File: ORBImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #7
Source File: ORBImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        insNamingDelegate = sdel ;
    }
}
 
Example #8
Source File: ORBImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        insNamingDelegate = sdel ;
    }
}
 
Example #9
Source File: ORBImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #10
Source File: ORBImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        insNamingDelegate = sdel ;
    }
}
 
Example #11
Source File: ORBImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * If this operation is called with an id, <code>"Y"</code>, and an
 * object, <code>YY</code>, then a subsequent call to
 * <code>ORB.resolve_initial_references( "Y" )</code> will
 * return object <code>YY</code>.
 *
 * @param id The ID by which the initial reference will be known.
 * @param obj The initial reference itself.
 * @throws InvalidName if this operation is called with an empty string id
 *     or this operation is called with an id that is already registered,
 *     including the default names defined by OMG.
 * @throws BAD_PARAM if the obj parameter is null.
 */
public void register_initial_reference(
    String id, org.omg.CORBA.Object obj ) throws InvalidName
{
    CorbaServerRequestDispatcher insnd ;

    synchronized (this) {
        checkShutdownState();
    }

    if ((id == null) || (id.length() == 0))
        throw new InvalidName() ;

    synchronized (this) {
        checkShutdownState();
    }

    synchronized (resolverLock) {
        insnd = insNamingDelegate ;

        java.lang.Object obj2 = localResolver.resolve( id ) ;
        if (obj2 != null)
            throw new InvalidName(id + " already registered") ;

        localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
    }

    synchronized (this) {
        if (StubAdapter.isStub(obj))
            // Make all remote object references available for INS.
            requestDispatcherRegistry.registerServerRequestDispatcher(
                insnd, id ) ;
    }
}
 
Example #12
Source File: ORBSingleton.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
}
 
Example #13
Source File: RequestDispatcherRegistryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public synchronized void registerServerRequestDispatcher(
    CorbaServerRequestDispatcher ssc, int scid)
{
    SDRegistry.set( scid, ssc ) ;
}
 
Example #14
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public static CorbaServerRequestDispatcher makeBootstrapServerRequestDispatcher( ORB orb )
{
    return new BootstrapServerRequestDispatcher( orb ) ;
}
 
Example #15
Source File: RequestDispatcherRegistryImpl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public synchronized void registerServerRequestDispatcher(
    CorbaServerRequestDispatcher scc, String name )
{
    stringToServerSubcontract.put( name, scc ) ;
}
 
Example #16
Source File: WireObjectKeyTemplate.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb, ObjectId id )
{
    byte[] bid = id.getId() ;
    String str = new String( bid ) ;
    return orb.getRequestDispatcherRegistry().getServerRequestDispatcher( str ) ;
}
 
Example #17
Source File: RequestDispatcherRegistryImpl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public synchronized void registerServerRequestDispatcher(
    CorbaServerRequestDispatcher ssc, int scid)
{
    SDRegistry.set( scid, ssc ) ;
}
 
Example #18
Source File: ObjectKeyImpl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb )
{
    return oktemp.getServerRequestDispatcher( orb, id ) ;
}
 
Example #19
Source File: WireObjectKeyTemplate.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb, ObjectId id )
{
    byte[] bid = id.getId() ;
    String str = new String( bid ) ;
    return orb.getRequestDispatcherRegistry().getServerRequestDispatcher( str ) ;
}
 
Example #20
Source File: RequestDispatcherDefault.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public static CorbaServerRequestDispatcher makeServerRequestDispatcher( ORB orb )
{
    return new CorbaServerRequestDispatcherImpl( (com.sun.corba.se.spi.orb.ORB)orb ) ;
}
 
Example #21
Source File: RequestDispatcherRegistryImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public synchronized void registerServerRequestDispatcher(
    CorbaServerRequestDispatcher ssc, int scid)
{
    SDRegistry.set( scid, ssc ) ;
}
 
Example #22
Source File: RequestDispatcherRegistryImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public synchronized void registerServerRequestDispatcher(
    CorbaServerRequestDispatcher scc, String name )
{
    stringToServerSubcontract.put( name, scc ) ;
}
 
Example #23
Source File: RequestDispatcherRegistryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public synchronized void registerServerRequestDispatcher(
    CorbaServerRequestDispatcher scc, String name )
{
    stringToServerSubcontract.put( name, scc ) ;
}
 
Example #24
Source File: ORBSingleton.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
}
 
Example #25
Source File: RequestDispatcherRegistryImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public synchronized void registerServerRequestDispatcher(
    CorbaServerRequestDispatcher scc, String name )
{
    stringToServerSubcontract.put( name, scc ) ;
}
 
Example #26
Source File: RequestDispatcherDefault.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public static CorbaServerRequestDispatcher makeBootstrapServerRequestDispatcher( ORB orb )
{
    return new BootstrapServerRequestDispatcher( orb ) ;
}
 
Example #27
Source File: ORBSingleton.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
}
 
Example #28
Source File: RequestDispatcherDefault.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public static CorbaServerRequestDispatcher makeServerRequestDispatcher( ORB orb )
{
    return new CorbaServerRequestDispatcherImpl( (com.sun.corba.se.spi.orb.ORB)orb ) ;
}
 
Example #29
Source File: ObjectKeyTemplateBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb, ObjectId id )
{
    return orb.getRequestDispatcherRegistry().getServerRequestDispatcher( scid ) ;
}
 
Example #30
Source File: RequestDispatcherDefault.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public static CorbaServerRequestDispatcher makeBootstrapServerRequestDispatcher( ORB orb )
{
    return new BootstrapServerRequestDispatcher( orb ) ;
}