Examples of LogChangeSetBinding


Examples of com.sleepycat.je.sync.impl.LogChangeSet.LogChangeSetBinding

            long endOfLog = envImpl.getEndOfLog();

            TestHookExecute.doHookIfSet(addHook);

            /* Write the information to the database. */
            LogChangeSetBinding binding = new LogChangeSetBinding();
            DatabaseEntry data = new DatabaseEntry();
            binding.objectToEntry(new LogChangeSet(endOfLog, endOfLog), data);

            syncDb.writeChangeSetData(env, null, processorName,
                                      dataSet.getName(), data, OpType.INSERT);
        }
    }
View Full Code Here

Examples of com.sleepycat.je.sync.impl.LogChangeSet.LogChangeSetBinding

        if (changeSets == null || changeSets.size() == 0) {
            return;
        }

        /* Go over the whole list. */
        LogChangeSetBinding binding = new LogChangeSetBinding();
        long minValue = Long.MAX_VALUE;
        for (Map.Entry<String, DatabaseEntry> entry : changeSets.entrySet()) {
            LogChangeSet changeSet = binding.entryToObject(entry.getValue());
            syncStarts.put(entry.getKey(), changeSet.getNextSyncStart());
            /* Find the minSyncStart. */
            if (doCompare(minValue, changeSet.getNextSyncStart()) > 0) {
                minValue = changeSet.getNextSyncStart();
            }
View Full Code Here

Examples of com.sleepycat.je.sync.impl.LogChangeSet.LogChangeSetBinding

                if (syncStartInfos == null) {
                    syncStartInfos =
                        new ConcurrentHashMap<String, StartInfo>();
                    txnIdToSyncStarts.put(txn.getId(), syncStartInfos);
                }
                LogChangeSetBinding binding = new LogChangeSetBinding();
                LogChangeSet set = binding.entryToObject(data);
                StartInfo startInfo =
                    new StartInfo(set.getNextSyncStart(), isDelete);
                syncStartInfos.put(dataSetName, startInfo);
            }
        }
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.