Examples of SyncDoneValueDecorator


Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

              0x30, 0x00
            } );

        bb.flip();

        SyncDoneValueDecorator decorator =  new SyncDoneValueDecorator( codec );

        SyncDoneValue control = (SyncDoneValue)decorator.decode( bb.array() );

        assertNull( control.getCookie() );
        assertFalse( control.isRefreshDeletes() );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

                0x01, 0x01, 0x00 // refreshDeletes flag FALSE
            } );

        bb.flip();

        SyncDoneValueDecorator decorator =  new SyncDoneValueDecorator( codec );

        SyncDoneValue control = (SyncDoneValue)decorator.decode( bb.array() );

        assertEquals( "", Strings.utf8ToString(control.getCookie()) );
        assertFalse( control.isRefreshDeletes() );

        // test encoding
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

        else
        {
            //System.out.println( "   --> In doContenUpdate, RO " );
            SearchResultDone searchDoneResp = ( SearchResultDone ) req.getResultResponse();
            searchDoneResp.getLdapResult().setResultCode( ResultCodeEnum.SUCCESS );
            SyncDoneValue syncDone = new SyncDoneValueDecorator(
                ldapServer.getDirectoryService().getLdapCodecService() );
            syncDone.setCookie( cookie );
            searchDoneResp.addControl( syncDone );

            session.getIoSession().write( searchDoneResp );
        }
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

                handler.setPushInRealTime( refreshNPersist );
            }
            else
            {
                // no need to send from the log, that will be done in the next refreshOnly session
                SyncDoneValue syncDone = new SyncDoneValueDecorator(
                    ldapServer.getDirectoryService().getLdapCodecService() );
                syncDone.setCookie( cookie );
                searchDoneResp.addControl( syncDone );
                session.getIoSession().write( searchDoneResp );
            }
        }
        else
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

    private void sendESyncRefreshRequired( LdapSession session, SearchRequest req ) throws Exception
    {
        SearchResultDone searchDoneResp = ( SearchResultDone ) req.getResultResponse();
        searchDoneResp.getLdapResult().setResultCode( ResultCodeEnum.E_SYNC_REFRESH_REQUIRED );
        SyncDoneValueDecorator syncDone = new SyncDoneValueDecorator(
            ldapServer.getDirectoryService().getLdapCodecService() );
        searchDoneResp.addControl( syncDone );

        session.getIoSession().write( searchDoneResp );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

                control = new SubentriesDecorator( getDirectoryService().getLdapCodecService() );
               
                break;

            case SYNC_DONE_VALUE_CONTROL:
                control = new SyncDoneValueDecorator( getDirectoryService().getLdapCodecService() );
               
                break;

            case SYNC_INFO_VALUE_CONTROL:
                control = new SyncInfoValueDecorator( getDirectoryService().getLdapCodecService() );
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

        }
        else
        {
            SearchResultDone searchDoneResp = ( SearchResultDone ) req.getResultResponse();
            searchDoneResp.getLdapResult().setResultCode( ResultCodeEnum.SUCCESS );
            SyncDoneValue syncDone = new SyncDoneValueDecorator(
                ldapServer.getDirectoryService().getLdapCodecService() );
            syncDone.setCookie( cookie );
            searchDoneResp.addControl( syncDone );

            PROVIDER_LOG.debug( "Send a SearchResultDone response to the {} consumer", replicaLog.getId(),
                searchDoneResp );
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

                handler.setPushInRealTime( refreshNPersist );
            }
            else
            {
                // no need to send from the log, that will be done in the next refreshOnly session
                SyncDoneValue syncDone = new SyncDoneValueDecorator(
                    ldapServer.getDirectoryService().getLdapCodecService() );
                syncDone.setCookie( cookie );
                searchDoneResp.addControl( syncDone );
                PROVIDER_LOG.info( "Sending the searchResultDone response to consumer {}, {}", replicaLog,
                    searchDoneResp );

                session.getIoSession().write( searchDoneResp );
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

     */
    private void sendESyncRefreshRequired( LdapSession session, SearchRequest req ) throws Exception
    {
        SearchResultDone searchDoneResp = ( SearchResultDone ) req.getResultResponse();
        searchDoneResp.getLdapResult().setResultCode( ResultCodeEnum.E_SYNC_REFRESH_REQUIRED );
        SyncDoneValue syncDone = new SyncDoneValueDecorator(
            ldapServer.getDirectoryService().getLdapCodecService() );
        searchDoneResp.addControl( syncDone );

        session.getIoSession().write( searchDoneResp );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator

                control = new SubentriesDecorator( getDirectoryService().getLdapCodecService() );

                break;

            case SYNC_DONE_VALUE_CONTROL:
                control = new SyncDoneValueDecorator( getDirectoryService().getLdapCodecService() );

                break;

            case SYNC_INFO_VALUE_CONTROL:
                control = new SyncInfoValueDecorator( getDirectoryService().getLdapCodecService() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.