本文整理汇总了Java中com.sun.corba.se.spi.transport.CorbaContactInfoList类的典型用法代码示例。如果您正苦于以下问题:Java CorbaContactInfoList类的具体用法?Java CorbaContactInfoList怎么用?Java CorbaContactInfoList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CorbaContactInfoList类属于com.sun.corba.se.spi.transport包,在下文中一共展示了CorbaContactInfoList类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: SocketFactoryContactInfoImpl
import com.sun.corba.se.spi.transport.CorbaContactInfoList; //导入依赖的package包/类
public SocketFactoryContactInfoImpl(
ORB orb,
CorbaContactInfoList contactInfoList,
IOR effectiveTargetIOR,
short addressingDisposition,
SocketInfo cookie)
{
super(orb, contactInfoList);
this.effectiveTargetIOR = effectiveTargetIOR;
this.addressingDisposition = addressingDisposition;
wrapper = ORBUtilSystemException.get( orb,
CORBALogDomains.RPC_TRANSPORT ) ;
socketInfo =
orb.getORBData().getLegacySocketFactory()
.getEndPointInfo(orb, effectiveTargetIOR, cookie);
socketType = socketInfo.getType();
hostname = socketInfo.getHost();
port = socketInfo.getPort();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:23,代码来源:SocketFactoryContactInfoImpl.java
示例2: disconnect
import com.sun.corba.se.spi.transport.CorbaContactInfoList; //导入依赖的package包/类
public void disconnect( org.omg.CORBA.Object objref )
{
// Get the delegate, then ior, then transientKey, then delete servant
org.omg.CORBA.portable.Delegate del = StubAdapter.getDelegate(
objref ) ;
CorbaContactInfoList ccil = (CorbaContactInfoList)
((ClientDelegate)del).getContactInfoList() ;
LocalClientRequestDispatcher lcs =
ccil.getLocalClientRequestDispatcher() ;
if (lcs instanceof JIDLLocalCRDImpl) {
JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
byte[] oid = jlcs.getObjectId() ;
servants.deleteServant(oid);
jlcs.unexport() ;
} else {
throw new RuntimeException(
"TOAImpl.disconnect can not be called on " + lcs ) ;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:TOAImpl.java
示例3: isLocal
import com.sun.corba.se.spi.transport.CorbaContactInfoList; //导入依赖的package包/类
/**
* The <tt>isLocal</tt> method has the same semantics as the
* ObjectImpl._is_local method, except that it can throw a RemoteException.
* (no it doesn't but the spec says it should.)
*
* The <tt>_is_local()</tt> method is provided so that stubs may determine
* if a particular object is implemented by a local servant and hence local
* invocation APIs may be used.
*
* @param stub the stub to test.
*
* @return The <tt>_is_local()</tt> method returns true if
* the servant incarnating the object is located in the same process as
* the stub and they both share the same ORB instance. The <tt>_is_local()</tt>
* method returns false otherwise. The default behavior of <tt>_is_local()</tt> is
* to return false.
*
* @throws RemoteException The Java to IDL specification does to
* specify the conditions that cause a RemoteException to be thrown.
*/
public boolean isLocal(javax.rmi.CORBA.Stub stub) throws RemoteException
{
boolean result = false ;
try {
org.omg.CORBA.portable.Delegate delegate = stub._get_delegate() ;
if (delegate instanceof CorbaClientDelegate) {
// For the Sun ORB
CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ;
ContactInfoList cil = cdel.getContactInfoList() ;
if (cil instanceof CorbaContactInfoList) {
CorbaContactInfoList ccil = (CorbaContactInfoList)cil ;
LocalClientRequestDispatcher lcs = ccil.getLocalClientRequestDispatcher() ;
result = lcs.useLocalInvocation( null ) ;
}
} else {
// For a non-Sun ORB
result = delegate.is_local( stub ) ;
}
} catch (SystemException e) {
throw javax.rmi.CORBA.Util.mapSystemException(e);
}
return result ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:46,代码来源:Util.java
示例4: isLocal
import com.sun.corba.se.spi.transport.CorbaContactInfoList; //导入依赖的package包/类
private boolean isLocal()
{
boolean result = false ;
Delegate delegate = StubAdapter.getDelegate( stub ) ;
if (delegate instanceof CorbaClientDelegate) {
CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ;
ContactInfoList cil = cdel.getContactInfoList() ;
if (cil instanceof CorbaContactInfoList) {
CorbaContactInfoList ccil = (CorbaContactInfoList)cil ;
LocalClientRequestDispatcher lcrd =
ccil.getLocalClientRequestDispatcher() ;
result = lcrd.useLocalInvocation( null ) ;
}
}
return result ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:StubInvocationHandlerImpl.java
示例5: CorbaContactInfoListIteratorImpl
import com.sun.corba.se.spi.transport.CorbaContactInfoList; //导入依赖的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
示例6: isLocal
import com.sun.corba.se.spi.transport.CorbaContactInfoList; //导入依赖的package包/类
/**
* The {@code isLocal} method has the same semantics as the
* ObjectImpl._is_local method, except that it can throw a RemoteException.
* (no it doesn't but the spec says it should.)
*
* The {@code _is_local()} method is provided so that stubs may determine
* if a particular object is implemented by a local servant and hence local
* invocation APIs may be used.
*
* @param stub the stub to test.
*
* @return The {@code _is_local()} method returns true if
* the servant incarnating the object is located in the same process as
* the stub and they both share the same ORB instance. The {@code _is_local()}
* method returns false otherwise. The default behavior of {@code _is_local()} is
* to return false.
*
* @throws RemoteException The Java to IDL specification does to
* specify the conditions that cause a RemoteException to be thrown.
*/
public boolean isLocal(javax.rmi.CORBA.Stub stub) throws RemoteException
{
boolean result = false ;
try {
org.omg.CORBA.portable.Delegate delegate = stub._get_delegate() ;
if (delegate instanceof CorbaClientDelegate) {
// For the Sun ORB
CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ;
ContactInfoList cil = cdel.getContactInfoList() ;
if (cil instanceof CorbaContactInfoList) {
CorbaContactInfoList ccil = (CorbaContactInfoList)cil ;
LocalClientRequestDispatcher lcs = ccil.getLocalClientRequestDispatcher() ;
result = lcs.useLocalInvocation( null ) ;
}
} else {
// For a non-Sun ORB
result = delegate.is_local( stub ) ;
}
} catch (SystemException e) {
throw javax.rmi.CORBA.Util.mapSystemException(e);
}
return result ;
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:46,代码来源:Util.java
注:本文中的com.sun.corba.se.spi.transport.CorbaContactInfoList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论