org.omg.CORBA.Request Java Examples
The following examples show how to use
org.omg.CORBA.Request.
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 File: ORBImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * 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(); } }
Example #2
Source File: ORBImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * 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(); } }
Example #3
Source File: CorbaClientDelegateImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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); }
Example #4
Source File: ORBImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * 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(); } } }
Example #5
Source File: ORBImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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(); } }
Example #6
Source File: CorbaClientDelegateImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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); }
Example #7
Source File: ORBImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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(); } }
Example #8
Source File: ORBImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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(); } }
Example #9
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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); }
Example #10
Source File: ORBImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * 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(); } } }
Example #11
Source File: CorbaClientDelegateImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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); }
Example #12
Source File: ORBImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * 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(); } } }
Example #13
Source File: ORBImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * 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(); } } }
Example #14
Source File: CorbaClientDelegateImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
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); }
Example #15
Source File: CorbaClientDelegateImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
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); }
Example #16
Source File: ORBImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * 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(); } } }
Example #17
Source File: ORBImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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(); } }
Example #18
Source File: CorbaClientDelegateImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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); }
Example #19
Source File: CorbaClientDelegateImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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); }
Example #20
Source File: ORBImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * 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(); } } }
Example #21
Source File: CorbaClientDelegateImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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); }
Example #22
Source File: ORBImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
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(); } }
Example #23
Source File: CorbaClientDelegateImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public Request request(org.omg.CORBA.Object obj, String operation) { return new RequestImpl(orb, obj, null, operation, null, null, null, null); }
Example #24
Source File: StubWrapper.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public Request _request(String operation) { return object._request( operation ) ; }
Example #25
Source File: StubWrapper.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public Request _create_request( Context ctx, String operation, NVList arg_list, NamedValue result) { return object._create_request( ctx, operation, arg_list, result ) ; }
Example #26
Source File: StubWrapper.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
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 ) ; }
Example #27
Source File: ORBSingleton.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void send_multiple_requests_deferred(Request[] req) { throw new SecurityException("ORBSingleton: access denied"); }
Example #28
Source File: StubWrapper.java From hottub with GNU General Public License v2.0 | 4 votes |
public Request _create_request( Context ctx, String operation, NVList arg_list, NamedValue result) { return object._create_request( ctx, operation, arg_list, result ) ; }
Example #29
Source File: ORBSingleton.java From JDKSourceCode1.8 with MIT License | 4 votes |
public void send_multiple_requests_oneway(Request[] req) { throw new SecurityException("ORBSingleton: access denied"); }
Example #30
Source File: StubWrapper.java From JDKSourceCode1.8 with MIT License | 4 votes |
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 ) ; }