com.sun.corba.se.spi.transport.CorbaContactInfoList Java Examples

The following examples show how to use com.sun.corba.se.spi.transport.CorbaContactInfoList. 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 Project: jdk1.8-source-analysis   Author: raysonfang   File: SocketFactoryContactInfoImpl.java    License: Apache License 2.0 6 votes vote down vote up
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();
}
 
Example #2
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: StubInvocationHandlerImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ;
}
 
Example #3
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: TOAImpl.java    License: Apache License 2.0 6 votes vote down vote up
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 ) ;
    }
}
 
Example #4
Source Project: hottub   Author: dsrg-uoft   File: StubInvocationHandlerImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ;
}
 
Example #5
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: TOAImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ) ;
    }
}
 
Example #6
Source Project: openjdk-8   Author: bpupadhyaya   File: TOAImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ) ;
    }
}
 
Example #7
Source Project: openjdk-8   Author: bpupadhyaya   File: StubInvocationHandlerImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ;
}
 
Example #8
Source Project: TencentKona-8   Author: Tencent   File: SocketFactoryContactInfoImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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();
}
 
Example #9
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: Util.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 ;
}
 
Example #10
Source Project: TencentKona-8   Author: Tencent   File: Util.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 ;
}
 
Example #11
Source Project: TencentKona-8   Author: Tencent   File: StubInvocationHandlerImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ;
}
 
Example #12
Source Project: hottub   Author: dsrg-uoft   File: SocketFactoryContactInfoImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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();
}
 
Example #13
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: CorbaContactInfoListIteratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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();
}
 
Example #14
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: Util.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 ;
}
 
Example #15
Source Project: jdk8u60   Author: chenghanpeng   File: TOAImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ) ;
    }
}
 
Example #16
Source Project: jdk8u60   Author: chenghanpeng   File: StubInvocationHandlerImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ;
}
 
Example #17
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: CorbaContactInfoListIteratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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();
}
 
Example #18
Source Project: openjdk-8   Author: bpupadhyaya   File: SocketFactoryContactInfoImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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();
}
 
Example #19
Source Project: openjdk-8   Author: bpupadhyaya   File: CorbaContactInfoListIteratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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();
}
 
Example #20
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: SocketFactoryContactInfoImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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();
}
 
Example #21
Source Project: openjdk-8   Author: bpupadhyaya   File: Util.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 ;
}
 
Example #22
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();
}
 
Example #23
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: StubInvocationHandlerImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 ;
}
 
Example #24
Source Project: openjdk-8-source   Author: keerath   File: SharedCDRContactInfoImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SharedCDRContactInfoImpl(
    ORB orb,
    CorbaContactInfoList contactInfoList,
    IOR effectiveTargetIOR,
    short addressingDisposition)
{
    this.orb = orb;
    this.contactInfoList = contactInfoList;
    this.effectiveTargetIOR = effectiveTargetIOR;
    this.addressingDisposition = addressingDisposition;
}
 
Example #25
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: SharedCDRContactInfoImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SharedCDRContactInfoImpl(
    ORB orb,
    CorbaContactInfoList contactInfoList,
    IOR effectiveTargetIOR,
    short addressingDisposition)
{
    this.orb = orb;
    this.contactInfoList = contactInfoList;
    this.effectiveTargetIOR = effectiveTargetIOR;
    this.addressingDisposition = addressingDisposition;
}
 
Example #26
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: CorbaClientDelegateImpl.java    License: Apache License 2.0 5 votes vote down vote up
public CorbaClientDelegateImpl(ORB orb,
                               CorbaContactInfoList contactInfoList)
{
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    this.contactInfoList = contactInfoList;
}
 
Example #27
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: TransportDefault.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #28
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SocketOrChannelContactInfoImpl.java    License: Apache License 2.0 5 votes vote down vote up
protected SocketOrChannelContactInfoImpl(
    ORB orb,
    CorbaContactInfoList contactInfoList)
{
    this.orb = orb;
    this.contactInfoList = contactInfoList;
}
 
Example #29
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: SocketOrChannelContactInfoImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SocketOrChannelContactInfoImpl(
    ORB orb,
    CorbaContactInfoList contactInfoList,
    IOR effectiveTargetIOR,
    short addressingDisposition,
    String socketType,
    String hostname,
    int port)
{
    this(orb, contactInfoList, socketType, hostname, port);
    this.effectiveTargetIOR = effectiveTargetIOR;
    this.addressingDisposition = addressingDisposition;
}
 
Example #30
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SocketOrChannelContactInfoImpl.java    License: Apache License 2.0 5 votes vote down vote up
public SocketOrChannelContactInfoImpl(
    ORB orb,
    CorbaContactInfoList contactInfoList,
    IOR effectiveTargetIOR,
    short addressingDisposition,
    String socketType,
    String hostname,
    int port)
{
    this(orb, contactInfoList, socketType, hostname, port);
    this.effectiveTargetIOR = effectiveTargetIOR;
    this.addressingDisposition = addressingDisposition;
}