本文整理汇总了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;
}
示例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);
}
}
示例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();
}
示例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;
}
示例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;
}