Java Code Examples for com.sun.corba.se.spi.protocol.CorbaMessageMediator#getInputObject()
The following examples show how to use
com.sun.corba.se.spi.protocol.CorbaMessageMediator#getInputObject() .
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: CorbaMessageMediatorImpl.java From JDKSourceCode1.8 with 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 2
Source File: CorbaMessageMediatorImpl.java From openjdk-jdk9 with 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 File: ServerRequestImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ServerRequestImpl (CorbaMessageMediator req, ORB orb) { _opName = req.getOperationName(); _ins = (InputStream)req.getInputObject(); _ctx = null; // if we support contexts, this would // presumably also be available on // the server invocation _orb = orb; _wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; }
Example 4
Source File: CorbaMessageMediatorImpl.java From openjdk-8-source with 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 5
Source File: ServerRequestImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public ServerRequestImpl (CorbaMessageMediator req, ORB orb) { _opName = req.getOperationName(); _ins = (InputStream)req.getInputObject(); _ctx = null; // if we support contexts, this would // presumably also be available on // the server invocation _orb = orb; _wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; }
Example 6
Source File: CorbaMessageMediatorImpl.java From openjdk-jdk8u with 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 File: ServerRequestImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public ServerRequestImpl (CorbaMessageMediator req, ORB orb) { _opName = req.getOperationName(); _ins = (InputStream)req.getInputObject(); _ctx = null; // if we support contexts, this would // presumably also be available on // the server invocation _orb = orb; _wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; }
Example 8
Source File: ServerRequestImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public ServerRequestImpl (CorbaMessageMediator req, ORB orb) { _opName = req.getOperationName(); _ins = (InputStream)req.getInputObject(); _ctx = null; // if we support contexts, this would // presumably also be available on // the server invocation _orb = orb; _wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; }
Example 9
Source File: ServerRequestImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public ServerRequestImpl (CorbaMessageMediator req, ORB orb) { _opName = req.getOperationName(); _ins = (InputStream)req.getInputObject(); _ctx = null; // if we support contexts, this would // presumably also be available on // the server invocation _orb = orb; _wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; }
Example 10
Source File: CorbaMessageMediatorImpl.java From jdk8u60 with 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 File: ServerRequestImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public ServerRequestImpl (CorbaMessageMediator req, ORB orb) { _opName = req.getOperationName(); _ins = (InputStream)req.getInputObject(); _ctx = null; // if we support contexts, this would // presumably also be available on // the server invocation _orb = orb; _wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; }
Example 12
Source File: CorbaMessageMediatorImpl.java From TencentKona-8 with 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 13
Source File: ServerRequestImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public ServerRequestImpl (CorbaMessageMediator req, ORB orb) { _opName = req.getOperationName(); _ins = (InputStream)req.getInputObject(); _ctx = null; // if we support contexts, this would // presumably also be available on // the server invocation _orb = orb; _wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; }
Example 14
Source File: CorbaMessageMediatorImpl.java From jdk1.8-source-analysis with 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 15
Source File: CorbaResponseWaitingRoomImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public void signalExceptionToAllWaiters(SystemException systemException) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: " + systemException); } synchronized (out_calls) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: out_calls size :" + out_calls.size()); } for (OutCallDesc call : out_calls.values()) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: signaling " + call); } synchronized(call.done) { try { // anything waiting for BufferManagerRead's fragment queue // needs to be cancelled CorbaMessageMediator corbaMsgMediator = (CorbaMessageMediator)call.messageMediator; CDRInputObject inputObject = (CDRInputObject)corbaMsgMediator.getInputObject(); // IMPORTANT: If inputObject is null, then no need to tell // BufferManagerRead to cancel request processing. if (inputObject != null) { BufferManagerReadStream bufferManager = (BufferManagerReadStream)inputObject.getBufferManager(); int requestId = corbaMsgMediator.getRequestId(); bufferManager.cancelProcessing(requestId); } } catch (Exception e) { } finally { // attempt to wake up waiting threads in all cases call.inputObject = null; call.exception = systemException; call.done.notifyAll(); } } } } }
Example 16
Source File: CorbaResponseWaitingRoomImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public void signalExceptionToAllWaiters(SystemException systemException) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: " + systemException); } synchronized (out_calls) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: out_calls size :" + out_calls.size()); } for (OutCallDesc call : out_calls.values()) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: signaling " + call); } synchronized(call.done) { try { // anything waiting for BufferManagerRead's fragment queue // needs to be cancelled CorbaMessageMediator corbaMsgMediator = (CorbaMessageMediator)call.messageMediator; CDRInputObject inputObject = (CDRInputObject)corbaMsgMediator.getInputObject(); // IMPORTANT: If inputObject is null, then no need to tell // BufferManagerRead to cancel request processing. if (inputObject != null) { BufferManagerReadStream bufferManager = (BufferManagerReadStream)inputObject.getBufferManager(); int requestId = corbaMsgMediator.getRequestId(); bufferManager.cancelProcessing(requestId); } } catch (Exception e) { } finally { // attempt to wake up waiting threads in all cases call.inputObject = null; call.exception = systemException; call.done.notifyAll(); } } } } }
Example 17
Source File: CorbaResponseWaitingRoomImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public void signalExceptionToAllWaiters(SystemException systemException) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: " + systemException); } synchronized (out_calls) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: out_calls size :" + out_calls.size()); } for (OutCallDesc call : out_calls.values()) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: signaling " + call); } synchronized(call.done) { try { // anything waiting for BufferManagerRead's fragment queue // needs to be cancelled CorbaMessageMediator corbaMsgMediator = (CorbaMessageMediator)call.messageMediator; CDRInputObject inputObject = (CDRInputObject)corbaMsgMediator.getInputObject(); // IMPORTANT: If inputObject is null, then no need to tell // BufferManagerRead to cancel request processing. if (inputObject != null) { BufferManagerReadStream bufferManager = (BufferManagerReadStream)inputObject.getBufferManager(); int requestId = corbaMsgMediator.getRequestId(); bufferManager.cancelProcessing(requestId); } } catch (Exception e) { } finally { // attempt to wake up waiting threads in all cases call.inputObject = null; call.exception = systemException; call.done.notifyAll(); } } } } }
Example 18
Source File: CorbaResponseWaitingRoomImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public void signalExceptionToAllWaiters(SystemException systemException) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: " + systemException); } synchronized (out_calls) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: out_calls size :" + out_calls.size()); } for (OutCallDesc call : out_calls.values()) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: signaling " + call); } synchronized(call.done) { try { // anything waiting for BufferManagerRead's fragment queue // needs to be cancelled CorbaMessageMediator corbaMsgMediator = (CorbaMessageMediator)call.messageMediator; CDRInputObject inputObject = (CDRInputObject)corbaMsgMediator.getInputObject(); // IMPORTANT: If inputObject is null, then no need to tell // BufferManagerRead to cancel request processing. if (inputObject != null) { BufferManagerReadStream bufferManager = (BufferManagerReadStream)inputObject.getBufferManager(); int requestId = corbaMsgMediator.getRequestId(); bufferManager.cancelProcessing(requestId); } } catch (Exception e) { } finally { // attempt to wake up waiting threads in all cases call.inputObject = null; call.exception = systemException; call.done.notifyAll(); } } } } }
Example 19
Source File: CorbaResponseWaitingRoomImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void signalExceptionToAllWaiters(SystemException systemException) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: " + systemException); } synchronized (out_calls) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: out_calls size :" + out_calls.size()); } for (OutCallDesc call : out_calls.values()) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: signaling " + call); } synchronized(call.done) { try { // anything waiting for BufferManagerRead's fragment queue // needs to be cancelled CorbaMessageMediator corbaMsgMediator = (CorbaMessageMediator)call.messageMediator; CDRInputObject inputObject = (CDRInputObject)corbaMsgMediator.getInputObject(); // IMPORTANT: If inputObject is null, then no need to tell // BufferManagerRead to cancel request processing. if (inputObject != null) { BufferManagerReadStream bufferManager = (BufferManagerReadStream)inputObject.getBufferManager(); int requestId = corbaMsgMediator.getRequestId(); bufferManager.cancelProcessing(requestId); } } catch (Exception e) { } finally { // attempt to wake up waiting threads in all cases call.inputObject = null; call.exception = systemException; call.done.notifyAll(); } } } } }
Example 20
Source File: CorbaResponseWaitingRoomImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
public void signalExceptionToAllWaiters(SystemException systemException) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: " + systemException); } synchronized (out_calls) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: out_calls size :" + out_calls.size()); } for (OutCallDesc call : out_calls.values()) { if (orb.transportDebugFlag) { dprint(".signalExceptionToAllWaiters: signaling " + call); } synchronized(call.done) { try { // anything waiting for BufferManagerRead's fragment queue // needs to be cancelled CorbaMessageMediator corbaMsgMediator = (CorbaMessageMediator)call.messageMediator; CDRInputObject inputObject = (CDRInputObject)corbaMsgMediator.getInputObject(); // IMPORTANT: If inputObject is null, then no need to tell // BufferManagerRead to cancel request processing. if (inputObject != null) { BufferManagerReadStream bufferManager = (BufferManagerReadStream)inputObject.getBufferManager(); int requestId = corbaMsgMediator.getRequestId(); bufferManager.cancelProcessing(requestId); } } catch (Exception e) { } finally { // attempt to wake up waiting threads in all cases call.inputObject = null; call.exception = systemException; call.done.notifyAll(); } } } } }