Java Code Examples for com.sun.corba.se.impl.protocol.giopmsgheaders.Message.GIOPCloseConnection

The following are Jave code examples for showing how to use GIOPCloseConnection of the com.sun.corba.se.impl.protocol.giopmsgheaders.Message class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: OpenJSharp   File: CorbaMessageMediatorImpl.java   Source Code and License Vote up 5 votes
public void handleInput(Message header) throws IOException
{
    try {
        messageHeader = header;

        if (transportDebug())
            dprint(".handleInput->: "
                   + MessageBase.typeToString(header.getType()));

        setWorkThenReadOrResumeSelect(header);

        switch(header.getType())
        {
        case Message.GIOPCloseConnection:
            if (transportDebug()) {
                dprint(".handleInput: CloseConnection: purging");
            }
            connection.purgeCalls(wrapper.connectionRebind(), true, false);
            break;
        case Message.GIOPMessageError:
            if (transportDebug()) {
                dprint(".handleInput: MessageError: purging");
            }
            connection.purgeCalls(wrapper.recvMsgError(), true, false);
            break;
        default:
            if (transportDebug()) {
                dprint(".handleInput: ERROR: "
                       + MessageBase.typeToString(header.getType()));
            }
            throw wrapper.badGiopRequestType() ;
        }
        releaseByteBufferToPool();
    } finally {
        if (transportDebug()) {
            dprint(".handleInput<-: "
                   + MessageBase.typeToString(header.getType()));
        }
    }
}
 
Example 2
Project: openjdk-jdk10   File: CorbaMessageMediatorImpl.java   Source Code and License Vote up 5 votes
public void handleInput(Message header) throws IOException
{
    try {
        messageHeader = header;

        if (transportDebug())
            dprint(".handleInput->: "
                   + MessageBase.typeToString(header.getType()));

        setWorkThenReadOrResumeSelect(header);

        switch(header.getType())
        {
        case Message.GIOPCloseConnection:
            if (transportDebug()) {
                dprint(".handleInput: CloseConnection: purging");
            }
            connection.purgeCalls(wrapper.connectionRebind(), true, false);
            break;
        case Message.GIOPMessageError:
            if (transportDebug()) {
                dprint(".handleInput: MessageError: purging");
            }
            connection.purgeCalls(wrapper.recvMsgError(), true, false);
            break;
        default:
            if (transportDebug()) {
                dprint(".handleInput: ERROR: "
                       + MessageBase.typeToString(header.getType()));
            }
            throw wrapper.badGiopRequestType() ;
        }
        releaseByteBufferToPool();
    } finally {
        if (transportDebug()) {
            dprint(".handleInput<-: "
                   + MessageBase.typeToString(header.getType()));
        }
    }
}
 
Example 3
Project: openjdk9   File: CorbaMessageMediatorImpl.java   Source Code and License Vote up 5 votes
public void handleInput(Message header) throws IOException
{
    try {
        messageHeader = header;

        if (transportDebug())
            dprint(".handleInput->: "
                   + MessageBase.typeToString(header.getType()));

        setWorkThenReadOrResumeSelect(header);

        switch(header.getType())
        {
        case Message.GIOPCloseConnection:
            if (transportDebug()) {
                dprint(".handleInput: CloseConnection: purging");
            }
            connection.purgeCalls(wrapper.connectionRebind(), true, false);
            break;
        case Message.GIOPMessageError:
            if (transportDebug()) {
                dprint(".handleInput: MessageError: purging");
            }
            connection.purgeCalls(wrapper.recvMsgError(), true, false);
            break;
        default:
            if (transportDebug()) {
                dprint(".handleInput: ERROR: "
                       + MessageBase.typeToString(header.getType()));
            }
            throw wrapper.badGiopRequestType() ;
        }
        releaseByteBufferToPool();
    } finally {
        if (transportDebug()) {
            dprint(".handleInput<-: "
                   + MessageBase.typeToString(header.getType()));
        }
    }
}
 
Example 4
Project: lookaside_java-1.8.0-openjdk   File: CorbaMessageMediatorImpl.java   Source Code and License Vote up 5 votes
public void handleInput(Message header) throws IOException
{
    try {
        messageHeader = header;

        if (transportDebug())
            dprint(".handleInput->: "
                   + MessageBase.typeToString(header.getType()));

        setWorkThenReadOrResumeSelect(header);

        switch(header.getType())
        {
        case Message.GIOPCloseConnection:
            if (transportDebug()) {
                dprint(".handleInput: CloseConnection: purging");
            }
            connection.purgeCalls(wrapper.connectionRebind(), true, false);
            break;
        case Message.GIOPMessageError:
            if (transportDebug()) {
                dprint(".handleInput: MessageError: purging");
            }
            connection.purgeCalls(wrapper.recvMsgError(), true, false);
            break;
        default:
            if (transportDebug()) {
                dprint(".handleInput: ERROR: "
                       + MessageBase.typeToString(header.getType()));
            }
            throw wrapper.badGiopRequestType() ;
        }
        releaseByteBufferToPool();
    } finally {
        if (transportDebug()) {
            dprint(".handleInput<-: "
                   + MessageBase.typeToString(header.getType()));
        }
    }
}
 
Example 5
Project: jdk8u_corba   File: CorbaMessageMediatorImpl.java   Source Code and License Vote up 5 votes
public void handleInput(Message header) throws IOException
{
    try {
        messageHeader = header;

        if (transportDebug())
            dprint(".handleInput->: "
                   + MessageBase.typeToString(header.getType()));

        setWorkThenReadOrResumeSelect(header);

        switch(header.getType())
        {
        case Message.GIOPCloseConnection:
            if (transportDebug()) {
                dprint(".handleInput: CloseConnection: purging");
            }
            connection.purgeCalls(wrapper.connectionRebind(), true, false);
            break;
        case Message.GIOPMessageError:
            if (transportDebug()) {
                dprint(".handleInput: MessageError: purging");
            }
            connection.purgeCalls(wrapper.recvMsgError(), true, false);
            break;
        default:
            if (transportDebug()) {
                dprint(".handleInput: ERROR: "
                       + MessageBase.typeToString(header.getType()));
            }
            throw wrapper.badGiopRequestType() ;
        }
        releaseByteBufferToPool();
    } finally {
        if (transportDebug()) {
            dprint(".handleInput<-: "
                   + MessageBase.typeToString(header.getType()));
        }
    }
}