Package org.apache.directory.shared.ldap.message.internal

Examples of org.apache.directory.shared.ldap.message.internal.InternalAbandonableRequest


     *
     * @param messageId The request ID to abandon
     */
    public InternalAbandonableRequest abandonOutstandingRequest( int messageId )
    {
        InternalAbandonableRequest request = null;
       
        synchronized ( outstandingLock )
        {
            request = outstandingRequests.remove( messageId );
        }

        if ( request == null )
        {
            LOG.warn( "AbandonableRequest with messageId {} not found in outstandingRequests.", messageId );
            return null;
        }
       
        if ( request.isAbandoned() )
        {
            LOG.info( "AbandonableRequest with messageId {} has already been abandoned", messageId );
            return request;
        }

        request.abandon();
       
        if ( IS_DEBUG )
        {
            LOG.debug( "AbandonRequest on AbandonableRequest wth messageId {} was successful.", messageId );
        }
View Full Code Here


    }


    public Object getValueAt( int rowIndex, int columnIndex )
    {
        InternalAbandonableRequest req = requests[rowIndex];

        switch ( columnIndex )
        {
            case ( 0 ):
                return new Integer( req.getMessageId() );
            case ( 1 ):
                return req.getType().toString();
            default:
                throw new IndexOutOfBoundsException( I18n.err( I18n.ERR_658, ( columns.length - 1 ) ) );
        }
    }
View Full Code Here

            {
                int row = jTable.getSelectedRow();
                if ( row > -1 )
                {
                    jButton2.setEnabled( true );
                    InternalAbandonableRequest req = ( ( OutstandingRequestsModel ) jTable.getModel() )
                        .getAbandonableRequest( row );
                    jTextArea.setText( req.toString() );
                    jTextArea.setEnabled( true );
                }
                else
                {
                    jButton2.setEnabled( false );
View Full Code Here

            jButton2.addActionListener( new java.awt.event.ActionListener()
            {
                public void actionPerformed( java.awt.event.ActionEvent e )
                {
                    int row = jTable.getSelectedRow();
                    InternalAbandonableRequest req = ( ( OutstandingRequestsModel ) jTable.getModel() )
                        .getAbandonableRequest( row );
                    req.abandon();
                    session.abandonOutstandingRequest( req.getMessageId() );
                    setRequestsModel();
                }
            } );
        }
        return jButton2;
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.message.internal.InternalAbandonableRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.