• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java CorbaServerRequestDispatcher类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher的典型用法代码示例。如果您正苦于以下问题:Java CorbaServerRequestDispatcher类的具体用法?Java CorbaServerRequestDispatcher怎么用?Java CorbaServerRequestDispatcher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CorbaServerRequestDispatcher类属于com.sun.corba.se.spi.protocol包,在下文中一共展示了CorbaServerRequestDispatcher类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: register_initial_reference

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
/**
 * 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 ) ;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:47,代码来源:ORBImpl.java


示例2: setINSDelegate

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        insNamingDelegate = sdel ;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:ORBImpl.java


示例3: handleRequestRequest

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
protected void handleRequestRequest(CorbaMessageMediator messageMediator)
{
    // Does nothing if already unmarshaled.
    ((CDRInputObject)messageMediator.getInputObject()).unmarshalHeader();

    ORB orb = (ORB)messageMediator.getBroker();
    orb.checkShutdownState();

    ObjectKey okey = messageMediator.getObjectKey();
    if (orb.subcontractDebugFlag) {
        ObjectKeyTemplate oktemp = okey.getTemplate() ;
        dprint( ".handleRequest: " + opAndId(messageMediator)
                + ": dispatching to scid: " + oktemp.getSubcontractId());
    }

    CorbaServerRequestDispatcher sc = okey.getServerRequestDispatcher(orb);

    if (orb.subcontractDebugFlag) {
        dprint(".handleRequest: " + opAndId(messageMediator)
               + ": dispatching to sc: " + sc);
    }

    if (sc == null) {
        throw wrapper.noServerScInDispatch() ;
    }

    // NOTE:
    // This is necessary so mediator can act as ResponseHandler
    // and pass necessary info to response constructors located
    // in the subcontract.
    // REVISIT - same class right now.
    //messageMediator.setProtocolHandler(this);

    try {
        orb.startingDispatch();
        sc.dispatch(messageMediator);
    } finally {
        orb.finishedDispatch();
    }
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:41,代码来源:CorbaMessageMediatorImpl.java


示例4: register_initial_reference

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
/**
 * 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 ;

    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 ) ;
    }
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:43,代码来源:ORBImpl.java


示例5: makeServerRequestDispatcher

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public static CorbaServerRequestDispatcher makeServerRequestDispatcher( ORB orb )
{
    return new CorbaServerRequestDispatcherImpl( (com.sun.corba.se.spi.orb.ORB)orb ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RequestDispatcherDefault.java


示例6: makeBootstrapServerRequestDispatcher

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public static CorbaServerRequestDispatcher makeBootstrapServerRequestDispatcher( ORB orb )
{
    return new BootstrapServerRequestDispatcher( orb ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RequestDispatcherDefault.java


示例7: makeINSServerRequestDispatcher

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public static CorbaServerRequestDispatcher makeINSServerRequestDispatcher( ORB orb )
{
    return new INSServerRequestDispatcher( orb ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RequestDispatcherDefault.java


示例8: handleRequestRequest

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
protected void handleRequestRequest(CorbaMessageMediator messageMediator)
{
    // Does nothing if already unmarshaled.
    ((CDRInputObject)messageMediator.getInputObject()).unmarshalHeader();

    ORB orb = (ORB)messageMediator.getBroker();
    synchronized (orb) {
        orb.checkShutdownState();
    }

    ObjectKey okey = messageMediator.getObjectKey();
    if (orb.subcontractDebugFlag) {
        ObjectKeyTemplate oktemp = okey.getTemplate() ;
        dprint( ".handleRequest: " + opAndId(messageMediator)
                + ": dispatching to scid: " + oktemp.getSubcontractId());
    }

    CorbaServerRequestDispatcher sc = okey.getServerRequestDispatcher(orb);

    if (orb.subcontractDebugFlag) {
        dprint(".handleRequest: " + opAndId(messageMediator)
               + ": dispatching to sc: " + sc);
    }

    if (sc == null) {
        throw wrapper.noServerScInDispatch() ;
    }

    // NOTE:
    // This is necessary so mediator can act as ResponseHandler
    // and pass necessary info to response constructors located
    // in the subcontract.
    // REVISIT - same class right now.
    //messageMediator.setProtocolHandler(this);

    try {
        orb.startingDispatch();
        sc.dispatch(messageMediator);
    } finally {
        orb.finishedDispatch();
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:43,代码来源:CorbaMessageMediatorImpl.java


示例9: registerServerRequestDispatcher

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public synchronized void registerServerRequestDispatcher(
    CorbaServerRequestDispatcher ssc, int scid)
{
    SDRegistry.set( scid, ssc ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:RequestDispatcherRegistryImpl.java


示例10: setINSDelegate

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ORBSingleton.java


示例11: getServerRequestDispatcher

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb, ObjectId id )
{
    byte[] bid = id.getId() ;
    String str = new String( bid ) ;
    return orb.getRequestDispatcherRegistry().getServerRequestDispatcher( str ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:WireObjectKeyTemplate.java


示例12: getServerRequestDispatcher

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb )
{
    return oktemp.getServerRequestDispatcher( orb, id ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ObjectKeyImpl.java


示例13: getServerRequestDispatcher

import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb, ObjectId id )
{
    return orb.getRequestDispatcherRegistry().getServerRequestDispatcher( scid ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ObjectKeyTemplateBase.java



注:本文中的com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MD4类代码示例发布时间:2022-05-22
下一篇:
Java XBlockExpression类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap