Package org.apache.directory.shared.ldap.codec.controls.replication.syncInfoValue

Examples of org.apache.directory.shared.ldap.codec.controls.replication.syncInfoValue.SyncInfoValueControl


    {
        try
        {
            LOG.debug( "............... inside handleSyncInfo ..............." );

            SyncInfoValueControl syncInfoValue = ( SyncInfoValueControl ) decoder.decode( syncinfo, null );

            byte[] cookie = syncInfoValue.getCookie();

            if ( cookie != null )
            {
                LOG.debug( "setting the cookie from the sync info: " + StringTools.utf8ToString( cookie ) );
                syncCookie = cookie;
            }

            List<byte[]> uuidList = syncInfoValue.getSyncUUIDs();

            LOG.info( "refreshDeletes: " + syncInfoValue.isRefreshDeletes() );
            if ( uuidList != null )
            {
                for ( byte[] uuid : uuidList )
                {
                    LOG.info( "uuid: {}", StringTools.uuidToString( uuid ) );
                }
            }

            refreshDeletes = syncInfoValue.isRefreshDeletes();
            refreshDone = syncInfoValue.isRefreshDone();

            // if refreshDeletes set to true then delete all the entries with entryUUID
            // present in the syncIdSet
            if ( syncInfoValue.isRefreshDeletes() && ( uuidList != null ) )
            {
                deleteEntries( uuidList );
            }

            LOG.info( "refreshDone: " + syncInfoValue.isRefreshDone() );
        }
        catch ( Exception de )
        {
            LOG.error( "Failed to handle syncinfo message" );
            de.printStackTrace();
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.codec.controls.replication.syncInfoValue.SyncInfoValueControl

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.