当前位置: 首页>>代码示例>>Java>>正文


Java ContactInfo类代码示例

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


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

示例1: createMessageMediator

import com.sun.corba.se.pept.transport.ContactInfo; //导入依赖的package包/类
public MessageMediator createMessageMediator(Broker broker,
                                             ContactInfo contactInfo,
                                             Connection connection,
                                             String methodName,
                                             boolean isOneWay)
{
    // REVISIT: Would like version, ior, requestid, etc., decisions
    // to be in client subcontract.  Cannot pass these to this
    // factory method because it breaks generic abstraction.
    // Maybe set methods on mediator called from subcontract
    // after creation?
    CorbaMessageMediator messageMediator =
        new CorbaMessageMediatorImpl(
            (ORB) broker,
            contactInfo,
            connection,
            GIOPVersion.chooseRequestVersion( (ORB)broker,
                 effectiveTargetIOR),
            effectiveTargetIOR,
            ((CorbaConnection)connection).getNextRequestId(),
            getAddressingDisposition(),
            methodName,
            isOneWay);

    return messageMediator;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:CorbaContactInfoBase.java

示例2: addRemoteContactInfos

import com.sun.corba.se.pept.transport.ContactInfo; //导入依赖的package包/类
protected void addRemoteContactInfos(
    IOR  effectiveTargetIOR,
    List effectiveTargetIORContactInfoList)
{
    ContactInfo contactInfo;
    List socketInfos = orb.getORBData()
        .getIORToSocketInfo().getSocketInfo(effectiveTargetIOR);
    Iterator iterator = socketInfos.iterator();
    while (iterator.hasNext()) {
        SocketInfo socketInfo = (SocketInfo) iterator.next();
        String type = socketInfo.getType();
        String host = socketInfo.getHost().toLowerCase();
        int    port = socketInfo.getPort();
        contactInfo = createContactInfo(type, host, port);
        effectiveTargetIORContactInfoList.add(contactInfo);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:CorbaContactInfoListImpl.java

示例3: CorbaContactInfoListIteratorImpl

import com.sun.corba.se.pept.transport.ContactInfo; //导入依赖的package包/类
public CorbaContactInfoListIteratorImpl(
    ORB orb,
    CorbaContactInfoList corbaContactInfoList,
    ContactInfo primaryContactInfo,
    List listOfContactInfos)
{
    this.orb = orb;
    this.contactInfoList = corbaContactInfoList;
    this.primaryContactInfo = primaryContactInfo;
    if (listOfContactInfos != null) {
        // listOfContactInfos is null when used by the legacy
        // socket factory.  In that case this iterator is NOT used.
        this.effectiveTargetIORIterator = listOfContactInfos.iterator();
    }
    // List is immutable so no need to synchronize access.
    this.listOfContactInfos = listOfContactInfos;

    this.previousContactInfo = null;
    this.isAddrDispositionRetry = false;

    this.successContactInfo = null;
    this.failureContactInfo = null;
    this.failureException = null;

    primaryToContactInfo = orb.getORBData().getIIOPPrimaryToContactInfo();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:CorbaContactInfoListIteratorImpl.java

示例4: reportException

import com.sun.corba.se.pept.transport.ContactInfo; //导入依赖的package包/类
public boolean reportException(ContactInfo contactInfo,
                               RuntimeException ex)
{
    this.failureContactInfo = (CorbaContactInfo)contactInfo;
    this.failureException = ex;
    if (ex instanceof COMM_FAILURE) {
        SystemException se = (SystemException) ex;
        if (se.completed == CompletionStatus.COMPLETED_NO) {
            if (hasNext()) {
                return true;
            }
            if (contactInfoList.getEffectiveTargetIOR() !=
                contactInfoList.getTargetIOR())
            {
                // retry from root ior
                updateEffectiveTargetIOR(contactInfoList.getTargetIOR());
                return true;
            }
        }
    }
    return false;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:23,代码来源:CorbaContactInfoListIteratorImpl.java

示例5: createMessageMediator

import com.sun.corba.se.pept.transport.ContactInfo; //导入依赖的package包/类
public MessageMediator createMessageMediator(Broker broker,
                                             ContactInfo contactInfo,
                                             Connection connection,
                                             String methodName,
                                             boolean isOneWay)
{
    if (connection != null) {
        /// XXX LOGGING
        throw new RuntimeException("connection is not null");
    }

    CorbaMessageMediator messageMediator =
        new CorbaMessageMediatorImpl(
            (ORB) broker,
            contactInfo,
            null, // Connection;
            GIOPVersion.chooseRequestVersion( (ORB)broker,
                 effectiveTargetIOR),
            effectiveTargetIOR,
            requestId++, // Fake RequestId
            getAddressingDisposition(),
            methodName,
            isOneWay);

    return messageMediator;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:SharedCDRContactInfoImpl.java


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