Java Code Examples for com.sun.corba.se.pept.encoding.OutputObject#close()
The following examples show how to use
com.sun.corba.se.pept.encoding.OutputObject#close() .
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 File: CorbaMessageMediatorImpl.java License: Apache License 2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 2
Source Project: TencentKona-8 File: CorbaMessageMediatorImpl.java License: GNU General Public License v2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 3
Source Project: jdk8u60 File: CorbaMessageMediatorImpl.java License: GNU General Public License v2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 4
Source Project: JDKSourceCode1.8 File: CorbaMessageMediatorImpl.java License: MIT License | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 5
Source Project: openjdk-jdk8u File: CorbaMessageMediatorImpl.java License: GNU General Public License v2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 6
Source Project: openjdk-jdk8u-backup File: CorbaMessageMediatorImpl.java License: GNU General Public License v2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 7
Source Project: openjdk-jdk9 File: CorbaMessageMediatorImpl.java License: GNU General Public License v2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 8
Source Project: hottub File: CorbaMessageMediatorImpl.java License: GNU General Public License v2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 9
Source Project: openjdk-8-source File: CorbaMessageMediatorImpl.java License: GNU General Public License v2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 10
Source Project: openjdk-8 File: CorbaMessageMediatorImpl.java License: GNU General Public License v2.0 | 5 votes |
private void endRequest(CorbaMessageMediator messageMediator) { ORB orb = (ORB) messageMediator.getBroker(); if (orb.subcontractDebugFlag) { dprint(".handleRequest<-: " + opAndId(messageMediator)); } // release NIO ByteBuffers to ByteBufferPool try { OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } } catch (IOException ex) { // Given what close() does, this catch shouldn't ever happen. // See CDRInput/OutputObject.close() for more info. // It also won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: IOException:" + ex.getMessage(), ex); } } finally { ((CorbaConnection)messageMediator.getConnection()).serverRequestProcessingEnds(); } }
Example 11
Source Project: jdk1.8-source-analysis File: CorbaClientRequestDispatcherImpl.java License: Apache License 2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 12
Source Project: TencentKona-8 File: CorbaClientRequestDispatcherImpl.java License: GNU General Public License v2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 13
Source Project: jdk8u60 File: CorbaClientRequestDispatcherImpl.java License: GNU General Public License v2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 14
Source Project: JDKSourceCode1.8 File: CorbaClientRequestDispatcherImpl.java License: MIT License | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 15
Source Project: openjdk-jdk8u File: CorbaClientRequestDispatcherImpl.java License: GNU General Public License v2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 16
Source Project: openjdk-jdk8u-backup File: CorbaClientRequestDispatcherImpl.java License: GNU General Public License v2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 17
Source Project: openjdk-jdk9 File: CorbaClientRequestDispatcherImpl.java License: GNU General Public License v2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 18
Source Project: hottub File: CorbaClientRequestDispatcherImpl.java License: GNU General Public License v2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 19
Source Project: openjdk-8-source File: CorbaClientRequestDispatcherImpl.java License: GNU General Public License v2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }
Example 20
Source Project: openjdk-8 File: CorbaClientRequestDispatcherImpl.java License: GNU General Public License v2.0 | 4 votes |
public void endRequest(Broker broker, Object self, InputObject inputObject) { ORB orb = (ORB)broker ; try { if (orb.subcontractDebugFlag) { dprint(".endRequest->"); } // Note: the inputObject may be null if an error occurs // in request or before _invoke returns. // Note: self may be null also (e.g., compiler generates null in stub). MessageMediator messageMediator = orb.getInvocationInfo().getMessageMediator(); if (messageMediator != null) { if (messageMediator.getConnection() != null) { ((CorbaMessageMediator)messageMediator) .sendCancelRequestIfFinalFragmentNotSent(); } // Release any outstanding NIO ByteBuffers to the ByteBufferPool InputObject inputObj = messageMediator.getInputObject(); if (inputObj != null) { inputObj.close(); } OutputObject outputObj = messageMediator.getOutputObject(); if (outputObj != null) { outputObj.close(); } } // XREVISIT NOTE - Assumes unregistering the waiter for // location forwards has already happened somewhere else. // The code below is only going to unregister the final successful // request. // NOTE: In the case of a recursive stack of endRequests in a // finally block (because of Remarshal) only the first call to // unregisterWaiter will remove the waiter. The rest will be // noops. unregisterWaiter(orb); // Invoke Portable Interceptors cleanup. This is done to handle // exceptions during stream marshaling. More generally, exceptions // that occur in the ORB after send_request (which includes // after returning from _request) before _invoke: orb.getPIHandler().cleanupClientPIRequest(); // REVISIT: Early replies? } catch (IOException ex) { // See CDRInput/OutputObject.close() for more info. // This won't result in a Corba error if an IOException happens. if (orb.subcontractDebugFlag) { dprint(".endRequest: ignoring IOException - " + ex.toString()); } } finally { if (orb.subcontractDebugFlag) { dprint(".endRequest<-"); } } }