类org.omg.CORBA.Request源码实例Demo

下面列出了怎么用org.omg.CORBA.Request的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: openjdk-jdk9   文件: ORBImpl.java
/**
 * Send multiple dynamic requests asynchronously.
 *
 * @param req         an array of request objects.
 */
public synchronized void send_multiple_requests_deferred(Request[] req)
{
    checkShutdownState();

    // add the new Requests to pending dynamic Requests
    for (int i = 0; i < req.length; i++) {
        dynamicRequests.addElement(req[i]);
    }

    // Invoke the send_deferred on each new Request
    for (int i = 0; i < req.length; i++) {
        AsynchInvoke invokeObject = new AsynchInvoke( this,
            (com.sun.corba.se.impl.corba.RequestImpl)req[i], true);
        new Thread(null, invokeObject, "ORB-Request-Thread", 0, false).start();
    }
}
 
源代码2 项目: openjdk-jdk8u   文件: ORBImpl.java
/**
 * Send multiple dynamic requests asynchronously.
 *
 * @param req         an array of request objects.
 */
public synchronized void send_multiple_requests_deferred(Request[] req)
{
    checkShutdownState();

    // add the new Requests to pending dynamic Requests
    for (int i = 0; i < req.length; i++) {
        dynamicRequests.addElement(req[i]);
    }

    // Invoke the send_deferred on each new Request
    for (int i = 0; i < req.length; i++) {
        AsynchInvoke invokeObject = new AsynchInvoke( this,
            (com.sun.corba.se.impl.corba.RequestImpl)req[i], true);
        new Thread(invokeObject).start();
    }
}
 
源代码3 项目: openjdk-jdk8u-backup   文件: ORBImpl.java
/**
 * Get the next request that has gotten a response.
 *
 * @result            the next request ready with a response.
 */
public org.omg.CORBA.Request get_next_response()
    throws org.omg.CORBA.WrongTransaction
{
    synchronized( this ) {
        checkShutdownState();
    }

    while (true) {
        // check if there already is a response
        synchronized ( dynamicRequests ) {
            Enumeration elems = dynamicRequests.elements();
            while ( elems.hasMoreElements() ) {
                Request currRequest = (Request)elems.nextElement();
                if ( currRequest.poll_response() ) {
                    // get the response for this successfully polled Request
                    currRequest.get_response();
                    dynamicRequests.removeElement(currRequest);
                    return currRequest;
                }
            }
        }

        // wait for a response
        synchronized(this.svResponseReceived) {
            while (!this.svResponseReceived.value()) {
                try {
                    this.svResponseReceived.wait();
                } catch(java.lang.InterruptedException ex) {
                    // NO-OP
                }
            }
            // reinitialize the response flag
            this.svResponseReceived.reset();
        }
    }
}
 
源代码4 项目: jdk1.8-source-analysis   文件: ORBImpl.java
public synchronized void send_multiple_requests_oneway(Request[] req)
{
    checkShutdownState();

    // Invoke the send_oneway on each new Request
    for (int i = 0; i < req.length; i++) {
        req[i].send_oneway();
    }
}
 
源代码5 项目: openjdk-jdk9   文件: ORBImpl.java
/**
 * Get the next request that has gotten a response.
 *
 * @return            the next request ready with a response.
 */
public org.omg.CORBA.Request get_next_response()
    throws org.omg.CORBA.WrongTransaction
{
    synchronized( this ) {
        checkShutdownState();
    }

    while (true) {
        // check if there already is a response
        synchronized ( dynamicRequests ) {
            Enumeration elems = dynamicRequests.elements();
            while ( elems.hasMoreElements() ) {
                Request currRequest = (Request)elems.nextElement();
                if ( currRequest.poll_response() ) {
                    // get the response for this successfully polled Request
                    currRequest.get_response();
                    dynamicRequests.removeElement(currRequest);
                    return currRequest;
                }
            }
        }

        // wait for a response
        synchronized(this.svResponseReceived) {
            while (!this.svResponseReceived.value()) {
                try {
                    this.svResponseReceived.wait();
                } catch(java.lang.InterruptedException ex) {
                    // NO-OP
                }
            }
            // reinitialize the response flag
            this.svResponseReceived.reset();
        }
    }
}
 
源代码6 项目: openjdk-8-source   文件: ORBImpl.java
/**
 * Get the next request that has gotten a response.
 *
 * @result            the next request ready with a response.
 */
public org.omg.CORBA.Request get_next_response()
    throws org.omg.CORBA.WrongTransaction
{
    synchronized( this ) {
        checkShutdownState();
    }

    while (true) {
        // check if there already is a response
        synchronized ( dynamicRequests ) {
            Enumeration elems = dynamicRequests.elements();
            while ( elems.hasMoreElements() ) {
                Request currRequest = (Request)elems.nextElement();
                if ( currRequest.poll_response() ) {
                    // get the response for this successfully polled Request
                    currRequest.get_response();
                    dynamicRequests.removeElement(currRequest);
                    return currRequest;
                }
            }
        }

        // wait for a response
        synchronized(this.svResponseReceived) {
            while (!this.svResponseReceived.value()) {
                try {
                    this.svResponseReceived.wait();
                } catch(java.lang.InterruptedException ex) {
                    // NO-OP
                }
            }
            // reinitialize the response flag
            this.svResponseReceived.reset();
        }
    }
}
 
源代码7 项目: openjdk-jdk9   文件: ORBImpl.java
public synchronized void send_multiple_requests_oneway(Request[] req)
{
    checkShutdownState();

    // Invoke the send_oneway on each new Request
    for (int i = 0; i < req.length; i++) {
        req[i].send_oneway();
    }
}
 
源代码8 项目: openjdk-8-source   文件: ORBImpl.java
public synchronized void send_multiple_requests_oneway(Request[] req)
{
    checkShutdownState();

    // Invoke the send_oneway on each new Request
    for (int i = 0; i < req.length; i++) {
        req[i].send_oneway();
    }
}
 
源代码9 项目: TencentKona-8   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
源代码10 项目: TencentKona-8   文件: ORBImpl.java
public synchronized void send_multiple_requests_oneway(Request[] req)
{
    checkShutdownState();

    // Invoke the send_oneway on each new Request
    for (int i = 0; i < req.length; i++) {
        req[i].send_oneway();
    }
}
 
源代码11 项目: TencentKona-8   文件: ORBImpl.java
/**
 * Get the next request that has gotten a response.
 *
 * @result            the next request ready with a response.
 */
public org.omg.CORBA.Request get_next_response()
    throws org.omg.CORBA.WrongTransaction
{
    synchronized( this ) {
        checkShutdownState();
    }

    while (true) {
        // check if there already is a response
        synchronized ( dynamicRequests ) {
            Enumeration elems = dynamicRequests.elements();
            while ( elems.hasMoreElements() ) {
                Request currRequest = (Request)elems.nextElement();
                if ( currRequest.poll_response() ) {
                    // get the response for this successfully polled Request
                    currRequest.get_response();
                    dynamicRequests.removeElement(currRequest);
                    return currRequest;
                }
            }
        }

        // wait for a response
        synchronized(this.svResponseReceived) {
            while (!this.svResponseReceived.value()) {
                try {
                    this.svResponseReceived.wait();
                } catch(java.lang.InterruptedException ex) {
                    // NO-OP
                }
            }
            // reinitialize the response flag
            this.svResponseReceived.reset();
        }
    }
}
 
源代码12 项目: jdk8u60   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
源代码13 项目: jdk8u60   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
源代码14 项目: openjdk-8   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
源代码15 项目: openjdk-jdk8u   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
源代码16 项目: jdk8u60   文件: ORBImpl.java
/**
 * Get the next request that has gotten a response.
 *
 * @result            the next request ready with a response.
 */
public org.omg.CORBA.Request get_next_response()
    throws org.omg.CORBA.WrongTransaction
{
    synchronized( this ) {
        checkShutdownState();
    }

    while (true) {
        // check if there already is a response
        synchronized ( dynamicRequests ) {
            Enumeration elems = dynamicRequests.elements();
            while ( elems.hasMoreElements() ) {
                Request currRequest = (Request)elems.nextElement();
                if ( currRequest.poll_response() ) {
                    // get the response for this successfully polled Request
                    currRequest.get_response();
                    dynamicRequests.removeElement(currRequest);
                    return currRequest;
                }
            }
        }

        // wait for a response
        synchronized(this.svResponseReceived) {
            while (!this.svResponseReceived.value()) {
                try {
                    this.svResponseReceived.wait();
                } catch(java.lang.InterruptedException ex) {
                    // NO-OP
                }
            }
            // reinitialize the response flag
            this.svResponseReceived.reset();
        }
    }
}
 
源代码17 项目: JDKSourceCode1.8   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
源代码18 项目: openjdk-jdk9   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
源代码19 项目: openjdk-8-source   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
源代码20 项目: openjdk-jdk8u   文件: ORBImpl.java
public synchronized void send_multiple_requests_oneway(Request[] req)
{
    checkShutdownState();

    // Invoke the send_oneway on each new Request
    for (int i = 0; i < req.length; i++) {
        req[i].send_oneway();
    }
}
 
源代码21 项目: hottub   文件: ORBImpl.java
/**
 * Get the next request that has gotten a response.
 *
 * @result            the next request ready with a response.
 */
public org.omg.CORBA.Request get_next_response()
    throws org.omg.CORBA.WrongTransaction
{
    synchronized( this ) {
        checkShutdownState();
    }

    while (true) {
        // check if there already is a response
        synchronized ( dynamicRequests ) {
            Enumeration elems = dynamicRequests.elements();
            while ( elems.hasMoreElements() ) {
                Request currRequest = (Request)elems.nextElement();
                if ( currRequest.poll_response() ) {
                    // get the response for this successfully polled Request
                    currRequest.get_response();
                    dynamicRequests.removeElement(currRequest);
                    return currRequest;
                }
            }
        }

        // wait for a response
        synchronized(this.svResponseReceived) {
            while (!this.svResponseReceived.value()) {
                try {
                    this.svResponseReceived.wait();
                } catch(java.lang.InterruptedException ex) {
                    // NO-OP
                }
            }
            // reinitialize the response flag
            this.svResponseReceived.reset();
        }
    }
}
 
源代码22 项目: hottub   文件: CorbaClientDelegateImpl.java
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
源代码23 项目: openjdk-8   文件: StubWrapper.java
public Request _create_request( Context ctx, String operation, NVList arg_list,
    NamedValue result)
{
    return object._create_request( ctx, operation, arg_list, result ) ;
}
 
源代码24 项目: openjdk-jdk9   文件: TestOrbImpl.java
@Override
public Request get_next_response() throws WrongTransaction {
    return null;
}
 
源代码25 项目: openjdk-jdk9   文件: CorbaClientDelegateImpl.java
public Request request(org.omg.CORBA.Object obj, String operation)
{
    return new RequestImpl(orb, obj, null, operation, null, null, null,
                           null);
}
 
源代码26 项目: openjdk-8-source   文件: StubWrapper.java
public Request _request(String operation)
{
    return object._request( operation ) ;
}
 
源代码27 项目: openjdk-8   文件: ORBSingleton.java
public org.omg.CORBA.Request get_next_response() {
    throw new SecurityException("ORBSingleton: access denied");
}
 
源代码28 项目: openjdk-8-source   文件: StubWrapper.java
public Request _create_request( Context ctx, String operation, NVList arg_list,
    NamedValue result, ExceptionList exclist, ContextList ctxlist)
{
    return object._create_request( ctx, operation, arg_list, result,
        exclist, ctxlist ) ;
}
 
源代码29 项目: openjdk-jdk8u-backup   文件: ORBSingleton.java
public void send_multiple_requests_oneway(Request[] req) {
    throw new SecurityException("ORBSingleton: access denied");
}
 
源代码30 项目: openjdk-8-source   文件: CorbaClientDelegateImpl.java
public Request request(org.omg.CORBA.Object obj, String operation)
{
    return new RequestImpl(orb, obj, null, operation, null, null, null,
                           null);
}
 
 类所在包
 类方法
 同包方法