Java Code Examples for com.sun.corba.se.impl.encoding.BufferManagerReadStream#cancelProcessing()

The following examples show how to use com.sun.corba.se.impl.encoding.BufferManagerReadStream#cancelProcessing() . 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: CorbaResponseWaitingRoomImpl.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
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 2
Source File: CorbaResponseWaitingRoomImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
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 3
Source File: CorbaResponseWaitingRoomImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
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 4
Source File: CorbaResponseWaitingRoomImpl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
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 5
Source File: CorbaResponseWaitingRoomImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
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 6
Source File: CorbaResponseWaitingRoomImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
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 7
Source File: CorbaResponseWaitingRoomImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
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 8
Source File: CorbaResponseWaitingRoomImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
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 9
Source File: CorbaResponseWaitingRoomImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
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 10
Source File: CorbaResponseWaitingRoomImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
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();
                }
            }
        }
    }
}